AITPumpData.cs 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Linq;
  5. using System.Reflection;
  6. using System.Runtime.Serialization;
  7. using System.Text;
  8. using System.Windows.Input;
  9. using Aitex.Core.UI.MVVM;
  10. using MECF.Framework.Common.CommonData;
  11. namespace Aitex.Core.Common.DeviceData
  12. {
  13. [DataContract]
  14. [Serializable]
  15. public class AITPumpData : AITDeviceData
  16. {
  17. [DataMember]
  18. public string DeviceModule { get; set; }
  19. /// <summary>
  20. /// 当前设定值
  21. /// </summary>
  22. [DataMember]
  23. public bool IsOn { get; set; }
  24. [DataMember]
  25. public bool IsOk { get; set; }
  26. /// <summary>
  27. /// 默认值
  28. /// </summary>
  29. [DataMember]
  30. public bool IsWarning { get; set; }
  31. /// <summary>
  32. /// 实际反馈值
  33. /// </summary>
  34. [DataMember]
  35. public bool IsError { get; set; }
  36. [DataMember]
  37. public int Speed { get; set; }
  38. [DataMember]
  39. public bool OverTemp { get; set; }
  40. [DataMember]
  41. public bool AtSpeed { get; set; }
  42. [DataMember]
  43. public int Temperature { get; set; }
  44. [DataMember]
  45. public int LocalRemoteMode { get; set; }
  46. [DataMember]
  47. public double WaterFlow { get; set; }
  48. [DataMember]
  49. public bool IsDryPumpEnable { get; set; }
  50. [DataMember]
  51. public bool IsN2PressureEnable { get; set; }
  52. [DataMember]
  53. public bool N2PressureWarning { get; set; }
  54. [DataMember]
  55. public bool N2PressureAlarm { get; set; }
  56. [DataMember]
  57. public bool IsWaterFlowEnable { get; set; }
  58. [DataMember]
  59. public bool WaterFlowWarning { get; set; }
  60. [DataMember]
  61. public bool WaterFlowAlarm { get; set; }
  62. [DataMember]
  63. public bool IsOverLoad { get; set; }
  64. [DataMember]
  65. public float FstStageTemp { get; set; }
  66. [DataMember]
  67. public float SecStageTemp { get; set; }
  68. [DataMember]
  69. public float TCPress { get; set; }
  70. [DataMember]
  71. public string TCPressUnit { get; set; }
  72. public AITPumpData()
  73. {
  74. DisplayName = "未定义";
  75. }
  76. }
  77. public enum AITPumpOperation
  78. {
  79. SetOnOff,
  80. SetPowerOnOff,
  81. PumpOn,
  82. PumpOff,
  83. }
  84. public class AITPumpProperty
  85. {
  86. public const string EnableWaterFlow = "EnableWaterFlow";
  87. public const string WaterFlowValue = "WaterFlowValue";
  88. public const string WaterFlowMinValue = "WaterFlowMinValue";
  89. public const string WaterFlowMaxValue = "WaterFlowMaxValue";
  90. public const string WaterFlowAlarm = "WaterFlowAlarm";
  91. public const string WaterFlowAlarmSetPoint = "WaterFlowAlarmSetPoint";
  92. public const string WaterFlowWarning = "WaterFlowWarning";
  93. public const string WaterFlowAlarmTime = "WaterFlowAlarmTime";
  94. public const string WaterFlowWarningTime = "WaterFlowWarningTime";
  95. public const string EnableN2Pressure = "EnableN2Pressure";
  96. public const string N2PressureValue = "N2PressureValue";
  97. public const string N2PressureMinValue = "N2PressureMinValue";
  98. public const string N2PressureMaxValue = "N2PressureMaxValue";
  99. public const string N2PressureAlarm = "N2PressureAlarm";
  100. public const string N2PressureAlarmSetPoint = "N2PressureAlarmSetPoint";
  101. public const string N2PressureWarning = "N2PressureWarning";
  102. public const string N2PressureAlarmTime = "N2PressureAlarmTime";
  103. public const string N2PressureWarningTime = "N2PressureWarningTime";
  104. public const string EnableDryPump = "EnableDryPump";
  105. public const string PumpBreakerStatus = "PumpBreakerStatus";
  106. public const string IsOverTemp = "IsOverTemp";
  107. public const string IsRunning = "IsRunning";
  108. public const string IsStart = "IsStart";
  109. public const string IsStop = "IsStop";
  110. }
  111. }