using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.Serialization; namespace Aitex.Core.UI.ControlDataContext { [DataContract] [Serializable] public class GasValveDataItem { /// /// 阀的唯一名称,UI与RT交互的ID /// [DataMember] public string DeviceName { get; set; } /// /// 显示在界面上的名称 /// [DataMember] public string DisplayName { get; set; } /// /// IO 表中定义的物理编号,物理追溯使用 比如: V122 /// [DataMember] public string DeviceId { get; set; } /// /// 当前设定值 /// [DataMember] public bool SetValue { get; set; } /// /// 默认值 /// [DataMember] public bool DefaultValue { get; set; } /// /// 实际反馈值 /// [DataMember] public bool Feedback { get; set; } public GasValveDataItem() { DisplayName = "未定义阀门"; } } public class GasValveOperation { public const string GVTurnValve = "GVTurnValve"; } }