| | |
| | | } |
| | | 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}"); |
| | |
| | | } |
| | | 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}"); |
| | |
| | | { |
| | | 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() |
| | |
| | | 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 |
| | | { |
| | |
| | | |
| | | } |
| | | } |
| | | //var responses = HttpHelper.Post<WebResponseContent>(ReceiveWMSTask, taskdt, "ä¸åä»»å¡å
¥åº"); |
| | | var responses = HttpHelper.Post<WebResponseContent>(ReceiveWMSTask, taskdt, "ä¸åä»»å¡å
¥åº"); |
| | | _unitOfWorkManage.BeginTran(); |
| | | if(dtstockt.Count > 0) |
| | | { |