From a3014a01e07619105d597d0c51cf195217b0806f Mon Sep 17 00:00:00 2001
From: wankeda <Administrator@DESKTOP-HAU3ST3>
Date: 星期二, 29 七月 2025 10:47:01 +0800
Subject: [PATCH] 1

---
 WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diff --git a/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs b/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs
index c1920c5..59b3b84 100644
--- a/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs
+++ b/WMS/WIDESEA_WMSServer/WIDESEA_StockService/Service/StockInfoService.cs
@@ -80,6 +80,13 @@
             return BaseDal.GetStockInfos(materielCode, locationCodes);
         }
 
+        //public List<Dt_StockInfo> GetUseableStocks(string materielCode, string batchNo, int warehoseId)
+        //{
+        //    List<string> locationCodes = _basicRepository.LocationInfoRepository.GetCanOutLocationCodes(warehoseId);
+
+        //    return BaseDal.GetStockInfos(materielCode, batchNo, locationCodes);
+        //}
+
         public List<StockSelectViewDTO> GetStockSelectViews(string materielCode)
         {
             List<string> roadways = _basicRepository.RoadwayInfoRepository.CanOutRoadwayNos;
@@ -289,5 +296,13 @@
             [ExporterHeader(DisplayName = "鐗╂枡鐘舵��")]
             public string Wlstatus { get; set; }
         }
+
+
+        public List<Dt_StockInfo> GetUseableStocks(string materielCode, string batchNo, int warehoseId)
+        {
+            List<string> locationCodes = _basicRepository.LocationInfoRepository.GetCanOutLocationCodes(warehoseId);
+
+            return BaseDal.GetStockInfos(materielCode, batchNo, locationCodes);
+        }
     }
 }

--
Gitblit v1.9.3