SignalTowerDataItem.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Runtime.Serialization;
  6. namespace Aitex.Core.UI.ControlDataContext
  7. {
  8. [DataContract]
  9. [Serializable]
  10. public class SignalTowerDataItem
  11. {
  12. /// <summary>
  13. /// 阀的唯一名称,UI与RT交互的ID
  14. /// </summary>
  15. [DataMember]
  16. public string DeviceName { get; set; }
  17. /// <summary>
  18. /// 显示在界面上的名称
  19. /// </summary>
  20. [DataMember]
  21. public string DisplayName { get; set; }
  22. /// <summary>
  23. /// IO 表中定义的物理编号
  24. /// </summary>
  25. [DataMember]
  26. public string DeviceId { get; set; }
  27. /// <summary>
  28. ///
  29. /// </summary>
  30. [DataMember]
  31. public bool IsRedLightOn { get; set; }
  32. [DataMember]
  33. public bool IsYellowLightOn { get; set; }
  34. [DataMember]
  35. public bool IsBlueLightOn { get; set; }
  36. [DataMember]
  37. public bool IsGreenLightOn { get; set; }
  38. public SignalTowerDataItem()
  39. {
  40. }
  41. }
  42. }