First commit
This commit is contained in:
parent
cf97b64877
commit
cc69770608
1468 changed files with 265316 additions and 128 deletions
474
www/admin/cc/_js/acxent-attivita.js
Normal file
474
www/admin/cc/_js/acxent-attivita.js
Normal file
|
|
@ -0,0 +1,474 @@
|
|||
/************************************************/
|
||||
/* standard javascript for lte */
|
||||
/************************************************/
|
||||
|
||||
/*************************************************/
|
||||
/*************************************************/
|
||||
/* DOCUMENT READY CR*/
|
||||
/*************************************************/
|
||||
/*************************************************/
|
||||
|
||||
function documentReadyScriptCR() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* DOCUMENT READY PRIMARY DETAIL*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
|
||||
function documentReadyScript() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* 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() {
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica la privacy dal modello*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function caricaPrivacy() {
|
||||
Swal.fire({
|
||||
title: "Privacy",
|
||||
text: "Verra' caricato un file modello di privacy che potrai poi modificare. 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());
|
||||
$("#cmd").val("caricaPrivacy");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica termini e servizi dal modello*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function caricaTeC() {
|
||||
Swal.fire({
|
||||
title: "Termini e Condizioni",
|
||||
text: "Verra' caricato un file modello di Termini e Condizioni che potrai poi modificare. 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());
|
||||
$("#cmd").val("caricaTermsConditions");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica diritto di recesso dal modello*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function caricaDirittoDiRecesso() {
|
||||
Swal.fire({
|
||||
title: "Diritto Di Recesso",
|
||||
text: "Verra' caricato un file modello dei Diritti Di Recesso che potrai poi modificare. 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());
|
||||
$("#cmd").val("caricaDirittoDiRecesso");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica footer dal modello*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function caricaFooter() {
|
||||
Swal.fire({
|
||||
title: "Footer",
|
||||
text: "Verra' caricato un testo standard che potrai poi modificare. 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());
|
||||
$("#cmd").val("caricaFooter");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* avvia thread invio notifiche wishlist*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function sendNotificheWishlist() {
|
||||
Swal.fire({
|
||||
title: "Notifiche Wishlist",
|
||||
text: "Verra' avviato il thread di invio delle notifiche wishlist. 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());
|
||||
$("#cmd").val("sendNotificheWishlist");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica ebayFulfillmentPolicyId*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function ebayFulfillmentPolicyId() {
|
||||
Swal.fire({
|
||||
title: "Id Regole di Spedizione",
|
||||
text: "Verra' effettuata una chiamata ebay per caricare l'id della regola di spedizione di deault. 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());
|
||||
$("#cmd").val("ebayFulfillmentPolicyId");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica ebayPaymentPolicyId*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function ebayPaymentPolicyId() {
|
||||
Swal.fire({
|
||||
title: "Id Regole di Pagamento",
|
||||
text: "Verra' effettuata una chiamata ebay per caricare l'id della regola di pagamento di deault. 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());
|
||||
$("#cmd").val("ebayPaymentPolicyId");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica ebayReturnPolicyId*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function ebayReturnPolicyId() {
|
||||
Swal.fire({
|
||||
title: "Id Regole di Restituzione",
|
||||
text: "Verra' effettuata una chiamata ebay per caricare l'id della regola di restituzione di deault. 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());
|
||||
$("#cmd").val("ebayReturnPolicyId");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica ebayReturnPolicyId*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function ebayCreaMerchantLocationKey() {
|
||||
Swal.fire({
|
||||
title: "Merchant Location Key",
|
||||
text: "Verra' crato un nuovo Merchant Location con chiave " + $("#ebayCreaMerchantLocationKey").val() + " che verra' utilizzata nella pubblicazione delle offerte. 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());
|
||||
$("#cmd").val("ebayCreaMerchantLocationKey");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* carica cookie policy*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
function caricaCookiePolicy() {
|
||||
Swal.fire({
|
||||
title: "Cookie Policy",
|
||||
text: "Verra' caricato un file modello di cookie policy che potrai poi modificare. 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());
|
||||
$("#cmd").val("caricaCookiePolicy");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* AGGIORNA TOKEN AMAZON*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
|
||||
function amzUpdateTokens() {
|
||||
Swal.fire({
|
||||
title: "Amazon",
|
||||
text: "Verranno aggiornati i token di accesso. 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());
|
||||
$("#cmd").val("amzUpdateTokens");
|
||||
$("#act").val("");
|
||||
Ab.submitAj('main');
|
||||
//////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
126
www/admin/cc/_js/acxent-tipoAttivita.js
Normal file
126
www/admin/cc/_js/acxent-tipoAttivita.js
Normal file
|
|
@ -0,0 +1,126 @@
|
|||
/************************************************/
|
||||
/* standard javascript for lte */
|
||||
/************************************************/
|
||||
|
||||
/*************************************************/
|
||||
/*************************************************/
|
||||
/* DOCUMENT READY CR*/
|
||||
/*************************************************/
|
||||
/*************************************************/
|
||||
|
||||
function documentReadyScriptCR()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* DOCUMENT READY PRIMARY DETAIL*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
|
||||
function documentReadyScript() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* 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()
|
||||
{
|
||||
|
||||
}
|
||||
338
www/admin/cc/_js/acxent-wwwAutomator.js
Normal file
338
www/admin/cc/_js/acxent-wwwAutomator.js
Normal file
|
|
@ -0,0 +1,338 @@
|
|||
/************************************************/
|
||||
/* standard javascript for lte */
|
||||
/************************************************/
|
||||
|
||||
/*************************************************/
|
||||
/*************************************************/
|
||||
/* DOCUMENT READY CR*/
|
||||
/*************************************************/
|
||||
/*************************************************/
|
||||
|
||||
function documentReadyScriptCR()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
/* DOCUMENT READY PRIMARY DETAIL*/
|
||||
/************************************************************/
|
||||
/************************************************************/
|
||||
|
||||
function documentReadyScript() {
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* 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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* automator da dettaglio /*
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function eseguiAutomator() {
|
||||
Swal.fire({
|
||||
title: "Esegui regola",
|
||||
text: "Verra' eseguita la regola del record corrente sul tipo AAA Indefinito. 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("S");
|
||||
$("#cmd", "#main").val("eseguiAutomator");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
//$("#id_wwwAutomator").val(l_id);
|
||||
//$("#pageNumber").val("1");
|
||||
Ab.submitAj('main');
|
||||
////////////////////////////////////////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* automator da CR /*
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function eseguiAutomatorCR() {
|
||||
Swal.fire({
|
||||
title: "Esegui regola",
|
||||
text: "Verra' eseguita la regola del record corrente sul tipo AAA Indefinito. 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("S");
|
||||
$("#cmd", "#main").val("eseguiAutomatorCR");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
//$("#id_wwwAutomator").val(l_id);
|
||||
//$("#pageNumber").val("1");
|
||||
Ab.submitAj('main');
|
||||
////////////////////////////////////////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* automator da dettaglio /*
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function eseguiAutomatorFullCR() {
|
||||
Swal.fire({
|
||||
title: "Esegui tutte le regole",
|
||||
text: "Verranno eseguite tutte la regole sul tipo AAA Indefinito!!. 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("S");
|
||||
$("#cmd", "#main").val("eseguiAutomatorFullCR");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
//$("#id_wwwAutomator").val(l_id);
|
||||
//$("#pageNumber").val("1");
|
||||
Ab.submitAj('main');
|
||||
////////////////////////////////////////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* duplicaAutomator da dettaglio /*
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function duplicaAutomator() {
|
||||
Swal.fire({
|
||||
title: "Duplica regola",
|
||||
text: "Verra' duplicata la regola del record corrente. 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("S");
|
||||
$("#cmd", "#main").val("duplicaAutomator");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
//$("#id_wwwAutomator").val(l_id);
|
||||
//$("#pageNumber").val("1");
|
||||
Ab.submitAj('main');
|
||||
////////////////////////////////////////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* SPOSTA SU E GIU DA CR /*
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function spostaGiuWwwAutomator(l_id)
|
||||
{
|
||||
|
||||
var f = document.main;
|
||||
f.action=f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value="spostaGiu";
|
||||
f.act.value="";
|
||||
f.id_wwwAutomatorSposta.value=l_id;
|
||||
Ab.submitAj('main');
|
||||
|
||||
}
|
||||
function spostaSuWwwAutomator(l_id)
|
||||
|
||||
{
|
||||
|
||||
var f = document.main;
|
||||
f.action=f.actionPage.value;
|
||||
// FACCIO IL SUBMIT
|
||||
f.cmd.value="spostaSu";
|
||||
f.act.value="";
|
||||
f.id_wwwAutomatorSposta.value=l_id;
|
||||
Ab.submitAj('main');
|
||||
|
||||
}
|
||||
|
||||
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
/* duplicaAutomator da dettaglio /*
|
||||
/************************************************/
|
||||
/************************************************/
|
||||
function ripristinoOrdine() {
|
||||
Swal.fire({
|
||||
title: "Ripristino Ordine",
|
||||
text: "Verra' ripristinato l'ordine per tipo + ordine. 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("S");
|
||||
$("#cmd", "#main").val("ripristinoOrdine");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
//$("#id_wwwAutomator").val(l_id);
|
||||
//$("#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