| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- using System.ComponentModel;
- using System.Reflection;
- using System.Runtime.Serialization;
- using System.Windows.Input;
- namespace OldWorldData.CommonData.DeviceData
- {
- [DataContract]
- [Serializable]
- public class AITSignalTowerData
- {
- /// <summary>
- /// 设备的唯一名称,UI与RT交互的ID
- /// </summary>
- [DataMember]
- public string DeviceName { get; set; }
- /// <summary>
- /// 显示在界面上的名称
- /// </summary>
- [DataMember]
- public string DisplayName { get; set; }
- /// <summary>
- /// IO 表中定义的物理编号,物理追溯使用 比如: M122
- /// </summary>
- [DataMember]
- public string DeviceSchematicId { get; set; }
- [DataMember]
- public string Description { get; set; }
- [DataMember]
- public bool IsRedLightOn
- {
- get;
- set;
- }
- [DataMember]
- public bool IsYellowLightOn
- {
- get;
- set;
- }
- [DataMember]
- public bool IsGreenLightOn
- {
- get;
- set;
- }
- [DataMember]
- public bool IsBlueLightOn
- {
- get;
- set;
- }
- [DataMember]
- public bool IsWhiteLightOn
- {
- get;
- set;
- }
- [DataMember]
- public bool IsBuzzerOn
- {
- get;
- set;
- }
- [DataMember]
- public bool IsBuzzer1On
- {
- get;
- set;
- }
- [DataMember]
- public bool IsBuzzer2On
- {
- get;
- set;
- }
- [DataMember]
- public bool IsBuzzer3On
- {
- get;
- set;
- }
- [DataMember]
- public bool IsBuzzer4On
- {
- get;
- set;
- }
- [DataMember]
- public bool IsBuzzer5On
- {
- get;
- set;
- }
- public AITSignalTowerData()
- {
- DisplayName = "Undefined";
- }
- }
- public enum AITSignalTowerOperation
- {
- SwitchOffBuzzer,
- SwitchOffBuzzer1,
- SwitchOffBuzzer2,
- SwitchOffBuzzer3,
- SwitchOffBuzzer4,
- }
- }
|