AITThermalCoupleData.cs 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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 AITDeveloperCoupleData
  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 bool IsWarning { get; set; }
  35. /// <summary>
  36. /// 设定值
  37. /// </summary>
  38. [DataMember]
  39. public bool IsOutOfTolerance { get; set; }
  40. [DataMember]
  41. public double FeedBack { get; set; }
  42. /// <summary>
  43. /// 默认值
  44. /// </summary>
  45. [DataMember]
  46. public bool IsAlarm { get; set; }
  47. /// <summary>
  48. /// 是否有报警
  49. /// </summary>
  50. [DataMember]
  51. public bool IsBroken { get; set; }
  52. /// <summary>
  53. /// alarm或是erro时显示的信息
  54. /// </summary>
  55. [DataMember]
  56. public string ErroMessage { get; set; }
  57. /// <summary>
  58. /// MFC,PC
  59. /// </summary>
  60. [DataMember]
  61. public string Type { get; set; }
  62. [DataMember]
  63. public double Factor { get; set; }
  64. public AITDeveloperCoupleData()
  65. {
  66. DisplayName = "Undefined";
  67. Factor = 1.0;
  68. Unit = "℃";
  69. Type = "TC";
  70. }
  71. }
  72. public class AITDeveloperCoupleProperty
  73. {
  74. public const string IsTcBroken = "IsTcBroken";
  75. public const string Feedback = "Feedback";
  76. }
  77. }