PressureTransducerDataItem.cs 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 PressureTransducerDataItem
  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. /// IO 表中定义的物理编号,物理追溯使用 比如: M122
  24. /// </summary>
  25. [DataMember]
  26. public string DeviceId { get; set; }
  27. [DataMember]
  28. public double Value { get; set; }
  29. [DataMember]
  30. public bool IsEnable { get; set; }
  31. public PressureTransducerDataItem()
  32. {
  33. DisplayName = "未定义设备";
  34. }
  35. }
  36. public class PressureTransducerOperation
  37. {
  38. public const string DPEnable = "Enable";
  39. }
  40. }