#region copyright //------------------------------------------------------------------------------ // 此代码版权声明为全文件覆盖,如有原作者特别声明,会在下方手动补充 // 此代码版权(除特别声明外的代码)归作者本人Diego所有 // 源代码使用协议遵循本仓库的开源协议及附加协议 // Gitee源代码仓库:https://gitee.com/diego2098/ThingsGateway // Github源代码仓库:https://github.com/kimdiego2098/ThingsGateway // 使用文档:https://diego2098.gitee.io/thingsgateway-docs/ // QQ群:605534569 //------------------------------------------------------------------------------ #endregion using System.Collections.Concurrent; namespace ThingsGateway.Application; /// /// 内存变量表 /// public class MemoryVariable : BaseEntity { /// /// 变量名称 /// [SugarColumn(ColumnName = "Name", ColumnDescription = "变量名称", IsNullable = true)] [DataTable(Order = 1, IsShow = true, Sortable = true)] public virtual string Name { get; set; } /// /// 描述 /// [SugarColumn(ColumnName = "Description", ColumnDescription = "描述", Length = 200, IsNullable = true)] [DataTable(Order = 2, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")] public string Description { get; set; } /// /// 读写权限 /// [SugarColumn(ColumnName = "ProtectTypeEnum", ColumnDescription = "读写权限", IsNullable = false)] [DataTable(Order = 5, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")] public virtual ProtectTypeEnum ProtectTypeEnum { get; set; } /// /// 数据类型 /// [SugarColumn(ColumnName = "DataType", ColumnDescription = "数据类型")] [DataTable(Order = 6, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")] public virtual DataTypeEnum DataTypeEnum { get; set; } /// /// 读取表达式 /// [SugarColumn(ColumnName = "ReadExpressions", ColumnDescription = "读取表达式", Length = 200, IsNullable = true)] [DataTable(Order = 7, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")] public string ReadExpressions { get; set; } /// /// 是否中间变量 /// [SugarColumn(ColumnName = "IsMemoryVariable", ColumnDescription = "是否中间变量", IsNullable = false)] [IgnoreExcel] public virtual bool IsMemoryVariable { get; set; } = true; /// /// 是否允许远程Rpc写入 /// [SugarColumn(ColumnName = "RpcWriteEnable", ColumnDescription = "远程写入", IsNullable = true)] [DataTable(Order = 4, IsShow = true, Sortable = true, CellClass = " table-text-truncate ")] public bool RpcWriteEnable { get; set; } /// /// 变量额外属性Json,通常使用为上传设备,List属性 /// [SugarColumn(IsJson = true, ColumnName = "VariablePropertys", ColumnDescription = "变量属性Json", IsNullable = true)] [IgnoreExcel] public ConcurrentDictionary> VariablePropertys { get; set; } = new(); /// /// 导入验证专用 /// [IgnoreExcel] internal bool IsUp { get; set; } #region 报警 /// /// 布尔开报警使能 /// [SugarColumn(ColumnDescription = "布尔开报警使能")] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public bool BoolOpenAlarmEnable { get; set; } /// /// 布尔开报警约束 /// [SugarColumn(ColumnDescription = "布尔开报警约束", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string BoolOpenRestrainExpressions { get; set; } = ""; /// /// 布尔开报警文本 /// [SugarColumn(ColumnDescription = "布尔开报警文本", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string BoolOpenAlarmText { get; set; } = ""; /// /// 布尔关报警使能 /// [SugarColumn(ColumnDescription = "布尔关报警使能")] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public bool BoolCloseAlarmEnable { get; set; } /// /// 布尔关报警约束 /// [SugarColumn(ColumnDescription = "布尔关报警约束", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string BoolCloseRestrainExpressions { get; set; } = ""; /// /// 布尔关报警文本 /// [SugarColumn(ColumnDescription = "布尔关报警文本", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string BoolCloseAlarmText { get; set; } = ""; /// /// 高报使能 /// [SugarColumn(ColumnDescription = "高报使能")] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public bool HAlarmEnable { get; set; } /// /// 高报约束 /// [SugarColumn(ColumnDescription = "高报约束", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string HRestrainExpressions { get; set; } = ""; /// /// 高报文本 /// [SugarColumn(ColumnDescription = "高报文本", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string HAlarmText { get; set; } = ""; /// /// 高限值 /// [SugarColumn(ColumnDescription = "高限值", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public double HAlarmCode { get; set; } /// /// 高高报使能 /// [SugarColumn(ColumnDescription = "高高报使能")] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public bool HHAlarmEnable { get; set; } /// /// 高高报约束 /// [SugarColumn(ColumnDescription = "高高报约束", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string HHRestrainExpressions { get; set; } = ""; /// /// 高高报文本 /// [SugarColumn(ColumnDescription = "高高报文本", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string HHAlarmText { get; set; } = ""; /// /// 高高限值 /// [SugarColumn(ColumnDescription = "高高限值", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public double HHAlarmCode { get; set; } /// /// 低报使能 /// [SugarColumn(ColumnDescription = "低报使能")] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public bool LAlarmEnable { get; set; } /// /// 低报约束 /// [SugarColumn(ColumnDescription = "低报约束", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string LRestrainExpressions { get; set; } = ""; /// /// 低报文本 /// [SugarColumn(ColumnDescription = "低报文本", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string LAlarmText { get; set; } = ""; /// /// 低限值 /// [SugarColumn(ColumnDescription = "低限值", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public double LAlarmCode { get; set; } /// /// 低低报使能 /// [SugarColumn(ColumnDescription = "低低报使能")] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public bool LLAlarmEnable { get; set; } /// /// 低低报约束 /// [SugarColumn(ColumnDescription = "低低报约束", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string LLRestrainExpressions { get; set; } = ""; /// /// 低低报文本 /// [SugarColumn(ColumnDescription = "低低报文本", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public string LLAlarmText { get; set; } = ""; /// /// 低低限值 /// [SugarColumn(ColumnDescription = "低低限值", IsNullable = true)] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public double LLAlarmCode { get; set; } #endregion #region 历史 /// /// 存储类型 /// [SugarColumn(ColumnName = "HisType", ColumnDescription = "存储类型")] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public HisType HisType { get; set; } /// /// 历史使能 /// [SugarColumn(ColumnName = "HisEnable", ColumnDescription = "历史使能")] [DataTable(Order = 99, IsShow = true, Sortable = true, DefaultFilter = true, CellClass = " table-text-truncate ")] public bool HisEnable { get; set; } #endregion }