From 6cff865611d0d6b01b0d8e322db155f6833e947e Mon Sep 17 00:00:00 2001
From: YangYuGang <1378265336@qq.com>
Date: 星期一, 10 三月 2025 19:39:14 +0800
Subject: [PATCH] 收货单、退货单数据同步

---
 Tiger.Business.WMS/iSRM/SrmToWms.cs |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/Tiger.Business.WMS/iSRM/SrmToWms.cs b/Tiger.Business.WMS/iSRM/SrmToWms.cs
index c9dbeff..0c65b3b 100644
--- a/Tiger.Business.WMS/iSRM/SrmToWms.cs
+++ b/Tiger.Business.WMS/iSRM/SrmToWms.cs
@@ -11,7 +11,7 @@
 using Tiger.Model.Minsun;
 using System.Diagnostics;
 using SqlSugar;
-using Org.BouncyCastle.Ocsp;
+
 
 namespace Tiger.Business.WMS
 {
@@ -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