Commit de516ecc authored by wansari's avatar wansari

W16FKAT002 updated JS for on save


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103989 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1c52729d
...@@ -1552,12 +1552,12 @@ var sorttable = ""; ...@@ -1552,12 +1552,12 @@ var sorttable = "";
if (tranType == "T") if (tranType == "T")
{ {
tr = tr + "<td><input type='text' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+"); sendInfo();' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+tool[tip].childNodes[0].nodeValue+"' onkeypress='return isQuantity(event)' maxlength='4' ISCHANGED='true' class='editInputClass' style='width:33px; text-align: right;'" + tr = tr + "<td><input type='text' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+"); sendInfo(this.id);' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+tool[tip].childNodes[0].nodeValue+"' onkeypress='return isQuantity(event)' maxlength='4' ISCHANGED='true' class='editInputClass' style='width:33px; text-align: right;'" +
" /></td>"; " /></td>";
} }
else else
{ {
tr = tr + "<td><input type='text' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+"); sendInfo();' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+tool[tip].childNodes[0].nodeValue+"' onkeypress='return isQuantity(event)' maxlength='4' ISCHANGED='true' class='editInputClass' style='width:33px; text-align: right;' value='1' " + tr = tr + "<td><input type='text' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+"); sendInfo(this.id);' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+tool[tip].childNodes[0].nodeValue+"' onkeypress='return isQuantity(event)' maxlength='4' ISCHANGED='true' class='editInputClass' style='width:33px; text-align: right;' value='1' " +
" /></td>"; " /></td>";
} }
...@@ -3742,19 +3742,12 @@ var sorttable = ""; ...@@ -3742,19 +3742,12 @@ var sorttable = "";
} }
if(x.length == 0) if(x.length == 0)
{
if(itemParentRefId == "" || itemParentRefId == null)
{
document.getElementById('cloths'+itemIndex).style.visibility = 'hidden';
}
else
{ {
var blankImage = xmlDoc.getElementsByTagName("img_path")[i].childNodes[0].nodeValue; var blankImage = xmlDoc.getElementsByTagName("img_path")[i].childNodes[0].nodeValue;
document.getElementById('cloths'+itemIndex).src = blankImage; document.getElementById('cloths'+itemIndex).src = blankImage;
document.getElementById('cloths'+itemIndex).style.visibility = 'visible'; document.getElementById('cloths'+itemIndex).style.visibility = 'visible';
} }
} }
}
function setImagesMain() function setImagesMain()
{ {
......
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