att
This commit is contained in:
parent
20ae0d1f2f
commit
2946fc4f6e
18
Recrutamento e Seleção/.vscode/servers.json
vendored
Normal file
18
Recrutamento e Seleção/.vscode/servers.json
vendored
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
{
|
||||||
|
"version": "1.0.0",
|
||||||
|
"configurations": [
|
||||||
|
{
|
||||||
|
"id": "li97ygt2jtpmox9f43v2yuy8w2zc9b",
|
||||||
|
"name": "Ginseng Produção",
|
||||||
|
"host": "comerciode188006.fluig.cloudtotvs.com.br",
|
||||||
|
"ssl": true,
|
||||||
|
"port": 443,
|
||||||
|
"username": "andrey.cunha",
|
||||||
|
"password": "eyJpdiI6IjU5MzE0NTNmZGEzYzY1OTg4NWM0MGRmMzNlM2QxZjU1Iiwic2FsdCI6ImYzODdiNjVkNjUwNDAzMjdjZjI1ZDFhM2I5ZDE5MGE1IiwidGV4dCI6ImIyNzQ4NWI1NTkwZjZjMzUwMjdiOTUzODVlMDExZTBiIn0=",
|
||||||
|
"userCode": "andrey.cunha",
|
||||||
|
"confirmExporting": false,
|
||||||
|
"hasBrowser": false,
|
||||||
|
"companyId": 1
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@ -23,7 +23,7 @@ function createDataset(fields, constraints, sortFields) {
|
|||||||
["51101", "Diretoria e Gestão", "João Marcelo", "joao.loureiro@grupoginseng.com.br", "4"],
|
["51101", "Diretoria e Gestão", "João Marcelo", "joao.loureiro@grupoginseng.com.br", "4"],
|
||||||
["51102", "Operações", "Lucas Barbosa", "lucas.barbosa@grupoginseng.com.br", "5"],
|
["51102", "Operações", "Lucas Barbosa", "lucas.barbosa@grupoginseng.com.br", "5"],
|
||||||
["51102", "Obras e Manutenção", "Diogo Demetrio", "diogo.martins@grupoginseng.com.br", "6"],
|
["51102", "Obras e Manutenção", "Diogo Demetrio", "diogo.martins@grupoginseng.com.br", "6"],
|
||||||
["51103", "Controladoria", "Ariklenyo Nascimento", "ari.nascimento@grupoginseng.com.br", "7"],
|
["51103", "Controladoria", "Lucas Marchiori", "lucas.marchiori@grupoginseng.com.br", "7"],
|
||||||
["51104", "Compliance", "Marla Palma", "marla.palma@grupoginseng.com.br", "8"],
|
["51104", "Compliance", "Marla Palma", "marla.palma@grupoginseng.com.br", "8"],
|
||||||
["51107", "Administrativo", "Lucila Brandão", "lucila.brandao@grupoginseng.com.br", "9"],
|
["51107", "Administrativo", "Lucila Brandão", "lucila.brandao@grupoginseng.com.br", "9"],
|
||||||
["51110", "Gente e Cultura", "Francine Peiter", "francine.silva@grupoginseng.com.br", "10"],
|
["51110", "Gente e Cultura", "Francine Peiter", "francine.silva@grupoginseng.com.br", "10"],
|
||||||
|
|||||||
@ -157,23 +157,20 @@
|
|||||||
<span class="required text-danger"><strong> * </strong></span>
|
<span class="required text-danger"><strong> * </strong></span>
|
||||||
<input type="zoom" class="form-control requiredInput" name="estabelecimento" id="estabelecimento"
|
<input type="zoom" class="form-control requiredInput" name="estabelecimento" id="estabelecimento"
|
||||||
data-zoom="{
|
data-zoom="{
|
||||||
'displayKey':'estabelecimento',
|
'displayKey':'LOJA',
|
||||||
'datasetId':'dsFiliais',
|
'datasetId':'dsFiliais',
|
||||||
'placeholder': 'Pesquisar nome do estabelecimento ou filial.',
|
'placeholder': 'Pesquisar nome do estabelecimento ou filial.',
|
||||||
'fields':[
|
'fields':[
|
||||||
{
|
{'field':'LOJA','label':'Filial','standard':'true','search':'true'},
|
||||||
'field':'estabelecimento',
|
{'field':'REGIONAL','label':'REGIONAL','standard':'true'},
|
||||||
'label':'Filial',
|
{'field':'UF','label':'UF','standard':'true'},
|
||||||
'standard':'true',
|
{'field':'RESPONSAVEL_LOJA','label':'RESPONSAVEL_LOJA','visible':'false'},
|
||||||
'search':'true'
|
{'field':'PDV','label':'PDV','visible':'false'},
|
||||||
},
|
{'field':'PROTHEUS','label':'PROTHEUS','visible':'false'},
|
||||||
{
|
{'field':'COLLEAGUE_ID','label':'COLLEAGUE_ID','visible':'false'},
|
||||||
'field':'codigo',
|
{'field':'LOGIN_LOJA','label':'LOGIN_LOJA','visible':'false'}
|
||||||
'label':'Protheus',
|
]
|
||||||
'search':'true'
|
}">
|
||||||
}
|
|
||||||
]
|
|
||||||
}" />
|
|
||||||
<p class="text-danger text-error">
|
<p class="text-danger text-error">
|
||||||
Preenchimento obrigatório.
|
Preenchimento obrigatório.
|
||||||
</p>
|
</p>
|
||||||
@ -327,6 +324,45 @@
|
|||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-group col-md-8 col-xs-12">
|
||||||
|
<label>Qual equipamento 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-4 col-xs-12">
|
||||||
|
<label>Vai precisar de fardamento?</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>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -465,103 +501,22 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<div class="form-input">
|
<div class="form-input">
|
||||||
<div class="form-group col-md-12 col-xs-12">
|
<div class="form-group col-md-4 col-xs-12">
|
||||||
<label for="numCotacoes">Clique no botão para adicionar participantes</label>
|
<label for="nomedocandidato">Nome do candidato selecionado</label>
|
||||||
<button id="gerarTabela" class="btn btn-primary btn-sm"
|
<input type="text" class="form-control" id="nomedocandidato" name="nomedocandidato">
|
||||||
onclick="gerarTabelaCotacaoComNumeracao('tabelarecrutamento')">Adicionar</button>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<div class="form-group col-md-4 col-xs-12">
|
||||||
</div>
|
<label for="telefone">Telefone</label>
|
||||||
</div>
|
<input type="text" class="form-control" id="telefone" name="telefone">
|
||||||
<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>
|
|
||||||
</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">
|
|
||||||
<button type="button" class="btn btn-danger btn-sm remover-linha"
|
|
||||||
onclick="removeLinhaComAnexo(this)">Remover</button>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="form-group col-md-4 col-xs-12">
|
||||||
<br />
|
<label for="email">Email</label>
|
||||||
<h6>
|
<input type="email" class="form-control" id="email" name="email">
|
||||||
Checklist de Início.
|
|
||||||
</h6>
|
|
||||||
<br />
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row">
|
<div class="form-group col-md-2 col-xs-6">
|
||||||
<div class="form-field">
|
|
||||||
<div class="form-input">
|
|
||||||
<div class="form-group col-md-2 col-xs-6">
|
|
||||||
<label for="datainiciotrabalho"> Data de início</label>
|
<label for="datainiciotrabalho"> Data de início</label>
|
||||||
<input type="date" name="datainiciotrabalho" id="datainiciotrabalho" class="form-control">
|
<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>
|
</div>
|
||||||
|
|
||||||
<div class="row justificativa-activity-6">
|
<div class="row justificativa-activity-6">
|
||||||
<div class="form-field">
|
<div class="form-field">
|
||||||
<div class="form-input">
|
<div class="form-input">
|
||||||
@ -876,4 +831,4 @@
|
|||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@ -331,8 +331,8 @@ var beforeSendValidate = function (numState, nextState) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
function setSelectedZoomItem(selectedItem) {
|
function setSelectedZoomItem(selectedItem) {
|
||||||
console.log("Campo selecionado:", name_item);
|
|
||||||
var name_item = selectedItem.inputId;
|
var name_item = selectedItem.inputId;
|
||||||
|
console.log("Campo selecionado:", name_item);
|
||||||
var ehItem = name_item.indexOf("___") >= 0;
|
var ehItem = name_item.indexOf("___") >= 0;
|
||||||
var indice = "";
|
var indice = "";
|
||||||
if (ehItem){
|
if (ehItem){
|
||||||
@ -341,51 +341,60 @@ function setSelectedZoomItem(selectedItem) {
|
|||||||
indice = valores[1];
|
indice = valores[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
var dtsCentroCusto = DatasetFactory.getDataset(
|
var dtsCentroCusto = [];
|
||||||
"ds_Liderdireto",
|
try {
|
||||||
null,
|
var dsCentroCusto = DatasetFactory.getDataset("ds_Liderdireto", null, null, null);
|
||||||
null,
|
dtsCentroCusto = dsCentroCusto && dsCentroCusto.values ? dsCentroCusto.values : [];
|
||||||
null
|
} catch (e) {
|
||||||
).values;
|
console.error("Falha ao carregar ds_Liderdireto:", e);
|
||||||
|
}
|
||||||
var nomeGestorComercialBA = dtsCentroCusto[0].gestorCentroCusto;
|
|
||||||
var emailGestorComercialBA = dtsCentroCusto[0].emailGestor;
|
|
||||||
var idGestorComercialBA = dtsCentroCusto[0].idGestor;
|
|
||||||
|
|
||||||
var nomeGestorComercialSE = dtsCentroCusto[1].gestorCentroCusto;
|
|
||||||
var emailGestorComercialSE = dtsCentroCusto[1].emailGestor;
|
|
||||||
var idGestorComercialSE = dtsCentroCusto[1].idGestor;
|
|
||||||
|
|
||||||
var nomeGestorComercialAL = dtsCentroCusto[2].gestorCentroCusto;
|
|
||||||
var emailGestorComercialAL = dtsCentroCusto[2].emailGestor;
|
|
||||||
var idGestorComercialAL = dtsCentroCusto[2].idGestor;
|
|
||||||
|
|
||||||
|
function getGestorByCentroCusto(nomeCentroCusto) {
|
||||||
|
for (var i = 0; i < dtsCentroCusto.length; i++) {
|
||||||
|
if (dtsCentroCusto[i].centroCusto === nomeCentroCusto) {
|
||||||
|
return dtsCentroCusto[i];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
|
||||||
if (name_item == "estabelecimento") {
|
if (name_item == "estabelecimento") {
|
||||||
let estabelecimento = selectedItem["estabelecimento"];
|
var estabelecimento =
|
||||||
let estado = selectedItem["estado"];
|
selectedItem["estabelecimento"] ||
|
||||||
|
selectedItem["LOJA"] ||
|
||||||
|
selectedItem["filial"] ||
|
||||||
|
"";
|
||||||
|
|
||||||
|
var estado = selectedItem["estado"] || selectedItem["UF"] || "";
|
||||||
|
var estadoNormalizado = (estado + "").toUpperCase();
|
||||||
$("#estado").val(estado);
|
$("#estado").val(estado);
|
||||||
|
|
||||||
|
if (estabelecimento && window["estabelecimento"] && typeof window["estabelecimento"].setValue === "function") {
|
||||||
|
window["estabelecimento"].setValue(estabelecimento);
|
||||||
|
}
|
||||||
|
|
||||||
// Só executa a lógica do centro de custo se não for "Escritório"
|
// Só executa a lógica do centro de custo se não for "Escritório"
|
||||||
if (estabelecimento !== "ESCRITÓRIO MATRIZ") {
|
if (estabelecimento !== "ESCRITÓRIO MATRIZ" && estadoNormalizado) {
|
||||||
// Executa manualmente a lógica do estado aqui
|
var centroAlvo = "";
|
||||||
if (estado.includes("AL")) {
|
if (estadoNormalizado.indexOf("AL") >= 0) {
|
||||||
window["centroCusto"].setValue("Comercial AL");
|
centroAlvo = "Comercial AL";
|
||||||
$("#gestorNome").val(nomeGestorComercialAL);
|
} else if (estadoNormalizado.indexOf("SE") >= 0) {
|
||||||
$("#gestorEmail").val(emailGestorComercialAL);
|
centroAlvo = "Comercial SE";
|
||||||
$("#gestor_cc").val(idGestorComercialAL);
|
} else if (estadoNormalizado.indexOf("BA") >= 0) {
|
||||||
} else if (estado.includes("SE")) {
|
centroAlvo = "Comercial BA";
|
||||||
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 (centroAlvo) {
|
||||||
|
var dadosGestor = getGestorByCentroCusto(centroAlvo);
|
||||||
|
window["centroCusto"].setValue(centroAlvo);
|
||||||
|
|
||||||
|
if (dadosGestor) {
|
||||||
|
$("#gestorNome").val(dadosGestor.gestorCentroCusto || "");
|
||||||
|
$("#gestorEmail").val(dadosGestor.emailGestor || "");
|
||||||
|
$("#gestor_cc").val(dadosGestor.idGestor || "");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (name_item == "centroCusto") {
|
if (name_item == "centroCusto") {
|
||||||
$("#gestorNome").val(selectedItem["gestorCentroCusto"]);
|
$("#gestorNome").val(selectedItem["gestorCentroCusto"]);
|
||||||
@ -442,13 +451,3 @@ function remove_row(element) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
function gerarTabelaCotacaoComNumeracao(tabelarecrutamento) {
|
|
||||||
wdkAddChild(tabelarecrutamento);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
function removeLinhaComAnexo(event) {
|
|
||||||
fnWdkRemoveChild(event);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
|
Before Width: | Height: | Size: 44 KiB After Width: | Height: | Size: 46 KiB |
Loading…
x
Reference in New Issue
Block a user