Commit 550b522ec6fc3cc7f9596869b562e241f990a312
1 parent
ff43cf12
Exists in
master
and in
7 other branches
Sprint4: US066
Showing
2 changed files
with
10 additions
and
1 deletions
Show diff stats
PENIntegracao.php
| ... | ... | @@ -307,7 +307,7 @@ class PENIntegracao extends SeiIntegracao { |
| 307 | 307 | if (count($arrObjEstruturaDTO) > 0) { |
| 308 | 308 | $xml = InfraAjax::gerarXMLItensArrInfraDTO($arrObjEstruturaDTO, 'NumeroDeIdentificacaoDaEstrutura', 'Nome'); |
| 309 | 309 | } else { |
| 310 | - throw new InfraException("Unidade não Encontrada.", $e); | |
| 310 | + return '<itens><item id="0" descricao="Unidade não Encontrada."></item></itens>'; | |
| 311 | 311 | } |
| 312 | 312 | break; |
| 313 | 313 | ... | ... |
pen_procedimento_expedir.php
| ... | ... | @@ -328,6 +328,15 @@ function selecionarUrgencia() |
| 328 | 328 | } |
| 329 | 329 | } |
| 330 | 330 | |
| 331 | +//Caso não tenha unidade encontrada | |
| 332 | +$(document).ready(function() { | |
| 333 | + $(document).on('click', '#txtUnidade', function() { | |
| 334 | + if ($(this).val() == "Unidade não Encontrada.") { | |
| 335 | + $(this).val(''); | |
| 336 | + } | |
| 337 | + }); | |
| 338 | +}); | |
| 339 | + | |
| 331 | 340 | function selecionarRepositorio() |
| 332 | 341 | { |
| 333 | 342 | var txtUnidade = $('#txtUnidade'); | ... | ... |