From 8cb4f66c6cf5639280a27e0ef28360cd46842197 Mon Sep 17 00:00:00 2001 From: cjs <2216046164@qq.com> Date: 星期二, 17 六月 2025 17:34:06 +0800 Subject: [PATCH] 111 --- HH.WCS.Mobox3.NongFuLinZhi/wms/LocationHelper.cs | 17 ++++++++++++----- 1 files changed, 12 insertions(+), 5 deletions(-) diff --git a/HH.WCS.Mobox3.NongFuLinZhi/wms/LocationHelper.cs b/HH.WCS.Mobox3.NongFuLinZhi/wms/LocationHelper.cs index e88ef47..805e93e 100644 --- a/HH.WCS.Mobox3.NongFuLinZhi/wms/LocationHelper.cs +++ b/HH.WCS.Mobox3.NongFuLinZhi/wms/LocationHelper.cs @@ -323,7 +323,7 @@ /// <param name="loc"></param> /// <param name="cntrs"></param> /// <returns></returns> - public static bool UnBindingLoc(string loc, List<string> cntrs) + public static bool UnBindingLoc(string loc, List<string> cntrs, string type) { var res = false; var db = new SqlHelper<object>().GetInstance(); @@ -338,6 +338,12 @@ { location.N_CURRENT_NUM = 0; } + + if (type == "鎺ラ┏浣嶅叆搴� || type == "鐡剁洊绌烘墭鍏ュ簱") + { + location.N_CURRENT_NUM = 0; + } + location.S_LOCK_STATE = "鏃�; location.N_LOCK_STATE = 0; db.Updateable(location).UpdateColumns(it => new { it.N_CURRENT_NUM, it.S_LOCK_STATE, it.N_LOCK_STATE }).ExecuteCommand(); @@ -356,7 +362,7 @@ /// <param name="loc"></param> /// <param name="cntrs"></param> /// <returns></returns> - public static bool BindingLoc(string loc, List<string> cntrs) + public static bool BindingLoc(string loc, List<string> cntrs, string type) { var res = false; var db = new SqlHelper<object>().GetInstance(); @@ -376,9 +382,10 @@ } }); location.N_CURRENT_NUM = lcrList.Count + count; - - - + if(type == "鎺ラ┏浣嶅叆搴� || type == "鐡剁洊绌烘墭鍏ュ簱") + { + location.N_CURRENT_NUM = location.N_CAPACITY; + } location.N_LOCK_STATE = 0; location.S_LOCK_STATE = "鏃�; -- Gitblit v1.9.1