From cdba9375cbe9b7e9512163c31d1bbf8b03c819e6 Mon Sep 17 00:00:00 2001 From: yuyou_x <2336760928@qq.com> Date: 星期五, 15 三月 2024 13:23:25 +0800 Subject: [PATCH] 重新编写添加质检信息逻辑代码,修改添加质检信息页面。 --- Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs | 12 ++++++------ 1 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs b/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs index 271b584..be75e14 100644 --- a/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs +++ b/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs @@ -120,7 +120,7 @@ .AndIF(!string.IsNullOrWhiteSpace(model.LotNo), it => it.LotNo.Contains(model.LotNo.Trim())) .AndIF(!string.IsNullOrWhiteSpace(model.SkuNo), it => it.SkuNo.Contains(model.SkuNo.Trim())) .AndIF(!string.IsNullOrWhiteSpace(model.SkuName), it => it.SkuName.Contains(model.SkuName.Trim())) - .AndIF((model.BindNo != 0 && !string.IsNullOrWhiteSpace(model.BindNo.ToString())),it=>it.BindNo == model.BindNo) + .AndIF((model.BindNo != 0 && !string.IsNullOrWhiteSpace(model.BindNo.ToString())), it => it.BindNo == model.BindNo) .And(m => m.IsDel == "0") .ToExpression(); @@ -586,7 +586,7 @@ .And(m => m.AreaNo.Contains(categoryAreaNo)) .ToExpression();//娉ㄦ剰 杩欎竴鍙� 涓嶈兘灏� var total = 0; - var list = Db.Queryable<SysStorageLocat>().Where(item).OrderByDescending(a=>a.Depth).OrderBy(a=>a.Column) + var list = Db.Queryable<SysStorageLocat>().Where(item).OrderByDescending(a => a.Depth).OrderBy(a => a.Column) .Select(a => new LocatDto() { Id = a.Id, @@ -634,7 +634,7 @@ throw new Exception("璇ュ偍浣嶇姸鎬佷笉鏄┖鍌ㄤ綅鎴栨爣蹇椾笉鏄甯哥殑"); } - + //鍒ゆ柇褰撳墠鎵樼洏鏄惁瀛樺湪缁戝畾淇℃伅 if (!string.IsNullOrWhiteSpace(bind.LocatNo)) @@ -1603,7 +1603,7 @@ } //鑾峰彇璇ユ壒娆℃渶缁堣川妫�缁撴灉 - var quality = Db.Queryable<BllQualityInspect>().Where(a => a.IsDel == "0" && a.ASNNo == noticeDetail.ASNNo && a.LotNo == noticeDetail.LotNo).OrderByDescending(a => a.CreateTime).First(); + var quality = Db.Queryable<BllQualityInspect>().Where(a => a.IsDel == "0" && a.LotNo == noticeDetail.LotNo).OrderByDescending(a => a.CreateTime).First(); #region 搴撳瓨鏄庣粏 var sd = new DataStockDetail() { @@ -1650,8 +1650,8 @@ sd.OwnerName = notice.CustomerName;//璐т富鍚嶇О } else if (notice.Type == "1" || notice.Type == "5")//1:閲囪喘鍏ュ簱,2:鍏跺畠鍏ュ簱 - { - sd.SupplierNo= notice.CustomerNo;//渚涘簲鍟嗙紪鐮� + { + sd.SupplierNo = notice.CustomerNo;//渚涘簲鍟嗙紪鐮� sd.SupplierName = notice.CustomerName;//渚涘簲鍟嗗悕绉� } -- Gitblit v1.8.0