From b879053cc8414be35ea60e4c1667039053e3f6e5 Mon Sep 17 00:00:00 2001
From: duyongjia <adu_555@163.com>
Date: 星期五, 27 十二月 2024 20:51:26 +0800
Subject: [PATCH] 增加余料回库功能

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs |   27 ++++++++++++++++++++++++++-
 1 files changed, 26 insertions(+), 1 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
index 3127b46..2c2445f 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Inbound.cs"
@@ -89,6 +89,31 @@
             return content;
         }
 
+
+        /// <summary>
+        /// 鐗╂枡鍥炲簱
+        /// </summary>
+        /// <param name="stationCode">璧峰鍦板潃</param>
+        /// <param name="palletCode">鎵樼洏缂栧彿</param>
+        /// <returns>杩斿洖澶勭悊缁撴灉</returns>
+        public WebResponseContent ReturnInboundRequest(string stationCode, string palletCode)
+        {
+            WebResponseContent content = new WebResponseContent();
+            try
+            {
+                Dt_StockInfo stockInfo = _stockService.StockInfoService.Repository.GetStockInfo(palletCode);
+                (bool, string) result = CheckRequestInbound(stationCode, palletCode, true, stockInfo);
+                if (!result.Item1) return content = WebResponseContent.Instance.Error(result.Item2);
+                content = AssignLocUpdateData(stationCode, TaskTypeEnum.PalletReturnInbound.ObjToInt(), palletCode, true, stockInfo);
+            }
+            catch (Exception ex)
+            {
+                content = WebResponseContent.Instance.Error($"{ex.Message}");
+            }
+            return content;
+        }
+
+
         /// <summary>
         /// 鍏ュ簱鍒嗛厤璐т綅鍙婂鐞嗘暟鎹�
         /// </summary>
@@ -121,7 +146,7 @@
                         TaskStatus = InTaskStatusEnum.InNew.ObjToInt(),
                         TaskType = taskType,
                         Depth= locationInfo.Depth,
-                        Creater="WMS"
+                        Creater="System"
                     };
                     BaseDal.AddData(task);
                     int beforeStatus = locationInfo.LocationStatus;

--
Gitblit v1.9.3