From d2c19eb1f1d03dc494259f3df95bc63230c791a1 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 03 七月 2025 16:20:39 +0800
Subject: [PATCH] 添加任务删除功能并简化代码逻辑在 `ITaskService.cs` 中新增 `Delete` 方法以支持任务删除,并在 `TaskService.cs` 中实现该方法,适配任务并调用基类删除逻辑。同时,优化了 `RequestInbound.cs` 中的 `CreateAndSendEmptyTrayTask` 和 `RequestWmsTask` 方法,移除冗余注释和不必要的查询,提升代码可读性和维护性。

---
 Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/Models/ProcessParameters/Platform.cs |   23 ++++++++++++++++-------
 1 files changed, 16 insertions(+), 7 deletions(-)

diff --git a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/Models/ProcessParameters/Platform.cs b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/Models/ProcessParameters/Platform.cs
index a4ebcc0..c7391c7 100644
--- a/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/Models/ProcessParameters/Platform.cs
+++ b/Code Management/WCS/WIDESEAWCS_Server/WIDESEAWCS_Model/Models/ProcessParameters/Platform.cs
@@ -24,7 +24,7 @@
         /// </summary>
         [ImporterHeader(Name = "绔欏彴缂栧彿锛屽敮涓�鏍囪瘑姣忎釜绔欏彴鐨勭紪鍙�")]
         [ExporterHeader(DisplayName = "绔欏彴缂栧彿锛屽敮涓�鏍囪瘑姣忎釜绔欏彴鐨勭紪鍙�")]
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "绔欏彴缂栧彿锛屽敮涓�鏍囪瘑姣忎釜绔欏彴鐨勭紪鍙�")]
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "绔欏彴缂栧彿锛屽敮涓�鏍囪瘑姣忎釜绔欏彴鐨勭紪鍙�")]
         public string PlatCode { get; set; }
 
         /// <summary>
@@ -32,7 +32,7 @@
         /// </summary>
         [ImporterHeader(Name = "绔欏彴鍚嶇О")]
         [ExporterHeader(DisplayName = "绔欏彴鍚嶇О")]
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "绔欏彴鍚嶇О")]
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "绔欏彴鍚嶇О")]
         public string PlatformName { get; set; }
 
         /// <summary>
@@ -40,7 +40,7 @@
         /// </summary>
         [ImporterHeader(Name = "瀵瑰簲鍫嗗灈鏈�")]
         [ExporterHeader(DisplayName = "瀵瑰簲鍫嗗灈鏈�")]
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "瀵瑰簲鍫嗗灈鏈�")]
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "瀵瑰簲鍫嗗灈鏈�")]
         public string Stacker { get; set; }
 
         /// <summary>
@@ -48,7 +48,7 @@
         /// </summary>
         [ImporterHeader(Name = "鎵ц鏂规硶")]
         [ExporterHeader(DisplayName = "鎵ц鏂规硶")]
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鎵ц鏂规硶")]
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "鎵ц鏂规硶")]
         public string ExecutionMethod { get; set; }
 
         /// <summary>
@@ -56,7 +56,7 @@
         /// </summary>
         [ImporterHeader(Name = "绔欏彴绫诲瀷")]
         [ExporterHeader(DisplayName = "绔欏彴绫诲瀷")]
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "绔欏彴绫诲瀷")]
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "绔欏彴绫诲瀷")]
         public string PlatformType { get; set; }
 
         /// <summary>
@@ -64,8 +64,8 @@
         /// </summary>
         [ImporterHeader(Name = "瀵瑰簲PLC缂栧彿")]
         [ExporterHeader(DisplayName = "瀵瑰簲PLC缂栧彿")]
-        [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "瀵瑰簲PLC缂栧彿")]
-        public string PLCCode { get; set; }
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "瀵瑰簲PLC缂栧彿")]
+        public string DeviceCode { get; set; }
 
         /// <summary>
         /// 绔欏彴浣嶇疆
@@ -99,6 +99,15 @@
         [ExporterHeader(DisplayName = "鐢熶骇浜х嚎")]
         [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "鐢熶骇浜х嚎")]
         public string ProductionLine { get; set; }
+
+        /// <summary>
+        /// 宸烽亾
+        /// </summary>
+        [ImporterHeader(Name = "宸烽亾")]
+        [ExporterHeader(DisplayName = "宸烽亾")]
+        [SugarColumn(IsNullable = true, Length = 50, ColumnDescription = "宸烽亾")]
+        public string Roadway { get; set; }
         
+
     }
 }

--
Gitblit v1.9.3