From 260d6082a7e53e0f040365a763da9bcf952118bd Mon Sep 17 00:00:00 2001
From: zhaowc <526854230@qq.com>
Date: 星期三, 04 九月 2024 16:51:46 +0800
Subject: [PATCH] 修改平库出库页面单据加载托盘位置功能

---
 Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs |   17 ++++++++++-------
 1 files changed, 10 insertions(+), 7 deletions(-)

diff --git a/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs b/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs
index 7eaf41a..0b6d63a 100644
--- a/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs
+++ b/Wms/WMS.BLL/BllAsnServer/PalletBindServer.cs
@@ -33,7 +33,7 @@
 
         #region 鎺ュ彛鏂规硶
 
-        //JC23缁戝畾鐗╂枡鎵樼洏鍗冲鍔犲簱瀛�
+        //JC26缁戝畾鐗╂枡鎵樼洏鍗冲鍔犲簱瀛�
         public void BindPalletStock(BoxPalletBindVm model, int userId)
         {
             try
@@ -267,7 +267,7 @@
                         InspectQty = 0,
                         ASNNo = bind.ASNNo,
                         ASNDetailNo = bind.ASNDetailNo,
-                        WareHouseNo = "",//鎵�灞炰粨搴�
+                        WareHouseNo = "W01",//鎵�灞炰粨搴�
                         RoadwayNo = "",//鎵�灞炲贩閬�
                         AreaNo = "",//鎵�灞炲尯鍩�
                         LocatNo = "",//鍌ㄤ綅鍦板潃
@@ -446,8 +446,8 @@
                                 Standard = box.Standard,
                                 PackageStandard = box.PackageStandard,
                                 StoreTime = box.StoreTime,
-                                QtyCount = (int)box.QtyCount,
-                                QtyOrd = (int)box.QtyOrd,
+                                QtyCount = box.QtyCount,
+                                QtyOrd = box.QtyOrd,
                                 CreateUser = userId,
                                 CreateTime = comTime,
                             };
@@ -637,7 +637,7 @@
                     .LeftJoin<SysUserInfor>((a, b, c) => a.CreateUser == c.Id)
                     .LeftJoin<SysUserInfor>((a, b, c, d) => a.UpdateUser == d.Id)
                     .LeftJoin<SysStorageLocat>((a, b, c, d, e) => a.LocatNo == e.LocatNo)
-                    .LeftJoin<SysStorageArea>((a, b, c, d, e,f) => e.AreaNo == f.AreaNo)
+                    .LeftJoin<SysWareHouse>((a, b, c, d, e,f) => a.WareHouseNo == f.WareHouseNo)
                     //.LeftJoin<BllBoxInfo>((a, b, c, d, e, f) => a.Id == e.BindNo)
                     .Select((a, b, c, d,e,f) => new PalletBindDto()
                     {
@@ -651,7 +651,7 @@
                         LocatNo = a.LocatNo,
                         RoadwayNo = a.RoadwayNo,
                         WareHouseNo = a.WareHouseNo,
-                        WareHouseName = f.AreaName,
+                        WareHouseName = a.WareHouseNo+"-"+f.WareHouseName,
                         Qty = a.Qty,
                         FullQty = a.FullQty,
                         SamplingQty = a.SamplingQty,
@@ -685,6 +685,7 @@
                 throw new Exception(ex.Message);
             }
         }
+
 
         public List<BoxInfoDto> GetBoxInfoList(BoxInfoVm model, out int count)
         {
@@ -1375,7 +1376,7 @@
                    .AndIF(!string.IsNullOrWhiteSpace(layer), m => m.Layer == int.Parse(layer))
                    .AndIF(!string.IsNullOrWhiteSpace(locateNo), m => m.LocatNo.Contains(locateNo))
                    .And(m => m.IsDel == "0" && m.Status == "0" && m.Flag == "0" && m.WareHouseNo == houseNo)
-                   .And(m => m.AreaNo == categoryAreaNo)
+                   .And(m => categoryAreaNo.Contains(m.AreaNo))
                    .ToExpression();//娉ㄦ剰 杩欎竴鍙� 涓嶈兘灏�
                 var total = 0;
                 var list = Db.Queryable<SysStorageLocat>().Where(item).OrderByDescending(a => a.Depth).OrderBy(a => a.Column)
@@ -1949,6 +1950,8 @@
                                 Db.Updateable(bindModel).ExecuteCommand();
                                 asnNo = stockModel.ASNNo;
                             }
+
+
                         }
                     }
                     foreach (DataStockDetail stockModel in stockDetail)

--
Gitblit v1.8.0