diff --git a/DMS.Application/DTOs/DeviceDto.cs b/DMS.Application/DTOs/DeviceDto.cs index 49a8d2a..e8e1591 100644 --- a/DMS.Application/DTOs/DeviceDto.cs +++ b/DMS.Application/DTOs/DeviceDto.cs @@ -7,20 +7,78 @@ namespace DMS.Application.DTOs; /// public class DeviceDto { + /// + /// 设备唯一标识符 + /// public int Id { get; set; } + + /// + /// 设备名称 + /// public string Name { get; set; } + + /// + /// 设备描述信息 + /// public string Description { get; set; } + + /// + /// 通信协议类型 + /// public ProtocolType Protocol { get; set; } + + /// + /// 设备IP地址 + /// public string IpAddress { get; set; } + + /// + /// 设备端口号 + /// public int Port { get; set; } + + /// + /// PLC机架号(用于PLC连接) + /// public int Rack { get; set; } + + /// + /// PLC插槽号(用于PLC连接) + /// public int Slot { get; set; } + + /// + /// CPU类型 + /// public CpuType CpuType { get; set; } + + /// + /// 设备类型 + /// public DeviceType DeviceType { get; set; } + + /// + /// OPC UA服务器URL + /// public string OpcUaServerUrl { get; set; } + + /// + /// 设备是否处于激活状态 + /// public bool IsActive { get; set; } + + /// + /// 设备是否正在运行 + /// public bool IsRunning { get; set; } + + /// + /// 设备当前状态("在线", "离线", "连接中...") + /// public string Status { get; set; } // "在线", "离线", "连接中..." + /// + /// 设备关联的变量表集合 + /// public List VariableTables { get; set; } } \ No newline at end of file diff --git a/DMS.WPF/Helper/MenuHelper.cs b/DMS.WPF/Helper/MenuHelper.cs deleted file mode 100644 index 9c684b7..0000000 --- a/DMS.WPF/Helper/MenuHelper.cs +++ /dev/null @@ -1,22 +0,0 @@ - -using DMS.Core.Models; - -namespace DMS.Helper; - -public class MenuHelper -{ - public static void MenuAddParent(MenuBean menu) - { - // if (menu.Items==null || menu.Items.Count==0) - // return; - // foreach (MenuBean menuItem in menu.Items) - // { - // menuItem.Parent=menu; - // if (menuItem.Items!= null && menuItem.Items.Count>0) - // { - // MenuAddParent(menuItem); - // } - // } - - } -} \ No newline at end of file