From ca872bff1c1acfaf1a3106fe583a024c3865a38c Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期一, 19 二月 2024 16:36:55 +0800
Subject: [PATCH] 托盘绑定无标签绑定托盘参数赋值错误

---
 Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs |   47 +++++++++++++++++++++++++++++++++++++++++++----
 1 files changed, 43 insertions(+), 4 deletions(-)

diff --git a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
index dcec486..37514c7 100644
--- a/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
+++ b/Wms/WMS.BLL/BllPdaServer/PdaAsnServer.cs
@@ -1281,6 +1281,30 @@
             }
         }
 
+        /// <summary>
+        /// 楠岃瘉鍌ㄤ綅鍦板潃(鍦扮爜)鏄惁鍙敤
+        /// </summary>
+        /// <param name="locatNo">鍌ㄤ綅缂栫爜</param>
+        /// <returns></returns>
+        public string CheckLocatNo(string locatNo) 
+        {
+            try
+            {
+                string strMsg = "";
+                var storageLocat = Db.Queryable<SysStorageLocat>().First(w => w.IsDel == "0" && w.LocatNo == locatNo && w.Status == "0" && w.WareHouseNo == "W02");
+                if (storageLocat == null)
+                {
+                    throw new Exception("-1:鍦扮爜(鍌ㄤ綅淇℃伅)涓嶅瓨鍦ㄦ垨闈炵┖闂茬姸鎬侊紝璇锋牳鏌�!");
+                }
+
+                return strMsg;
+            }
+            catch (Exception ex)
+            {
+                throw new Exception(ex.Message);
+            }
+        }
+
         //鏍规嵁绠辩爜鑾峰彇鐗╂枡銆佹壒娆°�佹暟閲忕瓑淇℃伅
         public PdaPalletNoCheckDto GetBoxInfoByBoxNo(string boxNo)
         {
@@ -1687,9 +1711,24 @@
                         string[] LotNoList = item.LotNo.Split(';');
                         foreach (var item2 in LotNoList)
                         {
-                            ArrivalNoticeDetailDto entry = new ArrivalNoticeDetailDto();
-                            entry = item;
-                            entry.LotNo = item2;
+                            ArrivalNoticeDetailDto entry = new ArrivalNoticeDetailDto()
+                            {
+                                Id = item.Id,
+                                ASNNo = item.ASNNo,
+                                CompleteQty = item.CompleteQty,
+                                CompleteTime = item.CompleteTime,
+                                CreateTime = item.CreateTime,
+                                Qty = item.Qty,
+                                FactQty = item.FactQty,
+                                LotNo = item2,
+                                Money = item.Money,
+                                PackagNo = item.PackagNo,
+                                PackagName = item.PackagName,
+                                Status = item.Status,
+                                SkuNo = item.SkuNo,
+                                SkuName = item.SkuName,
+                            };
+
 
                             noticeList.Add(entry);
                         }
@@ -2055,7 +2094,7 @@
                         throw new Exception("璇ユ墭鐩樻湭鍦ㄥ簱澶栵紝璇锋牳鏌�!");
                     }
                 }
-                
+
                 #endregion
 
                 #region 鍦扮爜淇℃伅(鍌ㄤ綅淇℃伅)

--
Gitblit v1.8.0