| | |
| | | switch (group) |
| | | { |
| | | case "XCSJ": |
| | | db = Biz.DataSource["Main"].Client; |
| | | db = Biz.Db; |
| | | break; |
| | | |
| | | case "DGXC": |
| | |
| | | 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), |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | 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; |
| | |
| | | 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); |
| | |
| | | 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; |