From 97073e9e6d03114221436ee0aa1e143d6e2c4a09 Mon Sep 17 00:00:00 2001 From: wankeda <Administrator@DESKTOP-HAU3ST3> Date: 星期一, 04 八月 2025 13:07:39 +0800 Subject: [PATCH] 出入库代码逻辑优化 --- 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..b6b5e1d 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, List<Dt_Warehouse> warehouse) + { + List<string> locationCodes = _basicRepository.LocationInfoRepository.GetCanOutLocationCodes(warehouse); + + return BaseDal.GetStockInfos(materielCode, batchNo, locationCodes); + } } } -- Gitblit v1.9.3