Primeiro commit fluig
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<projectDescription>
|
||||
<name>Recrutamento e Seleção</name>
|
||||
<comment></comment>
|
||||
<projects>
|
||||
</projects>
|
||||
<buildSpec>
|
||||
<buildCommand>
|
||||
<name>org.eclipse.wst.validation.validationbuilder</name>
|
||||
<arguments>
|
||||
</arguments>
|
||||
</buildCommand>
|
||||
</buildSpec>
|
||||
<natures>
|
||||
<nature>org.eclipse.wst.jsdt.core.jsNature</nature>
|
||||
<nature>com.totvs.tds.ecm.designer.nature</nature>
|
||||
</natures>
|
||||
</projectDescription>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<classpath>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.JRE_CONTAINER"/>
|
||||
<classpathentry kind="con" path="org.eclipse.wst.jsdt.launching.baseBrowserLibrary"/>
|
||||
<classpathentry kind="src" path=""/>
|
||||
<classpathentry kind="con" path="com.totvs.tds.ecm.designer.libjs.ByYouECMBrowserLibrary"/>
|
||||
<classpathentry kind="output" path=""/>
|
||||
</classpath>
|
||||
@@ -0,0 +1,105 @@
|
||||
function defineStructure() {
|
||||
|
||||
}
|
||||
function onSync(lastSyncDate) {
|
||||
|
||||
}
|
||||
function createDataset(fields, constraints, sortFields) {
|
||||
|
||||
var ds = DatasetBuilder.newDataset();
|
||||
|
||||
ds.addColumn("codigo");
|
||||
ds.addColumn("filial");
|
||||
ds.addColumn("estabelecimento");
|
||||
ds.addColumn("cep");
|
||||
ds.addColumn("logradouro");
|
||||
ds.addColumn("numero");
|
||||
ds.addColumn("bairro");
|
||||
ds.addColumn("cidade");
|
||||
ds.addColumn("estado");
|
||||
|
||||
|
||||
|
||||
ds.addRow(new Array("010101","4494", "ESCRITÓRIO MATRIZ","57035-030","RUA DESPORTISTA HUMBERTO GUIMARAES","343","PONTA VERDE","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010102","3546", "LJ BIG BOMPREÇO GRUTA","57052-000","AVENIDA FERNANDES LIMA","3700","GRUTA DE LOURDES","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010103","4560", "LJ MACEIÓ SHOPPING TERREO","57031-532","AVENIDA GUSTAVO PAIVA","2900","MANGABEIRAS","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010104","5699", "LJ MOREIRA LIMA","57020-000","RUA MOREIRA LIMA","93","CENTRO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010106","12522", "LJ MACEIÓ SHOPPING EXPANSÃO","57031-530","AVENIDA GUSTAVO PAIVA","2990","MANGABEIRAS","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010107","12828", "LJ GBARBOSA S.MARIS","57036-550","AV ENG. PAULO BRANDÃO NOGUEIRA","S/N","JATIÚCA","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010108","12838", "LJ RIO LARGO","57100-000","AV PRES GETULIO VARGAS","148","CENTRO","RIO LARGO","AL"));
|
||||
ds.addRow(new Array("010109","21647", "QUIOSQUE CARAJÁS MANGABEIRAS","57037-901","AV COMENDADOR GUSTAVO PAIVA","S/N","MANGABEIRAS","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010110","12817", "LJ SHOPPING PÁTIO","57073-470","AV MENINO MARCELO","3800","CIDADE UNIVERSITÁRIA","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010111","12824", "QUIOSQUE GBARBOSA TABULEIRO","57061-110","AVENIDA MACEIÓ","S/N","TABULEIRO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010112","12823", "LJ PONTA VERDE","57035-330","RUA DEPUTADO JOSÉ LAGES","431","PONTA VERDE","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010113","20858", "QUIOSQUE SUPER GIRO","57010-003","AVENIDA SIQUEIRA CAMPOS","1368","PRADO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010114","12820", "LJ ATACADÃO TABULEIRO","57082-160","AV DOUTOR DURVAL DE GOIS MONTEIRO","12650","TABULEIRO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010115","12830", "LJ LIVRAMENTO","57020-030","RUA DO LIVRAMENTO","24","CENTRO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010117","19103", "LJ UNICOMPRA PONTA VERDE","57035-060","RUA DURVAL GUIMARÃES","S/N","PONTA VERDE","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010118","12826", "LJ ASSAÍ MANGABEIRAS","57037-532","AV COMENDADOR GUSTAVO PAIVA","3261","MANGABEIRAS","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010119","12829", "LJ JACINTINHO","57041-000","RUA CLETO CAMPELO","2394","JACINTINHO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010120","12818", "LJ GBARBOSA SERRARIA","57046-000","AVENIDA MENINO MARCELO","9730","SERRARIA","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010121","13427", "LJ SHOPPING CIDADE","57055-000","AVENIDA FERNANDES LIMA","679","FAROL","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010124","14617", "LJ PARQUE SHOPPING","57038-000","AVENIDA GUSTAVO PAIVA","5945","CRUZ DAS ALMAS",",MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010126","14668", "LJ MIX MATHEUS ANTARES","57038-410","AVENIDA MENINO MARCELO","5300","ANTARES","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010128","20006", "LJ SÃO SEBASTIÃO","43850-000","PRAÇA DOZE DE OUTUBRO","65","CENTRO","SÃO SEBASTIÃO DO PASSÉ","BA"));
|
||||
ds.addRow(new Array("010130","20009", "LJ CANDEIAS BAIXO","43815-050","AVENIDA ANTONIO PATTERSON","196","TRIÂNGULO","CANDEIAS","BA"));
|
||||
ds.addRow(new Array("010131","20005", "LJ CANDEIAS CIMA","43805-000","RUA 13 DE MAIO","147","CENTRO","CANDEIAS","BA"));
|
||||
ds.addRow(new Array("010132","20056", "LJ SIMÕES FILHO","43700-000","AV LUÍS EDUARDO MAGALHÃES","109","CENTRO","SIMÕES FILHO","BA"));
|
||||
ds.addRow(new Array("010133","20057", "LJ CONCEIÇÃO COITÉ","48730-000","RUA DR AMÂNCIO MOTA","30","CENTRO","CONCEIÃO DO COITÉ","BA"));
|
||||
ds.addRow(new Array("010134","20441", "LJ LAGARTO","49400-000","AVENIDA LEANDRO MACIEL","36","CENTRO","LAGARTO","SE"));
|
||||
ds.addRow(new Array("010135","20968", "HIB ITABAIANINHA","49290-000","PRAÇA OLÍMPIO CAMPOS","154","CENTRO","ITABAIANINHA","SE"));
|
||||
ds.addRow(new Array("010136","20969", "HIB MARECHAL DEODORO","57160-000","RUA DR TAVARES BASTOS","03","CENTRO","MARECHAL DEODORO","AL"));
|
||||
ds.addRow(new Array("010137","20970", "VD SÃO SEBASTIÃO","43850-000","PRAÇA DOZE DE OUTUBRO","116","CENTRO","SÃO SEBASTIÃO DO PASSÉ","BA"));
|
||||
ds.addRow(new Array("010138","20986", "HIB OLINDINA","48470-000","AVENIDA ANTONIO MANGABEIRA","84","CENTRO","OLINDINA","BA"));
|
||||
ds.addRow(new Array("010139","20989", "HIB QUEIMADAS","48860-000","PRAÇA CORONEL FRANCISCO LANTYER","21","CENTRO","QUEIMADAS","BA"));
|
||||
ds.addRow(new Array("010140","20989", "HIB ENTRE RIOS","48180-000","AVENIDA JURACY MAGALHÃES","320","CENTRO","ENTRE RIOS","BA"));
|
||||
ds.addRow(new Array("010141","20991", "HIB CAMPO ALEGRE","57250-000","RUA DO COMÉRCIO","49","CENTRO","CAMPO ALEGRE","AL"));
|
||||
ds.addRow(new Array("010142","20992", "ER CONCEIÇÃO COITÉ","48730-000","RUA DR AMANCIO MOTA","35","CENTRO","CONCEIÇÃO DO COITÉ","BA"));
|
||||
ds.addRow(new Array("010143","20993", "ER CANDEIAS","43815-010","AV ANTONIO PATTERSON","213","TRIANGULO","CANDEIAS","BA"));
|
||||
ds.addRow(new Array("010144","20994", "ER SIMÕES FILHO","43700-000","AV LUÍS EDUARDO MAGALHÃES","109","CENTRO","SIMÕES FILHO","BA"));
|
||||
ds.addRow(new Array("010145","20995", "ER LAGARTO","49400-000","AVENIDA LEANDRO MACIEL","36","CENTRO","LAGARTO","SE"));
|
||||
ds.addRow(new Array("010146","20996", "ER ANTARES","57083-048","AV ANTONIO LISBOA DE AMORIM","220","ANTARES","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010147","20997", "ER PITANGUINHA","57052-050","AVENIDA FERNANDES LIMA","840","PITANGUINHA","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010148","20998", "CD TABULEIRO","57073-482","ESTRADA DA CODEAL","770","TABULEIRO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010149","20999", "HIB ESPLANADA","48370-000","PRAÇA LADISLAU CAVALCANTE","31","CENTRO","ESPLANADA","BA"));
|
||||
ds.addRow(new Array("010150","21000", "HIB SANTALUZ","48880-000","RUA RIO BRANCO","96","CENTRO","SANTALUZ","BA"));
|
||||
ds.addRow(new Array("010151","21001", "HIB RIO REAL","48330-000","PC SEN ANTONIO CARLOS MAGALHÃES","146","CENTRO","RIO REAL","BA"));
|
||||
ds.addRow(new Array("010152","21007", "TÔ QUE TÔ MACEIÓ CENTRO","57020-220","AVENIDA MOREIRA LIMA","293","CENTRO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010153","21068", "LJ ATAKAREJO SIMÕES FILHO","43700-000","AV ENG ELMO SEREJO DE FARIAS","2073","CONJ HAB VIDA NOVA","SIMÕES FILHO","BA"));
|
||||
ds.addRow(new Array("010154","21277", "LJ GBARBOSA SOCORRO","49160-000","AVENIDA 1","13","CONJ JOAO ALVES FILHO","NOSSA SENHORA DO SOCORRO","SE"));
|
||||
ds.addRow(new Array("010155","21278", "ER SOCORRO","49140-000","AVENIDA COLETORA A","597","CONJ MARCOS FREIRE I","NOSSA SENHORA DO SOCORRO","SE"));
|
||||
ds.addRow(new Array("010156","21495", "HIB BARRA DOS COQUEIROS","49140-000","AVENIDA OCEANICA","506","ANTONIO PEDRO","BARRA DOS COQUEIROS","SE"));
|
||||
ds.addRow(new Array("010157","21296", "LJ SHOPPING PRÊMIO SOCORRO","49160-000","AVENIDA COLETORA A","S/N","CONJ MARCOS FREIRE I","NOSSA SENHORA DO SOCRRO","SE"));
|
||||
ds.addRow(new Array("010159","21381", "LJ CAPIM GROSSO","44695-000","AV ACM","121","CENTRO","CAPIM-GROSSO","BA"));
|
||||
ds.addRow(new Array("010160","21383", "ER CAPIM GROSSO","44695-000","AV ACM","121","CENTRO","CAPIM-GROSSO","BA"));
|
||||
ds.addRow(new Array("010161","21375", "HIB IPIRÁ","44600-000","AVENIDA CESÁR CABRAL","15","CENTRO","IPIRÁ","BA"));
|
||||
ds.addRow(new Array("010162","21624", "MIX MATEUS TRAPICHE","57010-000","AVENIDA SIQUEIRA CAMPOS","1295","PRADO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010163","22448", "ER CAMPO ALEGRE","57250-000","RUA DO COMÉRCIO","49","CENTRO","CAMPO ALEGRE","AL"));
|
||||
ds.addRow(new Array("010164","23475", "MIX MATEUS TABULEIRO","57082-160","AV DOUTOR DURVAL DE GOIS MONTEIRO","9207","TABULEIRO","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010165","22541", "ER RIO LARGO","57100-000","RUA JUDITH PAIVA","445","CENTRO","RIO LARGO","AL"));
|
||||
ds.addRow(new Array("010166","AMG", "AMG SERRARIA","57046-000","AVENIDA MENINO MARCELO","S/N","SERRARIA","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("010167","23156", "SHOPPING CENTRO SUL","49400-000","AV CONTORNO BR","3795","SÃO JOSE","LAGARTO","SE"));
|
||||
ds.addRow(new Array("030101","910173", "QDB PARQUE SHOPPING","57038-000","AVENIDA COMENDADOR GUSTAVO PAIVA","5945","CRUZ DAS ALMAS","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("030102","910291", "QDB MACEIO SHOPPING","57037-532","AVENIDA COMENDADOR GUSTAVO PAIVA","2900","MANGABEIRAS","MACEIÓ","AL"));
|
||||
ds.addRow(new Array("070101","23713", "MATRIZ - ZEFERINO CORREIA","45000-520","RUA ZEFERINO CORREIA","17","CENTRO","VITORIA DA CONQUISTA","BA"));
|
||||
ds.addRow(new Array("070102","23711", "HIB LIMA GUERRA","45000-390","AL. LIMA GUERRA","04","CENTRO","VITORIA DA CONQUISTA","BA"));
|
||||
ds.addRow(new Array("070103","23712", "HIB CANDIDO SALES","24157-000","AL. RIO BRANCO","373","CENTRO","CÂNDIDO SALES","BA"));
|
||||
ds.addRow(new Array("070104","23705", "LOJA SHOPPING CONQUISTA SUL","45055-900","AVENIDA JURACY MAGALHAES","3340","FELICIA","VITORIA DA CONQUISTA","BA"));
|
||||
ds.addRow(new Array("070105","23703", " VD BARRA CHOCA","45120-000","AV GETULIO VARGAS","98","CENTRO","CHOCA","BA"));
|
||||
ds.addRow(new Array("070106","23707", "LOJA BRASIL","45051-070","AV ITABUNA","2724","BRASIL","VITORIA DA CONQUISTA","BA"));
|
||||
ds.addRow(new Array("070107","23706", "LOJA ASSAI FELICIA","45055-686","AV ANEL DE CONTORNO","S/N","FELICIA","VITORIA DA CONQUISTA","BA"));
|
||||
ds.addRow(new Array("070108","23709", "LOJA SHOPPING CONQUISTA","45055-900","AV JURACY MAGALHAES","3340","FELICIA","VITORIA DA CONQUISTA","BA"));
|
||||
ds.addRow(new Array("070109","23704", "VD CONDEUBA","46200-000","PC NOSSA SENHORA APARECIDA","08","CENTRO","CONDEÚBA","BA"));
|
||||
ds.addRow(new Array("070110","23703", "LOJA BARRA CHOCA","45120-000","AV GETULIO VARGAS","98","CENTRO","CHOCA","BA"));
|
||||
ds.addRow(new Array("070111","23702", "LOJA PANVICON CENTER","45000-230","AVENIDA LAURO DE FREITAS","142","CENTRO","VITORIA DA CONQUISTA","BA"));
|
||||
ds.addRow(new Array("070112","23701", "LOJA NOVE DE NOVEMBRO","45000-370","PC NOVE DE NOVEMBRO","10","CENTRO","VITORIA DA CONQUISTA","BA"));
|
||||
ds.addRow(new Array("070113","23665", "LOJA UNIVERSIDADE","45031-000","AV OLIVIA FLORES","2500","UNIVERSIDADE","VITORIA DA CONQUISTA","BA"));
|
||||
|
||||
|
||||
|
||||
return ds;
|
||||
|
||||
}
|
||||
function onMobileSync(user) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,55 @@
|
||||
function defineStructure() {
|
||||
|
||||
}
|
||||
function onSync(lastSyncDate) {
|
||||
|
||||
}
|
||||
function createDataset(fields, constraints, sortFields) {
|
||||
var dataset = DatasetBuilder.newDataset();
|
||||
|
||||
// Definir as colunas
|
||||
dataset.addColumn("codigoCentroCusto");
|
||||
dataset.addColumn("centroCusto");
|
||||
dataset.addColumn("gestorCentroCusto");
|
||||
dataset.addColumn("emailGestor");
|
||||
dataset.addColumn("id");
|
||||
dataset.addColumn("idGestor"); // Aqui será armazenada a matrícula do gestor
|
||||
|
||||
// Lista dos centros de custo
|
||||
var dados = [
|
||||
["41101", "Comercial", "Analanny Magalhães", "analanny.magalhaes@grupoginseng.com.br", "1"],
|
||||
["41101", "Comercial BA", "Arianne Sodre", "arianne.sodre@grupoginseng.com.br", "2"],
|
||||
["41101", "Comercial SE", "Iolanda Bezerra", "iolanda.bezerra@grupoginseng.com.br", "3"],
|
||||
["41101", "Comercial AL", "Raquel Tenório", "raquel.tenorio@grupoginseng.com.br", "4"],
|
||||
["51101", "Diretoria e Gestão", "João Marcelo", "joao.loureiro@grupoginseng.com.br", "5"],
|
||||
["51102", "Operações", "Diogo Demetrio", "diogo.martins@grupoginseng.com.br", "6"],
|
||||
["51103", "Controladoria", "Ariklenyo Nascimento", "ari.nascimento@grupoginseng.com.br", "7"],
|
||||
["51104", "Compliance", "Marla Palma", "marla.palma@grupoginseng.com.br", "8"],
|
||||
["51107", "Administrativo", "Lucila Brandão", "lucila.brandao@grupoginseng.com.br", "9"],
|
||||
["51110", "Gente e Cultura", "Francine Peiter", "francine.silva@grupoginseng.com.br", "10"],
|
||||
["51113", "TI", "Igor Oliveira", "igor.oliveira@grupoginseng.com.br", "11"],
|
||||
["51114", "Projetos e Performance", "Lucas Rocha", "lucas.rocha@grupoginseng.com.br", "12"],
|
||||
["41101", "Treinamento", "Analanny Magalhães", "analanny.magalhaes@grupoginseng.com.br", "13"],
|
||||
["41101", "Marketing", "Analanny Magalhães", "analanny.magalhaes@grupoginseng.com.br", "14"]
|
||||
|
||||
];
|
||||
|
||||
// Buscar matrícula do gestor no dataset "colleague"
|
||||
function getMatricula(gestorNome) {
|
||||
var c1 = DatasetFactory.createConstraint("colleagueName", gestorNome, gestorNome, ConstraintType.MUST);
|
||||
var dsUser = DatasetFactory.getDataset("colleague", ["colleagueId"], [c1], null);
|
||||
return dsUser.rowsCount > 0 ? dsUser.getValue(0, "colleagueId") : "";
|
||||
}
|
||||
|
||||
// Percorrer a lista e adicionar ao dataset
|
||||
for (var i = 0; i < dados.length; i++) {
|
||||
var matricula = getMatricula(dados[i][2]); // Obtém a matrícula do gestor
|
||||
dataset.addRow([dados[i][0], dados[i][1], dados[i][2], dados[i][3], dados[i][4], matricula]);
|
||||
}
|
||||
|
||||
return dataset;
|
||||
}
|
||||
|
||||
function onMobileSync(user) {
|
||||
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
function defineStructure() {
|
||||
addColumn("codigo");
|
||||
addColumn("descricao");
|
||||
}
|
||||
|
||||
function onSync(lastSyncDate) {}
|
||||
|
||||
function createDataset(fields, constraints, sortFields) {
|
||||
var dataset = DatasetBuilder.newDataset();
|
||||
var dataSource = "/jdbc/ProtheusDSs"; // Nome da conexão cadastrada no Fluig
|
||||
var ic = new javax.naming.InitialContext();
|
||||
var ds = ic.lookup(dataSource);
|
||||
var conn = ds.getConnection();
|
||||
var stmt = null;
|
||||
var rs = null;
|
||||
|
||||
try {
|
||||
log.info("Iniciando execução do dataset...");
|
||||
|
||||
var sql = "select C8V_CODIGO, C8V_DESCRI from C8V010 where D_E_L_E_T_= '' and C8V_FILIAL = '01'";
|
||||
log.info("Query SQL: " + sql);
|
||||
|
||||
stmt = conn.prepareStatement(sql);
|
||||
rs = stmt.executeQuery();
|
||||
|
||||
dataset.addColumn("codigo");
|
||||
dataset.addColumn("descricao");
|
||||
|
||||
var encontrados = {}; // Usando um objeto para evitar duplicação
|
||||
|
||||
while (rs.next()) {
|
||||
var codigo = rs.getString("C8V_CODIGO");
|
||||
var descricao = rs.getString("C8V_DESCRI");
|
||||
|
||||
if (!encontrados[codigo]) { // Verifica se já foi adicionado
|
||||
encontrados[codigo] = true; // Marca como processado
|
||||
log.info("Registro encontrado: " + codigo + " - " + descricao);
|
||||
dataset.addRow([codigo, descricao]);
|
||||
}
|
||||
}
|
||||
|
||||
if (Object.keys(encontrados).length === 0) {
|
||||
log.info("Nenhum registro encontrado para a consulta.");
|
||||
}
|
||||
|
||||
} catch (e) {
|
||||
log.error("Erro ao executar dataset: " + e.message);
|
||||
} finally {
|
||||
try {
|
||||
if (rs) rs.close();
|
||||
if (stmt) stmt.close();
|
||||
if (conn) conn.close();
|
||||
} catch (e) {
|
||||
log.error("Erro ao fechar recursos: " + e.message);
|
||||
}
|
||||
}
|
||||
|
||||
return dataset;
|
||||
}
|
||||
|
||||
function onMobileSync(user) {}
|
||||
Binary file not shown.
@@ -0,0 +1,27 @@
|
||||
function displayFields(form, customHTML) {
|
||||
var activity = getValue('WKNumState');
|
||||
var userId = getValue('WKUser');
|
||||
|
||||
form.setShowDisabledFields(true);
|
||||
form.setHidePrintLink(true);
|
||||
|
||||
form.setValue("WKNumProces", getValue('WKNumProces'));
|
||||
form.setValue("activity", activity);
|
||||
form.setValue("formMode", form.getFormMode());
|
||||
|
||||
var c1 = DatasetFactory.createConstraint("colleagueId", userId, userId, ConstraintType.MUST);
|
||||
var filter = new Array(c1);
|
||||
var fields = new Array("colleagueName");
|
||||
var retorno = DatasetFactory.getDataset("colleague", fields, filter, null);
|
||||
|
||||
//requester
|
||||
if (activity == 0) {
|
||||
form.setValue("requesterName", retorno.getValue(0, "colleagueName"));
|
||||
form.setValue("requesterMail", retorno.getValue(0, "mail"));
|
||||
form.setValue("requesterId", userId);
|
||||
} else {
|
||||
form.setValue("currentUserName", retorno.getValue(0, "colleagueName"));
|
||||
form.setValue("currentUsermail", retorno.getValue(0, "mail"));
|
||||
form.setValue("currentUserId", userId);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,917 @@
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<link rel="stylesheet" type="text/css" href="/style-guide/css/fluig-style-guide.min.css" />
|
||||
|
||||
<script src="/resources/js/jquery/jquery.js"></script>
|
||||
<script src="/resources/js/jquery/jquery-ui.min.js"></script>
|
||||
<script src="/resources/js/mustache/mustache-min.js"></script>
|
||||
<script src="/style-guide/js/fluig-style-guide.min.js"></script>
|
||||
<script type="text/javascript" src="/webdesk/vcXMLRPC.js"></script>
|
||||
<script type="text/javascript" src="script.js"></script>
|
||||
<link
|
||||
href="/webdesk/customresources?cid=4&resourceName=temaFormulario/0.css"
|
||||
type="text/css"
|
||||
rel="stylesheet"
|
||||
/>
|
||||
<link
|
||||
rel="stylesheet"
|
||||
type="text/css"
|
||||
href="/style-guide/css/fluig-style-guide-ratingstars.min.css"
|
||||
/>
|
||||
<script src="/style-guide/js/fluig-style-guide-ratingstars.min.js"></script>
|
||||
|
||||
|
||||
<style>
|
||||
h6 {
|
||||
color: #afb0b3 !important;
|
||||
font-weight: normal !important;
|
||||
}
|
||||
|
||||
h2 {
|
||||
color: #008ac4 !important;
|
||||
display: flex !important;
|
||||
flex-direction: row !important;
|
||||
}
|
||||
|
||||
h2:after {
|
||||
content: "" !important;
|
||||
flex: 1 1 !important;
|
||||
border-bottom: 2px solid #008ac4 !important;
|
||||
margin: auto !important;
|
||||
}
|
||||
|
||||
.flaticon {
|
||||
color: #008ac4 !important;
|
||||
}
|
||||
|
||||
#rcorners {
|
||||
height: 110px;
|
||||
line-height: 110px;
|
||||
color: white;
|
||||
border-radius: 0px 0px 50px 50px;
|
||||
background: rgb(0, 138, 192);
|
||||
background: linear-gradient(90deg,
|
||||
rgba(0, 138, 192, 1) 0%,
|
||||
rgba(2, 166, 189, 1) 50%,
|
||||
rgba(1, 192, 181, 1) 100%);
|
||||
text-align: center !important;
|
||||
}
|
||||
|
||||
.change-weight {
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
|
||||
.asteristicWarning {
|
||||
color: #000000 !important;
|
||||
margin-top: 50px !important;
|
||||
}
|
||||
|
||||
textarea {
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
.errorValidate .requiredInput,
|
||||
.errorValidate .select2 {
|
||||
border: 2px solid #cc3d3d !important;
|
||||
}
|
||||
|
||||
.text-error {
|
||||
font-size: 10px;
|
||||
margin: 0;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.errorValidate .text-error {
|
||||
display: block;
|
||||
}
|
||||
|
||||
input.select2-search__field::placeholder {
|
||||
color: #afb0b3;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="fluig-style-guide" style="background-color: white">
|
||||
<form>
|
||||
<div style="display: none">
|
||||
<input type="text" id="WKNumProces" name="WKNumProces" />
|
||||
<input type="text" id="activity" name="activity" />
|
||||
<input type="text" id="formMode" name="formMode" />
|
||||
|
||||
<!-- requester -->
|
||||
<input type="text" id="requesterMail" name="requesterMail" />
|
||||
<input type="text" id="requesterId" name="requesterId" />
|
||||
|
||||
<!-- current user -->
|
||||
<input type="text" id="currentUserName" name="currentUserName" />
|
||||
<input type="text" id="currentUsermail" name="currentUsermail" />
|
||||
<input type="text" id="currentUserId" name="currentUserId" />
|
||||
|
||||
<input type="text" id="gestor_cc" name="gestor_cc" />
|
||||
</div>
|
||||
|
||||
<h1 id="rcorners">Recrutamento e Seleção</h1>
|
||||
|
||||
<div class="container activity-all">
|
||||
<div class="activity activity-0 activity-1">
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-account-box" aria-hidden="true"></i>
|
||||
Dados gerais
|
||||
</h2>
|
||||
<h6>
|
||||
Dados referentes aos responsáveis pela abertura e pela
|
||||
solicitação do atual processo.
|
||||
</h6>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label for="requesterName"> Usuário de abertura </label>
|
||||
<input type="text" name="requesterName" id="requesterName" class="form-control"
|
||||
data-protection="Usuário de abertura" data-protection-anonymizable data-protection-sensitive
|
||||
data-protection-name
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly />
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="dataAbertura"> Data </label>
|
||||
<input type="text" name="dataAbertura" id="dataAbertura" class="form-control" readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-6 col-xs-12">
|
||||
<label for="estabelecimento">
|
||||
Estabelecimento/Filial
|
||||
</label>
|
||||
<span class="required text-danger"><strong> * </strong></span>
|
||||
<input type="zoom" class="form-control requiredInput" name="estabelecimento" id="estabelecimento"
|
||||
data-zoom="{
|
||||
'displayKey':'estabelecimento',
|
||||
'datasetId':'dsFiliais',
|
||||
'placeholder': 'Pesquisar nome do estabelecimento ou filial.',
|
||||
'fields':[
|
||||
{
|
||||
'field':'estabelecimento',
|
||||
'label':'Filial',
|
||||
'standard':'true',
|
||||
'search':'true'
|
||||
},
|
||||
{
|
||||
'field':'codigo',
|
||||
'label':'Protheus',
|
||||
'search':'true'
|
||||
}
|
||||
]
|
||||
}" />
|
||||
<p class="text-danger text-error">
|
||||
Preenchimento obrigatório.
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group col-md-6 col-xs-6">
|
||||
<label for="centroCusto"> Centro de Custo </label>
|
||||
<input type="zoom" class="form-control" name="centroCusto" id="centroCusto" data-zoom="{
|
||||
'displayKey':'centroCusto',
|
||||
'datasetId':'ds_Liderdireto',
|
||||
'placeholder': 'Pesquisar número ou nome do centro de custo.',
|
||||
'fields':[
|
||||
{
|
||||
'field':'centroCusto',
|
||||
'label':'Centro de custo',
|
||||
'search':'true'
|
||||
},
|
||||
{
|
||||
'field': 'gestorCentroCusto',
|
||||
'label': 'Gestor',
|
||||
'visible': 'false'
|
||||
},
|
||||
{
|
||||
'field': 'emailGestor',
|
||||
'label': 'Email do gestor',
|
||||
'visible': 'false'
|
||||
},
|
||||
{
|
||||
'field': 'idGestor',
|
||||
'label': 'Id do gestor',
|
||||
'visible': 'false'
|
||||
}
|
||||
]
|
||||
}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-6 col-xs-12">
|
||||
<label for="gestorNome">
|
||||
Gestor aprovador da seleção
|
||||
</label>
|
||||
<input type="text" placeholder="Nome do gestor aprovador do centro de custo" class="form-control"
|
||||
name="gestorNome" id="gestorNome" data-protection="Gestor aprovador do centro de custo"
|
||||
data-protection-anonymizable data-protection-sensitive data-protection-name
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly />
|
||||
</div>
|
||||
<div class="form-group col-md-6 col-xs-6">
|
||||
<label for="gestorEmail"> E-mail do gestor </label>
|
||||
<input type="text" placeholder="E-mail do gestor aprovador do centro de custo" name="gestorEmail"
|
||||
id="gestorEmail" class="form-control" data-protection="E-mail do gestor"
|
||||
data-protection-anonymizable data-protection-sensitive data-protection-mail
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-6 col-xs-12">
|
||||
<label for="funcao">
|
||||
Função
|
||||
</label>
|
||||
<span class="required text-danger"><strong> * </strong></span>
|
||||
<input type="zoom" class="form-control requiredInput" name="funcao" id="funcao" data-zoom="{
|
||||
'displayKey':'descricao',
|
||||
'datasetId':'ds_cargos',
|
||||
'placeholder': 'Pesquisar nome do estabelecimento ou filial.',
|
||||
'fields':[
|
||||
{
|
||||
'field':'descricao',
|
||||
'label':'Descrição',
|
||||
'standard':'true',
|
||||
'search':'true'
|
||||
}
|
||||
]
|
||||
}" />
|
||||
<p class="text-danger text-error">
|
||||
Preenchimento obrigatório.
|
||||
</p>
|
||||
</div>
|
||||
<div class="form-group col-md-6 col-xs-12">
|
||||
<label for="confidencial"> A Vaga é confidencial?</label>
|
||||
<select class="form-control" name="confidencial" id="confidencial">
|
||||
<option value selected hidden>Selecione</option>
|
||||
<option value="sim">Sim</option>
|
||||
<option value="nao">Não</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-6 col-xs-12">
|
||||
<label for="urgente"> A Vaga é urgente?</label>
|
||||
<select class="form-control" name="urgente" id="urgente">
|
||||
<option value selected hidden>Selecione</option>
|
||||
<option value="sim">Sim</option>
|
||||
<option value="nao">Não</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-md-6 col-xs-12">
|
||||
<label for="estado"> Estado </label>
|
||||
<input type="text" name="estado" id="estado" class="form-control"
|
||||
readonly="readonly">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-product" aria-hidden="true"></i>
|
||||
Motivo
|
||||
</h2>
|
||||
<h6>
|
||||
Dados referentes ao motivo da solicitação.
|
||||
</h6>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Qual o motivo da solicitação?</label>
|
||||
<span class="text-danger"><strong>*</strong></span><br />
|
||||
<div>
|
||||
<label>
|
||||
<input name="validarMotivo" id="validacaoMotivoAumento" value="aumento" type="radio" />
|
||||
<span class="change-weight">Aumento de quadro</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="validarMotivo" id="validacaoMotivoSubstituicao" value="substituição" type="radio" />
|
||||
<span class="change-weight">Substituição</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="validarMotivo" id="validacaoMotivotemporario" value="temporario" type="radio" />
|
||||
<span class="change-weight">Temporário</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-message-question" aria-hidden="true"></i>
|
||||
Justificativa de Descrição de perfil
|
||||
</h2>
|
||||
<h6>
|
||||
Motivos para a solicitação do colaborador e as possíveis informações complementares.
|
||||
</h6>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12 col-xs-12">
|
||||
<label for="justificativa">
|
||||
Justicativa do motivo da Solicitação?
|
||||
</label>
|
||||
<span class="text-danger"><strong>*</strong></span>
|
||||
<textarea placeholder="Descreva o motivo para a solicitação da vaga"
|
||||
class="form-control requiredInput" rows="3" id="justificativa" name="justificativa"></textarea>
|
||||
<p class="text-danger text-error">
|
||||
Preenchimento obrigatório.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12 col-xs-12">
|
||||
<label for="descricaodeperfil">
|
||||
Descreva o perfil do candidato(Técnico e comportamental)
|
||||
</label>
|
||||
<span class="text-danger"><strong>*</strong></span>
|
||||
<textarea placeholder="Descreva o perfil do candidato" class="form-control requiredInput" rows="3"
|
||||
id="descricaodeperfil" name="descricaodeperfil"></textarea>
|
||||
<p class="text-danger text-error">
|
||||
Preenchimento obrigatório.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="activity activity-4">
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-check-circle" aria-hidden="true"></i>
|
||||
Analisar necessidade da vaga
|
||||
</h2>
|
||||
<h6>
|
||||
Informações complementares sobre a validação da vaga solicitada.
|
||||
</h6>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label for="userValidacaoGestor">
|
||||
Gestor aprovador da seleção
|
||||
</label>
|
||||
<input type="text" name="userValidacaoGestor" id="userValidacaoGestor" class="form-control"
|
||||
data-protection="Gestor aprovador do centro de custo" data-protection-anonymizable
|
||||
data-protection-sensitive data-protection-name
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly />
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="dataValidacaoGestor"> Data </label>
|
||||
<input type="text" name="dataValidacaoGestor" id="dataValidacaoGestor" class="form-control"
|
||||
readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justificativa-activity-4">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label for="justificativaDecisaoGestor">Justifique a decisão.</label>
|
||||
<textarea placeholder="Descreva a justificativa para a validação do centro de custo."
|
||||
class="form-control" name="justificativaDecisaoGestor" id="justificativaDecisaoGestor"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="activity activity-6">
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-tests-central" aria-hidden="true"></i>
|
||||
Seleção dos candidatos
|
||||
</h2>
|
||||
<h6>
|
||||
Dados referentes ao contato dos candidatos selecionados para a vaga.
|
||||
</h6>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label for="userValidacaoCompras">
|
||||
Usuário responsável pela seleção
|
||||
</label>
|
||||
<input type="text" name="userValidacaoCompras" id="userValidacaoCompras" class="form-control"
|
||||
data-protection="Usuário responsável pela análise da solicitação" data-protection-anonymizable
|
||||
data-protection-sensitive data-protection-name
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly />
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="dataValidacaoCompras"> Data </label>
|
||||
<input type="text" name="dataValidacaoCompras" id="dataValidacaoCompras" class="form-control"
|
||||
readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12 col-xs-12">
|
||||
<label for="numCotacoes">Clique no botão para adicionar participantes</label>
|
||||
<button id="gerarTabela" class="btn btn-primary btn-sm"
|
||||
onclick="gerarTabelaCotacaoComNumeracao('tabelarecrutamento')">Adicionar</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="col-md-12">
|
||||
<table class="table" tablename="tabelarecrutamento" id="tabelarecrutamento" noaddbutton="true"
|
||||
nodeletebutton="true">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 20%;">Nome do candidato</th>
|
||||
<th style="width: 20%;">Telefone</th>
|
||||
<th style="width: 25%;">Email</th>
|
||||
<th style="width: 5%;">Aprovado</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td class="fs-v-align-top fs-text-center">
|
||||
<input type="text" class="form-control" name="nomedocandidato">
|
||||
</td>
|
||||
<td class="fs-v-align-top fs-text-center">
|
||||
<input type="text" class="form-control" name="telefone" style="width: 150px;">
|
||||
</td>
|
||||
<td class="fs-v-align-top fs-text-center">
|
||||
<input type="email" class="form-control" name="email" style="width: 150px;">
|
||||
</td>
|
||||
<td class="fs-v-align-top fs-text-center">
|
||||
<input type="checkbox" name="aprovado">
|
||||
</td>
|
||||
<td class="fs-v-align-top fs-text-center">
|
||||
<button type="button" class="btn btn-danger btn-sm remover-linha"
|
||||
onclick="removeLinhaComAnexo(this)">Remover</button>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
<div class="row justificativa-activity-6">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label for="justificativaDecisaoCompras">Informações adicionais da seleção</label>
|
||||
<textarea placeholder="Insira suas considerações sobre a seleção" class="form-control"
|
||||
name="justificativaDecisaoCompras" id="justificativaDecisaoCompras"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="activity activity-31">
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-edit-square" aria-hidden="true"></i>
|
||||
Cheklist de Início das atividades
|
||||
</h2>
|
||||
<h6>
|
||||
Checklist de Início.
|
||||
</h6>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label for="userRealizacaoCompras">
|
||||
Usuário responsável pela comunicação
|
||||
</label>
|
||||
<input type="text" name="userRealizacaoCompras" id="userRealizacaoCompras" class="form-control"
|
||||
data-protection="Usuário responsável pela compra" data-protection-anonymizable=""
|
||||
data-protection-sensitive="" data-protection-name=""
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly="readonly">
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="dataRealizacaoCompras"> Data </label>
|
||||
<input type="text" name="dataRealizacaoCompras" id="dataRealizacaoCompras" class="form-control"
|
||||
readonly="readonly">
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="datainiciotrabalho"> Data de início</label>
|
||||
<input type="date" name="datainiciotrabalho" id="datainiciotrabalho" class="form-control">
|
||||
</div>
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label>Qual o Kit vai ser utilizado?</label>
|
||||
<span class="text-danger"><strong>*</strong></span><br>
|
||||
<div>
|
||||
<label>
|
||||
<input name="itensinicio" id="itensback" value="backoffice" type="radio">
|
||||
<span class="change-weight">Kit Backoffice (Notebook, mouse, teclado e headset).</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="itensinicio" id="itensamg" value="amg" type="radio">
|
||||
<span class="change-weight">Kit AMG (Notebook, Kit mouse e teclado, headset e telefone
|
||||
coporativo).</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="itensinicio" id="itenscomercial" value="comercial" type="radio">
|
||||
<span class="change-weight">Kit Comercial (Mobshop e Mobpin).</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label>Fardamento pronto para ser entregue?</label>
|
||||
<span class="text-danger"><strong>*</strong></span><br>
|
||||
<div>
|
||||
<label>
|
||||
<input name="fardamentoPronto" id="fardamentoprontosim" value="pronto" type="radio">
|
||||
<span class="change-weight">Sim</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="fardamentoPronto" id="fardamentoprontonao" value="faltando" type="radio">
|
||||
<span class="change-weight">Não</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justificativa-activity-31">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12 col-xs-12">
|
||||
<label for="consideracoesCompras"> Considerações </label>
|
||||
<textarea placeholder="Insira suas considerações" class="form-control" rows="3"
|
||||
id="consideracoesCompras" name="consideracoesCompras" value=""></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="activity activity-24">
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-check-circle" aria-hidden="true"></i>
|
||||
Entrega de equipamento
|
||||
</h2>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label for="userValidacaoItens"> Analista responsável pela entrega do equipamento </label>
|
||||
<input type="text" name="userValidacaoItens" id="userValidacaoItens" class="form-control"
|
||||
data-protection="Solicitante" data-protection-anonymizable data-protection-sensitive
|
||||
data-protection-name
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly />
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="dataValidacaoItens"> Data </label>
|
||||
<input type="text" name="dataValidacaoItens" id="dataValidacaoItens" class="form-control" readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Houve alguma divergência com a entrega?</label>
|
||||
<span class="text-danger"><strong>*</strong></span><br />
|
||||
<div>
|
||||
<label>
|
||||
<input name="validacaoItens" id="validacaoItensEntregue" value="entregue" type="radio" />
|
||||
<span class="change-weight">Não houve problema</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="validacaoItens" id="validacaoItensNaoEntregue" value="naoEntregue" type="radio" />
|
||||
<span class="change-weight">Foi entregue equipamentos seminovos.</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="validacaoItens" id="validacaoItensIncorreto" value="incorreto" type="radio" />
|
||||
<span class="change-weight">Entregue com inconsistência (qualidade, quantidade,
|
||||
embalagem)</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justificativaDecisaoItens">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label for="justificativaDecisaoItens">Detalhes dos equipamentos</label>
|
||||
<span class="text-danger"><strong>*</strong></span>
|
||||
<textarea class="form-control requiredInput"
|
||||
placeholder="Insira a justificativa sobre a validação dos itens" name="justificativaDecisaoItens"
|
||||
id="justificativaDecisaoItens"></textarea>
|
||||
<p class="text-danger text-error">
|
||||
Preenchimento obrigatório.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="activity activity-18">
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-document-check" aria-hidden="true"></i>
|
||||
Receber funcionário
|
||||
</h2>
|
||||
<h6>Dados referentes a chegada do funcionário.</h6>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label for="userValidacaofunc"> Responsável por receber o funcionário </label>
|
||||
<input type="text" name="userValidacaofunc" id="userValidacaofunc" class="form-control"
|
||||
data-protection="Solicitante" data-protection-anonymizable data-protection-sensitive
|
||||
data-protection-name
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly />
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="dataValidacaofunc"> Data </label>
|
||||
<input type="text" name="dataValidacaofunc" id="dataValidacaofunc" class="form-control" readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Houve algum problema na chegada do funcionário?</label>
|
||||
<span class="text-danger"><strong>*</strong></span><br />
|
||||
<div>
|
||||
<label>
|
||||
<input name="validacaoFunc" id="validacaoFuncEntregue" value="entregue" type="radio" />
|
||||
<span class="change-weight">Não houve problema</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="validacaoFunc" id="validacaoFuncNaoEntregue" value="naoEntregue" type="radio" />
|
||||
<span class="change-weight">Equipamentos com inconsistência (qualidade, quantidade,
|
||||
embalagem) </span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="validacaoFunc" id="validacaoFuncIncorreto" value="incorreto" type="radio" />
|
||||
<span class="change-weight">Fardamento danificado (qualidade, quantidade,
|
||||
embalagem)</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justificativaDecisaoFunc">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label for="justificativaDecisaoFunc">Considerações</label>
|
||||
<span class="text-danger"><strong>*</strong></span>
|
||||
<textarea class="form-control requiredInput" placeholder="Insira a justificativa"
|
||||
name="justificativaDecisaoFunc" id="justificativaDecisaoFunc"></textarea>
|
||||
<p class="text-danger text-error">
|
||||
Preenchimento obrigatório.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="activity activity-57">
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-check-circle" aria-hidden="true"></i>
|
||||
Feedback da seleção
|
||||
</h2>
|
||||
<br />
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label for="userValidacao"> Gestor responsável </label>
|
||||
<input type="text" name="userValidacao" id="userValidacao" class="form-control" readonly
|
||||
data-protection="Usuário de abertura" data-protection-anonymizable data-protection-sensitive
|
||||
data-protection-name
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo" />
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="dataUserValidacao"> Data </label>
|
||||
<input type="text" name="dataUserValidacao" id="dataUserValidacao" class="form-control" readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Solicitação atendida?</label>
|
||||
<span class="text-danger"><strong>*</strong></span><br />
|
||||
<div class="radio-inline">
|
||||
<label>
|
||||
<input name="situacaoResolvida" id="situacaoResolvidaSim" value="sim" type="radio" />
|
||||
<span class="change-weight">Sim</span>
|
||||
</label>
|
||||
</div>
|
||||
<div class="radio-inline">
|
||||
<label>
|
||||
<input name="situacaoResolvida" id="situacaoResolvidaNao" value="nao" type="radio" />
|
||||
<span class="change-weight">Não</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row ratingAction">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label>Como você avalia esse processo?</label>
|
||||
<div class="ratingStars">
|
||||
<div class="minha-avaliacao"></div>
|
||||
</div>
|
||||
<input type="hidden" id="ratingValue" name="ratingValue" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row explainAction">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label for="consideracoes">Considerações</label>
|
||||
<span class="text-danger"><strong>*</strong></span>
|
||||
<textarea class="form-control" name="consideracoes" id="consideracoes"
|
||||
placeholder="Descreva a justificativa para a sua avaliação"></textarea>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="activity activity-114">
|
||||
<div>
|
||||
<br />
|
||||
<h2>
|
||||
<i class="flaticon flaticon-document-check" aria-hidden="true"></i>
|
||||
Correção de materiais
|
||||
</h2>
|
||||
<h6>Dados referentes a correção dos materiais enviados para o novo colaborador.</h6>
|
||||
<br />
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-10 col-xs-6">
|
||||
<label for="userValidacaoCorre"> Responsável pela correção do material </label>
|
||||
<input type="text" name="userValidacaoCorre" id="userValidacaoCorre" class="form-control"
|
||||
data-protection="Solicitante" data-protection-anonymizable data-protection-sensitive
|
||||
data-protection-name
|
||||
data-protection-class-legitimate-interests="Dado coletado para o funcionamento do processo"
|
||||
readonly />
|
||||
</div>
|
||||
<div class="form-group col-md-2 col-xs-6">
|
||||
<label for="dataValidacaoCorre"> Data </label>
|
||||
<input type="text" name="dataValidacaoCorre" id="dataValidacaoCorre" class="form-control" readonly />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label>As correções foram feitas?</label>
|
||||
<span class="text-danger"><strong>*</strong></span><br />
|
||||
<div>
|
||||
<label>
|
||||
<input name="validacaoCorre" id="validacaoCorreEntregue" value="entregue" type="radio" />
|
||||
<span class="change-weight">Correção efetuada</span>
|
||||
</label>
|
||||
</div>
|
||||
<div>
|
||||
<label>
|
||||
<input name="validacaoCorre" id="validacaoCorreNaoEntregue" value="naoEntregue" type="radio" />
|
||||
<span class="change-weight">Correção não efetuada</span>
|
||||
</label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="row justificativaDecisaoCorre">
|
||||
<div class="form-field">
|
||||
<div class="form-input">
|
||||
<div class="form-group col-md-12">
|
||||
<label for="justificativaDecisaoCorre">Considerações</label>
|
||||
<span class="text-danger"><strong>*</strong></span>
|
||||
<textarea class="form-control requiredInput" placeholder="Insira a justificativa"
|
||||
name="justificativaDecisaoCorre" id="justificativaDecisaoCorre"></textarea>
|
||||
<p class="text-danger text-error">
|
||||
Preenchimento obrigatório.
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<h6 class="asteristicWarning">
|
||||
Todos os campos com * são de preenchimento obrigatório.
|
||||
</h6>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,454 @@
|
||||
$(document).ready(function () {
|
||||
if ($("#formMode").val() == "VIEW") {
|
||||
showAndBlock(["all"]);
|
||||
$(".ratingAction").hide();
|
||||
if ($("input[name=situacaoResolvida]:checked").val() == "sim") {
|
||||
$(".ratingAction").show();
|
||||
}
|
||||
let ratingValue;
|
||||
if ($("#ratingValue").val() == "" || $("#ratingValue").val() == 0) {
|
||||
ratingValue = 0;
|
||||
} else {
|
||||
ratingValue = $("#ratingValue").val();
|
||||
}
|
||||
let html = "";
|
||||
for (let i = 0; i < 5; i++) {
|
||||
if (i < ratingValue) {
|
||||
html +=
|
||||
'<i class="flaticon flaticon-star-active icon-md" aria-hidden="true"></i>';
|
||||
} else {
|
||||
html +=
|
||||
'<i class="flaticon flaticon-star icon-md" aria-hidden="true"></i>';
|
||||
}
|
||||
}
|
||||
console.log(html);
|
||||
$(".minha-avaliacao").html(html);
|
||||
} else {
|
||||
//show the right fields
|
||||
var activity = $("#activity").val();
|
||||
var requestDate = getCurrentDate();
|
||||
var ratingStars;
|
||||
var servicoNaoValidado =
|
||||
$("input[name=situacaoResolvida]:checked").val() == "nao";
|
||||
|
||||
$(".activity").hide();
|
||||
|
||||
$(".activity-" + activity).show();
|
||||
|
||||
if (activity == 0 || activity == 1) {
|
||||
//primeira atividade
|
||||
//$("#dataAbertura").val(requestDate[0] + " - " + requestDate[1]);
|
||||
$("#dataAbertura").val(requestDate[0]);
|
||||
add_new_row("tabelaItens");
|
||||
} else if (activity == 4) {
|
||||
showAndBlock([0]);
|
||||
$("#userValidacaoGestor").val($("#currentUserName").val());
|
||||
$("#dataValidacaoGestor").val(
|
||||
requestDate[0] + " - " + requestDate[1]
|
||||
);
|
||||
updt_line();
|
||||
} else if (activity == 6) {
|
||||
showAndBlock([0, 4]);
|
||||
$("#userValidacaoCompras").val($("#currentUserName").val());
|
||||
$("#dataValidacaoCompras").val(
|
||||
requestDate[0] + " - " + requestDate[1]
|
||||
);
|
||||
|
||||
if ($("#justificativaDecisaoGestor").val() == "") {
|
||||
$(".justificativa-activity-4").hide();
|
||||
}
|
||||
updt_line();
|
||||
|
||||
} else if (activity == 57) {
|
||||
$("#userValidacao").val($("#currentUserName").val());
|
||||
$("#dataUserValidacao").val(
|
||||
requestDate[0] + " - " + requestDate[1]
|
||||
);
|
||||
if ($("#justificativaDecisaoGestor").val() == "") {
|
||||
$(".justificativa-activity-4").hide();
|
||||
}
|
||||
if ($("#justificativaDecisaoCompras").val() == "") {
|
||||
$(".justificativa-activity-6").hide();
|
||||
}
|
||||
showAndBlock([0, 4, 6, 31, 24, 18]);
|
||||
|
||||
let ratingValue;
|
||||
if ($("#ratingValue").val() == "" || $("#ratingValue").val() == 0) {
|
||||
ratingValue = 0;
|
||||
} else {
|
||||
ratingValue = $("#ratingValue").val();
|
||||
}
|
||||
ratingStars = FLUIGC.stars(".minha-avaliacao", {
|
||||
stars: 5,
|
||||
value: ratingValue,
|
||||
sizeClass: "icon-md",
|
||||
});
|
||||
ratingStars.on("click", (obj) => {
|
||||
let countCurrentRating = 0;
|
||||
$(".fluigicon-star").each(() => {
|
||||
countCurrentRating++;
|
||||
});
|
||||
$("#ratingValue").val(countCurrentRating);
|
||||
});
|
||||
$("input[name=consegueResolver]").on("change", function () {
|
||||
$(".consegueResolverMotivo").hide();
|
||||
if ($(`input[name=${$(this).attr("name")}]:checked`).val() == "nao")
|
||||
$(".consegueResolverMotivo").show();
|
||||
});
|
||||
$("input[name=consegueResolver]").trigger("change");
|
||||
|
||||
$("input[name=situacaoResolvida]").on("change", function () {
|
||||
$(".explainAction, .ratingAction").hide();
|
||||
if ($("input[name=situacaoResolvida]:checked").val() == "nao") {
|
||||
$(".explainAction").show();
|
||||
} else if (
|
||||
$("input[name=situacaoResolvida]:checked").val() == "sim"
|
||||
) {
|
||||
$(".ratingAction").show();
|
||||
}
|
||||
});
|
||||
$("input[name=situacaoResolvida]").trigger("change");
|
||||
|
||||
updt_line();
|
||||
|
||||
} else if (activity == 31) {
|
||||
$("#userRealizacaoCompras").val($("#currentUserName").val());
|
||||
$("#dataRealizacaoCompras").val(
|
||||
requestDate[0] + " - " + requestDate[1]
|
||||
);
|
||||
showAndBlock([0, 4, 6]);
|
||||
|
||||
if ($("#justificativaDecisaoGestor").val() == "") {
|
||||
$(".justificativa-activity-4").hide();
|
||||
}
|
||||
if ($("#justificativaDecisaoCompras").val() == "") {
|
||||
$(".justificativa-activity-6").hide();
|
||||
}
|
||||
updt_line();
|
||||
} else if (activity == 18) {
|
||||
if ($("justificativaValidaProblema") != "") {
|
||||
showAndBlock([0, 4, 6, 24, 31]);
|
||||
} else {
|
||||
showAndBlock([0, 4, 6, 31]);
|
||||
}
|
||||
$("#userValidacaofunc").val($("#currentUserName").val());
|
||||
$("#dataValidacaofunc").val(requestDate[0] + " - " + requestDate[1]);
|
||||
|
||||
if ($("#justificativaDecisaoGestor").val() == "") {
|
||||
$(".justificativa-activity-4").hide();
|
||||
}
|
||||
if ($("#justificativaDecisaoCompras").val() == "") {
|
||||
$(".justificativa-activity-6").hide();
|
||||
}
|
||||
if ($("#consideracoesCompras").val() == "") {
|
||||
$(".justificativa-activity-31").hide();
|
||||
}
|
||||
|
||||
$("input[name=validacaoFunc]").on("change", function () {
|
||||
$(".justificativaDecisaoFunc").hide();
|
||||
if (
|
||||
$("input[name=validacaoFunc]:checked").val() == "incorreto" ||
|
||||
$("input[name=validacaoFunc]:checked").val() == "naoEntregue"
|
||||
) {
|
||||
$(".justificativaDecisaoFunc").show();
|
||||
}
|
||||
});
|
||||
$("input[name=validacaoFunc]").trigger("change");
|
||||
|
||||
updt_line();
|
||||
} else if (activity == 24) {
|
||||
showAndBlock([0, 4, 6, 31]);
|
||||
$("#userValidacaoItens").val($("#currentUserName").val());
|
||||
$("#dataValidacaoItens").val(requestDate[0] + " - " + requestDate[1]);
|
||||
|
||||
if ($("#justificativaDecisaoGestor").val() == "") {
|
||||
$(".justificativa-activity-4").hide();
|
||||
}
|
||||
if ($("#justificativaDecisaoCompras").val() == "") {
|
||||
$(".justificativa-activity-6").hide();
|
||||
}
|
||||
if ($("#consideracoesCompras").val() == "") {
|
||||
$(".justificativa-activity-31").hide();
|
||||
}
|
||||
updt_line();
|
||||
} else if (activity == 114) {
|
||||
showAndBlock([0, 4, 6, 31, 24, 57, 18]);
|
||||
$("#userValidacaoCorre").val($("#currentUserName").val());
|
||||
$("#dataValidacaoCorre").val(requestDate[0] + " - " + requestDate[1]);
|
||||
|
||||
if ($("#justificativaDecisaoGestor").val() == "") {
|
||||
$(".justificativa-activity-4").hide();
|
||||
}
|
||||
if ($("#justificativaDecisaoCompras").val() == "") {
|
||||
$(".justificativa-activity-6").hide();
|
||||
}
|
||||
if ($("#consideracoesCompras").val() == "") {
|
||||
$(".justificativa-activity-31").hide();
|
||||
}
|
||||
|
||||
$("input[name=validacaoCorre]").on("change", function () {
|
||||
$(".justificativaDecisaoCorre").hide();
|
||||
if (
|
||||
$("input[name=validacaoCorre]:checked").val() == "entregue" ||
|
||||
$("input[name=validacaoCorre]:checked").val() == "naoEntregue"
|
||||
) {
|
||||
$(".justificativaDecisaoCorre").show();
|
||||
}
|
||||
});
|
||||
$("input[name=validacaoCorre]").trigger("change");
|
||||
|
||||
updt_line();
|
||||
}
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
||||
//show the activity and then block the fields
|
||||
function showAndBlock(activity) {
|
||||
for (var i = 0, l = activity.length; i < l; i++) {
|
||||
$(".activity-" + activity[i]).show();
|
||||
$(".hideButton").hide();
|
||||
$(".activity-" + activity[i] + " :input").each(function () {
|
||||
$(this).attr("readonly", "readonly");
|
||||
$(this)
|
||||
.css("background-color", "#eee")
|
||||
.children("option:not(:selected)")
|
||||
.prop("disabled", true);
|
||||
$(this).on("mousedown", function (e) {
|
||||
this.blur();
|
||||
window.focus();
|
||||
});
|
||||
if ($(this).is(":checkbox")) {
|
||||
$(this).attr("disabled", true);
|
||||
} else if ($(this).is(":radio")) {
|
||||
$(this).on("click", function () {
|
||||
return false;
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function getCurrentDate() {
|
||||
var newDate = new Date();
|
||||
var h = newDate.getHours();
|
||||
if (h < 10) {
|
||||
h = "0" + h;
|
||||
}
|
||||
var m = newDate.getMinutes();
|
||||
if (m < 10) {
|
||||
m = "0" + m;
|
||||
}
|
||||
var hour = h + ":" + m; // + ":" + s;
|
||||
var day = newDate.getDate();
|
||||
if (day < 10) {
|
||||
day = "0" + day;
|
||||
}
|
||||
var month = newDate.getMonth() + 1;
|
||||
if (month < 10) {
|
||||
month = "0" + month;
|
||||
}
|
||||
newDate = day + "/" + month + "/" + newDate.getFullYear();
|
||||
var currentDate = [newDate, hour];
|
||||
return currentDate;
|
||||
}
|
||||
|
||||
var beforeSendValidate = function (numState, nextState) {
|
||||
$(".errorValidate").removeClass("errorValidate");
|
||||
if (numState == 0 || numState == 1) {
|
||||
if ($("#estabelecimento ").val() == "") {
|
||||
$("#estabelecimento ").parent("div").addClass("errorValidate");
|
||||
throw "'Estabelecimento/filial ' é obrigatório.";
|
||||
} else if ($("#enderecoSolicitante").val() == "") {
|
||||
$("#enderecoSolicitante").parent("div").addClass("errorValidate");
|
||||
throw "'Endereço do solicitante' é obrigatório.";
|
||||
} else if ($("#complemento").val() == "") {
|
||||
$("#complemento").parent("div").addClass("errorValidate");
|
||||
throw "'Complemento' é obrigatório.";
|
||||
} else if ($("#justificativa").val() == "") {
|
||||
$("#justificativa").parent("div").addClass("errorValidate");
|
||||
throw "'Qual o motivo da compra?' é obrigatório.";
|
||||
} else {
|
||||
$("input[id^='quantidadeItem___']").each(function (index, value) {
|
||||
var linha = $(value).attr("name").split("___")[1];
|
||||
|
||||
if (
|
||||
$("#descricao___" + linha).val() == "" &&
|
||||
$("#quantidadeItem___" + linha).val() == ""
|
||||
) {
|
||||
remove_row(value);
|
||||
}
|
||||
});
|
||||
|
||||
$("input[id^='quantidadeItem___']").each(function (index, value) {
|
||||
var linha = $(value).attr("name").split("___")[1];
|
||||
|
||||
if ($("#descricao___" + linha).val() == "") {
|
||||
$("#descricao___" + linha)
|
||||
.parent("div")
|
||||
.addClass("errorValidate");
|
||||
throw "Selecione o item " + (index + 1) + ".";
|
||||
} else if ($("#quantidadeItem___" + linha).val() == "") {
|
||||
$("#quantidadeItem___" + linha)
|
||||
.parent("div")
|
||||
.addClass("errorValidate");
|
||||
throw "Preencha a quantidade do item " + (index + 1) + ".";
|
||||
}
|
||||
});
|
||||
}
|
||||
} else if (numState == 4) {
|
||||
//
|
||||
} else if (numState == 6) {
|
||||
//
|
||||
} else if (numState == 18) {
|
||||
$('#justificativaValidaProblema').parent().removeClass('has-error errorValidate');
|
||||
if ($('#justificativaValidaProblema').val() == "") {
|
||||
$('#justificativaValidaProblema').parent().addClass('has-error errorValidate');
|
||||
throw "Preencha os campos obrigatórios."
|
||||
}
|
||||
|
||||
} else if (numState == 24) {
|
||||
|
||||
if (
|
||||
$("input[name='validacaoItens']:checked").val() == "" ||
|
||||
$("input[name='validacaoItens']:checked").val() == undefined
|
||||
) {
|
||||
throw "'Consegue resolver?' é obrigatório.";
|
||||
} else if (
|
||||
$("input[name='validacaoItens']:checked").val() == "naoEntregue" ||
|
||||
$("input[name='validacaoItens']:checked").val() == "incorreto"
|
||||
) {
|
||||
if ($("#justificativaDecisaoItens").val() == "") {
|
||||
$("#justificativaDecisaoItens")
|
||||
.parent("div")
|
||||
.addClass("errorValidate");
|
||||
throw "'Justificativa' é obrigatório.";
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function setSelectedZoomItem(selectedItem) {
|
||||
console.log("Campo selecionado:", name_item);
|
||||
var name_item = selectedItem.inputId;
|
||||
var ehItem = name_item.indexOf("___") >= 0;
|
||||
var indice = "";
|
||||
if (ehItem){
|
||||
var valores = name_item.split("___");
|
||||
name_item = valores[0];
|
||||
indice = valores[1];
|
||||
}
|
||||
|
||||
var dtsCentroCusto = DatasetFactory.getDataset(
|
||||
"ds_Liderdireto",
|
||||
null,
|
||||
null,
|
||||
null
|
||||
).values;
|
||||
|
||||
var nomeGestorComercialBA = dtsCentroCusto[1].gestorCentroCusto;
|
||||
var emailGestorComercialBA = dtsCentroCusto[1].emailGestor;
|
||||
var idGestorComercialBA = dtsCentroCusto[1].idGestor;
|
||||
|
||||
var nomeGestorComercialSE = dtsCentroCusto[2].gestorCentroCusto;
|
||||
var emailGestorComercialSE = dtsCentroCusto[2].emailGestor;
|
||||
var idGestorComercialSE = dtsCentroCusto[2].idGestor;
|
||||
|
||||
var nomeGestorComercialAL = dtsCentroCusto[3].gestorCentroCusto;
|
||||
var emailGestorComercialAL = dtsCentroCusto[3].emailGestor;
|
||||
var idGestorComercialAL = dtsCentroCusto[3].idGestor;
|
||||
|
||||
|
||||
if (name_item == "estabelecimento") {
|
||||
let estabelecimento = selectedItem["estabelecimento"];
|
||||
let estado = selectedItem["estado"];
|
||||
$("#estado").val(estado);
|
||||
|
||||
// Só executa a lógica do centro de custo se não for "Escritório"
|
||||
if (estabelecimento !== "ESCRITÓRIO MATRIZ") {
|
||||
// Executa manualmente a lógica do estado aqui
|
||||
if (estado.includes("AL")) {
|
||||
window["centroCusto"].setValue("Comercial AL");
|
||||
$("#gestorNome").val(nomeGestorComercialAL);
|
||||
$("#gestorEmail").val(emailGestorComercialAL);
|
||||
$("#gestor_cc").val(idGestorComercialAL);
|
||||
} else if (estado.includes("SE")) {
|
||||
window["centroCusto"].setValue("Comercial SE");
|
||||
$("#gestorNome").val(nomeGestorComercialSE);
|
||||
$("#gestorEmail").val(emailGestorComercialSE);
|
||||
$("#gestor_cc").val(idGestorComercialSE);
|
||||
} else if (estado.includes("BA")) {
|
||||
window["centroCusto"].setValue("Comercial BA");
|
||||
$("#gestorNome").val(nomeGestorComercialBA);
|
||||
$("#gestorEmail").val(emailGestorComercialBA);
|
||||
$("#gestor_cc").val(idGestorComercialBA);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (name_item == "centroCusto") {
|
||||
$("#gestorNome").val(selectedItem["gestorCentroCusto"]);
|
||||
$("#gestorEmail").val(selectedItem["emailGestor"]);
|
||||
$("#gestor_cc").val(selectedItem["idGestor"]);
|
||||
}
|
||||
}
|
||||
|
||||
function removedZoomItem(removedItem) {
|
||||
var name_item = removedItem.inputId;
|
||||
var ehItem = name_item.indexOf("___") >= 0;
|
||||
var indice = "";
|
||||
if (ehItem){
|
||||
var valores = name_item.split("___");
|
||||
name_item = valores[0];
|
||||
indice = valores[1];
|
||||
}
|
||||
|
||||
if (name_item == "userSolicitante") {
|
||||
$("#emailSolicitante").val("");
|
||||
} else if (name_item == "centroCusto") {
|
||||
$("#gestorNome").val("");
|
||||
$("#gestorEmail").val("");
|
||||
$("#gestor_cc").val("");
|
||||
} else if (~name_item.indexOf("___")) {
|
||||
var linha = name_item.split("___");
|
||||
|
||||
if (linha[0] == "descricao") {
|
||||
$("#codigoItem___" + linha[1]).val("");
|
||||
$("#quantidadeItem___" + linha[1]).val("");
|
||||
}
|
||||
}
|
||||
|
||||
if (name_item == "descricao") {
|
||||
$("#codigoItem" + "___" + indice).val("");
|
||||
}
|
||||
}
|
||||
|
||||
function add_new_row(table) {
|
||||
var row = wdkAddChild(table);
|
||||
updt_line();
|
||||
}
|
||||
|
||||
function updt_line() {
|
||||
$(".tabela_itens_id").each(function (index, item) {
|
||||
if (index == 0) return;
|
||||
$(item)[0].innerHTML = index;
|
||||
});
|
||||
}
|
||||
|
||||
function remove_row(element) {
|
||||
fnWdkRemoveChild(element);
|
||||
updt_line();
|
||||
}
|
||||
|
||||
|
||||
function gerarTabelaCotacaoComNumeracao(tabelarecrutamento) {
|
||||
wdkAddChild(tabelarecrutamento);
|
||||
}
|
||||
|
||||
|
||||
function removeLinhaComAnexo(event) {
|
||||
fnWdkRemoveChild(event);
|
||||
}
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
$("#userValidacaoGestor").val($("#currentUserName").val());
|
||||
@@ -0,0 +1,380 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<java version="1.8.0_202" class="java.beans.XMLDecoder">
|
||||
<object class="java.util.HashMap">
|
||||
<void method="put">
|
||||
<string>volume</string>
|
||||
<array class="java.lang.String" length="1">
|
||||
<void index="0">
|
||||
<string>Default</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>mecanismoGrupo</string>
|
||||
<object class="java.util.ArrayList">
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Aprovadores Compras Nvl 3</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>AprovadoresComprasNvl3</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Compras Indiretos</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>ComprasIndiretos</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Obras e manutenção</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Manutencao</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Motoristas</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Motoristas</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Recrutamento</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Recrutamento</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Requisitantes de Vaga</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Requisitantesdevaga</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Tecnologia e Comunicação</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>TIC</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>expediente</string>
|
||||
<array class="java.lang.String" length="4">
|
||||
<void index="0">
|
||||
<string>Default</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Expediente BackOffice, Logística e Motorista</string>
|
||||
</void>
|
||||
<void index="2">
|
||||
<string>Expediente Escritório Matriz</string>
|
||||
</void>
|
||||
<void index="3">
|
||||
<string>Expediente Lojas</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>mecanismo</string>
|
||||
<array class="[Ljava.lang.Object;" length="10">
|
||||
<void index="0">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Associação</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Associado</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="1">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Campo de Formulário</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Campo Formulário</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="2">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Executor de Atividade</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Executor Atividade</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="3">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Grupo</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Grupo</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="4">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Grupos do Colaborador</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Grupos Colaborador</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="5">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>mecCustomAprov</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>mecCustomAprov</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="6">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Papel</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Papel</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="7">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição para um Grupo</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Pool Grupo</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="8">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição para um Papel</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Pool Papel</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="9">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Usuário</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Usuário</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>camposFormulario, documentoId = 823</string>
|
||||
<array class="java.lang.String" length="55">
|
||||
<void index="0">
|
||||
<string>activity</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>aprovado</string>
|
||||
</void>
|
||||
<void index="2">
|
||||
<string>centroCusto</string>
|
||||
</void>
|
||||
<void index="3">
|
||||
<string>confidencial</string>
|
||||
</void>
|
||||
<void index="4">
|
||||
<string>consideracoes</string>
|
||||
</void>
|
||||
<void index="5">
|
||||
<string>consideracoesCompras</string>
|
||||
</void>
|
||||
<void index="6">
|
||||
<string>currentUserId</string>
|
||||
</void>
|
||||
<void index="7">
|
||||
<string>currentUsermail</string>
|
||||
</void>
|
||||
<void index="8">
|
||||
<string>currentUserName</string>
|
||||
</void>
|
||||
<void index="9">
|
||||
<string>dataAbertura</string>
|
||||
</void>
|
||||
<void index="10">
|
||||
<string>datainiciotrabalho</string>
|
||||
</void>
|
||||
<void index="11">
|
||||
<string>dataRealizacaoCompras</string>
|
||||
</void>
|
||||
<void index="12">
|
||||
<string>dataUserValidacao</string>
|
||||
</void>
|
||||
<void index="13">
|
||||
<string>dataValidacaoCompras</string>
|
||||
</void>
|
||||
<void index="14">
|
||||
<string>dataValidacaoCorre</string>
|
||||
</void>
|
||||
<void index="15">
|
||||
<string>dataValidacaofunc</string>
|
||||
</void>
|
||||
<void index="16">
|
||||
<string>dataValidacaoGestor</string>
|
||||
</void>
|
||||
<void index="17">
|
||||
<string>dataValidacaoItens</string>
|
||||
</void>
|
||||
<void index="18">
|
||||
<string>descricaodeperfil</string>
|
||||
</void>
|
||||
<void index="19">
|
||||
<string>email</string>
|
||||
</void>
|
||||
<void index="20">
|
||||
<string>estabelecimento</string>
|
||||
</void>
|
||||
<void index="21">
|
||||
<string>estado</string>
|
||||
</void>
|
||||
<void index="22">
|
||||
<string>fardamentoPronto</string>
|
||||
</void>
|
||||
<void index="23">
|
||||
<string>formMode</string>
|
||||
</void>
|
||||
<void index="24">
|
||||
<string>funcao</string>
|
||||
</void>
|
||||
<void index="25">
|
||||
<string>gestorEmail</string>
|
||||
</void>
|
||||
<void index="26">
|
||||
<string>gestorNome</string>
|
||||
</void>
|
||||
<void index="27">
|
||||
<string>gestor_cc</string>
|
||||
</void>
|
||||
<void index="28">
|
||||
<string>itensinicio</string>
|
||||
</void>
|
||||
<void index="29">
|
||||
<string>justificativa</string>
|
||||
</void>
|
||||
<void index="30">
|
||||
<string>justificativaDecisaoCompras</string>
|
||||
</void>
|
||||
<void index="31">
|
||||
<string>justificativaDecisaoCorre</string>
|
||||
</void>
|
||||
<void index="32">
|
||||
<string>justificativaDecisaoFunc</string>
|
||||
</void>
|
||||
<void index="33">
|
||||
<string>justificativaDecisaoGestor</string>
|
||||
</void>
|
||||
<void index="34">
|
||||
<string>justificativaDecisaoItens</string>
|
||||
</void>
|
||||
<void index="35">
|
||||
<string>nomedocandidato</string>
|
||||
</void>
|
||||
<void index="36">
|
||||
<string>ratingValue</string>
|
||||
</void>
|
||||
<void index="37">
|
||||
<string>requesterId</string>
|
||||
</void>
|
||||
<void index="38">
|
||||
<string>requesterMail</string>
|
||||
</void>
|
||||
<void index="39">
|
||||
<string>requesterName</string>
|
||||
</void>
|
||||
<void index="40">
|
||||
<string>situacaoResolvida</string>
|
||||
</void>
|
||||
<void index="41">
|
||||
<string>telefone</string>
|
||||
</void>
|
||||
<void index="42">
|
||||
<string>urgente</string>
|
||||
</void>
|
||||
<void index="43">
|
||||
<string>userRealizacaoCompras</string>
|
||||
</void>
|
||||
<void index="44">
|
||||
<string>userValidacao</string>
|
||||
</void>
|
||||
<void index="45">
|
||||
<string>userValidacaoCompras</string>
|
||||
</void>
|
||||
<void index="46">
|
||||
<string>userValidacaoCorre</string>
|
||||
</void>
|
||||
<void index="47">
|
||||
<string>userValidacaofunc</string>
|
||||
</void>
|
||||
<void index="48">
|
||||
<string>userValidacaoGestor</string>
|
||||
</void>
|
||||
<void index="49">
|
||||
<string>userValidacaoItens</string>
|
||||
</void>
|
||||
<void index="50">
|
||||
<string>validacaoCorre</string>
|
||||
</void>
|
||||
<void index="51">
|
||||
<string>validacaoFunc</string>
|
||||
</void>
|
||||
<void index="52">
|
||||
<string>validacaoItens</string>
|
||||
</void>
|
||||
<void index="53">
|
||||
<string>validarMotivo</string>
|
||||
</void>
|
||||
<void index="54">
|
||||
<string>WKNumProces</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
</object>
|
||||
</java>
|
||||
@@ -0,0 +1,715 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<java version="1.8.0_202" class="java.beans.XMLDecoder">
|
||||
<object class="java.util.HashMap">
|
||||
<void method="put">
|
||||
<string>volume</string>
|
||||
<array class="java.lang.String" length="1">
|
||||
<void index="0">
|
||||
<string>Default</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>mecanismoGrupo</string>
|
||||
<object class="java.util.ArrayList">
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Aprovadores Compras Nvl 3</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>AprovadoresComprasNvl3</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Compras Indiretos</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>ComprasIndiretos</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Obras e manutenção</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Manutencao</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Motoristas</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>Motoristas</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.tds.ecm.foundation.ws.GroupDto">
|
||||
<void property="groupDescription">
|
||||
<string>Tecnologia e Comunicação</string>
|
||||
</void>
|
||||
<void property="groupId">
|
||||
<string>TIC</string>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>expediente</string>
|
||||
<array class="java.lang.String" length="4">
|
||||
<void index="0">
|
||||
<string>Default</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Expediente BackOffice, Logística e Motorista</string>
|
||||
</void>
|
||||
<void index="2">
|
||||
<string>Expediente Escritório Matriz</string>
|
||||
</void>
|
||||
<void index="3">
|
||||
<string>Expediente Lojas</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>camposFormulario, documentoId = 590</string>
|
||||
<array class="java.lang.String" length="50">
|
||||
<void index="0">
|
||||
<string>activity</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>centroCusto</string>
|
||||
</void>
|
||||
<void index="2">
|
||||
<string>codigoItem</string>
|
||||
</void>
|
||||
<void index="3">
|
||||
<string>complemento</string>
|
||||
</void>
|
||||
<void index="4">
|
||||
<string>consideracoesCompras</string>
|
||||
</void>
|
||||
<void index="5">
|
||||
<string>consideracoesCotacao</string>
|
||||
</void>
|
||||
<void index="6">
|
||||
<string>currentUserId</string>
|
||||
</void>
|
||||
<void index="7">
|
||||
<string>currentUsermail</string>
|
||||
</void>
|
||||
<void index="8">
|
||||
<string>currentUserName</string>
|
||||
</void>
|
||||
<void index="9">
|
||||
<string>dataAbertura</string>
|
||||
</void>
|
||||
<void index="10">
|
||||
<string>dataAprovCompras</string>
|
||||
</void>
|
||||
<void index="11">
|
||||
<string>dataRealizacaoCompras</string>
|
||||
</void>
|
||||
<void index="12">
|
||||
<string>dataValidacaoCompras</string>
|
||||
</void>
|
||||
<void index="13">
|
||||
<string>dataValidacaoGestor</string>
|
||||
</void>
|
||||
<void index="14">
|
||||
<string>dataValidacaoItens</string>
|
||||
</void>
|
||||
<void index="15">
|
||||
<string>descricao</string>
|
||||
</void>
|
||||
<void index="16">
|
||||
<string>emailSolicitante</string>
|
||||
</void>
|
||||
<void index="17">
|
||||
<string>estabelecimento</string>
|
||||
</void>
|
||||
<void index="18">
|
||||
<string>fdAnexo_Coleta</string>
|
||||
</void>
|
||||
<void index="19">
|
||||
<string>fdAnexo_Entrega</string>
|
||||
</void>
|
||||
<void index="20">
|
||||
<string>fdAnexo_Nfe</string>
|
||||
</void>
|
||||
<void index="21">
|
||||
<string>fdAnexo_recebimento</string>
|
||||
</void>
|
||||
<void index="22">
|
||||
<string>fnAnexo_Coleta</string>
|
||||
</void>
|
||||
<void index="23">
|
||||
<string>fnAnexo_Entrega</string>
|
||||
</void>
|
||||
<void index="24">
|
||||
<string>fnAnexo_Nfe</string>
|
||||
</void>
|
||||
<void index="25">
|
||||
<string>fnAnexo_recebimento</string>
|
||||
</void>
|
||||
<void index="26">
|
||||
<string>formMode</string>
|
||||
</void>
|
||||
<void index="27">
|
||||
<string>gestor_cc</string>
|
||||
</void>
|
||||
<void index="28">
|
||||
<string>gestor_cce</string>
|
||||
</void>
|
||||
<void index="29">
|
||||
<string>gestorEmail</string>
|
||||
</void>
|
||||
<void index="30">
|
||||
<string>gestorEmailE</string>
|
||||
</void>
|
||||
<void index="31">
|
||||
<string>gestorNome</string>
|
||||
</void>
|
||||
<void index="32">
|
||||
<string>gestorNomeE</string>
|
||||
</void>
|
||||
<void index="33">
|
||||
<string>justificativa</string>
|
||||
</void>
|
||||
<void index="34">
|
||||
<string>justificativaDecisaoCompras</string>
|
||||
</void>
|
||||
<void index="35">
|
||||
<string>justificativaDecisaoGestor</string>
|
||||
</void>
|
||||
<void index="36">
|
||||
<string>justificativaDecisaoItens</string>
|
||||
</void>
|
||||
<void index="37">
|
||||
<string>justificativaValidaProblema</string>
|
||||
</void>
|
||||
<void index="38">
|
||||
<string>quantidadeItem</string>
|
||||
</void>
|
||||
<void index="39">
|
||||
<string>requesterId</string>
|
||||
</void>
|
||||
<void index="40">
|
||||
<string>requesterMail</string>
|
||||
</void>
|
||||
<void index="41">
|
||||
<string>requesterName</string>
|
||||
</void>
|
||||
<void index="42">
|
||||
<string>userCotacaoGestor</string>
|
||||
</void>
|
||||
<void index="43">
|
||||
<string>userRealizacaoCompras</string>
|
||||
</void>
|
||||
<void index="44">
|
||||
<string>userSolicitante</string>
|
||||
</void>
|
||||
<void index="45">
|
||||
<string>userValidacaoCompras</string>
|
||||
</void>
|
||||
<void index="46">
|
||||
<string>userValidacaoGestor</string>
|
||||
</void>
|
||||
<void index="47">
|
||||
<string>userValidacaoItens</string>
|
||||
</void>
|
||||
<void index="48">
|
||||
<string>validacaoItens</string>
|
||||
</void>
|
||||
<void index="49">
|
||||
<string>WKNumProces</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>mecanismo</string>
|
||||
<array class="[Ljava.lang.Object;" length="10">
|
||||
<void index="0">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Associação</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Associado</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="1">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Campo de Formulário</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Campo Formulário</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="2">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Executor de Atividade</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Executor Atividade</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="3">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Grupo</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Grupo</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="4">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Grupos do Colaborador</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Grupos Colaborador</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="5">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>mecCustomAprov</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>mecCustomAprov</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="6">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Papel</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Papel</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="7">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição para um Grupo</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Pool Grupo</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="8">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição para um Papel</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Pool Papel</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void index="9">
|
||||
<array class="java.lang.Object" length="2">
|
||||
<void index="0">
|
||||
<string>Atribuição por Usuário</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>Usuário</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>forms</string>
|
||||
<object class="java.util.LinkedList">
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>FLUIGADHOC</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>FLUIGADHOC</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>3</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>FLUIGADHOCPROCESS</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>FLUIGADHOCPROCESS</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>4</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_dataset_tipo_ocorrencia</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_dataset_tipo_ocorrencia</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>14</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_abertura_chamado</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_abertura_chamado</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>15</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>DSFormulariodeAberturadechamado</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Formulário de Abertura de chamado</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>20</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>Abertura_de_chamados</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Solicitação de abertura de chamados</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>21</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>DSvistoriadeServico</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>vistoriadeServico</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>24</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>DSFormulariodeReservadesala</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Formulário de Reserva de sala</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>34</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_dataset_centrocusto</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_dataset_centrocusto</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>103</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_dataset_cadastro_item</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_dataset_cadastro_item</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>104</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_dataset_estabelecimento</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_dataset_estabelecimento</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>105</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>totvsflow_solicitacao_compras</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>totvsflow_solicitacao_compras</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>165</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>aberturadechamado_manutencao</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>aberturadechamado_manutencao</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>400</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>Solicitacao_transferencia</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>Solicitacao_transferencia</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>590</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="add">
|
||||
<object class="com.totvs.technology.ecmrestclient.cardindexpublisher.FormVO">
|
||||
<void property="datasetName">
|
||||
<string>recrutamento</string>
|
||||
</void>
|
||||
<void property="documentDescription">
|
||||
<string>recrutamento</string>
|
||||
</void>
|
||||
<void property="documentId">
|
||||
<int>823</int>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
</object>
|
||||
</void>
|
||||
<void method="put">
|
||||
<string>camposFormulario, documentoId = 823</string>
|
||||
<array class="java.lang.String" length="55">
|
||||
<void index="0">
|
||||
<string>activity</string>
|
||||
</void>
|
||||
<void index="1">
|
||||
<string>aprovado</string>
|
||||
</void>
|
||||
<void index="2">
|
||||
<string>centroCusto</string>
|
||||
</void>
|
||||
<void index="3">
|
||||
<string>confidencial</string>
|
||||
</void>
|
||||
<void index="4">
|
||||
<string>consideracoes</string>
|
||||
</void>
|
||||
<void index="5">
|
||||
<string>consideracoesCompras</string>
|
||||
</void>
|
||||
<void index="6">
|
||||
<string>currentUserId</string>
|
||||
</void>
|
||||
<void index="7">
|
||||
<string>currentUsermail</string>
|
||||
</void>
|
||||
<void index="8">
|
||||
<string>currentUserName</string>
|
||||
</void>
|
||||
<void index="9">
|
||||
<string>dataAbertura</string>
|
||||
</void>
|
||||
<void index="10">
|
||||
<string>datainiciotrabalho</string>
|
||||
</void>
|
||||
<void index="11">
|
||||
<string>dataRealizacaoCompras</string>
|
||||
</void>
|
||||
<void index="12">
|
||||
<string>dataUserValidacao</string>
|
||||
</void>
|
||||
<void index="13">
|
||||
<string>dataValidacaoCompras</string>
|
||||
</void>
|
||||
<void index="14">
|
||||
<string>dataValidacaoCorre</string>
|
||||
</void>
|
||||
<void index="15">
|
||||
<string>dataValidacaofunc</string>
|
||||
</void>
|
||||
<void index="16">
|
||||
<string>dataValidacaoGestor</string>
|
||||
</void>
|
||||
<void index="17">
|
||||
<string>dataValidacaoItens</string>
|
||||
</void>
|
||||
<void index="18">
|
||||
<string>descricaodeperfil</string>
|
||||
</void>
|
||||
<void index="19">
|
||||
<string>email</string>
|
||||
</void>
|
||||
<void index="20">
|
||||
<string>estabelecimento</string>
|
||||
</void>
|
||||
<void index="21">
|
||||
<string>estado</string>
|
||||
</void>
|
||||
<void index="22">
|
||||
<string>fardamentoPronto</string>
|
||||
</void>
|
||||
<void index="23">
|
||||
<string>formMode</string>
|
||||
</void>
|
||||
<void index="24">
|
||||
<string>funcao</string>
|
||||
</void>
|
||||
<void index="25">
|
||||
<string>gestorEmail</string>
|
||||
</void>
|
||||
<void index="26">
|
||||
<string>gestorNome</string>
|
||||
</void>
|
||||
<void index="27">
|
||||
<string>gestor_cc</string>
|
||||
</void>
|
||||
<void index="28">
|
||||
<string>itensinicio</string>
|
||||
</void>
|
||||
<void index="29">
|
||||
<string>justificativa</string>
|
||||
</void>
|
||||
<void index="30">
|
||||
<string>justificativaDecisaoCompras</string>
|
||||
</void>
|
||||
<void index="31">
|
||||
<string>justificativaDecisaoCorre</string>
|
||||
</void>
|
||||
<void index="32">
|
||||
<string>justificativaDecisaoFunc</string>
|
||||
</void>
|
||||
<void index="33">
|
||||
<string>justificativaDecisaoGestor</string>
|
||||
</void>
|
||||
<void index="34">
|
||||
<string>justificativaDecisaoItens</string>
|
||||
</void>
|
||||
<void index="35">
|
||||
<string>nomedocandidato</string>
|
||||
</void>
|
||||
<void index="36">
|
||||
<string>ratingValue</string>
|
||||
</void>
|
||||
<void index="37">
|
||||
<string>requesterId</string>
|
||||
</void>
|
||||
<void index="38">
|
||||
<string>requesterMail</string>
|
||||
</void>
|
||||
<void index="39">
|
||||
<string>requesterName</string>
|
||||
</void>
|
||||
<void index="40">
|
||||
<string>situacaoResolvida</string>
|
||||
</void>
|
||||
<void index="41">
|
||||
<string>telefone</string>
|
||||
</void>
|
||||
<void index="42">
|
||||
<string>urgente</string>
|
||||
</void>
|
||||
<void index="43">
|
||||
<string>userRealizacaoCompras</string>
|
||||
</void>
|
||||
<void index="44">
|
||||
<string>userValidacao</string>
|
||||
</void>
|
||||
<void index="45">
|
||||
<string>userValidacaoCompras</string>
|
||||
</void>
|
||||
<void index="46">
|
||||
<string>userValidacaoCorre</string>
|
||||
</void>
|
||||
<void index="47">
|
||||
<string>userValidacaofunc</string>
|
||||
</void>
|
||||
<void index="48">
|
||||
<string>userValidacaoGestor</string>
|
||||
</void>
|
||||
<void index="49">
|
||||
<string>userValidacaoItens</string>
|
||||
</void>
|
||||
<void index="50">
|
||||
<string>validacaoCorre</string>
|
||||
</void>
|
||||
<void index="51">
|
||||
<string>validacaoFunc</string>
|
||||
</void>
|
||||
<void index="52">
|
||||
<string>validacaoItens</string>
|
||||
</void>
|
||||
<void index="53">
|
||||
<string>validarMotivo</string>
|
||||
</void>
|
||||
<void index="54">
|
||||
<string>WKNumProces</string>
|
||||
</void>
|
||||
</array>
|
||||
</void>
|
||||
</object>
|
||||
</java>
|
||||
+1498
File diff suppressed because it is too large
Load Diff
BIN
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
After Width: | Height: | Size: 46 KiB |
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 18 KiB |
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user