using HMI.Core.Entity; using System; namespace HMI.IOMonitor.Entity { /// /// DIO属性类 /// [Serializable] public class DIO :NotifyBase { public DIO() { } /// /// 构造函数 /// /// DIO类型 /// DIO名称 /// DIO编号 /// DIO的值 public DIO(string diotype, string name, string no, bool value) { this.DIOType = diotype; this.Name = name; this.No = no; this.Value = value; } /// /// DIO类型 /// private string dIOType; public string DIOType { get => dIOType; set { Set(ref dIOType, value); } } /// /// 纯编号 /// private decimal dioNo; public decimal DIO_No { get => dioNo; set { Set(ref dioNo, value); } } /// /// 名称 /// private string name; public string Name { get => name; set { Set(ref name, value); } } /// /// DIO编号 /// public string No { get; set; } ////[XmlIgnore] /// /// DIO的值 /// public bool Value { get; set; } } }