From 44b83f33ff3a35edced78d89927a734f19de81ba Mon Sep 17 00:00:00 2001
From: xiaojiao <xiaojiao@kaokeziliao.com>
Date: 星期日, 28 十二月 2025 18:00:02 +0800
Subject: [PATCH] 更改空托入库,更改出库测量对应楼层禁用,

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/BasicInfo/Partial/Dt_EmptyPalletService.cs |   11 +++++++++++
 1 files changed, 11 insertions(+), 0 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/BasicInfo/Partial/Dt_EmptyPalletService.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/BasicInfo/Partial/Dt_EmptyPalletService.cs"
index a4bef02..e68c544 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/BasicInfo/Partial/Dt_EmptyPalletService.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA.Services/Services/BasicInfo/Partial/Dt_EmptyPalletService.cs"
@@ -58,6 +58,10 @@
                 saveDataModel.MainData["EmptyPallet_modifier"] = UserContext.Current.UserTrueName;
                 saveDataModel.MainData["EmptyPallet_modifiertime"] = DateTime.Now;
                 string materiel_pallet_code = saveDataModel.MainData["EmptyPallet_name"].ToString();
+                if (materiel_pallet_code.Length != 6)
+                {
+                    return content.Error("鎵樼洏鏉$爜鍙兘鏄叚浣嶆暟");
+                }
                 if (repository.Exists(x => x.EmptyPallet_name == materiel_pallet_code))
                     return content.Error("褰撳墠鎵樼洏鏉$爜宸插瓨鍦�,璇峰嬁閲嶅娣诲姞.");
 
@@ -85,13 +89,20 @@
                 saveModel.MainData["EmptyPallet_modifier"] = UserContext.Current.UserTrueName;
                 saveModel.MainData["EmptyPallet_modifiertime"] = DateTime.Now;
                 content = base.Update(saveModel);
+                //LogRecord.WriteLog((int)LogEnum.OutBound, $"{UserContext.Current.UserTrueName}杞存壙閫夐厤鍑哄簱锛氬弬鏁�:{saveModel.Serialize()},杩斿洖鍙傛暟:{content.Serialize()}");
             }
             finally
             {
                 if (content.Status)
+                {
                     content.OK("淇敼鎵樼洏淇℃伅鎴愬姛.");
+                    Logger.AddLog(LoggerType.Add, saveModel, $"{DateTime.Now}淇敼鎵樼洏绠$悊鐨勪俊鎭褰�-鎴愬姛", content);
+                }
                 else
+                {
                     content.Error("淇敼鎵樼洏淇℃伅澶辫触:" + content.Message);
+                    Logger.AddLog(LoggerType.Add, saveModel, $"{DateTime.Now}淇敼鎵樼洏绠$悊鐨勪俊鎭褰�-澶辫触", content);
+                }
             }
             return content;
         }

--
Gitblit v1.9.3