101 lines
2.2 KiB
JavaScript
101 lines
2.2 KiB
JavaScript
/////////////////////////////////////////////7
|
|
function checkSearchFields()
|
|
/////////////////////////////////////////////7
|
|
{
|
|
if(document.main.crNS==1)
|
|
return false;
|
|
else
|
|
{
|
|
//return Ab.validateForm('descrizione','Descrizione','R','numero','Numero','RisNum>0','eMail','','NisEmail');
|
|
return true;
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
/////////////////////////////////////////////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
|
|
//nel campo aggiungere i seguenti attributi:
|
|
//mandatory="RisNum" mandatory-desc="<ab:lang>Importo Pagamento</ab:lang>"
|
|
return Ab.validateFormMandatory($("#lang").val());
|
|
|
|
}
|
|
|
|
|
|
|
|
/////////////////////////////////////////////7
|
|
function checkSearchFields()
|
|
/////////////////////////////////////////////7
|
|
{
|
|
if(document.main.crNS==1)
|
|
return false;
|
|
else
|
|
{
|
|
//return Ab.validateForm('descrizione','Descrizione','R','numero','Numero','RisNum>0','eMail','','NisEmail');
|
|
return true;
|
|
}
|
|
|
|
|
|
}
|
|
function checkBoxes()
|
|
/////////////////////////////////////////////
|
|
{
|
|
|
|
var f = document.main;
|
|
//if (f.ckflgValido.checked) f.flgValido.value="S";else f.flgValido.value="N";
|
|
/*Ab.setChekBoxValue("main","flgOperatore","1","0");
|
|
Ab.setChekBoxValue("main","flgNews","1","0");*/
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function checkBoxesCR()
|
|
/////////////////////////////////////////////
|
|
{
|
|
//var f = document.main;
|
|
//if (f.ckFlgValido.checked) f.flgValido.value="S";else f.flgValido.value="N";
|
|
}
|
|
|
|
function checkRadioCR()
|
|
{
|
|
/*var f = document.main;
|
|
|
|
if(f.rbFlgPagata[0].checked)
|
|
f.flgPagata.value=f.rbFlgPagata[0].value;
|
|
else
|
|
if(f.rbFlgPagata[1].checked)
|
|
f.flgPagata.value=f.rbFlgPagata[1].value;
|
|
else
|
|
f.flgPagata.value="";
|
|
*/
|
|
|
|
}
|
|
|
|
function modifyClifor()
|
|
{
|
|
//FACCIO IL SUBMIT
|
|
var f = document.main;
|
|
if(f.id_clifor!=0)
|
|
{
|
|
f.action="../anag/Cliente.abl";
|
|
f.cmd.value="md";
|
|
Ab.submitAj('main');
|
|
}
|
|
}
|