PumpDataItem.cs 1008 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Runtime.Serialization;
  5. using System.Text;
  6. namespace Aitex.Core.UI.ControlDataContext
  7. {
  8. [DataContract]
  9. [Serializable]
  10. public class PumpDataItem
  11. {
  12. [DataMember]
  13. public string DeviceName { get; set; }
  14. /// <summary>
  15. /// 显示在界面上的名称
  16. /// </summary>
  17. [DataMember]
  18. public string DisplayName { get; set; }
  19. /// <summary>
  20. /// IO 表中定义的物理编号,物理追溯使用 比如: V122
  21. /// </summary>
  22. [DataMember]
  23. public string DeviceId { get; set; }
  24. [DataMember]
  25. public bool MainPumpEnable { get; set; }
  26. [DataMember]
  27. public bool IsWarning { get; set; }
  28. }
  29. public class PumpOperation
  30. {
  31. public const string PumpON = "Open";
  32. /// <summary>
  33. /// 无参数
  34. /// </summary>
  35. public const string PumpOff = "Close";
  36. }
  37. }