GateValveDataItem.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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 GateValveDataItem
  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 Feedback { get; set; }
  32. public GateValveDataItem()
  33. {
  34. DisplayName = "未定义阀门";
  35. }
  36. }
  37. public class GateValveOperation
  38. {
  39. public const string SlitValveON = "Open";
  40. public const string SlitValveOff = "Close";
  41. }
  42. }