From ac4a17f28e3bf2d5c0cd60b209db0fe48891eb49 Mon Sep 17 00:00:00 2001 From: 王 垚 <1402714037@qq.com> Date: 星期二, 09 十一月 2021 17:17:50 +0800 Subject: [PATCH] bug修复:条码生成时,供应商字段取值转换问题 --- WebAPI/Controllers/BarCodeController.cs | 17 +++++++++++++++-- 1 files changed, 15 insertions(+), 2 deletions(-) diff --git a/WebAPI/Controllers/BarCodeController.cs b/WebAPI/Controllers/BarCodeController.cs index f444ac1..666e8e3 100644 --- a/WebAPI/Controllers/BarCodeController.cs +++ b/WebAPI/Controllers/BarCodeController.cs @@ -499,6 +499,7 @@ string[] sArray = msg1.Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries); string msg2 = sArray[0].ToString(); string msg3 = sArray[1].ToString(); + //LogService.Write(msg3); string UserName = ""; ListModels oListModels = new ListModels(); try @@ -658,6 +659,7 @@ } foreach (Model.ClsGy_BarCodeBill_WMS_Model oItemSub2 in ls2) { + LogService.Write("寰幆绗竴娆�:" + oItemSub2.HSupID); if (ClsPub.isLong(oItemSub2.HMaterID) != 0) { long sMaterID = ClsPub.isLong(oItemSub2.HMaterID); @@ -735,6 +737,7 @@ bar2.HEndQty = WeiShu1; bar2.HMTONO = oItemSub2.HMTONO; ls3.Add(bar2); + LogService.Write("娴嬭瘯鍔�+++" + oItemSub2.HSupID); } } } @@ -759,6 +762,7 @@ oCn.BeginTran(); foreach (Model.ClsGy_BarCodeBill_WMS_Model oItemSub in ls2) { + LogService.Write("寰幆绗簩娆�:" + oItemSub.HSupID); if (ClsPub.isLong(oItemSub.HMaterID) != 0) { HBarCode = oItemSub.HBarCode.ToString(); @@ -768,7 +772,8 @@ HUnitID = ClsPub.isLong(oItemSub.HUnitID); HQty2 = ClsPub.isDoule(oItemSub.HQty); HBatchNo = ClsPub.isStrNull(oItemSub.HBatchNo); - HSupID = ClsPub.isInt(oItemSub.HSupID); + HSupID =oItemSub.HSupID; + LogService.Write("HSupID:" + oItemSub.HSupID); HKFPeriod = ClsPub.isInt(oItemSub.HKFPeriod); HKFDate = ClsPub.isStrNull(oItemSub.HKFDate); HKFDQDate = ClsPub.isStrNull(oItemSub.HKFDQDate); @@ -784,11 +789,19 @@ + linterid.ToString() + ",'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID + "," + HUnitID + "," + HQty2 + ",'" + HKFDate + "'," + HKFPeriod + ",'" + HKFDQDate + "','" + HBatchNo + "'," + HSupID + "," + HGroupID + ",'" + ClsPub.CurUserName + "','" + DateTime.Today + "'," + HPrintQty + ",'" + HWei + "',1" + "," + HSourceInterID + "," + HSourceEntryID + ",'" + HSourceBillNo + "','" + HSourceBillType + "','" + HMTONO + "')"); + LogService.Write("insert into Gy_BarCodeBill (HInterID,HBarCode,HBarCodeType,HMaterID,HUnitID,HQty,HKFDate,HKFPeriod,HKFDQDate" + + ",HBatchNo,HSupID,HGroupID,HMaker,HMakeDate,HPrintQty,HEndQty,HSupflag" + + ",HSourceInterID,HSourceEntryID,HSourceBillNo,HSourceBillType,HMTONO " + + ") values (" + + linterid.ToString() + ",'" + HBarCode + "','" + HBarCodeType + "'," + HMaterID + "," + HUnitID + "," + HQty2 + ",'" + HKFDate + "'," + HKFPeriod + ",'" + HKFDQDate + + "','" + HBatchNo + "'," + HSupID + "," + HGroupID + ",'" + ClsPub.CurUserName + "','" + DateTime.Today + "'," + HPrintQty + ",'" + HWei + "',1" + + "," + HSourceInterID + "," + HSourceEntryID + ",'" + HSourceBillNo + "','" + HSourceBillType + "','" + HMTONO + "')"); oCn.RunProc("exec setLSH '" + DateTime.Today + "'"); } } foreach (Model.ClsGy_BarCodeBill_WMS_Model oItemSub in ls3) { + LogService.Write("寰幆绗笁娆�:" + oItemSub.HSupID); if (ClsPub.isLong(oItemSub.HMaterID) != 0) { HBarCode = oItemSub.HBarCode.ToString(); @@ -798,7 +811,7 @@ HUnitID = ClsPub.isLong(oItemSub.HUnitID); HQty2 = ClsPub.isDoule(oItemSub.HQty); HBatchNo = ClsPub.isStrNull(oItemSub.HBatchNo); - HSupID = ClsPub.isInt(oItemSub.HSupID); + HSupID = oItemSub.HSupID; HKFPeriod = ClsPub.isInt(oItemSub.HKFPeriod); HKFDate = ClsPub.isStrNull(oItemSub.HKFDate); HKFDQDate = ClsPub.isStrNull(oItemSub.HKFDQDate); -- Gitblit v1.9.1