Commit de3c83d59a28f37acce2a3a104cdda3c72edcc58

Authored by Thiago Farias
2 parents f048e958 185d8256

Merge branch 'SEI-INTEGRACAO_JOIN_87_OS026' of http://git.planejamento.gov.br/mp…

…/mod-sei-barramento into SEI-INTEGRACAO_JOIN_87_OS026
int/ProcessoEletronicoINT.php
... ... @@ -24,23 +24,26 @@ class ProcessoEletronicoINT extends InfraINT {
24 24 */
25 25 private static function gerarHierarquiaEstruturas($estruturas = array()){
26 26  
27   - if(empty($estruturas)) {
  27 + if(empty($estruturas)) {
28 28 return $estruturas;
29 29 }
30 30  
31   - foreach($estruturas as &$estrutura) {
  31 + foreach($estruturas as &$estrutura) {
  32 +
32 33 if($estrutura->isSetArrHierarquia()) {
33   - $siglas = $estrutura->getArrHierarquia();
34   - $nome = $estrutura->getStrNome();
35   - $nome .= ' - ';
36   - $array = array($estrutura->getStrSigla());
37   - foreach($estrutura->getArrHierarquia() as $sigla) {
38   - if(trim($sigla) !== '' && !in_array($sigla, array('PR', 'UNIAO'))) {
39   - $array[] = $sigla;
40   - }
41   - }
42   - $nome .= implode(' / ', $array);
43   - $estrutura->setStrNome($nome);
  34 + $siglas = $estrutura->getArrHierarquia();
  35 + $nome = $estrutura->getStrNome();
  36 + $nome .= ' - ';
  37 +
  38 + $array = array($estrutura->getStrSigla());
  39 + foreach($estrutura->getArrHierarquia() as $sigla) {
  40 + if(trim($sigla) !== '' && !in_array($sigla, array('PR', 'PE', 'UNIAO'))) {
  41 + $array[] = $sigla;
  42 + }
  43 + }
  44 +
  45 + $nome .= implode(' / ', $array);
  46 + $estrutura->setStrNome($nome);
44 47 }
45 48 }
46 49  
... ...
pen_map_hipotese_legal_recebimento_listar.php
... ... @@ -213,11 +213,11 @@ try {
213 213 $strResultado .= '<td align="center">';
214 214  
215 215 //$strResultado .= '<a href="'.$objSessao->assinarLink('controlador.php?acao='.PEN_RECURSO_BASE.'_visualizar&acao_origem='.$_GET['acao_origem'].'&acao_retorno='.$_GET['acao'].'&'.PEN_PAGINA_GET_ID.'='.$objPenRelHipoteseLegalDTO->getDblIdMap()).'"><img src="imagens/consultar.gif" title="Consultar Mapeamento" alt="Consultar Mapeamento" class="infraImg"></a>';
216   - if($objSessao->verificarPermissao('pen_map_hipotese_legal_recebido_alterar')) {
  216 + if($objSessao->verificarPermissao('pen_map_hipotese_legal_recebimento_alterar')) {
217 217 $strResultado .= '<a href="'.$objSessao->assinarLink('controlador.php?acao='.PEN_RECURSO_BASE.'_cadastrar&acao_origem='.$_GET['acao_origem'].'&acao_retorno='.$_GET['acao'].'&'.PEN_PAGINA_GET_ID.'='.$objPenRelHipoteseLegalDTO->getDblIdMap()).'"><img src="imagens/alterar.gif" title="Alterar Mapeamento" alt="Alterar Mapeamento" class="infraImg"></a>';
218 218 }
219 219  
220   - if($objSessao->verificarPermissao('pen_map_hipotese_legal_recebido_excluir')) {
  220 + if($objSessao->verificarPermissao('pen_map_hipotese_legal_recebimento_excluir')) {
221 221 $strResultado .= '<a href="#" onclick="onCLickLinkDelete(\''.$objSessao->assinarLink('controlador.php?acao='.PEN_RECURSO_BASE.'_excluir&acao_origem='.$_GET['acao_origem'].'&acao_retorno='.$_GET['acao'].'&hdnInfraItensSelecionados='.$objPenRelHipoteseLegalDTO->getDblIdMap()).'\', this)"><img src="imagens/excluir.gif" title="Excluir Mapeamento" alt="Excluir Mapeamento" class="infraImg"></a>';
222 222 }
223 223  
... ...