91 lines
No EOL
1.7 KiB
JavaScript
91 lines
No EOL
1.7 KiB
JavaScript
|
|
|
|
/////////////////////////////////////////////7
|
|
function checkFields()
|
|
/////////////////////////////////////////////7
|
|
{
|
|
return true;//Ab.validateForm('descrizione','Descrizione','R','numero','Numero','RisNum>0','eMail','','NisEmail');
|
|
|
|
}
|
|
|
|
|
|
function checkBoxes()
|
|
/////////////////////////////////////////////
|
|
{
|
|
|
|
Ab.setChekBoxValue('main','flgAggGiacenza','1','0');
|
|
|
|
}
|
|
|
|
|
|
/////////////////////////////////////////////////
|
|
//////////////////////////////////////////////////
|
|
function addRow()
|
|
/////////////////////////////////////////////
|
|
{
|
|
|
|
var f = document.main;
|
|
f.action=f.actionPage.value;
|
|
if (Ab.validateForm('id_rowBean','RowBean','R'))
|
|
{
|
|
f.cmd.value="gr";
|
|
f.act.value="addRow";
|
|
f.submit();
|
|
}
|
|
}
|
|
|
|
function delRow(l_id)
|
|
/////////////////////////////////////////////
|
|
{
|
|
if (Ab.confirmDelete())
|
|
{
|
|
var f = document.main;
|
|
f.action=f.actionPage.value;
|
|
// FACCIO IL SUBMIT
|
|
f.cmd.value="gr";
|
|
f.act.value="delRow";
|
|
f.id_rowBean.value=l_id;
|
|
f.submit();
|
|
}
|
|
|
|
}
|
|
|
|
function modRow(l_id)
|
|
/////////////////////////////////////////////
|
|
{
|
|
|
|
var f = document.main;
|
|
f.action=f.actionPage.value;
|
|
// FACCIO IL SUBMIT
|
|
f.cmd.value="gr";
|
|
f.act.value="modRow";
|
|
f.id_rowBean.value=l_id;
|
|
f.submit();
|
|
|
|
}
|
|
|
|
|
|
function checkBoxesCR()
|
|
/////////////////////////////////////////////
|
|
{
|
|
//Ab.setChekBoxValue("ricerca","flgSommaCRL","1","0");
|
|
}
|
|
|
|
function checkRadioCR()
|
|
{
|
|
//Ab.setRadioButtonValue("ricerca","flgPlaAntPos");
|
|
|
|
}
|
|
function modifyAv()
|
|
{
|
|
var f = document.main;
|
|
//alert(f.id_cliente.value);
|
|
if(f.id_articoloVarianteD.value!="" && f.id_articoloVarianteD.value!=0)
|
|
{
|
|
f.action="ArticoloVariante.abl"
|
|
f.cmd.value="md";
|
|
f.currentTab.value="DIS";
|
|
f.id_articoloVariante.value=f.id_articoloVarianteD.value;
|
|
f.submit();
|
|
}
|
|
} |