lss
2025-07-03 7afc439ba32e234ebc455c98fa084ae6eef8a621
HH.WCS.Mobox3/HH.WCS.Mobox3.JiaTong/wms/ContainerHelper.cs
@@ -61,7 +61,7 @@
        /// <param name="prdData">到期时间</param>
        /// <returns></returns>
        internal static bool CreateCntrItem(string loc, string cntr, string itemcode, string itemname, string itemtype, string cntrtype,
            string batch, string wmslot, string weight, string unit, string tyreType, string supplier, string receiveLot, string subpool, string expData = "", string prdData = "", string level = "")
            string batch, string wmslot, string weight, string unit, string tyreType, string supplier, string receiveLot, string subpool, string expData = "", string prdData = "", string level = "",int qty=0,int qtycfg=0)
        {
            var res = false;
            var db = new SqlHelper<object>().GetInstance();
@@ -99,7 +99,9 @@
                            ReceiveLot = receiveLot,
                            Subpool = subpool,
                            D_EXP_DATE = prdData,
                            D_PRD_DATE = expData
                            D_PRD_DATE = expData,
                            F_WEIGHT1= qty.ToString(),
                            F_QTY1= qtycfg
                        };
                        db.Insertable<CntrItemDetail>(cir).ExecuteCommand();
                    }
@@ -120,7 +122,8 @@
                        cntritem.Subpool = subpool;
                        cntritem.D_EXP_DATE = prdData;
                        cntritem.D_PRD_DATE = expData;
                        cntritem. F_WEIGHT1 = qty.ToString();
                        cntritem. F_QTY1 = qtycfg;
                        if (db.Updateable<CntrItemDetail>(cntritem).ExecuteCommand() > 0)
                        {
                            LogHelper.Info($"托盘{cntr}:更新物料{itemcode}绑定关系成功");
@@ -195,6 +198,7 @@
                    else
                    {
                        LogHelper.Info($"托盘{cntr}:添加物料{itemcode}绑定关系失败");
                        res = false;
                    }
                }
@@ -215,6 +219,7 @@
                    else
                    {
                        LogHelper.Info($"托盘{cntr}:更新物料{itemcode}绑定关系失败");
                        res = false;
                    }
                }
                var con = db.Queryable<Container>().Where(a => a.S_CODE.Trim() == cntr).First();