GasValveDataItem.cs 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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 GasValveDataItem
  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 表中定义的物理编号,物理追溯使用 比如: V122
  24. /// </summary>
  25. [DataMember]
  26. public string DeviceId { get; set; }
  27. /// <summary>
  28. /// 当前设定值
  29. /// </summary>
  30. [DataMember]
  31. public bool SetValue { get; set; }
  32. /// <summary>
  33. /// 默认值
  34. /// </summary>
  35. [DataMember]
  36. public bool DefaultValue { get; set; }
  37. /// <summary>
  38. /// 实际反馈值
  39. /// </summary>
  40. [DataMember]
  41. public bool Feedback { get; set; }
  42. public GasValveDataItem()
  43. {
  44. DisplayName = "未定义阀门";
  45. }
  46. }
  47. public class GasValveOperation
  48. {
  49. public const string GVTurnValve = "GVTurnValve";
  50. }
  51. }