Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: reafatoração de tramite em bloco #514

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 24 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ dist:
@mv $(SEI_MODULO_DIR)/scripts/sei_atualizar_versao_modulo_pen.php $(SEI_SCRIPTS_DIR)/
@mv $(SEI_MODULO_DIR)/scripts/sip_atualizar_versao_modulo_pen.php $(SIP_SCRIPTS_DIR)/
@mv $(SEI_MODULO_DIR)/scripts/verifica_instalacao_modulo_pen.php $(SEI_SCRIPTS_DIR)/
@mv $(SEI_MODULO_DIR)/scripts/MonitoramentoTarefasPEN.php $(SEI_SCRIPTS_DIR)/
@mv $(SEI_MODULO_DIR)/scripts/MonitoramentoEnvioTarefasPEN.php $(SEI_SCRIPTS_DIR)/
@mv $(SEI_MODULO_DIR)/scripts/MonitoramentoRecebimentoTarefasPEN.php $(SEI_SCRIPTS_DIR)/
@mv $(SEI_MODULO_DIR)/scripts/ProcessamentoTarefasPEN.php $(SEI_SCRIPTS_DIR)/
@mv $(SEI_MODULO_DIR)/config/ConfiguracaoModPEN.exemplo.php $(SEI_CONFIG_DIR)/
@mv $(SEI_MODULO_DIR)/config/supervisor.exemplo.ini $(SEI_CONFIG_DIR)/
Expand Down Expand Up @@ -518,26 +519,38 @@ atualizaSequencia:
tramitar-pendencias:
i=1; while [ "$$i" -le 2 ]; do \
echo "Executando T1 $$i"; \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php & \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoEnvioTarefasPEN.php;
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php & \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoEnvioTarefasPEN.php;
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php; \
i=$$((i + 1));\
done & i=1; while [ "$$i" -le 2 ]; do \
echo "Executando T2 $$i"; \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php & \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoEnvioTarefasPEN.php;
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php & \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoEnvioTarefasPEN.php;
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php; \
i=$$((i + 1));\
done

tramitar-pendencias-simples:
@$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php;
tramitar-pendencias-simples: tramitar-pendencias-simples-org1 tramitar-pendencias-simples-org2
@$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php;

tramitar-pendencias-simples-org1:
@$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoEnvioTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php;

tramitar-pendencias-simples-org2:
@$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoEnvioTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php;

tramitar-pendencias-silent:
@echo 'Executando monitoramento de pendĂŞncias do Org1 e Org2'
@i=1; while [ "$$i" -le 3000 ]; do \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php > /dev/null 2>&1 & \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoTarefasPEN.php > /dev/null 2>&1 ; \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoEnvioTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org1-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoEnvioTarefasPEN.php; \
$(CMD_COMPOSE_FUNC) exec org2-http php /opt/sei/scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php; \
i=$$((i + 1));\
done

Expand Down
10 changes: 3 additions & 7 deletions src/PENIntegracao.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function montarBotaoControleProcessos() {
$objSessaoSEI = SessaoSEI::getInstance();
$strAcoesProcedimento = "";

$bolAcaoGerarPendencia = $objSessaoSEI->verificarPermissao('pen_expedir_lote');
$bolAcaoGerarPendencia = $objSessaoSEI->verificarPermissao('pen_expedir_bloco');

if ($bolAcaoGerarPendencia) {
$objPaginaSEI = PaginaSEI::getInstance();
Expand Down Expand Up @@ -852,12 +852,8 @@ public function processarControlador($strAcao)
require_once dirname(__FILE__) . '/pen_envio_processo_lote_cadastrar.php';
break;

case 'pen_expedir_lote':
require_once dirname(__FILE__) . '/pen_expedir_lote.php';
break;

case 'pen_expedir_lote_listar':
require_once dirname(__FILE__) . '/pen_expedir_lote_listar.php';
case 'pen_expedir_bloco':
require_once dirname(__FILE__) . '/pen_expedir_bloco.php';
break;

case 'pen_map_envio_parcial_listar':
Expand Down
14 changes: 14 additions & 0 deletions src/bd/PenBlocoProcessoBD.php
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 PenBlocoProcessoBD extends InfraBD {

public function __construct(InfraIBanco $objInfraIBanco) {
parent::__construct($objInfraIBanco);
}

}
30 changes: 30 additions & 0 deletions src/bd/PenMetaBD.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,36 @@ public function adicionarChaveUnica($strNomeTabela = '', $arrNomeChave = array()
->executarSql('ALTER TABLE '.$strNomeTabela.' ADD CONSTRAINT UK_'.$strNomeTabela.' UNIQUE('.implode(', ', $arrNomeChave).')');
}

public function novoRenomearTabela($strNomeTabelaAtual, $strNomeTabelaNovo){

if($this->isTabelaExiste($strNomeTabelaAtual)) {

$objInfraBanco = $this->getObjInfraIBanco();
$strTableDrive = get_parent_class($objInfraBanco);
$strQuery = '';

switch ($strTableDrive) {
case 'InfraMySqli':
$strQuery = sprintf("ALTER TABLE `%s` RENAME TO `%s`", $strNomeTabelaAtual, $strNomeTabelaNovo);
break;

case 'InfraSqlServer':
$strQuery = sprintf("sp_rename '%s', '%s'", $strNomeTabelaAtual, $strNomeTabelaNovo);
break;

case 'InfraOracle':
$strQuery = sprintf("RENAME %s TO %s", $strNomeTabelaAtual, $strNomeTabelaNovo);
break;

case 'InfraPostgreSql':
$strQuery = sprintf("ALTER TABLE %s RENAME TO %s", $strNomeTabelaAtual, $strNomeTabelaNovo);
break;
}

$objInfraBanco->executarSql($strQuery);
}
}

public function renomearTabela($strNomeTabelaAtual, $strNomeTabelaNovo){

if($this->isTabelaExiste($strNomeTabelaAtual)) {
Expand Down
3 changes: 2 additions & 1 deletion src/bin/verificar-reboot-fila-sem-supervisor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ r=$?

if [ "$r" == "2" ]; then
echo "Retornou com erro critico. Reboot... $(date)"
kill $(ps -ef | grep "MonitoramentoTarefasPEN.php" | grep -v grep | awk '{print $2}')
kill $(ps -ef | grep "MonitoramentoEnvioTarefasPEN.php" | grep -v grep | awk '{print $2}')
kill $(ps -ef | grep "MonitoramentoRecebimentoTarefasPEN.php" | grep -v grep | awk '{print $2}')
echo "rebootado"
rm -rf pendencias.json
fi
Expand Down
18 changes: 18 additions & 0 deletions src/config/supervisor.exemplo.ini
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,24 @@ stdout_logfile=/var/log/supervisor/sei_monitorar_pendencias.log-out
stderr_logfile=/var/log/supervisor/sei_monitorar_pendencias.log-err
stderr_events_enabled=true

[program:monitoramento_envio_tarefas_pen]
command=/usr/bin/php -c /etc/php.ini %(here)s/../../scripts/mod-pen/MonitoramentoRecebimentoTarefasPEN.php --monitorar --segundo-plano
directory=/opt/sei/web
user=root
numprocs=1
autostart=true
autorestart=true
startsecs=5
startretries=1000
log_stdout=true
log_stderr=true
logfile_maxbytes=10MB
logfile_backups=50
logfile=/var/log/supervisor/sei_monitorar_pendencias.log
stdout_logfile=/var/log/supervisor/sei_monitorar_pendencias.log-out
stderr_logfile=/var/log/supervisor/sei_monitorar_pendencias.log-err
stderr_events_enabled=true

[program:processamento_tarefas_pen]
command=/usr/bin/php -c /etc/php.ini %(here)s/../../scripts/mod-pen/ProcessamentoTarefasPEN.php --worker=%(process_num)02d
directory=/opt/sei/web
Expand Down
83 changes: 83 additions & 0 deletions src/dto/PenBlocoProcessoDTO.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
<?php

require_once DIR_SEI_WEB . '/SEI.php';

/**
* Data Transfer Object de parâmetros do módulo PEN
*
*
*/
class PenBlocoProcessoDTO extends InfraDTO
{

public function getStrNomeTabela()
{
return 'md_pen_bloco_processo';
}

public function getStrNomeSequenciaNativa() {
return 'md_pen_seq_bloco_processo';
}

public function montar()
{
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdBlocoProcesso', 'id_bloco_processo');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdRepositorioDestino', 'id_repositorio_destino');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'RepositorioDestino', 'str_repositorio_destino');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdRepositorioOrigem', 'id_repositorio_origem');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdUnidadeDestino', 'id_unidade_destino');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'UnidadeDestino', 'str_unidade_destino');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdUnidadeOrigem', 'id_unidade_origem');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdUsuario', 'id_usuario');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdUnidade', 'id_unidade');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_DTH, 'Registro', 'dth_registro');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_DTH, 'Atualizado', 'dth_atualizado');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_DTH, 'Envio', 'dth_envio');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdBloco', 'id_bloco');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_DBL, 'IdProtocolo', 'id_protocolo');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'Sequencia', 'sequencia');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdAndamento', 'id_andamento');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdAtividade', 'id_atividade_expedicao');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'Tentativas', 'tentativas');

$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_DBL, 'IdProtocoloProtocolo', 'p1.id_protocolo', 'protocolo p1');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'ProtocoloFormatadoProtocolo', 'p1.protocolo_formatado', '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_bloco tb1');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUsuario', 'tb1.id_usuario', 'md_pen_bloco tb1');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'StaTipoBloco', 'sta_tipo', 'md_pen_bloco tb1');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'StaEstadoBloco', 'tb1.sta_estado', 'md_pen_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->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'NomeUsuario', 'nome', 'usuario');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'NomeUnidade', 'nome', 'unidade');

$this->adicionarAtributo(InfraDTO::$PREFIXO_ARR, 'ListaProcedimento');

$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->adicionarAtributo(InfraDTO::$PREFIXO_STR, 'IdxRelBlocoProtocolo');

$this->configurarPK('IdBlocoProcesso', InfraDTO::$TIPO_PK_NATIVA);
$this->configurarPK('IdProtocolo', InfraDTO::$TIPO_PK_INFORMADO);
$this->configurarPK('IdBloco', InfraDTO::$TIPO_PK_INFORMADO);

$this->configurarFK('IdUsuario', 'usuario', 'id_usuario', InfraDTO::$TIPO_FK_OPCIONAL);
$this->configurarFK('IdUnidade', 'unidade', 'id_unidade', InfraDTO::$TIPO_FK_OPCIONAL);

$this->configurarFK('IdProtocolo', 'protocolo p1', 'p1.id_protocolo');
$this->configurarFK('IdBloco', 'md_pen_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);
}
}
43 changes: 0 additions & 43 deletions src/dto/PenExpedirLoteDTO.php

This file was deleted.

22 changes: 11 additions & 11 deletions src/dto/PenLoteProcedimentoDTO.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ public function montar()
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdAtividade', 'id_atividade_expedicao');
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'Tentativas', 'tentativas');

$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdLote', 'id_lote', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdRepositorioDestino', 'id_repositorio_destino', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'RepositorioDestino', 'str_repositorio_destino', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdRepositorioOrigem', 'id_repositorio_origem', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUnidadeDestino', 'id_unidade_destino', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'UnidadeDestino', 'str_unidade_destino', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUnidadeOrigem', 'id_unidade_origem', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUsuario', 'id_usuario', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUnidade', 'id_unidade', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_DTH, 'Registro', 'dth_registro', 'md_pen_expedir_lote');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdLote', 'id_lote', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdRepositorioDestino', 'id_repositorio_destino', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'RepositorioDestino', 'str_repositorio_destino', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdRepositorioOrigem', 'id_repositorio_origem', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUnidadeDestino', 'id_unidade_destino', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'UnidadeDestino', 'str_unidade_destino', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUnidadeOrigem', 'id_unidade_origem', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUsuario', 'id_usuario', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM, 'IdUnidade', 'id_unidade', 'md_pen_bloco_processo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_DTH, 'Registro', 'dth_registro', 'md_pen_bloco_processo');

$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'ProcedimentoFormatado', 'protocolo_formatado', 'protocolo');
$this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR, 'NomeUsuario', 'nome', 'usuario');

$this->configurarPK('IdLote', InfraDTO::$TIPO_PK_INFORMADO);
$this->configurarPK('IdProcedimento', InfraDTO::$TIPO_PK_INFORMADO);

$this->configurarFK('IdLote', 'md_pen_expedir_lote', 'id_lote');
$this->configurarFK('IdLote', 'md_pen_bloco_processo', 'id_lote');
$this->configurarFK('IdProcedimento', 'procedimento', 'id_procedimento');
$this->configurarFK('IdProcedimento', 'protocolo', 'id_protocolo');
$this->configurarFK('IdUsuario', 'usuario', 'id_usuario');
Expand Down
Loading
Loading