Commit e7dc6f7d authored by wansari's avatar wansari

D14IKAT004 updated placeholder removed from text filed


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@97469 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 046b7d60
...@@ -658,7 +658,7 @@ function setColumnValues( retVal ) ...@@ -658,7 +658,7 @@ function setColumnValues( retVal )
tr = tr + "<input type='hidden' id='Detail2."+fld+".item_code' name='Detail2."+fld+".item_code' value='"+y[j].childNodes[0].nodeValue+"' class='editInputClass' style='width: 60px;text-align: right;' />"; tr = tr + "<input type='hidden' id='Detail2."+fld+".item_code' name='Detail2."+fld+".item_code' value='"+y[j].childNodes[0].nodeValue+"' class='editInputClass' style='width: 60px;text-align: right;' />";
tr = tr + "<input type='hidden' value='"+dte+"' id='Detail2."+fld+".dlv_date' name='Detail2."+fld+".dlv_date' class='editInputClass' style='width: 60px;text-align: right;'/>"; tr = tr + "<input type='hidden' value='"+dte+"' id='Detail2."+fld+".dlv_date' name='Detail2."+fld+".dlv_date' class='editInputClass' style='width: 60px;text-align: right;'/>";
tr = tr + "<input type='hidden' value='"+dte+"' id='Detail2."+fld+".dlv_date' name='Detail2."+fld+".dlv_date' class='editInputClass' style='width: 60px;text-align: right;'/>"; tr = tr + "<input type='hidden' value='"+dte+"' id='Detail2."+fld+".dlv_date' name='Detail2."+fld+".dlv_date' class='editInputClass' style='width: 60px;text-align: right;'/>";
tr = tr + "<td><input type='text' onkeyup='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+")' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+fld+"' onkeypress='return isNumberKey(event)' placeholder='"+y[j].childNodes[0].nodeValue+"' maxlength='4' ISCHANGED='true' class='editInputClass' style='width:75px; text-align: right;' /></td>"; tr = tr + "<td><input type='text' onkeyup='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+")' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+y[j].childNodes[0].nodeValue+"' onkeypress='return isNumberKey(event)' maxlength='4' ISCHANGED='true' class='editInputClass' style='width:75px; text-align: right;' /></td>";
temp = temp + fld +","; temp = temp + fld +",";
count++; count++;
...@@ -1171,79 +1171,14 @@ function calQuantity(id,cols,row,qt,fld,t) ...@@ -1171,79 +1171,14 @@ function calQuantity(id,cols,row,qt,fld,t)
document.getElementById("display."+t+"").innerHTML = qty; document.getElementById("display."+t+"").innerHTML = qty;
} }
} }
/*var a = document.getElementById(id).value;
if(document.getElementById(nextId) == undefined || document.getElementById(nextId).value == "" || document.getElementById(nextId).value == null)
{
var b = 0;
}
else
{
var b = document.getElementById(nextId).value;
}
if(document.getElementById(preId) == undefined || document.getElementById(preId).value == "" || document.getElementById(preId).value == null)
{
var c = 0;
}
else
{
var c = document.getElementById(preId).value;
}
var show = parseInt(qt) - cols;
if(show > 0)
{
document.getElementById("tab.1.fld."+show+"").value = parseInt(a) + parseInt(b) + parseInt(c);
}
else
{
document.getElementById("tab.1.fld."+qt+"").value = parseInt(a) + parseInt(b) + parseInt(c);
}
var qty = 0;
for(var i=1; i<=cols; i++)
{
if(document.getElementById("tab.1.fld."+i+"").value != "")
{
qty = qty + parseInt(document.getElementById("tab.1.fld."+i+"").value);
document.getElementById("display").value = qty;
document.getElementById("display2").innerHTML = document.getElementById("display").value;
}
}
*/
/*var tot=document.getElementById("fld").value;
var total=parseInt(document.getElementById("display").value);
var qty = 0;
for(var i=1;i<=tot; i++)
{
if(document.getElementById("Detail2."+i+".quantity") == undefined || document.getElementById("Detail2."+i+".quantity").value == 0)
{
continue;
}
else if(document.getElementById("Detail2."+i+".quantity").value != "")
{
qty = qty + parseInt(document.getElementById("Detail2."+i+".quantity").value);
document.getElementById("display").value = qty;
document.getElementById("display2").innerHTML = document.getElementById("display").value;
}
}*/
} }
function callForm1() function callForm1()
{ {
var url = "/ibase/webitm/jsp/E12WizardPage.jsp?OBJ_NAME=porderWiz&amp;FORM_NO=1"; //var url = "/ibase/webitm/jsp/E12WizardPage.jsp?OBJ_NAME=porderWiz&amp;FORM_NO=1";
window.location.href = url; //window.location.href = url;
//window.close();
} }
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