ReadonlyGaugeDataItem.cs 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Runtime.Serialization;
  6. namespace Aitex.Core.UI.ControlDataContext
  7. {
  8. [DataContract]
  9. [Serializable]
  10. public class ReadonlyGaugeDataItem
  11. {
  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. /// 显示在界面上的单位
  24. /// </summary>
  25. [DataMember]
  26. public string Unit { get; set; }
  27. /// <summary>
  28. /// IO 表中定义的物理编号,物理追溯使用 比如: V122
  29. /// </summary>
  30. [DataMember]
  31. public string DeviceId { get; set; }
  32. /// <summary>
  33. /// 实际反馈值
  34. /// </summary>
  35. [DataMember]
  36. public double Value { get; set; }
  37. public ReadonlyGaugeDataItem()
  38. {
  39. DisplayName = "未定义";
  40. }
  41. }
  42. }