From 550b522ec6fc3cc7f9596869b562e241f990a312 Mon Sep 17 00:00:00 2001 From: Thiago Farias Date: Wed, 29 Nov 2017 10:41:55 -0200 Subject: [PATCH] Sprint4: US066 --- PENIntegracao.php | 2 +- pen_procedimento_expedir.php | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/PENIntegracao.php b/PENIntegracao.php index e2db279..f7073bc 100644 --- a/PENIntegracao.php +++ b/PENIntegracao.php @@ -307,7 +307,7 @@ class PENIntegracao extends SeiIntegracao { if (count($arrObjEstruturaDTO) > 0) { $xml = InfraAjax::gerarXMLItensArrInfraDTO($arrObjEstruturaDTO, 'NumeroDeIdentificacaoDaEstrutura', 'Nome'); } else { - throw new InfraException("Unidade não Encontrada.", $e); + return ''; } break; diff --git a/pen_procedimento_expedir.php b/pen_procedimento_expedir.php index 84235c6..c48326f 100644 --- a/pen_procedimento_expedir.php +++ b/pen_procedimento_expedir.php @@ -328,6 +328,15 @@ function selecionarUrgencia() } } +//Caso não tenha unidade encontrada +$(document).ready(function() { + $(document).on('click', '#txtUnidade', function() { + if ($(this).val() == "Unidade não Encontrada.") { + $(this).val(''); + } + }); +}); + function selecionarRepositorio() { var txtUnidade = $('#txtUnidade'); -- libgit2 0.21.2