AITPressureSensorData.cs 1.6 KB

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