From 2b59cae9692e3e4f77196ade3ae210a703e09378 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期三, 12 三月 2025 01:32:26 +0800 Subject: [PATCH] 优化了一些已知问题 --- Tiger.Business.WMS/iSRM/SrmToWms.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Tiger.Business.WMS/iSRM/SrmToWms.cs b/Tiger.Business.WMS/iSRM/SrmToWms.cs index 315ff3b..0c65b3b 100644 --- a/Tiger.Business.WMS/iSRM/SrmToWms.cs +++ b/Tiger.Business.WMS/iSRM/SrmToWms.cs @@ -53,7 +53,7 @@ switch (group) { case "XCSJ": - db = Biz.DataSource["Main"].Client; + db = Biz.Db; break; case "DGXC": @@ -124,7 +124,7 @@ productCode = item.materialNumber, //productName = item.productName, //productScale = item.productScale, - deliveryQty = Convert.ToDecimal(item.deliveryQuantity), + deliveryQty = Convert.ToDouble(item.deliveryQuantity), //deliveryUnitCode = item.deliveryUnitCode, deliveryUnitName = item.purchaseUnit, //deliveryValuationQty = Convert.ToInt32(item.deliveryValuationQty), @@ -159,7 +159,7 @@ dlvySn.SOURCETYPE = "SRM"; //dlvySn.ITEM_NAME = item.productName; //dlvySn.SPECIFICATION = item.productScale; - dlvySn.IncludeQty = Convert.ToDecimal(item.materialQuantity); + dlvySn.IncludeQty = Convert.ToDouble(item.materialQuantity); dlvySn.SmallBarcode = item.packetBarcodeNumber; dlvySn.BigBarcode = item.mediumBarcodeNumber; dlvySn.OuterBarcode = item.cartonBarcodeNumber; @@ -301,7 +301,7 @@ dtl.ITEM_CODE = item.materialNumber; //productName = item.productName, //productScale = item.productScale, - dtl.QTY = Convert.ToDecimal(item.deliveryQuantity); + dtl.QTY = Convert.ToDouble(item.deliveryQuantity); dtl.UNIT = item.purchaseUnit; dtl.PRICE = Convert.ToDouble(item.price); dtl.TAX_PRICE = Convert.ToDouble(item.taxPrice); @@ -331,7 +331,7 @@ dlvySn.DELIVERY_NO = DeliveryNo; //dlvySn.PO_LINE_NO = lineno; dlvySn.ITEM_CODE = item.materialNumber; - dlvySn.QTY = Convert.ToDecimal(item.materialQuantity); + dlvySn.QTY = Convert.ToDouble(item.materialQuantity); dlvySn.SMALL_BARCODE = sn; dlvySn.SMALL_SN = sn; dlvySn.BIG_BARCODE = item.mediumBarcodeNumber; @@ -621,7 +621,7 @@ dtl.ITEM_CODE = item.materialNumber; //productName = item.productName, //productScale = item.productScale, - dtl.QTY = Convert.ToDecimal(item.deliveryQuantity); + dtl.QTY = Convert.ToDouble(item.deliveryQuantity); dtl.UNIT = item.purchaseUnit; dtl.PRICE = Convert.ToDouble(item.price); dtl.TAX_PRICE = Convert.ToDouble(item.taxPrice); @@ -651,7 +651,7 @@ dlvySn.DELIVERY_NO = DeliveryNo; //dlvySn.PO_LINE_NO = lineno; dlvySn.ITEM_CODE = item.materialNumber; - dlvySn.QTY = Convert.ToDecimal(item.materialQuantity); + dlvySn.QTY = Convert.ToDouble(item.materialQuantity); dlvySn.SMALL_BARCODE = sn; dlvySn.SMALL_SN = sn; dlvySn.BIG_BARCODE = item.mediumBarcodeNumber; -- Gitblit v1.9.3