Commit 67a5566d2496e62412e666f01b17b764bba8f56b
1 parent
2dd37821
Exists in
master
and in
1 other branch
Correções pedidas pelo Eduardo Praxedes quanto a implementação de obrigatoriedade de alguns valores
Showing
2 changed files
with
9 additions
and
2 deletions
Show diff stats
rn/MdWsSeiDocumentoRN.php
... | ... | @@ -197,7 +197,11 @@ class MdWsSeiDocumentoRN extends DocumentoRN { |
197 | 197 | */ |
198 | 198 | protected function pesquisarTemplateDocumentoConectado(MdWsSeiDocumentoDTO $dto) { |
199 | 199 | try { |
200 | - | |
200 | + | |
201 | + if (empty($dto->getNumIdTipoProcedimento())) { | |
202 | + throw new InfraException('Tipo de procedimento é uma informação obrigatória.'); | |
203 | + } | |
204 | + | |
201 | 205 | $objProcedimentoDTO = new ProcedimentoDTO(); |
202 | 206 | $objProcedimentoDTO->setDblIdProcedimento($dto->getNumIdProcesso()); |
203 | 207 | $objProcedimentoDTO->retNumIdTipoProcedimento(); | ... | ... |
rn/MdWsSeiProcedimentoRN.php
... | ... | @@ -537,7 +537,10 @@ class MdWsSeiProcedimentoRN extends InfraRN |
537 | 537 | protected function alterarProcedimentoConectado(MdWsSeiProcedimentoDTO $procedimentoDTO) |
538 | 538 | { |
539 | 539 | try { |
540 | - | |
540 | + if (empty($procedimentoDTO->getNumIdProcedimento())) { | |
541 | + throw new InfraException('É obrigatorio informar o procedimento!'); | |
542 | + } | |
543 | + | |
541 | 544 | $processo = $procedimentoDTO->getNumIdProcedimento(); |
542 | 545 | $tipoProcesso = $procedimentoDTO->getNumIdTipoProcedimento(); |
543 | 546 | $especificacao = $procedimentoDTO->getStrEspecificacao(); | ... | ... |