AITSignalTowerData.cs 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using System.ComponentModel;
  2. using System.Reflection;
  3. using System.Runtime.Serialization;
  4. using System.Windows.Input;
  5. namespace OldWorldData.CommonData.DeviceData
  6. {
  7. [DataContract]
  8. [Serializable]
  9. public class AITSignalTowerData
  10. {
  11. /// <summary>
  12. /// 设备的唯一名称,UI与RT交互的ID
  13. /// </summary>
  14. [DataMember]
  15. public string DeviceName { get; set; }
  16. /// <summary>
  17. /// 显示在界面上的名称
  18. /// </summary>
  19. [DataMember]
  20. public string DisplayName { get; set; }
  21. /// <summary>
  22. /// IO 表中定义的物理编号,物理追溯使用 比如: M122
  23. /// </summary>
  24. [DataMember]
  25. public string DeviceSchematicId { get; set; }
  26. [DataMember]
  27. public string Description { get; set; }
  28. [DataMember]
  29. public bool IsRedLightOn
  30. {
  31. get;
  32. set;
  33. }
  34. [DataMember]
  35. public bool IsYellowLightOn
  36. {
  37. get;
  38. set;
  39. }
  40. [DataMember]
  41. public bool IsGreenLightOn
  42. {
  43. get;
  44. set;
  45. }
  46. [DataMember]
  47. public bool IsBlueLightOn
  48. {
  49. get;
  50. set;
  51. }
  52. [DataMember]
  53. public bool IsWhiteLightOn
  54. {
  55. get;
  56. set;
  57. }
  58. [DataMember]
  59. public bool IsBuzzerOn
  60. {
  61. get;
  62. set;
  63. }
  64. [DataMember]
  65. public bool IsBuzzer1On
  66. {
  67. get;
  68. set;
  69. }
  70. [DataMember]
  71. public bool IsBuzzer2On
  72. {
  73. get;
  74. set;
  75. }
  76. [DataMember]
  77. public bool IsBuzzer3On
  78. {
  79. get;
  80. set;
  81. }
  82. [DataMember]
  83. public bool IsBuzzer4On
  84. {
  85. get;
  86. set;
  87. }
  88. [DataMember]
  89. public bool IsBuzzer5On
  90. {
  91. get;
  92. set;
  93. }
  94. public AITSignalTowerData()
  95. {
  96. DisplayName = "Undefined";
  97. }
  98. }
  99. public enum AITSignalTowerOperation
  100. {
  101. SwitchOffBuzzer,
  102. SwitchOffBuzzer1,
  103. SwitchOffBuzzer2,
  104. SwitchOffBuzzer3,
  105. SwitchOffBuzzer4,
  106. }
  107. }