| | |
| | | using MailKit.Search; |
| | | using System.Reflection.Metadata; |
| | | using static WIDESEA_ITaskInfoService.ITaskService; |
| | | using WIDESEA_Common.Log; |
| | | |
| | | namespace WIDESEA_TaskInfoService |
| | | { |
| | |
| | | if (dt_Inbound.Startingcolumn != 0 || dt_Inbound.Terminationcolumn != 0) |
| | | { |
| | | newLocation = _basicService.LocationInfoService.GetLocation2(newSourceAddress.RoadwayNo, Locationtype, dt_Inbound.Startingcolumn, dt_Inbound.Terminationcolumn); |
| | | |
| | | WriteLog.GetLog("åºä½è·åæ¥å¿ï¼GetLocation").Write($"åææå
¥åºè·ååºä½ï¼ä¼ å
¥å¼,RoadwayNo:{newSourceAddress.RoadwayNo},ç±»åï¼{Locationtype}ï¼åºé´ä¸ºï¼{dt_Inbound.Startingcolumn}ä¸{dt_Inbound.Terminationcolumn}=============è·åå°çåºä½ä¸ºï¼{newLocation.LocationCode}", $"åºä½è·åæ¥å¿ï¼GetLocation2"); |
| | | } |
| | | else |
| | | { |
| | | newLocation = _basicService.LocationInfoService.GetLocation(newSourceAddress.RoadwayNo, Locationtype); |
| | | WriteLog.GetLog("åºä½è·åæ¥å¿ï¼GetLocation").Write($"åææå
¥åºè·ååºä½ï¼ä¼ å
¥å¼,RoadwayNo:{newSourceAddress.RoadwayNo},ç±»åï¼{Locationtype}ï¼=============è·åå°çåºä½ä¸ºï¼{newLocation.LocationCode}", $"åºä½è·åæ¥å¿ï¼GetLocation,æåæ¥å£éé¢"); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | newLocation = _basicService.LocationInfoService.GetLocation(newSourceAddress.RoadwayNo, Locationtype); |
| | | WriteLog.GetLog("åºä½è·åæ¥å¿ï¼GetLocation").Write($"åææå
¥åºè·ååºä½ï¼ä¼ å
¥å¼,RoadwayNo:{newSourceAddress.RoadwayNo},ç±»åï¼{Locationtype}ï¼=============è·åå°çåºä½ä¸ºï¼{newLocation.LocationCode}", $"åºä½è·åæ¥å¿ï¼GetLocation"); |
| | | } |
| | | |
| | | |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | public static List<int> InventoryCode = new List<int>() { 0,1,2,4,5,6}; //0:å¾
æ£ 1ï¼åæ ¼ 2ï¼ä¸åæ ¼ 4ï¼éè´§ 5ï¼è¿å·¥ 6ï¼ç¹é |
| | | /// <summary> |
| | | /// è§£æåºå |
| | | /// </summary> |
| | |
| | | { |
| | | |
| | | string[] targetCodes = generate.PalletCode.Split("*"); |
| | | if (targetCodes.Length == 4) |
| | | if (targetCodes.Length == 5) |
| | | { |
| | | Dt_InboundOrder dt_Inbound = _inboundService.InbounOrderService.Repository.QueryFirst(x => x.OrderName == targetCodes[0]); |
| | | |
| | | if(dt_Inbound != null) |
| | | bool isContained = InventoryCode.Contains(int.Parse(targetCodes[4])); |
| | | if(!isContained) |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"第äºä½ç©æç¶æç¼ç è§£æé误ï¼{generate.PalletCode}"); |
| | | } |
| | | |
| | | if (dt_Inbound != null) |
| | | { |
| | | string PalletCodetarget = string.Join("*", targetCodes.Take(3)); |
| | | Dt_StockInfo dt_StockInfo = _stockService.StockInfoService.Repository.QueryFirst(x => x.PalletCode.Contains(PalletCodetarget)); |
| | |
| | | CreateDate = DateTime.Now, |
| | | MaterialType = (int)InventoryMaterialType.åææ, |
| | | Materialweight = decimal.Parse(targetCodes[3]), |
| | | Wlstatus = (int)InventoryMaterialStatus.å¾
æ£, |
| | | Wlstatus = int.Parse(targetCodes[4]), |
| | | Mgeneratetime=DateTime.Now, |
| | | }; |
| | | _unitOfWorkManage.BeginTran(); |
| | |
| | | CreateDate = DateTime.Now, |
| | | MaterialType = (int)InventoryMaterialType.æå, |
| | | Materialweight = decimal.Parse(targetCodes[3]), |
| | | Wlstatus = (int)InventoryMaterialStatus.å¾
æ£, |
| | | Wlstatus = int.Parse(targetCodes[4]), |
| | | Mgeneratetime = DateTime.Now, |
| | | }; |
| | | _unitOfWorkManage.BeginTran(); |