AITPumpData.cs 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  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. /// <summary>
  25. /// 默认值
  26. /// </summary>
  27. [DataMember]
  28. public bool IsWarning { get; set; }
  29. /// <summary>
  30. /// 实际反馈值
  31. /// </summary>
  32. [DataMember]
  33. public bool IsError { get; set; }
  34. [DataMember]
  35. public int Speed { get; set; }
  36. [DataMember]
  37. public bool OverTemp { get; set; }
  38. [DataMember]
  39. public bool AtSpeed { get; set; }
  40. [DataMember]
  41. public int Temperature { get; set; }
  42. [DataMember]
  43. public int LocalRemoteMode { get; set; }
  44. [DataMember]
  45. public double WaterFlow { get; set; }
  46. [DataMember]
  47. public bool IsDryPumpEnable { get; set; }
  48. [DataMember]
  49. public bool IsN2PressureEnable { get; set; }
  50. [DataMember]
  51. public bool N2PressureWarning { get; set; }
  52. [DataMember]
  53. public bool N2PressureAlarm { get; set; }
  54. [DataMember]
  55. public bool IsWaterFlowEnable { get; set; }
  56. [DataMember]
  57. public bool WaterFlowWarning { get; set; }
  58. [DataMember]
  59. public bool WaterFlowAlarm { get; set; }
  60. [DataMember]
  61. public bool IsOverLoad { get; set; }
  62. public AITPumpData()
  63. {
  64. DisplayName = "未定义";
  65. }
  66. }
  67. public enum AITPumpOperation
  68. {
  69. SetOnOff,
  70. SetPowerOnOff,
  71. PumpOn,
  72. PumpOff,
  73. }
  74. public class AITPumpProperty
  75. {
  76. public const string EnableWaterFlow = "EnableWaterFlow";
  77. public const string WaterFlowValue = "WaterFlowValue";
  78. public const string WaterFlowMinValue = "WaterFlowMinValue";
  79. public const string WaterFlowMaxValue = "WaterFlowMaxValue";
  80. public const string WaterFlowAlarm = "WaterFlowAlarm";
  81. public const string WaterFlowAlarmSetPoint = "WaterFlowAlarmSetPoint";
  82. public const string WaterFlowWarning = "WaterFlowWarning";
  83. public const string WaterFlowAlarmTime = "WaterFlowAlarmTime";
  84. public const string WaterFlowWarningTime = "WaterFlowWarningTime";
  85. public const string EnableN2Pressure = "EnableN2Pressure";
  86. public const string N2PressureValue = "N2PressureValue";
  87. public const string N2PressureMinValue = "N2PressureMinValue";
  88. public const string N2PressureMaxValue = "N2PressureMaxValue";
  89. public const string N2PressureAlarm = "N2PressureAlarm";
  90. public const string N2PressureAlarmSetPoint = "N2PressureAlarmSetPoint";
  91. public const string N2PressureWarning = "N2PressureWarning";
  92. public const string N2PressureAlarmTime = "N2PressureAlarmTime";
  93. public const string N2PressureWarningTime = "N2PressureWarningTime";
  94. public const string EnableDryPump = "EnableDryPump";
  95. public const string PumpBreakerStatus = "PumpBreakerStatus";
  96. public const string IsOverTemp = "IsOverTemp";
  97. public const string IsRunning = "IsRunning";
  98. public const string IsStart = "IsStart";
  99. public const string IsStop = "IsStop";
  100. }
  101. }