AITWaterFlowSensorData.cs 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. using System.Runtime.Serialization;
  2. namespace OldWorldData.CommonData.DeviceData
  3. {
  4. [DataContract]
  5. [Serializable]
  6. public class AITWaterFlowSensorData
  7. {
  8. /// <summary>
  9. /// 设备的唯一名称,UI与RT交互的ID
  10. /// </summary>
  11. [DataMember]
  12. public string DeviceName { get; set; }
  13. /// <summary>
  14. /// 显示在界面上的名称
  15. /// </summary>
  16. [DataMember]
  17. public string DisplayName { get; set; }
  18. /// <summary>
  19. /// IO 表中定义的物理编号,物理追溯使用 比如: M122
  20. /// </summary>
  21. [DataMember]
  22. public string DeviceSchematicId { get; set; }
  23. [DataMember]
  24. public string Unit { get; set; }
  25. [DataMember]
  26. public string Description { get; set; }
  27. /// <summary>
  28. /// 量程
  29. /// </summary>
  30. [DataMember]
  31. public double Scale { get; set; }
  32. [DataMember]
  33. public double FeedBack { get; set; }
  34. [DataMember]
  35. public bool IsWarning { get; set; }
  36. [DataMember]
  37. public bool IsError { get; set; }
  38. [DataMember]
  39. public bool IsOutOfTolerance { get; set; }
  40. public AITWaterFlowSensorData()
  41. {
  42. DisplayName = "Undefined";
  43. Unit = "slm";
  44. }
  45. }
  46. public class AITWaterFlowSensorPropertyName
  47. {
  48. public const string Feedback = "Feedback";
  49. public const string IsWarning = "IsWarning";
  50. public const string IsError = "IsError";
  51. }
  52. }