重构项目,将项目拆分(临时提交)
This commit is contained in:
51
DMS.Core/Models/VariableTable.cs
Normal file
51
DMS.Core/Models/VariableTable.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using DMS.Core.Enums;
|
||||
|
||||
namespace DMS.Models;
|
||||
|
||||
/// <summary>
|
||||
/// 表示变量表信息。
|
||||
/// </summary>
|
||||
public partial class VariableTable
|
||||
{
|
||||
/// <summary>
|
||||
/// 变量表关联的设备。
|
||||
/// </summary>
|
||||
public Device? Device { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量表关联的设备ID。
|
||||
/// </summary>
|
||||
public int? DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量表描述。
|
||||
/// </summary>
|
||||
private string description;
|
||||
|
||||
/// <summary>
|
||||
/// 变量表中包含的数据变量列表。
|
||||
/// </summary>
|
||||
public ObservableCollection<Variable> variables;
|
||||
|
||||
/// <summary>
|
||||
/// 变量表的唯一标识符。
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表示变量表是否处于活动状态。
|
||||
/// </summary>
|
||||
private bool isActive;
|
||||
|
||||
/// <summary>
|
||||
/// 变量表名称。
|
||||
/// </summary>
|
||||
private string name;
|
||||
|
||||
/// <summary>
|
||||
/// 变量表使用的协议类型。
|
||||
/// </summary>
|
||||
public ProtocolType ProtocolType { get; set; }
|
||||
}
|
||||
Reference in New Issue
Block a user