|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
|
|
|
|
|
namespace Mesnac.Action.ChemicalWeighing.Entity
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 简单报警信息类
|
|
|
|
|
/// </summary>
|
|
|
|
|
[Serializable]
|
|
|
|
|
public class SimpleAlarmInfo
|
|
|
|
|
{
|
|
|
|
|
#region 私有字段
|
|
|
|
|
|
|
|
|
|
private string _alramPLC;
|
|
|
|
|
private string _alarmBlock;
|
|
|
|
|
private int _alarmAddress;
|
|
|
|
|
private bool[] _isSaveAlarm = new bool[16] { false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false }; //是否保存过报警记录
|
|
|
|
|
private Int16 _alarmData = 0;
|
|
|
|
|
private string _alarmBit;
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
#region 公有属性
|
|
|
|
|
public string AlramPLC
|
|
|
|
|
{
|
|
|
|
|
get { return _alramPLC; }
|
|
|
|
|
set { _alramPLC = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AlarmBlock
|
|
|
|
|
{
|
|
|
|
|
get { return _alarmBlock; }
|
|
|
|
|
set { _alarmBlock = value; }
|
|
|
|
|
}
|
|
|
|
|
public int AlarmAddress
|
|
|
|
|
{
|
|
|
|
|
get { return _alarmAddress; }
|
|
|
|
|
set { _alarmAddress = value; }
|
|
|
|
|
}
|
|
|
|
|
public bool[] IsSaveAlarm
|
|
|
|
|
{
|
|
|
|
|
get { return _isSaveAlarm; }
|
|
|
|
|
set { _isSaveAlarm = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public Int16 AlarmData
|
|
|
|
|
{
|
|
|
|
|
get { return _alarmData; }
|
|
|
|
|
set { _alarmData = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string AlarmBit
|
|
|
|
|
{
|
|
|
|
|
get { return _alarmBit; }
|
|
|
|
|
set { _alarmBit = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|
|
|
|
|
}
|