From d41acebbd89f171b0eeb205fca4f68043ca85f95 Mon Sep 17 00:00:00 2001
From: Admin <Admin@ADMIN>
Date: 星期三, 03 十二月 2025 19:47:24 +0800
Subject: [PATCH] 选配与暂存

---
 项目代码/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs"
index a81acea..4a8e9f7 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WIDESEA_WMSServer/WIDESEA_StoragIntegrationServices/ToAPP/Partial/SaveCLinfo.cs"
@@ -31,14 +31,14 @@
                 if (string.IsNullOrEmpty(clCode) || string.IsNullOrEmpty(clh))
                     throw new Exception($"杞﹁疆鏉$爜涓嶈兘涓虹┖");
 
-                if (!clCode.Contains("/") && !clCode.ToUpper().StartsWith("L")) throw new Exception($"杞﹁疆鏉$爜閿欒,璇烽噸鏂版牳瀵�");
+                //if ((!clCode.Contains("/") && !clCode.ToUpper().StartsWith("L")) || (!clCode.Contains("/") && !clCode.ToUpper().StartsWith("BVV"))) throw new Exception($"杞﹁疆鏉$爜閿欒,璇烽噸鏂版牳瀵�");
 
                 var clinfo = _InWheels_MesRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh);
                 if (clinfo != null) throw new Exception("杞﹁疆褰曞叆淇℃伅宸插瓨鍦�");
 
                 //妫�娴嬪簱瀛樻槸鍚﹀凡瀛樺湪
-                _WheelsStockRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh);
-                if (clinfo != null) throw new Exception("搴撳唴宸插瓨鍦�,璇锋鏌ュ簱瀛�");
+                Dt_WheelsStock dt_WheelsStock= _WheelsStockRepository.QueryFirst(x => x.Wheels_code == clCode || x.Wheels_Num == clh);
+                if (dt_WheelsStock != null) throw new Exception("搴撳唴宸插瓨鍦�,璇锋鏌ュ簱瀛�");
 
                 //搴忓垪鍙�
                 //string madeUnit = saveModel.MainData["xlh"].ToString();
@@ -97,6 +97,7 @@
                 if (string.IsNullOrEmpty(gkdj)) throw new Exception("绛夌骇杞崲澶辫触,璇锋鏌ユ帴鍙g瓑绾у弬鏁�");
                 //}
 
+
                 Dt_InWheels_mes wheels_Mes = new Dt_InWheels_mes
                 {
                     Wheels_code = clCode,

--
Gitblit v1.9.3