From fe256a7afaa132910875d3dc73783d9ab2d7ace5 Mon Sep 17 00:00:00 2001
From: liulijun <liulijun@hnkhzn.com>
Date: 星期四, 12 三月 2026 18:57:44 +0800
Subject: [PATCH] 老厂排程单页面增加用纸顺序号和是否缺料

---
 项目代码/WMS/WMSServices/WIDESEA_BasicService/Service/LocationInfoService_Common.cs |   16 +++++++++++++---
 1 files changed, 13 insertions(+), 3 deletions(-)

diff --git "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_BasicService/Service/LocationInfoService_Common.cs" "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_BasicService/Service/LocationInfoService_Common.cs"
index 0d0e2fe..54175ab 100644
--- "a/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_BasicService/Service/LocationInfoService_Common.cs"
+++ "b/\351\241\271\347\233\256\344\273\243\347\240\201/WMS/WMSServices/WIDESEA_BasicService/Service/LocationInfoService_Common.cs"
@@ -118,12 +118,22 @@
                     }
                     else
                     {
+                        bool LayerLimit = false;
+                        if (stockInfo.CheckThickness <=700)
+                        {
+                            LayerLimit = true;
+                        }
                         //鏌ヨ绌鸿揣浣嶄俊鎭苟鎺掗櫎5鍒嗛挓鍐呭垎閰嶇殑璐т綅,鏍规嵁灞傘�佸垪銆佹繁搴︺�佽鎺掑簭
                         List<Dt_LocationInfo> locationInfosMedium = BaseDal.QueryData(x => x.LocationType == LocationTypeEnum.MediumPallet.ObjToInt() && x.RoadwayNo == roadwayNo && x.LocationStatus == LocationStatusEnum.Free.ObjToInt() && x.EnableStatus != EnableStatusEnum.Disable.ObjToInt() && !lockLocations.Contains(x.LocationCode), orderBy);
-                        Dt_LocationInfo locationInfo = new Dt_LocationInfo();
+                        Dt_LocationInfo? locationInfo = null;
                         foreach (var item in locationInfosMedium)
                         {
-                            if (item.Layer == 7 || item.Layer == 8)
+                            if (LayerLimit && (item.Layer == 7 || item.Layer == 8))
+                            {
+                                locationInfo = item;
+                                break;
+                            }
+                            if (!LayerLimit && item.Columns<=6 && item.Layer != 7 && item.Layer != 8)
                             {
                                 locationInfo = item;
                                 break;
@@ -146,7 +156,7 @@
                 else
                 {
                     bool LayerLimit = false;
-                    if (stockInfo.MaterielThickness > 1300)
+                    if (stockInfo.CheckThickness > 1300)
                     {
                         LayerLimit = true;
                     }

--
Gitblit v1.9.3