From 05c2e8aadb518a6323ff9fe23051fdbd56097221 Mon Sep 17 00:00:00 2001 From: huanghongfeng <huanghongfeng@hnkhzn.com> Date: 星期日, 08 十二月 2024 19:46:43 +0800 Subject: [PATCH] 文本日志查看 --- 代码管理/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs | 36 ++++++++++++++++++++++++++++++------ 1 files changed, 30 insertions(+), 6 deletions(-) diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs" index a41b3b6..1fb3e85 100644 --- "a/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs" +++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/WMS/WIDESEA_WMSServer/WIDESEA_TaskInfoService/PartialTaskService_Outbound.cs" @@ -404,7 +404,7 @@ } targetCodes[4] = "01"; string LocationCode = string.Join("-", targetCodes); //缁勮娴呭簱浣嶅湴鍧� - Dt_LocationInfo locationInfos = _basicService.LocationInfoService.Repository.QueryFirst(x => x.LocationCode == LocationCode); + Dt_LocationInfo locationInfos = _basicService.LocationInfoService.Repository.QueryFirst(x => x.LocationCode == LocationCode && (x.LocationStatus == (int)LocationStatusEnum.Free || x.LocationStatus == (int)LocationStatusEnum.InStock)); if (locationInfos == null) { return content = WebResponseContent.Instance.Error($"鏈壘鍒拌璐т綅淇℃伅,璐т綅缂栧彿:{locationInfos}"); @@ -417,7 +417,7 @@ } else { - Dt_StockInfo dt_StockInfo = _stockService.StockInfoService.Repository.QueryFirst(x => x.LocationCode == LocationCode); + Dt_StockInfo dt_StockInfo = _stockService.StockInfoService.Repository.QueryFirst(x => x.LocationCode == LocationCode && x.StockStatus== (int)StockStatusEmun.宸插叆搴�); if (dt_StockInfo == null) { return content = WebResponseContent.Instance.Error($"鏈壘鍒拌璐т綅鐨勫簱瀛樹俊鎭�,璐т綅缂栧彿:{LocationCode}"); @@ -435,7 +435,27 @@ { Locationtype = 10; } - newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo,Locationtype); //鎷垮埌浜嗙Щ搴撳悗鐨勮揣浣� + //newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo,Locationtype); //鎷垮埌浜嗙Щ搴撳悗鐨勮揣浣� + if (dt_StockInfo.MaterialType == (int)InventoryMaterialType.鎴愬搧) + { + string[] targetCodesst = dt_StockInfo.PalletCode.Split("*"); + Dt_InboundOrder dt_Inbound = _inboundService.InbounOrderService.Repository.QueryFirst(x => x.OrderName == targetCodesst[0]); + if (dt_Inbound.Startingcolumn != 0 || dt_Inbound.Startingcolumn != 0) + { + newLocation = _basicService.LocationInfoService.GetLocation2(locationInfos.RoadwayNo, Locationtype, dt_Inbound.Startingcolumn, dt_Inbound.Startingcolumn); + } + else + { + newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo, Locationtype); + } + + } + else + { + newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo, Locationtype); + } + + if (newLocation != null) { Dt_Task dt_Task = new() @@ -804,10 +824,14 @@ string TargetAdd = ""; if (saveModel.DelKeys[1].ToString()=="20") { - TargetAdd = "R02-001-010-001-02"; + TargetAdd = "R02-001-021-001-02"; }else if(saveModel.DelKeys[1].ToString() == "30") { - TargetAdd = "R02-001-011-001-02"; + TargetAdd = "R02-001-022-001-02"; + } + else if (saveModel.DelKeys[1].ToString() == "40") + { + TargetAdd = "R01-002-044-001-01"; } else { @@ -859,7 +883,7 @@ } } - //var responses = HttpHelper.Post<WebResponseContent>(ReceiveWMSTask, taskdt, "涓嬪彂浠诲姟鍏ュ簱"); + var responses = HttpHelper.Post<WebResponseContent>(ReceiveWMSTask, taskdt, "涓嬪彂浠诲姟鍏ュ簱"); _unitOfWorkManage.BeginTran(); if(dtstockt.Count > 0) { -- Gitblit v1.9.3