| | |
| | | using System.Threading.Tasks; |
| | | using WIDESEAWCS_Core; |
| | | using WIDESEAWCS_Core.Helper; |
| | | using WIDESEAWCS_DTO.TaskInfo; |
| | | using WIDESEAWCS_DTO.WMS; |
| | | |
| | | namespace WIDESEAWCS_TaskInfoService |
| | | { |
| | |
| | | try |
| | | { |
| | | if (taskDTO.containerCode.IsNullOrEmpty()) throw new Exception("æç®±å·ä¸è½ä¸ºç©º"); |
| | | if (taskDTO.toAreaCode.IsNullOrEmpty() || taskDTO.toLocationCode.IsNullOrEmpty()) throw new Exception("ç»ç¹åºåæç»ç¹ä½ç½®ä¸è½ä¸ºç©º"); |
| | | if (isType) if (taskDTO.containerType.IsNullOrEmpty()) throw new Exception("æç®±å·ä¸è½ä¸ºç©º"); |
| | | if (taskDTO.toAreaCode.IsNullOrEmpty() && taskDTO.toLocationCode.IsNullOrEmpty()) throw new Exception("ç»ç¹åºåæç»ç¹ä½ç½®ä¸è½ä¸ºç©º"); |
| | | //if (isType) if (taskDTO.containerType.IsNullOrEmpty()) throw new Exception("æç®±ç±»åä¸è½ä¸ºç©º"); |
| | | if (isfrom) if (taskDTO.fromLocationCode.IsNullOrEmpty()) throw new Exception("èµ·ç¹ä½ç½®ä¸è½ä¸ºç©º"); |
| | | } |
| | | catch (Exception ex) |