From 27742f9fa3339984db3bc821b027cce4d69c2536 Mon Sep 17 00:00:00 2001 From: test <15284381150@163.com> Date: 星期一, 11 八月 2025 13:16:18 +0800 Subject: [PATCH] 修改创建出库单据,客户信息 --- Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs | 26 +++++++++++++++++++++----- 1 files changed, 21 insertions(+), 5 deletions(-) diff --git a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs index b83a0fb..d1c5d5b 100644 --- a/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs +++ b/Wms/WMS.BLL/BllSoServer/ExportNoticeServer.cs @@ -332,17 +332,33 @@ //鑾峰彇搴撳瓨 var stockList = Db.Queryable<DataStock>().Where(s => skuNos.Contains(s.SkuNo) && (s.Qty - s.FrozenQty - s.LockQty) > 0).ToList(); + //string CustomerName = string.Empty; + //if (!string.IsNullOrEmpty(model.customerNo)) + //{ + // //瀹㈡埛淇℃伅 + // var customer = Db.Queryable<SysCustomer>().First(m => m.IsDel == "0" && m.CustomerNo == model.customerNo); + // if (customer == null) + // { + // throw new Exception("瀹㈡埛淇℃伅涓嶅瓨鍦�!"); + // } + // CustomerName = customer.CustomerName; + //} string CustomerName = string.Empty; if (!string.IsNullOrEmpty(model.customerNo)) { - //瀹㈡埛淇℃伅 var customer = Db.Queryable<SysCustomer>().First(m => m.IsDel == "0" && m.CustomerNo == model.customerNo); - if (customer == null) + if (customer != null) { - throw new Exception("瀹㈡埛淇℃伅涓嶅瓨鍦�!"); + CustomerName = customer.CustomerName; } - CustomerName = customer.CustomerName; - } + else + { + // 璁板綍鏃ュ織锛屼究浜庢帓鏌� + Console.WriteLine($"璀﹀憡锛氬鎴蜂俊鎭笉瀛樺湪锛宑ustomerNo={model.customerNo}"); + // 鍙缃粯璁ゅ鎴峰悕绉版垨鍏朵粬澶勭悊锛屾牴鎹笟鍔″喅瀹� + CustomerName = "榛樿瀹㈡埛"; + } + } //鎵胯繍鍟嗕俊鎭� //var logistics = Db.Queryable<SysLogisticsInfo>().First(m => m.IsDel == "0" && m.CarrierName == model.LogisticsNo); //int? logisticsId = null; -- Gitblit v1.8.0