First commit
This commit is contained in:
parent
cf97b64877
commit
cc69770608
1468 changed files with 265316 additions and 128 deletions
158
www/admin/cups/_js/ab-codaJson.js
Normal file
158
www/admin/cups/_js/ab-codaJson.js
Normal file
|
|
@ -0,0 +1,158 @@
|
|||
/************************************************/
|
||||
/* 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()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
function esportaPrenotazioni() {
|
||||
Swal.fire({
|
||||
title: "Esporta Prenotazioni/visite Cup Solidale",
|
||||
text: "Verranno esportate le Prenotazioni verso il cup solidale. 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("esportaPrenotazioni");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
|
||||
//$("#pageNumber").val("1");
|
||||
Ab.submitAj('main');
|
||||
////////////////////////////////////////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
97
www/admin/cups/_js/miser-cupSolidale.js
Normal file
97
www/admin/cups/_js/miser-cupSolidale.js
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
//cup solidale
|
||||
|
||||
function esportaPrestazioni() {
|
||||
Swal.fire({
|
||||
title: "Esporta Prestazioni Cup Solidale",
|
||||
text: "Verranno esportate le Prestazioni verso il cup solidale. 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("esportaPrestazioni");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
|
||||
//$("#pageNumber").val("1");
|
||||
Ab.submitAj('main');
|
||||
////////////////////////////////////////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function esportaMedici() {
|
||||
Swal.fire({
|
||||
title: "Esporta Medici Cup Solidale",
|
||||
text: "Verranno esportate i Medici verso il cup solidale. 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("esportaMedici");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").val("");
|
||||
|
||||
//$("#pageNumber").val("1");
|
||||
Ab.submitAj('main');
|
||||
////////////////////////////////////////////////////////////////////
|
||||
} else if (result.isDenied) {
|
||||
//Swal.fire('Changes are not saved', '', 'info')
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
function esportaAgende() {
|
||||
Swal.fire({
|
||||
title: "Esporta Agende Cup Solidale",
|
||||
text: "Verranno esportate le Agende verso il cup solidale. 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("esportaAgende");
|
||||
$("#act", "#main").val("");
|
||||
$("#cmd2").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