AITGasSplitterData.cs 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. using System.Runtime.Serialization;
  2. namespace OldWorldData.CommonData.DeviceData
  3. {
  4. [DataContract]
  5. [Serializable]
  6. public class AITGasSplitterData
  7. {
  8. [DataMember]
  9. public string Module { get; set; }
  10. [DataMember]
  11. public string UniqueName { get; set; }
  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 表中定义的物理编号,物理追溯使用 比如: M122
  24. /// </summary>
  25. [DataMember]
  26. public string DeviceSchematicId { get; set; }
  27. [DataMember]
  28. public string Unit { get; set; }
  29. [DataMember]
  30. public string Description { get; set; }
  31. /// <summary>
  32. /// 量程
  33. /// </summary>
  34. [DataMember]
  35. public double Scale { get; set; }
  36. /// <summary>
  37. /// 量程范围
  38. /// </summary>
  39. [DataMember]
  40. public string Range { get; set; }
  41. /// <summary>
  42. /// 设定值
  43. /// </summary>
  44. [DataMember]
  45. public double SetPoint { get; set; }
  46. [DataMember]
  47. public double FeedBack { get; set; }
  48. [DataMember]
  49. public double SwitchFeedBack { get; set; }
  50. /// <summary>
  51. /// 默认值
  52. /// </summary>
  53. [DataMember]
  54. public double DefaultValue { get; set; }
  55. /// <summary>
  56. /// 是否有报警
  57. /// </summary>
  58. [DataMember]
  59. public bool IsWarning { get; set; }
  60. [DataMember]
  61. public bool IsOffline { get; set; }
  62. [DataMember]
  63. public int Status { get; set; }
  64. /// <summary>
  65. /// alarm或是erro时显示的信息
  66. /// </summary>
  67. [DataMember]
  68. public string ErroMessage { get; set; }
  69. /// <summary>
  70. /// MFC,PC
  71. /// </summary>
  72. [DataMember]
  73. public string Type { get; set; }
  74. [DataMember]
  75. public string FormatString { get; set; }
  76. [DataMember]
  77. public string DisplayTitle
  78. {
  79. get
  80. {
  81. return string.Format("{0}({1})", DeviceSchematicId, DisplayName);
  82. }
  83. }
  84. public AITGasSplitterData()
  85. {
  86. DisplayName = "Undefined";
  87. Unit = "%";
  88. Type = "Splitter";
  89. DeviceSchematicId = "Undefined";
  90. UniqueName = "";
  91. }
  92. }
  93. public class AITGasSplitterDataPropertyName
  94. {
  95. public const string IsOffline = "IsOffline";
  96. public const string FeedBack = "FeedBack";
  97. public const string SetPoint = "SetPoint";
  98. public const string DefaultSetPoint = "DefaultSetPoint";
  99. public const string Scale = "Scale";
  100. public const string Range = "Range";
  101. public const string IsEnabled = "IsEnabled";
  102. public const string IsOutOfTolerance = "IsOutOfTolerance";
  103. public const string IsEnableAlarm = "IsEnableAlarm";
  104. public const string AlarmRange = "AlarmRange";
  105. public const string AlarmTime = "AlarmTime";
  106. public const string Status = "Status";
  107. }
  108. }