diff --git a/src/int/ProcessoEletronicoINT.php b/src/int/ProcessoEletronicoINT.php index 8c5736387..8281eec1d 100755 --- a/src/int/ProcessoEletronicoINT.php +++ b/src/int/ProcessoEletronicoINT.php @@ -272,7 +272,7 @@ public static function getCssCompatibilidadeSEI4($arquivo) * @return string */ public static function montarRestricaoTramitaGovBr($idUnidade, &$strCss, &$strHtml, &$strJsGlobal, &$strJsInicializar) - { + { try { $objPenUnidadeRestricaoDTO = new PenUnidadeRestricaoDTO(); $objPenUnidadeRestricaoDTO->setNumIdUnidade($idUnidade); @@ -302,7 +302,7 @@ public static function montarRestricaoTramitaGovBr($idUnidade, &$strCss, &$strHt } foreach ($hdnRepoEstruturas as $key => $unidades) { $value = implode('¥', $unidades); - $strHtmlRepoEstruturasUnidades .= '' . "\n"; } $arrRepoEstruturasSelecionados = PaginaSEI::getInstance()->gerarItensLupa($items); @@ -354,7 +354,7 @@ public static function montarRestricaoTramitaGovBr($idUnidade, &$strCss, &$strHt . ' ' . ' objAutoCompletarRepoEstruturas.processarResultado = function(id,descricao,complemento){' . ' if (id!=\'\'){ ' - . ' objLupaRepositoriosEstruturas.adicionar(id,descricao,document.getElementById(\'txtRepoEstruturas\'));' + . ' objLupaRepositoriosEstruturas.adicionar(id,descricao,document.getElementById(\'txtRepoEstruturas\'));' . ' objLupaUnidades.limpar();' . ' hdnRepoEst = document.getElementById("hdnRepoEstruturas" + id); ' . ' if (hdnRepoEst == null) { ' @@ -414,34 +414,33 @@ public static function montarRestricaoTramitaGovBr($idUnidade, &$strCss, &$strHt $strHtml = '' - . '
' - . ' ' - . ' ' - . ' ' - . ' ' - . '
' - // . ' Selecionar Órgãos' - // . '
' - . ' Remover Estruturas Selecionados' - . '
' - . ' ' - . ' ' - . ' ' - . ' ' - . ' ' - . '
' - // . ' Selecionar Unidades' - // . '
' - . ' Remover Unidades Selecionadas' - . '
' - . ' ' - . ' ' . $strHtmlRepoEstruturasUnidades . '' - . '
'; - + . '
' + . ' ' + . ' ' + . ' ' + . ' ' + . '
' + // . ' Selecionar Órgãos' + // . '
' + . ' Remover Estruturas Selecionados' + . '
' + . ' ' + . ' ' + . ' ' + . ' ' + . ' ' + . '
' + // . ' Selecionar Unidades' + // . '
' + . ' Remover Unidades Selecionadas' + . '
' + . ' ' + . ' ' . $strHtmlRepoEstruturasUnidades . '' + . '
'; } catch (Exception $e) { // não grava nada e não retorna objeto restrição mapeamento de unidades }