From d9f292a9484ff1efb5d4ccc3076ff16d405459ca Mon Sep 17 00:00:00 2001
From: bklLiudl <673013083@qq.com>
Date: 星期五, 15 三月 2024 11:24:29 +0800
Subject: [PATCH] Merge branch 'master' into Liudl

---
 Wms/WMS.BLL/SysServer/StorageLocatServer.cs |   72 +++++++++++++++++++----------------
 1 files changed, 39 insertions(+), 33 deletions(-)

diff --git a/Wms/WMS.BLL/SysServer/StorageLocatServer.cs b/Wms/WMS.BLL/SysServer/StorageLocatServer.cs
index d968e79..75671e8 100644
--- a/Wms/WMS.BLL/SysServer/StorageLocatServer.cs
+++ b/Wms/WMS.BLL/SysServer/StorageLocatServer.cs
@@ -473,8 +473,8 @@
                 int b = 0; //1锛氭湁鐗╁搧 
                 int c = 0; //2锛氬叆搴撲腑 
                 int d = 0; //3锛氬嚭搴撲腑 
-                //int e = 0; //4锛氱Щ鍏ヤ腑 
-                //int f = 0; //5锛氱Щ鍑轰腑 
+                int e = 0; //4锛氱Щ鍏ヤ腑 
+                int f = 0; //5锛氱Щ鍑轰腑 
                 int g = 0; //6锛氭崯鍧廫灞忚斀 
 
                 foreach (var item in getLocateVms)
@@ -503,18 +503,18 @@
                         d = 1; //3锛氬嚭搴撲腑 
                         continue;
                     }
-                    ////4锛氱Щ鍏ヤ腑 
-                    //if (item.Status == "4")
-                    //{
-                    //    e = 1; //4锛氱Щ鍏ヤ腑 
-                    //    continue;
-                    //}
-                    ////5锛氱Щ鍑轰腑 
-                    //if (item.Status == "5")
-                    //{
-                    //    f = 1; //5锛氱Щ鍑轰腑 
-                    //    continue;
-                    //}
+                    //4锛氱Щ鍏ヤ腑 
+                    if (item.Status == "4")
+                    {
+                        e = 1; //4锛氱Щ鍏ヤ腑 
+                        continue;
+                    }
+                    //5锛氱Щ鍑轰腑 
+                    if (item.Status == "5")
+                    {
+                        f = 1; //5锛氱Щ鍑轰腑 
+                        continue;
+                    }
                     //6锛氭崯鍧廫灞忚斀 
                     if (item.Status == "6")
                     {
@@ -559,24 +559,24 @@
                     getLocateVm.Status = "3";
                     getLocateVms.Add(getLocateVm);
                 }
-                ////4锛氱Щ鍏ヤ腑 
-                //if (e == 0)
-                //{
-                //    getLocateVm = new GetLocateVm();
-                //    getLocateVm.WareHouseNo = wareHouseNo; //浠撳簱鍙�
-                //    getLocateVm.StatusNum = "0";
-                //    getLocateVm.Status = "4";
-                //    getLocateVms.Add(getLocateVm);
-                //}
-                ////5锛氱Щ鍑轰腑 
-                //if (f == 0)
-                //{
-                //    getLocateVm = new GetLocateVm();
-                //    getLocateVm.WareHouseNo = wareHouseNo; //浠撳簱鍙�
-                //    getLocateVm.StatusNum = "0";
-                //    getLocateVm.Status = "5";
-                //    getLocateVms.Add(getLocateVm);
-                //}
+                //4锛氱Щ鍏ヤ腑 
+                if (e == 0)
+                {
+                    getLocateVm = new GetLocateVm();
+                    getLocateVm.WareHouseNo = wareHouseNo; //浠撳簱鍙�
+                    getLocateVm.StatusNum = "0";
+                    getLocateVm.Status = "4";
+                    getLocateVms.Add(getLocateVm);
+                }
+                //5锛氱Щ鍑轰腑 
+                if (f == 0)
+                {
+                    getLocateVm = new GetLocateVm();
+                    getLocateVm.WareHouseNo = wareHouseNo; //浠撳簱鍙�
+                    getLocateVm.StatusNum = "0";
+                    getLocateVm.Status = "5";
+                    getLocateVms.Add(getLocateVm);
+                }
                 //6锛氭崯鍧廫灞忚斀 
                 if (g == 0)
                 {
@@ -672,7 +672,7 @@
                     throw new Exception("鏈壘鍒板搴斿偍浣�");
                 }
                 //鏈夌墿鍝併�佸嚭搴撲腑鏁版嵁婧愶紙搴撳瓨鏄庣粏琛級
-                if (storageLocat.Status == "1" || storageLocat.Status == "3")
+                if (storageLocat.Status == "1" || storageLocat.Status == "3" || storageLocat.Status == "5")
                 {
                     //搴撳瓨鏄庣粏
                     List<DataStockDetail> stockDetailList = Db.Queryable<DataStockDetail>().Where(w => w.LocatNo == locatNo && w.IsDel == "0").ToList();
@@ -750,6 +750,12 @@
                     case "3":
                         model.Status = "鍑哄簱涓�";
                         break;
+                    case "4":
+                        model.Status = "绉诲叆涓�";
+                        break;
+                    case "5":
+                        model.Status = "绉诲嚭涓�";
+                        break;
                     default:
                         model.Status = "";
                         break;

--
Gitblit v1.8.0