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

289 menu tramita #303

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
19 changes: 16 additions & 3 deletions src/PENIntegracao.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

// Identifica��o da vers�o do m�dulo. Este dever� ser atualizado e sincronizado com constante VERSAO_MODULO
define("VERSAO_MODULO_PEN", "3.3.0");
define("VERSAO_MODULO_PEN", "3.4.0");

class PENIntegracao extends SeiIntegracao
{
Expand Down Expand Up @@ -158,6 +158,8 @@ public function montarBotaoProcesso(ProcedimentoAPI $objSeiIntegracaoDTO)
$strAcoesProcedimento .= '</a>';
}

$strAcoesProcedimento .= '<a>TESTE AQUII</a>';

return array($strAcoesProcedimento);
}

Expand Down Expand Up @@ -375,6 +377,11 @@ public function processarControlador($strAcao)
require_once dirname(__FILE__) . '/pen_procedimento_expedido_listar.php';
break;

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


case 'pen_map_tipo_documento_envio_listar';
case 'pen_map_tipo_documento_envio_excluir';
case 'pen_map_tipo_documento_envio_desativar';
Expand Down Expand Up @@ -474,9 +481,15 @@ public function processarControlador($strAcao)
require_once dirname(__FILE__) . '/pen_expedir_lote.php';
break;


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

// novo
case 'md_pen_tramita_em_bloco':
require_once dirname(__FILE__) . '/pen_tramite_bloco_listar.php';
break;

default:
return false;
Expand Down
14 changes: 14 additions & 0 deletions src/bd/TramiteEmBlocoBD.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 TramiteEmBlocoBD extends InfraBD {

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

}
139 changes: 139 additions & 0 deletions src/dto/TramiteEmBlocoDTO.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<?
/**
* FABRICA FIRST DECISION
*
* 24/05/2023
*
* Vers�o do Gerador de C�digo: 3.4.0
*
* Vers�o no CVS: $Id$
*/

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_NUM,
// 'IdGrupoBlocoRelBlocoUnidade',
// 'id_grupo_bloco',
// 'rel_bloco_unidade');

// $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM,
// 'IdUnidadeRelBlocoUnidade',
// 'id_unidade',
// 'rel_bloco_unidade');

// $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR,
// 'SinPrioridadeRelBlocoUnidade',
// 'sin_prioridade',
// 'rel_bloco_unidade');

// $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR,
// 'SinRevisaoRelBlocoUnidade',
// 'sin_revisao',
// 'rel_bloco_unidade');

// $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR,
// 'SinComentarioRelBlocoUnidade',
// 'sin_comentario',
// 'rel_bloco_unidade');

// $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_NUM,
// 'IdUsuarioAtribuicaoRelBlocoUnidade',
// 'id_usuario_atribuicao',
// 'rel_bloco_unidade');

// $this->adicionarAtributoTabelaRelacionada(InfraDTO::$PREFIXO_STR,
// 'SinRetornadoRelBlocoUnidade',
// 'sin_retornado',
// 'rel_bloco_unidade');

$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,'StaEstadoDescricao');
// //$this->adicionarAtributo(InfraDTO::$PREFIXO_STR,'SinVazio');
// $this->adicionarAtributo(InfraDTO::$PREFIXO_STR,'PalavrasPesquisa');
// $this->adicionarAtributo(InfraDTO::$PREFIXO_NUM,'Documentos');
// $this->adicionarAtributo(InfraDTO::$PREFIXO_NUM,'Assinados');

// $this->adicionarAtributo(InfraDTO::$PREFIXO_OBJ,'RelBlocoUnidadeDTO');
// $this->adicionarAtributo(InfraDTO::$PREFIXO_ARR,'ObjRelBlocoUnidadeDTO');
// $this->adicionarAtributo(InfraDTO::$PREFIXO_ARR,'ObjRelBlocoProtocoloDTO');
// $this->adicionarAtributo(InfraDTO::$PREFIXO_STR,'StaTipoAtribuicao');

$this->configurarPK('Id', InfraDTO::$TIPO_PK_NATIVA );

// $this->configurarFK('Id', 'rel_bloco_unidade', 'id');
$this->configurarFK('IdUsuario', 'usuario', 'id_usuario');
$this->configurarFK('IdUnidade', 'unidade uc', 'uc.id_unidade');
// $this->configurarFK('IdUnidadeRelBlocoUnidade', 'unidade ud', 'ud.id_unidade');
}
}
?>
Loading