154 lines
3.9 KiB
JavaScript
154 lines
3.9 KiB
JavaScript
|
|
///////////////////////////////////////////
|
|
////////T O O L B A R /////////////////////
|
|
///////////////////////////////////////////
|
|
|
|
|
|
/////////////////////////////////////////////7
|
|
function checkFields()
|
|
/////////////////////////////////////////////7
|
|
{
|
|
//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','id_tipo','Tipo','RisNumKey','id_iva','Iva','RisNumKey');
|
|
|
|
}
|
|
|
|
/////////////////////////////////////////////7
|
|
function checkSearchFields()
|
|
/////////////////////////////////////////////7
|
|
{
|
|
|
|
return true;
|
|
|
|
|
|
}
|
|
|
|
|
|
function checkBoxes()
|
|
/////////////////////////////////////////////
|
|
{
|
|
//Ab.setChekBoxValue("dettaglio","flgSommaCRL","1","0");
|
|
|
|
}
|
|
|
|
function checkRadio()
|
|
{
|
|
//Ab.setRadioButtonValue("dettaglio","flgPlaAntPos");
|
|
}
|
|
|
|
function checkBoxesCR()
|
|
/////////////////////////////////////////////
|
|
{
|
|
//Ab.setChekBoxValue("ricerca","flgSommaCRL","1","0");
|
|
}
|
|
|
|
function checkRadioCR()
|
|
{
|
|
//Ab.setRadioButtonValue("ricerca","flgPlaAntPos");
|
|
|
|
}
|
|
/////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////
|
|
|
|
|
|
/***********************************************/
|
|
/***********************************************/
|
|
/* DETTAGLIO ARTICOLO VARIANTI da CR */
|
|
/***********************************************/
|
|
/***********************************************/
|
|
function dettaglioArticoliFilatiCR(l_id) {
|
|
/*
|
|
var f = document.main;
|
|
theAction=webApp+"/admin/art/Articolo.abl?cmd=viewM&id_articolo="+l_id;
|
|
wArticolo=window.open(theAction, "Lista_Varianti","width=810,height=600,status=yes,resizable=yes,top=100,left=100,scrollbars=yes");
|
|
wArticolo.focus();
|
|
*/
|
|
|
|
$(".mov-body").load("../filato/ArticoloFilatoColore.abl?cmd=dettaglioDisponibilita&id_articoloFilato="+l_id);
|
|
|
|
$("#modalMov").modal("show");
|
|
|
|
|
|
}
|
|
/***********************************************/
|
|
/***********************************************/
|
|
/* DETTAGLIO ARTICOLO VARIANTI da dettaglio filato */
|
|
/***********************************************/
|
|
/***********************************************/
|
|
function dettaglioArticoliFilatiColoreCR(l_id) {
|
|
/*
|
|
var f = document.main;
|
|
theAction=webApp+"/admin/art/Articolo.abl?cmd=viewM&id_articolo="+l_id;
|
|
wArticolo=window.open(theAction, "Lista_Varianti","width=810,height=600,status=yes,resizable=yes,top=100,left=100,scrollbars=yes");
|
|
wArticolo.focus();
|
|
*/
|
|
|
|
$(".mov-body").load("../filato/ArticoloFilatoColore.abl?cmd=dettaglioDisponibilita&id_articoloFilatoColore="+l_id);
|
|
|
|
$("#modalMov").modal("show");
|
|
|
|
|
|
}
|
|
|
|
/***********************************************/
|
|
/***********************************************/
|
|
/* toggle dettaglio popup articolo filato */
|
|
/***********************************************/
|
|
/***********************************************/
|
|
|
|
function toggleDetail()
|
|
{
|
|
if($("#detail").hasClass("out")) {
|
|
$("#detail").addClass("in");
|
|
$("#detail").removeClass("out");
|
|
} else {
|
|
$("#detail").addClass("out");
|
|
$("#detail").removeClass("in");
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
/////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////
|
|
function addColore()
|
|
/////////////////////////////////////////////
|
|
{
|
|
|
|
var f = document.main;
|
|
f.action=f.actionPage.value;
|
|
if (Ab.validateForm('id_coloreFilato','Colore','R'))
|
|
{
|
|
f.cmd.value="addColore";
|
|
f.act.value="";
|
|
Ab.submitAj('main');
|
|
}
|
|
}
|
|
|
|
function delColore(l_id)
|
|
/////////////////////////////////////////////
|
|
{
|
|
if (Ab.confirmDelete())
|
|
{
|
|
var f = document.main;
|
|
f.action=f.actionPage.value;
|
|
// FACCIO IL SUBMIT
|
|
f.cmd.value="delColore";
|
|
f.act.value="";
|
|
f.id_articoloFilatoColore.value=l_id;
|
|
Ab.submitAj('main');
|
|
}
|
|
|
|
}
|
|
|