From e483ac11616ffc9260d8f491fcc0d66f480b5443 Mon Sep 17 00:00:00 2001
From: huangxiaoqiang <huangxiaoqiang@hnkhzn.com>
Date: 星期四, 16 四月 2026 10:12:52 +0800
Subject: [PATCH] Merge branch 'master' of http://115.159.85.185:8098/r/LongTu/FangGangAGV

---
 Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs |   74 ++++++++++++++++++------------------
 1 files changed, 37 insertions(+), 37 deletions(-)

diff --git a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs
index d7948eb..87043be 100644
--- a/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs
+++ b/Code Management/WMS/WIDESEA_WMSServer/WIDESEA_StorageBasicServices/Stock/StockInfoService.cs
@@ -90,46 +90,46 @@
             catch { }
         }
 
-        Expression<Func<DtStockInfo, bool>> locationStatus = null;
-        Expression<Func<DtStockInfo, bool>> floor = null;
-        Expression<Func<DtStockInfo, bool>> areaId = null;
-        Expression<Func<DtStockInfo, bool>> materielCode = null;
-        Expression<Func<DtStockInfo, bool>> materielName = null;
-        Expression<Func<DtStockInfo, bool>> demandClassification = null;
-        foreach (var item in searchParametersList)
-        {
-            if (item.Name.Contains("locationStatus"))
-            {
-                locationStatus = x => x.LocationInfo.LocationStatus == Convert.ToInt32(item.Value);
-            }
-            else if (item.Name.Contains("areaId"))
-            {
-                areaId = x => x.LocationInfo.AreaId == Convert.ToInt32(item.Value);
-            }
-            else if (item.Name.Contains("materielCode"))
-            {
-                materielCode = x => x.StockInfoDetails.Any(d => d.MaterielCode.Contains(item.Value));
-            }
-            else if (item.Name.Contains("materielName"))
-            {
-                materielName = x => x.StockInfoDetails.Any(d => d.MaterielName.Contains(item.Value));
-            }
-            else if (item.Name.Contains("demandClassification"))
-            {
-                demandClassification = x => x.StockInfoDetails.Any(d => d.DemandClassification.Contains(item.Value));
-            }
-        }
+        //Expression<Func<DtStockInfo, bool>> locationStatus = null;
+        //Expression<Func<DtStockInfo, bool>> floor = null;
+        //Expression<Func<DtStockInfo, bool>> areaId = null;
+        //Expression<Func<DtStockInfo, bool>> materielCode = null;
+        //Expression<Func<DtStockInfo, bool>> materielName = null;
+        //Expression<Func<DtStockInfo, bool>> demandClassification = null;
+        //foreach (var item in searchParametersList)
+        //{
+        //    if (item.Name.Contains("locationStatus"))
+        //    {
+        //        locationStatus = x => x.LocationInfo.LocationStatus == Convert.ToInt32(item.Value);
+        //    }
+        //    else if (item.Name.Contains("areaId"))
+        //    {
+        //        areaId = x => x.LocationInfo.AreaId == Convert.ToInt32(item.Value);
+        //    }
+        //    else if (item.Name.Contains("materielCode"))
+        //    {
+        //        materielCode = x => x.StockInfoDetails.Any(d => d.MaterielCode.Contains(item.Value));
+        //    }
+        //    else if (item.Name.Contains("materielName"))
+        //    {
+        //        materielName = x => x.StockInfoDetails.Any(d => d.MaterielName.Contains(item.Value));
+        //    }
+        //    else if (item.Name.Contains("demandClassification"))
+        //    {
+        //        demandClassification = x => x.StockInfoDetails.Any(d => d.DemandClassification.Contains(item.Value));
+        //    }
+        //}
         //.IncludesAllFirstLayer()
         var data = BaseDal.Db.Queryable<DtStockInfo>()
-            .Includes(x => x.StockInfoDetails)
-            .Includes(x => x.LocationInfo)
+            //.Includes(x => x.StockInfoDetails)
+            //.Includes(x => x.LocationInfo)
             .WhereIF(!wheres.IsNullOrEmpty(), wheres)
-            .WhereIF(locationStatus != null, locationStatus)
-            .WhereIF(floor != null, floor)
-            .WhereIF(areaId != null, areaId)
-            .WhereIF(materielCode != null, materielCode)
-            .WhereIF(materielName != null, materielName)
-            .WhereIF(demandClassification != null, demandClassification)
+            //.WhereIF(locationStatus != null, locationStatus)
+            //.WhereIF(floor != null, floor)
+            //.WhereIF(areaId != null, areaId)
+            //.WhereIF(materielCode != null, materielCode)
+            //.WhereIF(materielName != null, materielName)
+            //.WhereIF(demandClassification != null, demandClassification)
             .OrderBy(orderByModels)
             .ToPageList(options.Page, options.Rows, ref totalCount);
         new PageGridData<DtStockInfo>(totalCount, data);

--
Gitblit v1.9.3