-
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: limitação de repositorio e unidade para envio de processos (#511)
Co-authored-by: Mauro Costa <[email protected]>
- Loading branch information
Showing
19 changed files
with
1,362 additions
and
65 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<? | ||
|
||
require_once DIR_SEI_WEB.'/SEI.php'; | ||
|
||
class PenUnidadeRestricaoBD 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,43 @@ | ||
<?php | ||
|
||
require_once DIR_SEI_WEB . '/SEI.php'; | ||
|
||
/** | ||
* Cria uma tabela de relação 1 para 1 para unidade com o intuito de adicionar | ||
* novos campos de configuração para cada unidade utilizado somente pelo módulo | ||
* PEN | ||
* | ||
* Crio a classe com extendida de UnidadeDTO em função dos métodos de UnidadeRN, | ||
* que força o hinting para UnidadeDTO, então não gera erro usar PenUnidadeDTO | ||
* com o UnidadeBD e UnidadeRN | ||
* | ||
* | ||
* @see http://php.net/manual/pt_BR/language.oop5.typehinting.php | ||
*/ | ||
class PenUnidadeRestricaoDTO extends UnidadeDTO | ||
{ | ||
|
||
public function getStrNomeTabela() | ||
{ | ||
return 'md_pen_unidade_restricao'; | ||
} | ||
|
||
public function getStrNomeSequenciaNativa() | ||
{ | ||
return 'md_pen_seq_unidade_restricao'; | ||
} | ||
|
||
public function montar() | ||
{ | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'Id', 'id'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdUnidade', 'id_unidade'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdUnidadeRH', 'id_unidade_rh'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdUnidadeRestricao', 'id_unidade_restricao'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'NomeUnidadeRestricao', 'nome_unidade_restricao'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_NUM, 'IdUnidadeRHRestricao', 'id_unidade_rh_restricao'); | ||
$this->adicionarAtributoTabela(InfraDTO::$PREFIXO_STR, 'NomeUnidadeRHRestricao', 'nome_unidade_rh_restricao'); | ||
$this->configurarPK('Id', InfraDTO::$TIPO_PK_NATIVA); | ||
|
||
$this->configurarFK('IdUnidade', 'unidade', 'id_unidade'); | ||
} | ||
} |
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
Oops, something went wrong.