From 598ba81de7ee41a1f62fd818bf9c29e910ec3306 Mon Sep 17 00:00:00 2001 From: yuyou_x <2336760928@qq.com> Date: 星期五, 29 三月 2024 11:28:39 +0800 Subject: [PATCH] 修改数据类型 --- Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs | 18 +++++++++--------- 1 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs index b563a8d..b1a74da 100644 --- a/Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs +++ b/Wms/WMS.BLL/BllPdaServer/PdaSoServer.cs @@ -447,7 +447,7 @@ { throw new Exception("鎷h揣鏁伴噺涓嶈兘澶т簬绠卞唴鍓╀綑寰呮嫞鏁伴噺"); } - var pickQty = 0;//鎷h揣鐨勬暟閲� + decimal pickQty = 0;//鎷h揣鐨勬暟閲� var comDetailList = Db.Queryable<BllCompleteDetail>().Where(m => m.IsDel == "0" && m.ExportAllotId == allot.Id && m.PalletNo == palletNo).ToList(); var comList = new List<BllCompleteDetail>(); foreach (var item in boxInfos) @@ -580,7 +580,7 @@ { throw new Exception("璇ョ鐮佸唴瀛樺湪鏀爜涓嶈兘杩涜鏁伴噺鎷h揣"); } - int boxQty = boxInfo.First().Qty; + decimal boxQty = boxInfo.First().Qty; if (Convert.ToInt32(pickQty1) > boxQty) { throw new Exception("鎷h揣鏁伴噺涓嶈兘澶т簬绠卞唴鏁伴噺"); @@ -616,7 +616,7 @@ } } } - var pickQty = 0;//鎷h揣鐨勬暟閲� + decimal pickQty = 0;//鎷h揣鐨勬暟閲� var comList = new List<BllCompleteDetail>(); foreach (var item in boxInfos) @@ -1614,7 +1614,7 @@ { throw new Exception("璇ョ鐮佸唴瀛樺湪鏀爜涓嶈兘杩涜鏁伴噺鎷h揣"); } - int boxQty = boxInfo.First().Qty; + decimal boxQty = boxInfo.First().Qty; if (Convert.ToInt32(pickQty1) > boxQty) { throw new Exception("鎷h揣鏁伴噺涓嶈兘澶т簬绠卞唴鏁伴噺"); @@ -1640,7 +1640,7 @@ } } } - var pickQty = 0;//鎷h揣鐨勬暟閲� + decimal pickQty = 0;//鎷h揣鐨勬暟閲� var comList = new List<BllCompleteDetail>(); foreach (var item in boxInfos) @@ -1868,7 +1868,7 @@ { throw new Exception("璇ョ鐮佸唴瀛樺湪鏀爜涓嶈兘杩涜鏁伴噺鎷h揣"); } - int boxQty = boxInfo.First().Qty; + decimal boxQty = boxInfo.First().Qty; if (Convert.ToInt32(pickQty1) > boxQty) { throw new Exception("鎷h揣鏁伴噺涓嶈兘澶т簬绠卞唴鏁伴噺"); @@ -1903,7 +1903,7 @@ } } } - var pickQty = 0;//鎷h揣鐨勬暟閲� + decimal pickQty = 0;//鎷h揣鐨勬暟閲� var comList = new List<BllCompleteDetail>(); foreach (var item in boxInfos) @@ -2692,7 +2692,7 @@ } #endregion - var pickQty = 0;//鎷h揣鐨勬暟閲� + decimal pickQty = 0;//鎷h揣鐨勬暟閲� if (string.IsNullOrWhiteSpace(boxNo))//鏁存墭鎷h揣 { List<DataBoxInfo> boxInfos; @@ -2848,7 +2848,7 @@ { throw new Exception("璇ョ鐮佸唴瀛樺湪鏀爜涓嶈兘杩涜鏁伴噺鎷h揣"); } - int boxQty = boxInfo.First().Qty; + decimal boxQty = boxInfo.First().Qty; if (Convert.ToInt32(pickQty1) > boxQty) { throw new Exception("鎷h揣鏁伴噺涓嶈兘澶т簬绠卞唴鏁伴噺"); -- Gitblit v1.8.0