-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
69959a7
commit d519d33
Showing
76 changed files
with
11,293 additions
and
0 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,35 @@ | ||
body { | ||
background-image: url(/portal/resources/customlogin/study.jpg); | ||
background-position-x: center; | ||
background-position-y: center; | ||
background-size: cover; | ||
background-repeat-x: no-repeat; | ||
background-repeat-y: no-repeat; | ||
background-attachment: fixed; | ||
background-origin: initial; | ||
background-clip: initial; | ||
background-color: initial; | ||
} | ||
|
||
img#loginLogo{ | ||
background-color: #fff; | ||
border-radius: 50%; | ||
box-shadow: 0px 0px 2px 0px #9696969c; | ||
} | ||
|
||
div#logotxt{ | ||
background: #d6062b; | ||
font-weight: bold; | ||
padding: 5px; | ||
color: #fff; | ||
border-radius: 5px; | ||
box-shadow: 0px 0px 2px 2px #ffffff; | ||
} | ||
|
||
hr{ | ||
border-top: 1px dashed #fff!important; | ||
} | ||
|
||
div#divCustom{ | ||
background-color: #58595b9e; | ||
} |
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,15 @@ | ||
<div id="divCustom"> | ||
|
||
<div class="row fs-md-space fs-no-padding-right fs-no-padding-left" id="divImgCustom"> | ||
<img src="/portal/resources/customlogin/IconStudent.png" height="200" id="loginLogo"> | ||
</div> | ||
|
||
<div class="row fs-md-space fs-no-padding-right fs-no-padding-left" id="divTextCustom"> | ||
<div id="logotxt"> | ||
<h1><b>TOTVS Fluig Academy</b></h1> | ||
<hr> | ||
<h3 id="logoDescr"></h3> | ||
</div> | ||
</div> | ||
|
||
</div> |
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,15 @@ | ||
$(document).ready(function(){ | ||
var today = new Date(); | ||
var dd = today.getDate(); | ||
var mm = today.getMonth()+1; | ||
var yyyy = today.getFullYear(); | ||
if(dd<10) { | ||
dd='0'+dd | ||
} | ||
if(mm<10) { | ||
mm='0'+mm | ||
} | ||
today = dd + '/' + mm + '/' + yyyy; | ||
|
||
$("#logoDescr").html(today); | ||
}); |
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,3 @@ | ||
<script type="text/javascript" src="/portal/resources/js/jquery/jquery.js"></script> | ||
<script type="text/javascript" src="/portal/resources/customlogin/login.js"></script> | ||
<link type="text/css" rel="stylesheet" href="/portal/resources/customlogin/login.css"/> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,53 @@ | ||
// Dataset Offline | ||
// Responsavel por definir a estrutura das colunas que serão criadas para armazenar os registros | ||
function defineStructure() { | ||
// Exemplo: | ||
|
||
// Código do centro de custo -> Definir que será NUMBER | ||
// Descrição do centro de custo -> Definir que será STRING | ||
|
||
// Código do centro de custo -> Será CHAVE PRIMÁRIA (PK) | ||
// Código do centro de custo -> Será INDEX | ||
} | ||
|
||
// Dataset Offline | ||
// Responsável por atualizar/criar/deletar os registros da tabela | ||
function onSync(lastSyncDate) { | ||
// Exemplo: | ||
|
||
// Definir se será sincronização Comum ou Jornalizada | ||
} | ||
|
||
// Dataset Avançado | ||
// Criar um dataset para consumir dados de fonte externa | ||
// Criar um dataset com informações fixas | ||
function createDataset(fields, constraints, sortFields) { | ||
// Exemplo: | ||
|
||
// JDBC/REST/SOAP | ||
// Datasets Fluig | ||
// Definir dataset fixo | ||
|
||
var dataset = DatasetBuilder.newDataset(); | ||
|
||
// Criar Colunas | ||
dataset.addColumn("Sigla"); // Primeira Coluna | ||
dataset.addColumn("Estado"); // Segunda Coluna | ||
dataset.addColumn("Capital"); // Terceira Coluna | ||
dataset.addColumn("Area"); // Quarta Coluna | ||
|
||
// Criar as linhas | ||
dataset.addRow(new Array("AM","Amazonas","Manaus","123123")); // Primeira Linha | ||
dataset.addRow(new Array("PA","Pará","Belém","5432343")); // Segunda Linha | ||
dataset.addRow(new Array("MT", "Mato Grosso", "Cuiabá", "13456553")); // Terceira Linha | ||
dataset.addRow(new Array("TO","Tocantins","Palmas","633552")); // Quarta Linha | ||
dataset.addRow(new Array("PI","Piauí","Teresina","42332")); // Quinta Linha | ||
|
||
return dataset; | ||
} | ||
|
||
// Dataset Offline | ||
// Definir como será para o armazenamento do celular | ||
function onMobileSync(user) { | ||
|
||
} |
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,52 @@ | ||
function defineStructure() { | ||
|
||
} | ||
function onSync(lastSyncDate) { | ||
|
||
} | ||
function createDataset(fields, constraints, sortFields) { | ||
|
||
|
||
var dataset = DatasetBuilder.newDataset(); | ||
|
||
//Cria as colunas | ||
dataset.addColumn("nome_aprovador"); | ||
dataset.addColumn("codigo_aprovador"); | ||
dataset.addColumn("dt_atualizacao"); | ||
|
||
//Cria a constraint para buscar os formulários ativos | ||
var cst = DatasetFactory.createConstraint("metadata#active", true, true, ConstraintType.MUST); | ||
var constraints = new Array(cst); | ||
|
||
var datasetPrincipal = DatasetFactory.getDataset("fluig_form_gestores", null, constraints, null); | ||
|
||
for (var i = 0; i < datasetPrincipal.rowsCount; i++) { | ||
var documentId = datasetPrincipal.getValue(i, "metadata#id"); | ||
var documentVersion = datasetPrincipal.getValue(i, "metadata#version"); | ||
|
||
//Cria as constraints para buscar os campos filhos, passando o tablename, número da formulário e versão | ||
var c1 = DatasetFactory.createConstraint("tablename", "tb_aprovadores" ,"tb_aprovadores", ConstraintType.MUST); | ||
var c2 = DatasetFactory.createConstraint("metadata#id", documentId, documentId, ConstraintType.MUST); | ||
var c3 = DatasetFactory.createConstraint("metadata#version", documentVersion, documentVersion, ConstraintType.MUST); | ||
var constraintsFilhos = new Array(c1, c2, c3); | ||
|
||
//Busca o dataset | ||
var datasetFilhos = DatasetFactory.getDataset("fluig_form_gestores", null, constraintsFilhos, null); | ||
|
||
for (var j = 0; j < datasetFilhos.rowsCount; j++) { | ||
//Adiciona os valores nas colunas respectivamente. | ||
dataset.addRow( | ||
new Array( | ||
datasetFilhos.getValue(j, "txt_nome_aprovador"), | ||
datasetFilhos.getValue(j, "txt_cod_aprovador"), | ||
datasetPrincipal.getValue(i, "txt_data_atualizacao") | ||
) | ||
); | ||
} | ||
} | ||
|
||
return dataset; | ||
} | ||
function onMobileSync(user) { | ||
|
||
} |
Oops, something went wrong.