-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: tramite de bloco externo e recursos (#424)
Criação do bloco externo e testes automatizados Closes #245 #246 #247 #248 #249 #289 #290 #291 #292 #306 #433 --------- Co-authored-by: Marcelo Linhares Castro <[email protected]>
- Loading branch information
1 parent
0bc3cd7
commit 0059482
Showing
106 changed files
with
7,014 additions
and
1,130 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?php | ||
|
||
require_once DIR_SEI_WEB.'/SEI.php'; | ||
|
||
/** | ||
* Classe gererica de persistência com o banco de dados | ||
*/ | ||
class TramitaEmBlocoProtocoloBD extends InfraBD { | ||
|
||
public function __construct(InfraIBanco $objInfraIBanco) { | ||
parent::__construct($objInfraIBanco); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?php | ||
|
||
require_once DIR_SEI_WEB.'/SEI.php'; | ||
|
||
/** | ||
* Classe gererica de persistência com o banco de dados | ||
*/ | ||
class TramiteEmBlocoBD extends InfraBD { | ||
|
||
public function __construct(InfraIBanco $objInfraIBanco) { | ||
parent::__construct($objInfraIBanco); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
<?php | ||
require_once DIR_SEI_WEB . '/SEI.php'; | ||
|
||
/** | ||
* Data Transfer Object de parâmetros do módulo PEN | ||
*/ | ||
class TramitaEmBlocoProtocoloDTO extends InfraDTO { | ||
|
||
public function getStrNomeTabela() { | ||
return 'md_pen_tramita_bl_protocolo'; | ||
} | ||
|
||
public function getStrNomeSequenciaNativa() { | ||
return 'md_pen_seq_tr_bl_protocolo'; | ||
} | ||
|
||
public function montar() { | ||
|
||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'Id', 'id'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_DBL, 'IdProtocolo', 'id_protocolo'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdTramitaEmBloco', 'id_tramita_em_bloco'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'Sequencia', 'sequencia'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'IdxRelBlocoProtocolo', 'idx_rel_bloco_protocolo'); | ||
|
||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_DBL, 'IdProtocoloProtocolo', 'p1.id_protocolo', 'protocolo p1'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'ProtocoloFormatadoProtocolo', 'p1.protocolo', 'protocolo p1'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'StaProtocoloProtocolo', 'p1.sta_protocolo', 'protocolo p1'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'StaNivelAcessoGlobalProtocolo', 'p1.sta_nivel_acesso_global', 'protocolo p1'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUnidadeBloco', 'tb1.id_unidade', 'md_pen_tramita_em_bloco tb1'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUsuario', 'tb1.id_usuario', 'md_pen_tramita_em_bloco tb1'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'StaTipoBloco', 'sta_tipo', 'md_pen_tramita_em_bloco tb1'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'StaEstadoBloco', 'sta_estado', 'md_pen_tramita_em_bloco tb1'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdProcedimento', 'pe.id_procedimento', 'md_pen_processo_eletronico pe'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'NumeroRegistro', 'pe.numero_registro', 'md_pen_processo_eletronico pe'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdTramite', 'pt.id_tramite', 'md_pen_tramite pt'); | ||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'StaEstadoProtocolo', 'p1.sta_estado', 'protocolo p1'); | ||
|
||
$this->adicionarAtributo(InfraDTO::$PREFIXO_OBJ,'TramiteDTO'); | ||
$this->adicionarAtributo(InfraDTO::$PREFIXO_OBJ,'AtividadeDTO'); | ||
$this->adicionarAtributo(InfraDTO::$PREFIXO_OBJ,'ProtocoloDTO'); | ||
$this->adicionarAtributo(InfraDTO::$PREFIXO_OBJ,'PenLoteProcedimentoDTO'); | ||
$this->adicionarAtributo(InfraDTO::$PREFIXO_STR,'PalavrasPesquisa'); | ||
$this->adicionarAtributo(InfraDTO::$PREFIXO_STR,'SinAberto'); | ||
$this->adicionarAtributo(InfraDTO::$PREFIXO_NUM,'StaIdTarefa'); | ||
$this->adicionarAtributo(InfraDTO::$PREFIXO_STR,'SinObteveRecusa'); | ||
|
||
$this->configurarPK('Id', InfraDTO::$TIPO_PK_NATIVA); | ||
$this->configurarPK('IdProtocolo',InfraDTO::$TIPO_PK_INFORMADO); | ||
$this->configurarPK('IdTramitaEmBloco',InfraDTO::$TIPO_PK_INFORMADO); | ||
|
||
$this->configurarFK('IdProtocolo', 'protocolo p1', 'p1.id_protocolo'); | ||
$this->configurarFK('IdTramitaEmBloco', 'md_pen_tramita_em_bloco tb1', 'tb1.id'); | ||
$this->configurarFK('IdProtocolo', 'md_pen_processo_eletronico pe', 'pe.id_procedimento', InfraDTO::$TIPO_FK_OPCIONAL); | ||
$this->configurarFK('NumeroRegistro', 'md_pen_tramite pt', 'pt.numero_registro', InfraDTO::$TIPO_FK_OPCIONAL); | ||
} | ||
} | ||
?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
<?php | ||
|
||
require_once DIR_SEI_WEB.'/SEI.php'; | ||
|
||
class TramiteEmBlocoDTO extends InfraDTO { | ||
|
||
public function getStrNomeTabela() { | ||
return 'md_pen_tramita_em_bloco'; | ||
} | ||
|
||
public function getStrNomeSequenciaNativa(){ | ||
return 'md_pen_seq_tramita_em_bloco'; | ||
} | ||
|
||
public function montar() { | ||
|
||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, | ||
'Id', | ||
'id'); | ||
|
||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, | ||
'IdUnidade', | ||
'id_unidade'); | ||
|
||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, | ||
'IdUsuario', | ||
'id_usuario'); | ||
|
||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, | ||
'Descricao', | ||
'descricao'); | ||
|
||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, | ||
'IdxBloco', | ||
'idx_bloco'); | ||
|
||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, | ||
'StaTipo', | ||
'sta_tipo'); | ||
|
||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, | ||
'StaEstado', | ||
'sta_estado'); | ||
|
||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, | ||
'SiglaUnidade', | ||
'uc.sigla', | ||
'unidade uc'); | ||
|
||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, | ||
'DescricaoUnidade', | ||
'uc.descricao', | ||
'unidade uc'); | ||
|
||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, | ||
'SiglaUnidadeRelBlocoUnidade', | ||
'ud.sigla', | ||
'unidade ud'); | ||
|
||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, | ||
'DescricaoUnidadeRelBlocoUnidade', | ||
'ud.descricao', | ||
'unidade ud'); | ||
|
||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, | ||
'SiglaUsuario', | ||
'sigla', | ||
'usuario'); | ||
|
||
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, | ||
'NomeUsuario', | ||
'nome', | ||
'usuario'); | ||
|
||
$this->adicionarAtributo(InfraDTO::$PREFIXO_STR,'TipoDescricao'); | ||
$this->adicionarAtributo(InfraDTO::$PREFIXO_STR,'PalavrasPesquisa'); | ||
|
||
$this->configurarPK('Id', InfraDTO::$TIPO_PK_NATIVA ); | ||
|
||
$this->configurarFK('IdUsuario', 'usuario', 'id_usuario'); | ||
$this->configurarFK('IdUnidade', 'unidade uc', 'uc.id_unidade'); | ||
} | ||
} | ||
?> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.