Commit 550b522ec6fc3cc7f9596869b562e241f990a312

Authored by Thiago Farias
1 parent ff43cf12

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,7 +307,7 @@ class PENIntegracao extends SeiIntegracao {
307 if (count($arrObjEstruturaDTO) > 0) { 307 if (count($arrObjEstruturaDTO) > 0) {
308 $xml = InfraAjax::gerarXMLItensArrInfraDTO($arrObjEstruturaDTO, 'NumeroDeIdentificacaoDaEstrutura', 'Nome'); 308 $xml = InfraAjax::gerarXMLItensArrInfraDTO($arrObjEstruturaDTO, 'NumeroDeIdentificacaoDaEstrutura', 'Nome');
309 } else { 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 break; 312 break;
313 313
pen_procedimento_expedir.php
@@ -328,6 +328,15 @@ function selecionarUrgencia() @@ -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 function selecionarRepositorio() 340 function selecionarRepositorio()
332 { 341 {
333 var txtUnidade = $('#txtUnidade'); 342 var txtUnidade = $('#txtUnidade');