Commit 5724e820 authored by wansari's avatar wansari

F17BBAS001 updated checkAll() method


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105949 ce508802-f39f-4f6c-b175-0d175dae99d5
parent a79393be
......@@ -783,29 +783,27 @@ function doHideMsg(erroTable)
}
function checkAll(custId, tableId, tableNo)
{
var tableObj = document.getElementById(tableId);
var tableObj = document.getElementById("details"+tableId);
var tableObjGST = document.getElementById("details_GST"+tableId);
var norow= tableObj.rows.length;
if(document.getElementById("selectAll"+tableNo).checked)
//if(document.getElementById("selectAll"+tableNo).checked)
if(document.getElementById("Detail2."+tableId+".status").value != "X")
{
for(var i=1;i<norow;i++)
{
if(tableObj.rows[i].cells[13].childNodes != undefined)
if(tableObj.rows[i].cells[0].childNodes != undefined)
{
var allocQty = parseInt(tableObj.rows[i].cells[13].childNodes.item(0).value);
if(allocQty>0)
{
if(tableObj.rows[i].cells[0].childNodes != undefined)
{
tableObj.rows[i].classList.add("selectedTrClass");
tableObj.rows[i].cells[0].childNodes.item(0).checked= true;
tableObj.rows[i].cells[0].childNodes.item(0).setAttribute('checked','checked');
}
}
tableObj.rows[i].classList.add("selectedTrClass");
tableObj.rows[i].cells[0].childNodes.item(0).checked= true;
tableObj.rows[i].cells[0].childNodes.item(0).setAttribute('checked','checked');
tableObjGST.rows[i].classList.add("selectedTrClass");
tableObjGST.rows[i].cells[0].childNodes.item(0).checked= true;
tableObjGST.rows[i].cells[0].childNodes.item(0).setAttribute('checked','checked');
}
}
document.getElementById("selectAll"+tableNo).setAttribute('checked','checked');
//document.getElementById("selectAll"+tableNo).setAttribute('checked','checked');
}
else
{
......@@ -815,10 +813,14 @@ function checkAll(custId, tableId, tableNo)
{
tableObj.rows[i].classList.remove("selectedTrClass");
tableObj.rows[i].cells[0].childNodes.item(0).checked= false;
tableObj.rows[i].cells[0].childNodes.item(0).removeAttribute('checked');;
tableObj.rows[i].cells[0].childNodes.item(0).removeAttribute('checked');
tableObjGST.rows[i].classList.remove("selectedTrClass");
tableObjGST.rows[i].cells[0].childNodes.item(0).checked= false;
tableObjGST.rows[i].cells[0].childNodes.item(0).removeAttribute('checked');;
}
}
document.getElementById("selectAll"+tableNo).removeAttribute('checked');;
//document.getElementById("selectAll"+tableNo).removeAttribute('checked');;
}
//updateDisplaySummary(custId,tableId,tableNo);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment