按照软件设计文档开始重构代码01
This commit is contained in:
@@ -1,51 +1,19 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using System.ComponentModel;
|
||||
using DMS.Core.Enums;
|
||||
using DMS.Core.Enums;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace DMS.Core.Models;
|
||||
|
||||
/// <summary>
|
||||
/// 表示变量表信息。
|
||||
/// 组织和管理一组相关的变量。
|
||||
/// </summary>
|
||||
public partial class VariableTable
|
||||
public class VariableTable
|
||||
{
|
||||
/// <summary>
|
||||
/// 变量表关联的设备。
|
||||
/// </summary>
|
||||
public Device? Device { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量表关联的设备ID。
|
||||
/// </summary>
|
||||
public int? DeviceId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量表描述。
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量表中包含的数据变量列表。
|
||||
/// </summary>
|
||||
public ObservableCollection<Variable> variables;
|
||||
|
||||
/// <summary>
|
||||
/// 变量表的唯一标识符。
|
||||
/// </summary>
|
||||
public int Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 表示变量表是否处于活动状态。
|
||||
/// </summary>
|
||||
public bool IsActive { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量表名称。
|
||||
/// </summary>
|
||||
public string Name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 变量表使用的协议类型。
|
||||
/// </summary>
|
||||
public ProtocolType ProtocolType { get; set; }
|
||||
public string Description { get; set; }
|
||||
public bool IsActive { get; set; } // 是否启用
|
||||
public int DeviceId { get; set; }
|
||||
public Device Device { get; set; }
|
||||
public ProtocolType Protocol { get; set; } // 通讯协议
|
||||
public List<Variable> Variables { get; set; } = new();
|
||||
}
|
||||
Reference in New Issue
Block a user