From 0c0309afae85b72746bd2431c10c7f5982e210e3 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 30 四月 2025 17:46:44 +0800 Subject: [PATCH] 一些更改 --- Tiger.Business.WMS/iWMS/iWMS.Minsun.cs | 22 +++++++++++----------- 1 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Tiger.Business.WMS/iWMS/iWMS.Minsun.cs b/Tiger.Business.WMS/iWMS/iWMS.Minsun.cs index 497a5c7..f54faff 100644 --- a/Tiger.Business.WMS/iWMS/iWMS.Minsun.cs +++ b/Tiger.Business.WMS/iWMS/iWMS.Minsun.cs @@ -983,7 +983,7 @@ BILLLINE = Convert.ToInt32(item.sfdcseq), UNITCODE = item.sfdc006, MATERIALCODE = item.sfdc004, - PRQTY = Convert.ToDecimal(item.sfdc007), + PRQTY = Convert.ToDouble(item.sfdc007), DELIVERYDATE = Convert.ToDateTime(item.sfdareqdt), WAREHOUSECODE = item.sfdc012, SOURCETYPE = Convert.ToInt32(item.sfdc003), @@ -1016,7 +1016,7 @@ prd_d = prd_d ?? new WMS_PRDPICK_D() { LINESTATUS = "INIT", - QTY = Convert.ToDecimal(0), + QTY = Convert.ToDouble(0), CreationTime = DateTime.Now, CreatorUserId = 1, }; @@ -1024,7 +1024,7 @@ prd_d.BILLLINE = item_d.BILLLINE; prd_d.UNITCODE = item_d.UNITCODE; prd_d.MATERIALCODE = item_d.MATERIALCODE; - prd_d.PRQTY = Convert.ToDecimal(item_d.PRQTY); + prd_d.PRQTY = Convert.ToDouble(item_d.PRQTY); prd_d.DELIVERYDATE = Convert.ToDateTime(item_d.DELIVERYDATE); prd_d.WAREHOUSECODE = item_d.WAREHOUSECODE; prd_d.LINESTATUS = prd_d.PRQTY == prd_d.QTY ? "COMPLETE" : Convert.ToDecimal(item_d.PRQTY) == 0 ? "COMPLETE" : prd_d.LINESTATUS == "DELETE" ? "INIT" : prd_d.LINESTATUS; @@ -1175,7 +1175,7 @@ // 鍒ゆ柇鏍囩鏁伴噺鏄惁鍚堟硶 - if (!decimal.TryParse(nLotQty, out decimal nBarcodeQty)) + if (!double.TryParse(nLotQty, out double nBarcodeQty)) { result.Flag = Result.Flags.Failed; result.Message = $"鏉$爜鏍煎紡閿欒锛氭湭鍙栧埌姝g‘鐨勬潯鐮佹暟閲�"; @@ -1310,7 +1310,7 @@ bool isBox = false; var nLotNo = ""; - List<Tuple<string, decimal>> snList = new List<Tuple<string, decimal>>(); + List<Tuple<string, double>> snList = new List<Tuple<string, double>>(); foreach (string item in nSplitArray) @@ -1367,11 +1367,11 @@ if (nInputSnDto.Any()) { isBox = true; - snList = nInputSnDto.Select(t => new Tuple<string, decimal>(t.SmallBarcode, t.IncludeQty)).ToList(); + snList = nInputSnDto.Select(t => new Tuple<string, double>(t.SmallBarcode, t.IncludeQty)).ToList(); } - if (!decimal.TryParse(nLotQty, out decimal nBarcodeQty)) + if (!double.TryParse(nLotQty, out double nBarcodeQty)) { //throw new UserFriendlyException("鏉$爜鏍煎紡閿欒锛氭湭鍙栧埌姝g‘鐨勬潯鐮佹暟閲�"); result.Flag = Result.Flags.Failed; @@ -1494,7 +1494,7 @@ var nLotNo = ""; // 鏈�灏忓寘瑁呮潯鐮佸垪琛� - List<Tuple<string, decimal>> snList = new List<Tuple<string, decimal>>(); + List<Tuple<string, double>> snList = new List<Tuple<string, double>>(); // 閫佽揣鍗曡鏄庣粏 List<InputAsnLineDto> asnLineList = new List<InputAsnLineDto>(); // 鏈�灏忓寘瑁呮潯鐮佹槑缁� @@ -1559,7 +1559,7 @@ if (snBarcodeList.Any()) { - snList = snBarcodeList.Select(t => new Tuple<string, decimal>(t.SmallBarcode, t.IncludeQty)).ToList(); + snList = snBarcodeList.Select(t => new Tuple<string, double>(t.SmallBarcode, t.IncludeQty)).ToList(); snBarcodeList = snBarcodeList.Select(t => new WMS_SRMSNList { BILLCODE = t.BILLCODE, @@ -1600,7 +1600,7 @@ } // 楠岃瘉鏉$爜鏍囩鏁伴噺鏍煎紡鏄惁姝g‘ - if (!decimal.TryParse(nLotQty, out decimal nBarcodeQty)) + if (!double.TryParse(nLotQty, out double nBarcodeQty)) { //throw new UserFriendlyException("鏉$爜鏍煎紡閿欒锛氭湭鍙栧埌姝g‘鐨勬潯鐮佹暟閲�"); result.Flag = Result.Flags.Failed; @@ -1609,7 +1609,7 @@ } // 楠岃瘉鏉$爜鏍囩鏁伴噺涓嶴RM 鏈�灏忓寘瑁呮暟閲忓悎璁℃槸鍚︿竴鑷� - decimal snQtyTotal = snBarcodeList.Sum(t => t.IncludeQty); + double snQtyTotal = snBarcodeList.Sum(t => t.IncludeQty); if (nBarcodeQty != snQtyTotal) { //throw new UserFriendlyException("鏍囩鏁伴噺涓嶴RM鏈�灏忓寘瑁呮�绘暟閲忎笉涓�鑷�"); -- Gitblit v1.9.3