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