Skip to content

Commit

Permalink
Merge pull request #393 from portabilis/portabilis-patch-2018-08-24
Browse files Browse the repository at this point in the history
Portabilis patch 24/08/2018
  • Loading branch information
munizeverton authored Aug 27, 2018
2 parents a045dbc + 1e6b710 commit 96dd44f
Show file tree
Hide file tree
Showing 49 changed files with 2,865 additions and 959 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.12",
"phpunit/phpunit": "~6.5",
"guzzlehttp/guzzle": "^6.3",
"phpunit/dbunit": "3.0.*",
"phpunit/phpunit": "~6.5",
"phpunit/phpunit-selenium": "4.1.*"
},
"autoload": {
Expand Down
233 changes: 232 additions & 1 deletion composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

124 changes: 124 additions & 0 deletions ieducar/intranet/educar_auditoria_geral_det.php
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();
Loading

0 comments on commit 96dd44f

Please sign in to comment.