| | |
| | | else |
| | | { |
| | | //夿æ¯å¦éè¦ç§»åº |
| | | string[] targetCodes = SourceAddress.Split("-"); |
| | | string[] targetCodes = SourceAddress.Split("-"); // R02 - 002 - 001 - 011 - 01 |
| | | if (targetCodes[1] == "001") |
| | | { |
| | | targetCodes[1] = "002"; |
| | |
| | | } |
| | | targetCodes[4] = "01"; |
| | | string LocationCode = string.Join("-", targetCodes); //ç»è£
æµ
åºä½å°å |
| | | Dt_LocationInfo locationInfos = _basicService.LocationInfoService.Repository.QueryFirst(x => x.LocationCode == LocationCode && (x.LocationStatus == (int)LocationStatusEnum.Free || x.LocationStatus == (int)LocationStatusEnum.InStock)); |
| | | Dt_LocationInfo locationInfos = _basicService.LocationInfoService.Repository.QueryFirst(x => x.LocationCode == LocationCode && (x.LocationStatus == (int)LocationStatusEnum.Free || x.LocationStatus == (int)LocationStatusEnum.InStock || x.LocationStatus == (int)LocationStatusEnum.Pallet)); |
| | | if (locationInfos == null) |
| | | { |
| | | return content = WebResponseContent.Instance.Error($"æªæ¾å°è¯¥è´§ä½ä¿¡æ¯,è´§ä½ç¼å·:{locationInfos}"); |
| | |
| | | Dt_InboundOrder dt_Inbound = _inboundService.InbounOrderService.Repository.QueryFirst(x => x.OrderName == targetCodesst[0]); |
| | | if (dt_Inbound.Startingcolumn != 0 || dt_Inbound.Terminationcolumn != 0) |
| | | { |
| | | newLocation = _basicService.LocationInfoService.GetLocation2(locationInfos.RoadwayNo, Locationtype, dt_Inbound.Startingcolumn, dt_Inbound.Terminationcolumn); |
| | | newLocation = _basicService.LocationInfoService.GetLocation4(locationInfos.RoadwayNo, Locationtype, dt_Inbound.Startingcolumn, dt_Inbound.Terminationcolumn); |
| | | } |
| | | else |
| | | { |
| | | newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo, Locationtype); |
| | | newLocation = _basicService.LocationInfoService.GetLocation3(locationInfos.RoadwayNo, Locationtype); |
| | | } |
| | | |
| | | } |
| | | else |
| | | { |
| | | newLocation = _basicService.LocationInfoService.GetLocation(locationInfos.RoadwayNo, Locationtype); |
| | | newLocation = _basicService.LocationInfoService.GetLocation3(locationInfos.RoadwayNo, Locationtype); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | |
| | | //æ¾çæ·±åºåºï¼å夿æµ
åºä½æ¯å¦æ |
| | | |
| | | |
| | | |
| | | if (newLocation != null) |
| | | { |
| | | Dt_Task dt_Task = new() |
| | |
| | | if (task == null) |
| | | { |
| | | string RoadwayNo = "1"; |
| | | if (generate.SourceAddress != "R01-002-041-001-01") |
| | | if (generate.SourceAddress != "R01-002-041-001-01" && generate.SourceAddress != "R01-002-043-001-01") |
| | | { |
| | | RoadwayNo = "2"; |
| | | } |
| | |
| | | Dt_StockInfo stockt = stocktData.FirstOrDefault(x => x.PalletCode == palletCode); |
| | | if (stockt !=null) |
| | | { |
| | | if (stockt.StockStatus == (int)StockStatusEmun.å·²å
¥åº && (stockt.Wlstatus == (int)InventoryMaterialStatus.åæ ¼ || stockt.Wlstatus == (int)InventoryMaterialStatus.éè´§ || stockt.Wlstatus == (int)InventoryMaterialStatus.ç¹é)) |
| | | if (stockt.StockStatus == (int)StockStatusEmun.å·²å
¥åº && (stockt.Wlstatus == (int)InventoryMaterialStatus.åæ ¼ || stockt.Wlstatus == (int)InventoryMaterialStatus.éè´§ || stockt.Wlstatus == (int)InventoryMaterialStatus.ç¹é || stockt.Wlstatus == (int)InventoryMaterialStatus.空æ)) |
| | | { |
| | | Dt_StockInfoDetail stocktdetail = StockInfoDetailData.FirstOrDefault(x => x.StockId == stockt.Id); |
| | | if(stocktdetail != null) |