using HMI.Core.Entity;
|
using HMI.Core;
|
|
namespace Plugin.DOControl.Entity
|
{
|
public enum ControlType
|
{
|
Button, Int16, Int32, Real, LReal, String, WString, ClickButton
|
}
|
public class DOControlData : SelectBase
|
{
|
/// <summary>
|
/// 分组名称
|
/// </summary>
|
[ExcelColumn("doc.group")]
|
public string Group { get; set; }
|
|
/// <summary>
|
/// 控制点名称
|
/// </summary>
|
[ExcelColumn("doc.name")]
|
public string Name { get; set; }
|
|
/// <summary>
|
/// 地址
|
/// </summary>
|
[ExcelColumn("doc.address")]
|
public string Address { get; set; }
|
[ExcelColumn("doc.readOnly")]
|
public bool ReadOnly { get; set; }
|
|
/// <summary>
|
/// 按下值
|
/// </summary>
|
[ExcelColumn("doc.pressDownValue")]
|
public string PressDownValue { get; set; }
|
|
/// <summary>
|
/// 抬起值
|
/// </summary>
|
[ExcelColumn("doc.pressUpValue")]
|
public string PressUpValue { get; set; }
|
|
/// <summary>
|
/// 值格式
|
/// </summary>
|
public string ValueFormat { get; set; }
|
|
/// <summary>
|
/// 是否启用
|
/// </summary>
|
public bool Enable { get; set; }
|
|
/// <summary>
|
/// 控制类型
|
/// </summary>
|
[ExcelColumn("doc.controlType")]
|
public ControlType ControlType { get; set; }
|
}
|
}
|