From 44007a5e9ef385346d7ae0e107b9f983109ee479 Mon Sep 17 00:00:00 2001
From: zxx <Zxx@HanInfo>
Date: 星期五, 11 七月 2025 11:33:37 +0800
Subject: [PATCH] 1

---
 HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/LocationHelper.cs |   37 +------------------------------------
 1 files changed, 1 insertions(+), 36 deletions(-)

diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/LocationHelper.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/LocationHelper.cs
index 07d6121..a46b499 100644
--- a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/LocationHelper.cs
+++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/LocationHelper.cs
@@ -469,42 +469,7 @@
             }
             return res;
         }
-        /// <summary>
-        /// 璐т綅缁戝畾璐ф灦 灏忕背
-        /// </summary>
-        /// <param name="loc"></param>
-        /// <param name="cntrs"></param>
-        /// <returns></returns>
-        public static bool BindingLocHj(string loc, string frame)
-        {
-            var res = false;
-            var db = new SqlHelper<object>().GetInstance();
-            var location = db.Queryable<Location>().Where(a => a.S_CODE.Trim() == loc).First();
-            try
-            {
-                var lcrList = db.Queryable<LocCntrRel>().Includes(a => a.Container).Where(a => a.S_LOC_CODE.Trim() == loc).ToList();
-                db.BeginTran();
-                int count = 0;
-                if (lcrList.Count(b => b.S_CNTR_CODE.Trim() == frame) == 0)
-                {
-                    db.Insertable<LocCntrRel>(new LocCntrRel { S_LOC_CODE = loc, S_FRAME_CODE = frame }).ExecuteCommand();
-                    count++;
-                }
-                location.N_CURRENT_NUM = lcrList.Count + count;
-                location.N_LOCK_STATE = 0;
-                location.S_LOCK_STATE = "鏃�;
-                db.Updateable(location).UpdateColumns(it => new { it.N_CURRENT_NUM, it.S_LOCK_STATE, it.N_LOCK_STATE }).ExecuteCommand();
-
-                db.CommitTran();
-                res = true;
-            }
-            catch (Exception ex)
-            {
-                Console.WriteLine(ex.Message);
-                db.RollbackTran();
-            }
-            return res;
-        }
+        
         /// <summary>
         /// 鍒ゆ柇閫昏緫搴撳尯鏄惁鏈夊彲鐢ㄨ揣浣�         /// </summary>

--
Gitblit v1.9.1