| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485 |
- namespace OldWorldData.CommonData.DeviceData
- {
- [DataContract]
- [Serializable]
- public class AITBoostPumpData
- {
- /// <summary>
- /// 阀的唯一名称,UI与RT交互的ID
- /// </summary>
- [DataMember]
- public string DeviceName { get; set; }
- /// <summary>
- /// 显示在界面上的名称
- /// </summary>
- [DataMember]
- public string DisplayName { get; set; } = "未定义";
- /// <summary>
- /// IO 表中定义的物理编号,物理追溯使用 比如: V122
- /// </summary>
- [DataMember]
- public string DeviceSchematicId { get; set; }
- [DataMember]
- public bool IsRunning { get; set; }
- [DataMember]
- public bool IsError { get; set; }
- [DataMember]
- public bool EnableFrequency { get; set; }
- [DataMember]
- public double EnableSetPoint { get; set; }
- [DataMember]
- public double PressureSetPoint { get; set; }
- [DataMember]
- public double PressureSetPointMax { get; set; }
- [DataMember]
- public double InverterFrequency { get; set; }
- public string PressureSetPointDisplay
- {
- get
- {
- return ((int)PressureSetPoint).ToString();
- }
- }
- public string FrequencyDisplay
- {
- get
- {
- return EnableFrequency ? string.Format("{0}%", (int)InverterFrequency) : "";
- }
- }
- public string InverterFrequencyDisplay
- {
- get
- {
- return InverterFrequency.ToString("F1");
- }
- }
- }
- public enum AITBoostPumpOperation
- {
- SetEnable,
- SetPressure,
- }
- public class AITBoostPumpDataPropertyName
- {
- public const string EnableSetPoint = "EnableSetPoint";
- public const string PressureSetPoint = "PressureSetPoint";
- public const string IsError = "IsError";
- public const string IsWarning = "IsWarning";
- public const string InverterFrequency = "InverterFrequency";
- }
- }
|