-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #393 from portabilis/portabilis-patch-2018-08-24
Portabilis patch 24/08/2018
- Loading branch information
Showing
49 changed files
with
2,865 additions
and
959 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,124 @@ | ||
<?php | ||
use iEducar\Modules\AuditoriaGeral\Model\Operacoes; | ||
use iEducar\Modules\AuditoriaGeral\Model\JsonToHtmlTable; | ||
require_once 'include/clsBase.inc.php'; | ||
require_once 'include/clsDetalhe.inc.php'; | ||
require_once 'include/clsBanco.inc.php'; | ||
require_once 'include/pmieducar/geral.inc.php'; | ||
require_once 'Portabilis/Date/Utils.php'; | ||
|
||
class clsIndexBase extends clsBase | ||
{ | ||
public function Formular() | ||
{ | ||
$this->SetTitulo($this->_instituicao . ' i-Educar - Auditoria geral'); | ||
$this->processoAp = 9998851; | ||
} | ||
} | ||
class indice extends clsDetalhe | ||
{ | ||
public $titulo; | ||
|
||
public $id; | ||
|
||
public function Gerar() | ||
{ | ||
$this->titulo = 'Auditoria geral - Detalhe'; | ||
$this->addBanner( | ||
'imagens/nvp_top_intranet.jpg', | ||
'imagens/nvp_vert_intranet.jpg', | ||
'Intranet' | ||
); | ||
|
||
$this->id = $this->getQueryString('id'); | ||
|
||
$objAuditoriaGeral = new clsModulesAuditoriaGeral(); | ||
$objAuditoriaGeral->id = $this->id; | ||
$registro = array_shift($objAuditoriaGeral->lista()); | ||
$this->redirectIf(!$registro, 'educar_auditoria_geral_lst.php'); | ||
|
||
$usuario = new clsFuncionario($registro['usuario_id']); | ||
$usuario = $usuario->detalhe(); | ||
|
||
foreach ($registro as $key => $value) { | ||
$this->$key = $value; | ||
} | ||
|
||
$this->addDetalhe([ | ||
'ID da auditoria', | ||
$registro["id"] | ||
]); | ||
|
||
$this->addDetalhe([ | ||
'Código do registro', | ||
$registro["codigo"] | ||
]); | ||
|
||
$operacoes = Operacoes::getDescriptiveValues(); | ||
|
||
$this->addDetalhe([ | ||
'Operação', | ||
$operacoes[$registro["operacao"]] | ||
]); | ||
|
||
$this->addDetalhe([ | ||
'Rotina', | ||
$registro['rotina'] | ||
]); | ||
|
||
$this->addDetalhe([ | ||
'Data Hora', | ||
Portabilis_Date_Utils::pgSQLToBr($registro['data_hora']) | ||
]); | ||
|
||
$this->addDetalhe([ | ||
'Valor Antigo', | ||
JsonToHtmlTable::transformJsonToHtmlTable($registro['valor_antigo']) | ||
]); | ||
|
||
$this->addDetalhe([ | ||
'Valor Novo', | ||
JsonToHtmlTable::transformJsonToHtmlTable($registro['valor_novo']) | ||
]); | ||
|
||
$this->addDetalhe([ | ||
'<b>Dados do usuário</b>' | ||
]); | ||
|
||
$this->addDetalhe([ | ||
'Código', | ||
$registro['usuario_id'] | ||
]); | ||
|
||
$this->addDetalhe([ | ||
'Matrícula', | ||
$usuario['matricula'] | ||
]); | ||
|
||
$pessoa = new clsPessoaFisica($registro['usuario_id']); | ||
$pessoa = $pessoa->detalhe(); | ||
|
||
$this->addDetalhe([ | ||
'Nome', | ||
$pessoa['nome'] | ||
]); | ||
|
||
$this->url_cancelar = "educar_auditoria_geral_lst.php"; | ||
$this->largura = "100%"; | ||
|
||
$this->breadcrumb('Auditoria geral',['educar_configuracoes_index.php' => 'Configurações']); | ||
} | ||
|
||
} | ||
|
||
// Instancia objeto de página | ||
$pagina = new clsIndexBase(); | ||
|
||
// Instancia objeto de conteúdo | ||
$miolo = new indice(); | ||
|
||
// Atribui o conteúdo à página | ||
$pagina->addForm($miolo); | ||
|
||
// Gera o código HTML | ||
$pagina->MakeAll(); |
Oops, something went wrong.