diff --git a/src/pen_map_unidade_cadastrar.php b/src/pen_map_unidade_cadastrar.php
index 060599bd2..d0cffe3e6 100755
--- a/src/pen_map_unidade_cadastrar.php
+++ b/src/pen_map_unidade_cadastrar.php
@@ -288,7 +288,7 @@
getNumIdUnidade(), $arrMapIdUnidade); ?>
-
+
diff --git a/src/rn/PenBlocoProcessoRN.php b/src/rn/PenBlocoProcessoRN.php
index 579bf4b9e..6e8a2f13a 100644
--- a/src/rn/PenBlocoProcessoRN.php
+++ b/src/rn/PenBlocoProcessoRN.php
@@ -21,7 +21,7 @@ protected function obterPendenciasLoteControlado(PenBlocoProcessoDTO $objPenLote
try {
//Valida PermissãoTipo
- SessaoSEI::getInstance()->validarAuditarPermissao('pen_expedir_lote', __METHOD__, $objPenLoteProcedimentoDTO);
+ SessaoSEI::getInstance()->validarAuditarPermissao('pen_expedir_bloco', __METHOD__, $objPenLoteProcedimentoDTO);
//Obter todos os processos pendentes antes de iniciar o monitoramento
$arrObjPendenciasLoteDTO = $this->listar($objPenLoteProcedimentoDTO) ?: array();
diff --git a/src/rn/PenExpedirLoteRN.php b/src/rn/PenExpedirLoteRN.php
index c3ffc8fac..2ea36b089 100755
--- a/src/rn/PenExpedirLoteRN.php
+++ b/src/rn/PenExpedirLoteRN.php
@@ -75,7 +75,7 @@ protected function cadastrarLoteControlado(PenBlocoProcessoDTO $objPenBlocoProce
{
try {
//Valida Permissão
- SessaoSEI::getInstance()->validarAuditarPermissao('pen_expedir_lote', __METHOD__, $objPenBlocoProcessoDTO);
+ SessaoSEI::getInstance()->validarAuditarPermissao('pen_expedir_bloco', __METHOD__, $objPenBlocoProcessoDTO);
$this->barraProgresso->exibir();
$this->barraProgresso->setStrRotulo(ProcessoEletronicoINT::TEE_EXPEDICAO_ETAPA_VALIDACAO);
diff --git a/src/rn/PenHipoteseLegalRN.php b/src/rn/PenHipoteseLegalRN.php
index c23285fa0..c74b62f39 100755
--- a/src/rn/PenHipoteseLegalRN.php
+++ b/src/rn/PenHipoteseLegalRN.php
@@ -37,23 +37,6 @@ protected function listarConectado(PenHipoteseLegalDTO $objDTO)
}
}
- /**
- * Consultar hipotese legal
- *
- * @param PenHipoteseLegalDTO $objDTO
- * @return PenHipoteseLegalDTO
- * @throws InfraException
- */
- protected function consultarControlado(PenHipoteseLegalDTO $objDTO)
- {
- try {
- $objBD = new GenericoBD($this->inicializarObjInfraIBanco());
- return $objBD->consultar($objDTO);
- } catch (Exception $e) {
- throw new InfraException('Erro consultando hipotese legal.', $e);
- }
- }
-
protected function consultarConectado(PenHipoteseLegalDTO $objDTO)
{
try {
diff --git a/src/scripts/sip_atualizar_versao_modulo_pen.php b/src/scripts/sip_atualizar_versao_modulo_pen.php
index a7131f799..7c7efefb2 100755
--- a/src/scripts/sip_atualizar_versao_modulo_pen.php
+++ b/src/scripts/sip_atualizar_versao_modulo_pen.php
@@ -2150,6 +2150,7 @@ protected function instalarV3070()
$idMenuProcessoTramitadosExterno = $this->criarMenu('Processos em Tramitação Externa', 57, $idMenuTramita, $numIdMenu, $numIdRecurso, $numIdSistema);
$this->cadastrarRelPergilItemMenu($idPerfilAdm, $numIdRecurso, $numIdMenu, $idMenuProcessoTramitadosExterno);
+ $this->renomearRecurso($numIdSistema, 'pen_expedir_lote', 'pen_expedir_bloco');
$this->atualizarNumeroVersao("3.7.0");
}
diff --git a/tests_sei4/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php b/tests_sei4/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
index a57cfe053..3b8fd8613 100644
--- a/tests_sei4/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
+++ b/tests_sei4/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
@@ -111,7 +111,24 @@ public function test_tramitar_processo_anexado_da_origem()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(10);
} else {
diff --git a/tests_sei4/funcional/tests/TramiteBlocoExternoLimiteTest.php b/tests_sei4/funcional/tests/TramiteBlocoExternoLimiteTest.php
index 84d2e88fd..77aa425ea 100644
--- a/tests_sei4/funcional/tests/TramiteBlocoExternoLimiteTest.php
+++ b/tests_sei4/funcional/tests/TramiteBlocoExternoLimiteTest.php
@@ -92,7 +92,24 @@ public function teste_tramite_bloco_externo()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(5);
diff --git a/tests_sei4/funcional/tests/TramiteBlocoExternoTest.php b/tests_sei4/funcional/tests/TramiteBlocoExternoTest.php
index d2c573e10..47a3c6c93 100644
--- a/tests_sei4/funcional/tests/TramiteBlocoExternoTest.php
+++ b/tests_sei4/funcional/tests/TramiteBlocoExternoTest.php
@@ -92,7 +92,24 @@ public function teste_tramite_bloco_externo()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(10);
diff --git a/tests_sei41/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php b/tests_sei41/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
index bbfadac1c..1001a4a8a 100644
--- a/tests_sei41/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
+++ b/tests_sei41/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
@@ -118,7 +118,24 @@ public function test_tramitar_processo_anexado_da_origem()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(10);
} else {
diff --git a/tests_sei41/funcional/tests/TramiteBlocoExternoLimiteTest.php b/tests_sei41/funcional/tests/TramiteBlocoExternoLimiteTest.php
index b7f15f863..fea698afa 100644
--- a/tests_sei41/funcional/tests/TramiteBlocoExternoLimiteTest.php
+++ b/tests_sei41/funcional/tests/TramiteBlocoExternoLimiteTest.php
@@ -92,7 +92,24 @@ public function teste_tramite_bloco_externo()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(5);
diff --git a/tests_sei41/funcional/tests/TramiteBlocoExternoTest.php b/tests_sei41/funcional/tests/TramiteBlocoExternoTest.php
index d2c573e10..47a3c6c93 100644
--- a/tests_sei41/funcional/tests/TramiteBlocoExternoTest.php
+++ b/tests_sei41/funcional/tests/TramiteBlocoExternoTest.php
@@ -92,7 +92,24 @@ public function teste_tramite_bloco_externo()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(10);
diff --git a/tests_super/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php b/tests_super/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
index cbcf71074..fb76e791f 100644
--- a/tests_super/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
+++ b/tests_super/funcional/tests/TramiteBlocoExternoLimiteAnexoTest.php
@@ -117,7 +117,24 @@ public function test_tramitar_processo_anexado_da_origem()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(10);
} else {
diff --git a/tests_super/funcional/tests/TramiteBlocoExternoLimiteTest.php b/tests_super/funcional/tests/TramiteBlocoExternoLimiteTest.php
index e41700dc2..de75ae0c7 100644
--- a/tests_super/funcional/tests/TramiteBlocoExternoLimiteTest.php
+++ b/tests_super/funcional/tests/TramiteBlocoExternoLimiteTest.php
@@ -98,7 +98,24 @@ public function teste_tramite_bloco_externo()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(5);
diff --git a/tests_super/funcional/tests/TramiteBlocoExternoTest.php b/tests_super/funcional/tests/TramiteBlocoExternoTest.php
index 126d01a36..f0a7e919c 100644
--- a/tests_super/funcional/tests/TramiteBlocoExternoTest.php
+++ b/tests_super/funcional/tests/TramiteBlocoExternoTest.php
@@ -93,7 +93,24 @@ public function teste_tramite_bloco_externo()
$this->paginaCadastrarProcessoEmBloco->bntTramitarBloco();
$this->paginaCadastrarProcessoEmBloco->tramitarProcessoExternamente(
self::$destinatario['REP_ESTRUTURAS'], self::$destinatario['NOME_UNIDADE'],
- self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false
+ self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'], false,
+ function ($testCase) {
+ try {
+ $testCase->frame('ifrEnvioProcesso');
+ $mensagemSucesso = utf8_encode('Processo(s) aguardando envio. Favor acompanhar a tramitação por meio do bloco, na funcionalidade \'Blocos de Trâmite Externo\'');
+ $testCase->assertStringContainsString($mensagemSucesso, $testCase->byCssSelector('body')->text());
+ $btnFechar = $testCase->byXPath("//input[@id='btnFechar']");
+ $btnFechar->click();
+ } finally {
+ try {
+ $testCase->frame(null);
+ $testCase->frame("ifrVisualizacao");
+ } catch (Exception $e) {
+ }
+ }
+
+ return true;
+ }
);
sleep(10);