| | |
| | | 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) |
| | | { |
| | | content.Error(ex.Message); |
| | | throw new Exception(ex.Message); |
| | | } |
| | | return content; |
| | | } |