First commit
This commit is contained in:
parent
cf97b64877
commit
cc69770608
1468 changed files with 265316 additions and 128 deletions
223
www/admin/conf/_js/acxent-taglio.js
Normal file
223
www/admin/conf/_js/acxent-taglio.js
Normal file
|
|
@ -0,0 +1,223 @@
|
|||
/************************************************/
|
||||
/* standard javascript for lte */
|
||||
/************************************************/
|
||||
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* check fields per pagina dettaglio /*
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function checkFields()
|
||||
|
||||
{
|
||||
//R per required
|
||||
//isNum per numerico
|
||||
//isNumKey è una chiave.. uguale a isNum>0 ma cambio il messaggio
|
||||
//isNum>x per numerico maggiore di x
|
||||
//isNum<x per numerico minore di x
|
||||
//isEmail per indirizzo email
|
||||
//inRange1:10 per ..
|
||||
//3 stringhe
|
||||
//1: nome del field
|
||||
//2: se '' visualizza il nome del field, altrimenti questo campo
|
||||
//3: R/N+''/isNum/isEmail/inRangea:b
|
||||
|
||||
return Ab.validateForm('descrizione', 'Descrizione', 'R');
|
||||
}
|
||||
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/** REPORT MA FORSE NON SERVE */
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function reportxxx() {
|
||||
//FACCIO IL SUBMIT
|
||||
var f = document.main;
|
||||
f.flgReport.value = "S";
|
||||
//f.action=webApp+"/tr/Pratica.abl";
|
||||
f.cmd.value = "search";
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* TEMPLATE GESTIONE RIGHE */
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function addRow() {
|
||||
|
||||
var f = document.main;
|
||||
f.action = f.actionPage.value;
|
||||
if (Ab.validateForm('id_riga', 'Row', 'R')) {
|
||||
f.cmd.value = "addRow";
|
||||
f.act.value = "";
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
}
|
||||
|
||||
function delRow(l_id) {
|
||||
if (Ab.confirmDelete()) {
|
||||
var f = document.main;
|
||||
f.action = f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value = "delRow";
|
||||
f.act.value = "";
|
||||
f.id_riga.value = l_id;
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function modRow(l_id) {
|
||||
|
||||
{
|
||||
var f = document.main;
|
||||
f.action = f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value = "modRo";
|
||||
f.act.value = "";
|
||||
f.id_riga.value = l_id;
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function checkBoxes()
|
||||
/////////////////////////////////////////////
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function checkBoxesCR() {
|
||||
|
||||
}
|
||||
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
/* disposizione taglio apro la schermata principale dei tagli!!!
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
function startTaglio(l_id_doc) {
|
||||
var f = document.main;
|
||||
f.action = f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value = "dettaglioDisposizione";
|
||||
f.act.value = "";
|
||||
f.id_documento.value = l_id_doc;
|
||||
//f.id_articoloD.value=l_id_art;
|
||||
Ab.submitAj('main');
|
||||
|
||||
|
||||
}
|
||||
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
/* disposizione tagli.. modificho capi per telo sulle intestazioni!!!*/
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
function aggiornaCapiTelo(l_id_rd) {
|
||||
var f = document.main;
|
||||
f.action = f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value = "aggiornaCapiTelo";
|
||||
f.act.value = "";
|
||||
f.capiPerTeloNew.value = $("#capiPerTelo_" + l_id_rd).val();
|
||||
f.id_rigaDocumento.value = l_id_rd;
|
||||
|
||||
//alert(f.id_rigaDocumento.value);
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
/* disposizione tagli.. modificho numero teli nell'incrocio articolo/tessuto variante!!!*/
|
||||
/* passo riga documento articolo (con la variante e taglia) e riga documento 100, quello del fabbisogno tessuto */
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
function aggiornaTeliArticoloTessuto(l_ids) {
|
||||
var idsAr = l_ids.split("_");
|
||||
l_id_rd_articolo = idsAr[0];
|
||||
l_id_rd_tessuto = idsAr[1];
|
||||
|
||||
//alert(l_id_rd_articolo+" ---- "+l_id_rd_tessuto);
|
||||
var f = document.main;
|
||||
f.action = f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value = "aggiornaTeliArticoloTessuto";
|
||||
f.act.value = "";
|
||||
f.numTeliRigaNew.value = $("#numTeliRiga_" + l_id_rd_articolo + "_" + l_id_rd_tessuto).val();
|
||||
f.id_rigaDocumento.value = l_id_rd_articolo;
|
||||
f.id_rigaDocumento100.value = l_id_rd_tessuto;
|
||||
|
||||
//alert(f.id_rigaDocumento.value);
|
||||
Ab.submitAj('main');
|
||||
}
|
||||
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
/* STAMPA DISPOSIZIONE TAGLIO per il tagliatore!!!*/
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
function stampaDisposizioneTaglioLav() {
|
||||
//swal(id);
|
||||
id = $("#id_documento").val();
|
||||
//alert(id);
|
||||
if (id != 0) {
|
||||
var f = document.main;
|
||||
|
||||
var debug = false;
|
||||
var wwD = "700";
|
||||
var whD = "500";
|
||||
//+"&xxx="+f.xxx.value
|
||||
theAction = f.actionPage.value + ".pdf?cmd=printDisposizioneTaglio&id_documento=" + id;
|
||||
//
|
||||
//var numLabels=prompt("Numero di etichette da stampare","1");
|
||||
if (debug == false) {
|
||||
window.open(theAction, "Stampa_Disposizione", "width=" + wwD + ",height=" + whD + ",status=no,resizable=yes,top=100,left=100,scrollbars=yes");
|
||||
} else {
|
||||
window.open(theAction);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
/* STAMPA DISPOSIZIONE TAGLIO!!!*/
|
||||
/*******************************************/
|
||||
/*******************************************/
|
||||
function chiudiLavorazioneTaglio() {
|
||||
Swal.fire({
|
||||
title: "Chiusura Lavorazione",
|
||||
text: "La lavorazione verra' chiusa con i relativi ordini. Sei Sicuro?",
|
||||
icon: "warning",
|
||||
showDenyButton: true,
|
||||
showCancelButton: false,
|
||||
confirmButtonText: `Si`,
|
||||
denyButtonText: `No`,
|
||||
cancelButtonText: `Annulla`,
|
||||
}).then((result) => {
|
||||
/* Read more about isConfirmed, isDenied below */
|
||||
if (result.isConfirmed) {
|
||||
////////////////////////////////////////////////////////////////////
|
||||
$("#main").attr("action", $("#actionPage").val());
|
||||
$("#flgReport").val("");
|
||||
$("#cmd", "#main").val("chiudiLavorazioneTaglio");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
$("#act2").val("");
|
||||
$("#pageNumber").val("1");
|
||||
Ab.submitAj('main');
|
||||
////////////////////////////////////////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue