| | |
| | | var toStation = _stationInfo.Repository.QueryFirst(x => x.StationName == taskDTO.toLocationCode) |
| | | ?? throw new Exception($"æªæ¾å°ç»ç¹åºä½ã{taskDTO.toLocationCode}ãï¼"); |
| | | |
| | | if (toStation.StationName != LocationStatusEnum.Free.ToString()) |
| | | if (toStation.StationStatus != (int)LocationStatusEnum.Free) |
| | | throw new Exception($"ç»ç¹åºä½ã{taskDTO.toLocationCode}ãåºä½ç¶æä¸å¯å
¥åºï¼"); |
| | | } |
| | | // åºåºç±»ä»»å¡ï¼éè¦æ ¡éªèµ·ç¹åºä½ï¼ |
| | |
| | | var fromStation = _stationInfo.Repository.QueryFirst(x => x.StationName == taskDTO.fromLocationCode) |
| | | ?? throw new Exception($"æªæ¾å°èµ·ç¹åºä½ã{taskDTO.fromLocationCode}ãï¼"); |
| | | |
| | | if (fromStation.StationName != LocationStatusEnum.InStock.ToString()) |
| | | if (fromStation.StationStatus !=(int)LocationStatusEnum.InStock) |
| | | throw new Exception($"èµ·ç¹åºä½ã{taskDTO.fromLocationCode}ãå½ååºä½ç¶æä¸å¯åºåºï¼"); |
| | | |
| | | if (fromStation.PalletCode != taskDTO.containerCode) |
| | |
| | | var toStation = _stationInfo.Repository.QueryFirst(x => x.StationName == taskDTO.toLocationCode) |
| | | ?? throw new Exception($"æªæ¾å°ç»ç¹åºä½ã{taskDTO.toLocationCode}ãï¼"); |
| | | |
| | | if (toStation.StationName != LocationStatusEnum.Free.ToString()) |
| | | if (toStation.StationStatus != (int)LocationStatusEnum.Free) |
| | | throw new Exception($"ç»ç¹åºä½ã{taskDTO.toLocationCode}ãåºä½ç¶æä¸å¯å
¥åºï¼"); |
| | | |
| | | // æ ¡éªèµ·ç¹åºä½ |
| | | var fromStation = _stationInfo.Repository.QueryFirst(x => x.StationName == taskDTO.fromLocationCode) |
| | | ?? throw new Exception($"æªæ¾å°èµ·ç¹åºä½ã{taskDTO.fromLocationCode}ãï¼"); |
| | | |
| | | if (fromStation.StationName != LocationStatusEnum.InStock.ToString()) |
| | | if (fromStation.StationStatus != (int)LocationStatusEnum.InStock) |
| | | throw new Exception($"èµ·ç¹åºä½ã{taskDTO.fromLocationCode}ãå½ååºä½ç¶æä¸å¯åºåºï¼"); |
| | | |
| | | if (fromStation.PalletCode != taskDTO.containerCode) |