Commit d10b7fb9 authored by wansari's avatar wansari

W16FKAT002 Updated JS for Edit mode issue and calendar and quantity textfield issue


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@104042 ce508802-f39f-4f6c-b175-0d175dae99d5
parent aac64437
......@@ -1147,7 +1147,7 @@ function sidebar()
/*"<label id = 'item_parent_rate"+x+"'></label>"+
"<input type='hidden' id='itmdescription"+x+"' class='editDisplayClass' maxlength='0' ISCHANGED='false' readOnly = '1' style='width: 400px'/>"+*/
"</td>"+
"<td width = '20%'>"+
"<td align = 'right' width = '20%'>"+
" <strong>Order Date: <span id='dlv_date_span"+x+"'> </span></strong> <input type='hidden' name='dlv_date"+x+"' readOnly='1' "+
"id='dlv_date"+x+"' style='width: 28%;font-size:12px' />"+
"</td>"+
......@@ -1437,12 +1437,12 @@ function setColumnValues( retVal )
//tr = tr + "<td><input type='text' onkeyup='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+")' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+tool[tip].childNodes[0].nodeValue+"' onkeypress='return isNumberKey(event)' maxlength='4' ISCHANGED='true' class='editInputClass' style='width:33px; text-align: right;' /></td>";
if (tranType == "T")
{
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;'" +
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:100%;border:none;text-align: right; outline:none'" +
" /></td>";
}
else
{
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='' " +
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:100%;border:none;text-align: right; outline:none' value='' " +
" /></td>";
}
//Changed by samadhan on 30/06/2015 D15CKAT026 End
......@@ -2756,7 +2756,7 @@ function sidebarNew()
/*"<label id = 'item_parent_rate"+x+"'></label>"+
"<input type='hidden' id='itmdescription"+x+"' class='editDisplayClass' maxlength='0' ISCHANGED='false' readOnly = '1' style='width: 400px'/>"+*/
"</td>"+
"<td width = '20%'>"+
"<td align='right' width = '20%'>"+
" <strong>Order Date: <span id='dlv_date_span"+x+"'> </span></strong> <input type='hidden' name='dlv_date"+x+"' readOnly='1' "+
"id='dlv_date"+x+"' style='width: 28%;font-size:12px' />"+
"</td>"+
......@@ -3134,12 +3134,12 @@ function setColumnValuesNew( retVal )
if (itemQtys[1] == "" || itemQtys[1] == "undefined" || itemQtys[1] == null )
{
qtytr = +qtytr + 0;
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='"+0+"' /></td>";
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:100%;border:none;text-align: right; outline:none' value='"+0+"' /></td>";
}
else
{
qtytr = +qtytr + +itemQtys[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='"+itemQtys[1]+"' /></td>";
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:100%;border:none;text-align: right; outline:none' value='"+itemQtys[1]+"' /></td>";
}
tr = tr + "<input type = 'hidden' value = "+tabNum+" id='Detail2."+fld+".form_no' name='Detail2."+fld+".form_no' ></input>";
......@@ -3809,7 +3809,15 @@ function pageLoadDtl1()
}
}
orderValue = orderValue.substring(0,orderValue.length-1);
//orderValue = orderValue.substring(0,orderValue.length-1);
var n = orderValue.indexOf("+");
if(n != -1)
{
orderValue = orderValue.substring(0,n);
}
console.log("PUrchase Order is="+orderValue);
if(orderValue != null && orderValue.trim().length > 0)
{
getPoDetail1(orderValue, "GET_PURC_DET_1", "T");
......@@ -4143,7 +4151,7 @@ function itemChange(field)
if(fieldValue.trim() == null || fieldValue.trim() == "")
{
document.getElementById("itmcode"+index).value = "";
document.getElementById("itmcode"+index).value = currData.trim();
document.getElementById("AddButton").style.pointerEvents = "auto";
return false;
}
......
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