临时提交
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
using DMS.Core.Enums;
|
||||
|
||||
namespace DMS.Models;
|
||||
namespace DMS.Core.Models;
|
||||
|
||||
/// <summary>
|
||||
/// 表示变量数据信息。
|
||||
@@ -15,7 +15,7 @@ public partial class Variable
|
||||
/// <summary>
|
||||
/// 变量名称。
|
||||
/// </summary>
|
||||
private string name;
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 节点ID,用于标识变量在设备或系统中的唯一路径。
|
||||
@@ -41,7 +41,7 @@ public partial class Variable
|
||||
/// <summary>
|
||||
/// 变量描述。
|
||||
/// </summary>
|
||||
private string description = String.Empty;
|
||||
public string Description { get; set; } = String.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 协议类型,例如Modbus、OPC UA等。
|
||||
@@ -61,22 +61,22 @@ public partial class Variable
|
||||
/// <summary>
|
||||
/// 变量当前原始数据值。
|
||||
/// </summary>
|
||||
private string dataValue = String.Empty;
|
||||
public string DataValue { get; set; } = String.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 变量经过转换或格式化后的显示值。
|
||||
/// </summary>
|
||||
private string displayValue = String.Empty;
|
||||
public string DisplayValue { get; set; } = String.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 指示变量是否处于激活状态。
|
||||
/// </summary>
|
||||
public bool isActive;
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指示变量是否被选中
|
||||
/// </summary>
|
||||
public bool isSelect;
|
||||
public bool IsSelect { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 指示是否需要保存变量数据。
|
||||
@@ -91,12 +91,12 @@ public partial class Variable
|
||||
/// <summary>
|
||||
/// 轮询级别,例如1秒、5秒等。
|
||||
/// </summary>
|
||||
private PollLevelType pollLevelType = PollLevelType.ThirtySeconds;
|
||||
public PollLevelType PollLevelType { get; set; } = PollLevelType.ThirtySeconds;
|
||||
|
||||
/// <summary>
|
||||
/// OPC UA更新类型,例如轮询或订阅。
|
||||
/// </summary>
|
||||
private OpcUaUpdateType opcUaUpdateType = OpcUaUpdateType.OpcUaPoll;
|
||||
public OpcUaUpdateType OpcUaUpdateType { get; set; } = OpcUaUpdateType.OpcUaPoll;
|
||||
|
||||
/// <summary>
|
||||
/// 最后一次轮询时间。
|
||||
@@ -111,7 +111,7 @@ public partial class Variable
|
||||
/// <summary>
|
||||
/// 指示变量是否已被修改了。
|
||||
/// </summary>
|
||||
private bool isModified;
|
||||
public bool IsModified { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 报警的最大值阈值。
|
||||
@@ -126,7 +126,7 @@ public partial class Variable
|
||||
/// <summary>
|
||||
/// 数据转换规则或表达式。
|
||||
/// </summary>
|
||||
private string converstion = String.Empty;
|
||||
public string Converstion { get; set; } = String.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// 数据保存的范围或阈值。
|
||||
@@ -136,13 +136,13 @@ public partial class Variable
|
||||
/// <summary>
|
||||
/// 变量数据创建时间。
|
||||
/// </summary>
|
||||
private DateTime createTime;
|
||||
public DateTime CreateTime { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 变量数据最后更新时间。
|
||||
/// </summary>
|
||||
private DateTime updateTime = DateTime.Now;
|
||||
public DateTime UpdateTime { get; set; } = DateTime.Now;
|
||||
|
||||
/// <summary>
|
||||
/// 最后更新变量数据的用户。
|
||||
|
||||
Reference in New Issue
Block a user