Commit e5717393 authored by steurwadkar's avatar steurwadkar

Changes made to apply new CSS to sales order entry screen

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@172919 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b3499bef
......@@ -1436,7 +1436,7 @@ var sorttable = "";
if (y[j].childNodes[0].nodeValue == 'X')
{
tr = tr + "<td class='td_centAlign'>"+ y[j].childNodes[0].nodeValue +"</td>";
tr = tr + "<td class='td_centAlign' nowrap='true'>"+ y[j].childNodes[0].nodeValue +"</td>";
var fld = document.getElementById("fld").value;
fld++;
......@@ -1450,7 +1450,7 @@ var sorttable = "";
{
if(tranType == "T")
{
tr = tr + "<td class='td_leftAlign'>"+ y[j].childNodes[0].nodeValue +"</td>";
tr = tr + "<td class='td_leftAlign' nowrap='true'>"+ y[j].childNodes[0].nodeValue +"</td>";
}
else
{
......@@ -1468,7 +1468,7 @@ var sorttable = "";
else
{
xlen = sett.length-1;
tr = tr + "<input type='hidden' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' class='editDisplayClass' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:75px; text-align: right;'/>";
tr = tr + "<input type='hidden' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' class='editDisplayClass' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:75px; text-align: right;color:#555 !important;'/>";
fx++;
}
......@@ -1477,7 +1477,7 @@ var sorttable = "";
{
if (y[j].childNodes[0].nodeValue == '0' && tranType == "T")
{
tr = tr + "<td align = 'right'><input type='text' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:75px; text-align: right;background-color: transparent;border: none;'/></td>";
tr = tr + "<td align = 'right' nowrap='true'><input type='text' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:75px; text-align: right;background-color: transparent;border: none;color:#555 !important;'/></td>";
fx++;
}
else
......@@ -1500,13 +1500,13 @@ var sorttable = "";
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='10' ISCHANGED='true' class='editInputClass' style='width:100%;border:none;text-align: right; outline:none'" +
" /></td>";
tr = tr + "<td class='editTdClass' onclick='gotoChildTextbox(this);' nowrap='true'><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='10' ISCHANGED='true' class='editInputClass editInputCur' style='width:100%;border:none;text-align: right; outline:none'" +
" onfocus='setActiveTD(this);' /></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='10' ISCHANGED='true' class='editInputClass' style='width:100%;border:none;text-align: right; outline:none' value='1' " +
" /></td>";
tr = tr + "<td class='editTdClass' onclick='gotoChildTextbox(this);' nowrap='true'><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='10' ISCHANGED='true' class='editInputClass editInputCur' style='width:100%;border:none;text-align: right; outline:none' value='1' " +
" onfocus='setActiveTD(this); /></td>";
}
tr = tr + "<input type = 'hidden' value = "+tabNum+" id='Detail2."+fld+".line_no__contr' name='Detail2."+fld+".line_no__contr' ></input>";
......@@ -1638,7 +1638,6 @@ var sorttable = "";
//function calQuantity(id,cols,row,qt,fld,t)
function calQuantity(id,cols,row,qt,fld,t,rate)
{
cols = cols-1;
var final = 0;
......@@ -1715,6 +1714,7 @@ var sorttable = "";
var currCode = document.getElementById("curr_code").value;
//document.getElementById("rate"+t+"").innerHTML = " pieces at "+ currCode +" "+ finalPrice.toFixed(3) +" (Excluding Tax)";
document.getElementById("rate"+t+"").innerHTML = " pieces at "+ currCode +" "+ finalPrice.toFixed(2) +" (Excluding Tax)";
}
//Changed by samadhan on 03/02/2015 for fixed matxix table header Start
......@@ -2477,7 +2477,7 @@ var sorttable = "";
if (y[j].childNodes[0].nodeValue == 'X')
{
tr = tr + "<td class='td_centAlign'>"+ y[j].childNodes[0].nodeValue +"</td>";
tr = tr + "<td class='td_centAlign' nowrap='true'>"+ y[j].childNodes[0].nodeValue +"</td>";
var fld = document.getElementById("fld").value;
fld++;
......@@ -2492,7 +2492,7 @@ var sorttable = "";
{
if(tranType == "T")
{
tr = tr + "<td class='td_leftAlign'>"+ y[j].childNodes[0].nodeValue +"</td>";
tr = tr + "<td class='td_leftAlign' nowrap='true'>"+ y[j].childNodes[0].nodeValue +"</td>";
}
else
{
......@@ -2503,13 +2503,13 @@ var sorttable = "";
{
if (tranType == "T")
{
tr = tr + "<td class='td_leftAlign'>"+ y[j].childNodes[0].nodeValue +"</td>";
tr = tr + "<td class='td_leftAlign' nowrap='true'>"+ y[j].childNodes[0].nodeValue +"</td>";
}
else
{
xlen = sett.length-1;
tr = tr + "<input type='hidden' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' class='editDisplayClass' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:75px; text-align: right;'/>";
tr = tr + "<input type='hidden' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' class='editDisplayClass' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:75px; text-align: right; color:#555 !important;'/>";
fx++;
}
......@@ -2518,7 +2518,7 @@ var sorttable = "";
{
if (y[j].childNodes[0].nodeValue == '0' && tranType == "T")
{
tr = tr + "<td align = 'right'><input type='text' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:75px; text-align: right;background-color: transparent;border: none;'/></td>";
tr = tr + "<td align = 'right' nowrap='true'><input type='text' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:75px; text-align: right;background-color: transparent;border: none; color:#555 !important;'/></td>";
fx++;
}
else
......@@ -2542,12 +2542,12 @@ var sorttable = "";
if (itemQtys[1] == "" || itemQtys[1] == "undefined" || itemQtys[1] == null || itemQtys[1] == "0" )
{
qtytr = +qtytr + 0;
tr = tr + "<td><input type='text' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id);' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass' style='width:100%;border:none;text-align: right; outline:none' value='' /></td>";
tr = tr + "<td class='editTdClass' onclick='gotoChildTextbox(this);' nowrap='true'><input type='text' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id);' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass editInputCur' style='width:100%;border:none;text-align: right; outline:none' value='' onfocus='setActiveTD(this);' /></td>";
}
else
{
qtytr = +qtytr + +itemQtys[1];
tr = tr + "<td><input type='text' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id);' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass' style='width:100%;border:none;text-align: right; outline:none' value='"+itemQtys[1]+"' /></td>";
tr = tr + "<td class='editTdClass' onclick='gotoChildTextbox(this);' nowrap='true'><input type='text' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id);' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass editInputCur' style='width:100%;border:none;text-align: right; outline:none' value='"+itemQtys[1]+"' onfocus='setActiveTD(this);' /></td>";
}
tr = tr + "<input type = 'hidden' class = "+t+" value = "+tabNum+" id='Detail2."+fld+".line_no__contr' name='Detail2."+fld+".line_no__contr' ></input>";
......@@ -4062,7 +4062,7 @@ function getSidePanel(x)
"<input type='hidden' id='multisel"+x+"' class='editDisplayClass' maxlength='0' ISCHANGED='false' readOnly = '1' style='margin-left: -9px;width: 400px' value='' />"+
"<div style='float: right;'>"+
"<a href='javascript:callItemPopup("+x+")' style='float: left;text-decoration: none;'>"+
"<a href='javascript:callItemPopup("+x+")' style='float: left;text-decoration: none;' tabindex='-1'>"+
"<img src='/ibase/webitm/images/pophelp.png' style='margin-left: -5px;margin-top: 3px;' title='Select Item Code'/>"+
"</a>"+
"</div>"+
......@@ -4279,4 +4279,31 @@ function setItemChangeValues(retVal)
//Changed by wasim for sorder item change [END]
function gotoChildTextbox(curTdObj)
{
var preActiveTD = document.getElementById("activeGreenTD");
if(preActiveTD != null && preActiveTD != undefined)
{
preActiveTD.style.borderBottom = "1px solid #ddd";
preActiveTD.removeAttribute("id");
}
curTdObj.firstChild.focus();
curTdObj.firstChild.select();
curTdObj.style.borderBottom = "2px solid #5fdeb2";
curTdObj.id = "activeGreenTD";
}
function setActiveTD(curTextObj)
{
var preActiveTD = document.getElementById("activeGreenTD");
if(preActiveTD != null && preActiveTD != undefined)
{
preActiveTD.style.borderBottom = "1px solid #ddd";
preActiveTD.removeAttribute("id");
}
curTextObj.select();
var curTextParent = curTextObj.parentElement;
curTextParent.style.borderBottom = "2px solid #5fdeb2";
curTextParent.id = "activeGreenTD";
}
\ No newline at end of file
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