AITSensorData.cs 1000 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. using System.Runtime.Serialization;
  2. namespace OldWorldData.CommonData.DeviceData
  3. {
  4. [DataContract]
  5. [Serializable]
  6. public class AITSensorData
  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 表中定义的物理编号,物理追溯使用 比如: V122
  20. /// </summary>
  21. [DataMember]
  22. public string DeviceSchematicId { get; set; }
  23. [DataMember]
  24. public bool Value { get; set; }
  25. [DataMember]
  26. public bool IsError { get; set; }
  27. public AITSensorData()
  28. {
  29. DisplayName = "Undefined";
  30. }
  31. }
  32. public class AITSensorProperty
  33. {
  34. public const string Value = "Value";
  35. }
  36. }