Commit 46fa6faad35765095e864e3d0a2e3b9ea06f3544
Exists in
master
and in
1 other branch
Merge branch 'bug_Correcao_Requisito_Minumo_SEI_3.0.13' into 'master'
Bug correcao requisito minumo sei 3.0.13 See merge request !19
Showing
5 changed files
with
51 additions
and
12 deletions
Show diff stats
README.md
1 | 1 | # Módulo Peticionamento e Intimação Eletrônicos |
2 | 2 | |
3 | 3 | ## Requisitos |
4 | -- SEI 3.0.11 instalado/atualizado ou versão superior. | |
4 | +- SEI 3.0.13 instalado/atualizado ou versão superior. | |
5 | 5 | - Verificar valor da constante de versão no arquivo /sei/web/SEI.php ou, após logado no sistema, parando o mouse sobre a logo do SEI no canto superior esquerdo. |
6 | 6 | - Antes de executar os scripts de instalação/atualização, o usuário de acesso aos bancos de dados do SEI e do SIP, constante nos arquivos ConfiguracaoSEI.php e ConfiguracaoSip.php, deverá ter permissão de acesso total ao banco de dados, permitindo, por exemplo, criação e exclusão de tabelas. |
7 | 7 | - Os códigos-fonte do Módulo podem ser baixados a partir do link a seguir, devendo sempre utilizar a versão mais recente: [https://softwarepublico.gov.br/gitlab/anatel/mod-sei-peticionamento/tags](https://softwarepublico.gov.br/gitlab/anatel/mod-sei-peticionamento/tags "Clique e acesse") | ... | ... |
sei/web/modulos/peticionamento/PeticionamentoIntegracao.php
sei/web/modulos/peticionamento/README.md
1 | 1 | # Módulo Peticionamento e Intimação Eletrônicos |
2 | 2 | |
3 | 3 | ## Requisitos |
4 | -- SEI 3.0.11 instalado/atualizado ou versão superior. | |
4 | +- SEI 3.0.13 instalado/atualizado ou versão superior. | |
5 | 5 | - Verificar valor da constante de versão no arquivo /sei/web/SEI.php ou, após logado no sistema, parando o mouse sobre a logo do SEI no canto superior esquerdo. |
6 | 6 | - Antes de executar os scripts de instalação/atualização, o usuário de acesso aos bancos de dados do SEI e do SIP, constante nos arquivos ConfiguracaoSEI.php e ConfiguracaoSip.php, deverá ter permissão de acesso total ao banco de dados, permitindo, por exemplo, criação e exclusão de tabelas. |
7 | 7 | - Os códigos-fonte do Módulo podem ser baixados a partir do link a seguir, devendo sempre utilizar a versão mais recente: [https://softwarepublico.gov.br/gitlab/anatel/mod-sei-peticionamento/tags](https://softwarepublico.gov.br/gitlab/anatel/mod-sei-peticionamento/tags "Clique e acesse") | ... | ... |
sei/web/modulos/peticionamento/rn/MdPetAtualizadorSeiRN.php
... | ... | @@ -11,10 +11,10 @@ require_once dirname(__FILE__) . '/../../../SEI.php'; |
11 | 11 | class MdPetAtualizadorSeiRN extends InfraRN { |
12 | 12 | |
13 | 13 | private $numSeg = 0; |
14 | - private $versaoAtualDesteModulo = '2.0.0'; | |
14 | + private $versaoAtualDesteModulo = '2.0.1'; | |
15 | 15 | private $nomeDesteModulo = 'MÓDULO DE PETICIONAMENTO E INTIMAÇÃO ELETRÔNICOS'; |
16 | 16 | private $nomeParametroModulo = 'VERSAO_MODULO_PETICIONAMENTO'; |
17 | - private $historicoVersoes = array('0.0.1', '0.0.2', '1.0.3', '1.0.4', '1.1.0', '2.0.0'); | |
17 | + private $historicoVersoes = array('0.0.1', '0.0.2', '1.0.3', '1.0.4', '1.1.0', '2.0.0', '2.0.1'); | |
18 | 18 | |
19 | 19 | public static $MD_PET_ID_SERIE_RECIBO = 'MODULO_PETICIONAMENTO_ID_SERIE_RECIBO_PETICIONAMENTO'; |
20 | 20 | |
... | ... | @@ -78,7 +78,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { |
78 | 78 | $this->inicializar('INICIANDO A INSTALAÇÃO/ATUALIZAÇÃO DO '.$this->nomeDesteModulo.' NO SEI VERSÃO '.SEI_VERSAO); |
79 | 79 | |
80 | 80 | //testando versao do framework |
81 | - $numVersaoInfraRequerida = '1.385'; | |
81 | + $numVersaoInfraRequerida = '1.493'; | |
82 | 82 | $versaoInfraFormatada = (int) str_replace('.','', VERSAO_INFRA); |
83 | 83 | $versaoInfraReqFormatada = (int) str_replace('.','', $numVersaoInfraRequerida); |
84 | 84 | |
... | ... | @@ -114,6 +114,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { |
114 | 114 | $this->instalarv104(); |
115 | 115 | $this->instalarv110(); |
116 | 116 | $this->instalarv200(); |
117 | + $this->instalarv201(); | |
117 | 118 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
118 | 119 | $this->finalizar('FIM', false); |
119 | 120 | } elseif ($strVersaoModuloPeticionamento == '0.0.1') { |
... | ... | @@ -122,6 +123,7 @@ class MdPetAtualizadorSeiRN extends InfraRN { |
122 | 123 | $this->instalarv104(); |
123 | 124 | $this->instalarv110(); |
124 | 125 | $this->instalarv200(); |
126 | + $this->instalarv201(); | |
125 | 127 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
126 | 128 | $this->finalizar('FIM', false); |
127 | 129 | } elseif ($strVersaoModuloPeticionamento == '0.0.2') { |
... | ... | @@ -129,24 +131,32 @@ class MdPetAtualizadorSeiRN extends InfraRN { |
129 | 131 | $this->instalarv104(); |
130 | 132 | $this->instalarv110(); |
131 | 133 | $this->instalarv200(); |
134 | + $this->instalarv201(); | |
132 | 135 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
133 | 136 | $this->finalizar('FIM', false); |
134 | 137 | } elseif (in_array($strVersaoModuloPeticionamento, array('1.0.0', '1.0.3'))) { |
135 | 138 | $this->instalarv104(); |
136 | 139 | $this->instalarv110(); |
137 | 140 | $this->instalarv200(); |
141 | + $this->instalarv201(); | |
138 | 142 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
139 | 143 | $this->finalizar('FIM', false); |
140 | 144 | } elseif ($strVersaoModuloPeticionamento == '1.0.4') { |
141 | 145 | $this->instalarv110(); |
142 | 146 | $this->instalarv200(); |
147 | + $this->instalarv201(); | |
143 | 148 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
144 | 149 | $this->finalizar('FIM', false); |
145 | 150 | } elseif ($strVersaoModuloPeticionamento == '1.1.0') { |
146 | 151 | $this->instalarv200(); |
152 | + $this->instalarv201(); | |
147 | 153 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); |
148 | 154 | $this->finalizar('FIM', false); |
149 | 155 | } elseif ($strVersaoModuloPeticionamento == '2.0.0') { |
156 | + $this->instalarv201(); | |
157 | + $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SEI'); | |
158 | + $this->finalizar('FIM', false); | |
159 | + } elseif ($strVersaoModuloPeticionamento == '2.0.1') { | |
150 | 160 | $this->logar('A VERSÃO MAIS ATUAL DO '.$this->nomeDesteModulo.' (v'.$this->versaoAtualDesteModulo.') JÁ ESTÁ INSTALADA.'); |
151 | 161 | $this->finalizar('FIM', false); |
152 | 162 | } |
... | ... | @@ -1544,7 +1554,7 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
1544 | 1554 | $infraAgendamentoDTO->setStrComando('MdPetAgendamentoAutomaticoRN::CumprirPorDecursoPrazoTacito'); |
1545 | 1555 | |
1546 | 1556 | $infraAgendamentoDTO->setStrSinAtivo('S'); |
1547 | - $infraAgendamentoDTO->setStrStaPeriodicidadeExecucao( InfraAgendamentoTarefaRN::$PERIODICIDADEEXECUCAO_DIA ); | |
1557 | + $infraAgendamentoDTO->setStrStaPeriodicidadeExecucao( InfraAgendamentoTarefaRN::$PERIODICIDADE_EXECUCAO_HORA ); | |
1548 | 1558 | $infraAgendamentoDTO->setStrPeriodicidadeComplemento( 23 ); |
1549 | 1559 | $infraAgendamentoDTO->setStrParametro( null ); |
1550 | 1560 | $infraAgendamentoDTO->setDthUltimaExecucao( null ); |
... | ... | @@ -1562,7 +1572,7 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
1562 | 1572 | $infraAgendamentoDTO->setStrComando('MdPetAgendamentoAutomaticoRN::atualizarEstadoIntimacoesPrazoExternoVencido'); |
1563 | 1573 | |
1564 | 1574 | $infraAgendamentoDTO->setStrSinAtivo('S'); |
1565 | - $infraAgendamentoDTO->setStrStaPeriodicidadeExecucao( InfraAgendamentoTarefaRN::$PERIODICIDADEEXECUCAO_DIA ); | |
1575 | + $infraAgendamentoDTO->setStrStaPeriodicidadeExecucao( InfraAgendamentoTarefaRN::$PERIODICIDADE_EXECUCAO_HORA ); | |
1566 | 1576 | $infraAgendamentoDTO->setStrPeriodicidadeComplemento( 0 ); |
1567 | 1577 | $infraAgendamentoDTO->setStrParametro( null ); |
1568 | 1578 | $infraAgendamentoDTO->setDthUltimaExecucao( null ); |
... | ... | @@ -1580,7 +1590,7 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
1580 | 1590 | $infraAgendamentoDTO->setStrComando('MdPetAgendamentoAutomaticoRN::ReiterarIntimacaoExigeResposta'); |
1581 | 1591 | |
1582 | 1592 | $infraAgendamentoDTO->setStrSinAtivo('S'); |
1583 | - $infraAgendamentoDTO->setStrStaPeriodicidadeExecucao( InfraAgendamentoTarefaRN::$PERIODICIDADEEXECUCAO_DIA ); | |
1593 | + $infraAgendamentoDTO->setStrStaPeriodicidadeExecucao( InfraAgendamentoTarefaRN::$PERIODICIDADE_EXECUCAO_HORA ); | |
1584 | 1594 | $infraAgendamentoDTO->setStrPeriodicidadeComplemento( 7 ); |
1585 | 1595 | $infraAgendamentoDTO->setStrParametro( null ); |
1586 | 1596 | $infraAgendamentoDTO->setDthUltimaExecucao( null ); |
... | ... | @@ -1618,6 +1628,16 @@ ATENÇÃO: As informações contidas neste e-mail, incluindo seus anexos, podem ser |
1618 | 1628 | |
1619 | 1629 | } |
1620 | 1630 | |
1631 | + //Contem atualizações da versao 2.0.1 | |
1632 | + protected function instalarv201(){ | |
1633 | + | |
1634 | + $this->logar('EXECUTANDO A INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO 2.0.1 DO '.$this->nomeDesteModulo.' NA BASE DO SEI'); | |
1635 | + | |
1636 | + $this->logar('ATUALIZANDO PARÂMETRO '.$this->nomeParametroModulo.' NA TABELA infra_parametro PARA CONTROLAR A VERSÃO DO MÓDULO'); | |
1637 | + BancoSEI::getInstance()->executarSql('UPDATE infra_parametro SET valor = \'2.0.1\' WHERE nome = \'' . $this->nomeParametroModulo . '\' '); | |
1638 | + | |
1639 | + } | |
1640 | + | |
1621 | 1641 | private function existeIdEmailSistemaPecitionamento(){ |
1622 | 1642 | $this->logar('VERIFICANDO A EXISTENCIA DE MODELOS DE EMAIL PARA PETICIONAMENTO'); |
1623 | 1643 | $sql = "select | ... | ... |
sip/scripts/sip_atualizar_versao_modulo_peticionamento.php
... | ... | @@ -11,10 +11,10 @@ require_once dirname(__FILE__).'/../web/Sip.php'; |
11 | 11 | class MdPetAtualizadorSipRN extends InfraRN { |
12 | 12 | |
13 | 13 | private $numSeg = 0; |
14 | - private $versaoAtualDesteModulo = '2.0.0'; | |
14 | + private $versaoAtualDesteModulo = '2.0.1'; | |
15 | 15 | private $nomeDesteModulo = 'MÓDULO DE PETICIONAMENTO E INTIMAÇÃO ELETRÔNICOS'; |
16 | 16 | private $nomeParametroModulo = 'VERSAO_MODULO_PETICIONAMENTO'; |
17 | - private $historicoVersoes = array('0.0.1', '0.0.2', '1.0.3', '1.0.4', '1.1.0', '2.0.0'); | |
17 | + private $historicoVersoes = array('0.0.1', '0.0.2', '1.0.3', '1.0.4', '1.1.0', '2.0.0', '2.0.1'); | |
18 | 18 | |
19 | 19 | public function __construct(){ |
20 | 20 | parent::__construct(); |
... | ... | @@ -76,7 +76,7 @@ class MdPetAtualizadorSipRN extends InfraRN { |
76 | 76 | $this->inicializar('INICIANDO A INSTALAÇÃO/ATUALIZAÇÃO DO '.$this->nomeDesteModulo.' NO SIP VERSÃO '.SIP_VERSAO); |
77 | 77 | |
78 | 78 | //testando versao do framework |
79 | - $numVersaoInfraRequerida = '1.385'; | |
79 | + $numVersaoInfraRequerida = '1.493'; | |
80 | 80 | $versaoInfraFormatada = (int) str_replace('.','', VERSAO_INFRA); |
81 | 81 | $versaoInfraReqFormatada = (int) str_replace('.','', $numVersaoInfraRequerida); |
82 | 82 | |
... | ... | @@ -112,6 +112,7 @@ class MdPetAtualizadorSipRN extends InfraRN { |
112 | 112 | $this->instalarv104(); |
113 | 113 | $this->instalarv110(); |
114 | 114 | $this->instalarv200(); |
115 | + $this->instalarv201(); | |
115 | 116 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SIP'); |
116 | 117 | $this->finalizar('FIM', false); |
117 | 118 | } elseif ( $strVersaoModuloPeticionamento == '0.0.1' ){ |
... | ... | @@ -120,6 +121,7 @@ class MdPetAtualizadorSipRN extends InfraRN { |
120 | 121 | $this->instalarv104(); |
121 | 122 | $this->instalarv110(); |
122 | 123 | $this->instalarv200(); |
124 | + $this->instalarv201(); | |
123 | 125 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SIP'); |
124 | 126 | $this->finalizar('FIM', false); |
125 | 127 | } elseif ( $strVersaoModuloPeticionamento == '0.0.2' ){ |
... | ... | @@ -127,21 +129,29 @@ class MdPetAtualizadorSipRN extends InfraRN { |
127 | 129 | $this->instalarv104(); |
128 | 130 | $this->instalarv110(); |
129 | 131 | $this->instalarv200(); |
132 | + $this->instalarv201(); | |
130 | 133 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SIP'); |
131 | 134 | $this->finalizar('FIM', false); |
132 | 135 | } elseif( in_array($strVersaoModuloPeticionamento, array('1.0.0', '1.0.3')) ){ |
133 | 136 | $this->instalarv104(); |
134 | 137 | $this->instalarv110(); |
135 | 138 | $this->instalarv200(); |
139 | + $this->instalarv201(); | |
136 | 140 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SIP'); |
137 | 141 | $this->finalizar('FIM', false); |
138 | 142 | } elseif ( $strVersaoModuloPeticionamento == '1.0.4' ){ |
139 | 143 | $this->instalarv110(); |
140 | 144 | $this->instalarv200(); |
145 | + $this->instalarv201(); | |
141 | 146 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SIP'); |
142 | 147 | $this->finalizar('FIM', false); |
143 | 148 | } elseif ( $strVersaoModuloPeticionamento == '1.1.0' ){ |
144 | 149 | $this->instalarv200(); |
150 | + $this->instalarv201(); | |
151 | + $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SIP'); | |
152 | + $this->finalizar('FIM', false); | |
153 | + } elseif ( $strVersaoModuloPeticionamento == '2.0.0' ){ | |
154 | + $this->instalarv201(); | |
145 | 155 | $this->logar('INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO '.$this->versaoAtualDesteModulo.' DO '.$this->nomeDesteModulo.' REALIZADA COM SUCESSO NA BASE DO SIP'); |
146 | 156 | $this->finalizar('FIM', false); |
147 | 157 | } else { |
... | ... | @@ -1248,6 +1258,15 @@ class MdPetAtualizadorSipRN extends InfraRN { |
1248 | 1258 | BancoSip::getInstance()->executarSql('UPDATE infra_parametro SET valor = \'2.0.0\' WHERE nome = \''. $this->nomeParametroModulo .'\' ' ); |
1249 | 1259 | } |
1250 | 1260 | |
1261 | + //Contem atualizações da versao 2.0.1 | |
1262 | + protected function instalarv201(){ | |
1263 | + | |
1264 | + $this->logar('EXECUTANDO A INSTALAÇÃO/ATUALIZAÇÃO DA VERSÃO 2.0.1 DO '.$this->nomeDesteModulo.' NA BASE DO SIP'); | |
1265 | + | |
1266 | + $this->logar('ATUALIZANDO PARÂMETRO '.$this->nomeParametroModulo.' NA TABELA infra_parametro PARA CONTROLAR A VERSÃO DO MÓDULO'); | |
1267 | + BancoSip::getInstance()->executarSql('UPDATE infra_parametro SET valor = \'2.0.1\' WHERE nome = \''. $this->nomeParametroModulo .'\' ' ); | |
1268 | + } | |
1269 | + | |
1251 | 1270 | private function adicionarRecursoPerfil($numIdSistema, $numIdPerfil, $strNome, $strCaminho = null){ |
1252 | 1271 | |
1253 | 1272 | $objRecursoDTO = new RecursoDTO(); | ... | ... |