From 41ca2b65f055b9c7b8f3ce68418423bac15c8e46 Mon Sep 17 00:00:00 2001 From: hwh <332078369@qq.com> Date: 星期二, 27 八月 2024 17:00:45 +0800 Subject: [PATCH] plc基础信息优化;堆垛机出库逻辑 --- Admin.NET/WCS.Application/Entity/WcsDevice.cs | 30 ++++++++++++++++++------------ 1 files changed, 18 insertions(+), 12 deletions(-) diff --git a/Admin.NET/WCS.Application/Entity/WcsDevice.cs b/Admin.NET/WCS.Application/Entity/WcsDevice.cs index beca712..4f521c7 100644 --- a/Admin.NET/WCS.Application/Entity/WcsDevice.cs +++ b/Admin.NET/WCS.Application/Entity/WcsDevice.cs @@ -13,42 +13,48 @@ [Required] [SugarColumn(ColumnName = "PlcId", ColumnDescription = "PlcId")] public long PlcId { get; set; } - + /// <summary> /// 璁惧绾у埆 /// </summary> + [Required] [SugarColumn(ColumnName = "Level", ColumnDescription = "璁惧绾у埆")] - public DeviceLevelEnum? Level { get; set; } - + public DeviceLevelEnum Level { get; set; } + /// <summary> /// DB鍖哄煙 /// </summary> + [Required] [SugarColumn(ColumnName = "DbNumber", ColumnDescription = "DB鍖哄煙", Length = 10)] - public string? DbNumber { get; set; } - + public string DbNumber { get; set; } + /// <summary> /// 宸ヤ綅鍙� /// </summary> + [Required] [SugarColumn(ColumnName = "StationNum", ColumnDescription = "宸ヤ綅鍙�", Length = 4)] - public string? StationNum { get; set; } - + public string StationNum { get; set; } + /// <summary> /// PLC鍋忕Щ閲� /// </summary> + [Required] [SugarColumn(ColumnName = "PlcPos", ColumnDescription = "PLC鍋忕Щ閲�", Length = 10)] - public string? PlcPos { get; set; } - + public string PlcPos { get; set; } + /// <summary> /// WCS鍋忕Щ閲� /// </summary> + [Required] [SugarColumn(ColumnName = "WcsPos", ColumnDescription = "WCS鍋忕Щ閲�", Length = 10)] - public string? WcsPos { get; set; } - + public string WcsPos { get; set; } + /// <summary> /// 娴佺▼瀛楃被鍨� /// </summary> + [Required] [SugarColumn(ColumnName = "PosType", ColumnDescription = "娴佺▼瀛楃被鍨�")] - public PLCDataTypeEnum? PosType { get; set; } + public PLCDataTypeEnum PosType { get; set; } /// <summary> /// 鏄剧ず灞廼p鍦板潃 -- Gitblit v1.8.0