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/ContainerHelper.cs | 29 ++++++++++++++++++++++++++--- 1 files changed, 26 insertions(+), 3 deletions(-) diff --git a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/ContainerHelper.cs b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/ContainerHelper.cs index fbf7996..d350e92 100644 --- a/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/ContainerHelper.cs +++ b/HH.WCS.Mobox3/HH.WCS.Mobox3.XiaoMi/wms/ContainerHelper.cs @@ -558,8 +558,8 @@ string cntrCode = list[i]; if (db.Queryable<LocCntrRel>().Count(a => a.S_CNTR_CODE.Trim() == cntrCode) == 0) { - var cir = new LocCntrRel { S_LOC_CODE = loc, S_CNTR_CODE = cntrCode}; - var con = new Container { S_CODE = cntrCode,N_DETAIL_COUNT = 1,C_FULL="2" };//榛樿婊�涓诲姩缁戝畾鏈嶅姟鐢�+ var cir = new LocCntrRel { S_LOC_CODE = loc, S_CNTR_CODE = cntrCode }; + var con = new Container { S_CODE = cntrCode, N_DETAIL_COUNT = 1, C_FULL = "2" };//榛樿婊�涓诲姩缁戝畾鏈嶅姟鐢� db.Insertable<LocCntrRel>(cir).ExecuteCommand(); db.Insertable<Container>(con).ExecuteCommand(); if (!string.IsNullOrEmpty(itemCode)) @@ -612,11 +612,34 @@ return result; } /// <summary> + /// 灏忕背 缁戝畾鏂欐灦鍜屾枡绠变綅 + /// </summary> + /// <param name="cntr"></param> + /// <returns></returns> + internal static bool BindLocCntrsXmLj(string loc, string frame) + { + bool result = true; + var db = new SqlHelper<object>().GetInstance(); + + if (!string.IsNullOrEmpty(frame)) + { + string cntrCode = frame; + if (db.Queryable<LocFrameRel>().Count(a => a.S_LOC_CODE.Trim() == loc&& a.S_FRAME_CODE.Trim() == frame) == 0) + { + var cir = new LocFrameRel { S_LOC_CODE = loc, S_FRAME_CODE = frame }; + db.Insertable<LocFrameRel>(cir).ExecuteCommand(); + } + } + return result; + } + + + /// <summary> /// 缁戝畾璐т綅瀹瑰櫒琛� /// </summary> /// <param name="cntr"></param> /// <returns></returns> - internal static bool BindLocCntrs(string loc, string cntr, string itemCode, string itemName,int S_CK) + internal static bool BindLocCntrs(string loc, string cntr, string itemCode, string itemName, int S_CK) { bool result = true; List<string> list = new List<string>(cntr.Split(',')); -- Gitblit v1.9.1