Commit 94a217f7 authored by kdabholkar's avatar kdabholkar

commited new changes regarding group scheme

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@179611 ce508802-f39f-4f6c-b175-0d175dae99d5
parent dcae34f0
......@@ -1598,7 +1598,8 @@ var lineNoForTax = 0;
{
alignHead = "left";
}*/
var alignHead = "left";
//var alignHead = "left";
var alignHead = "center";
if(pSet[k].childNodes[0].nodeValue == "Quantity")
{
alignHead = "right";
......@@ -2046,7 +2047,7 @@ var lineNoForTax = 0;
function form3Pre()
{
//alert("form3Pre");
document.getElementById("finish").style.display = "none"; // to undisplay
document.getElementById("previous").style.display = "none"; // to undisplay
document.getElementById("reset").style.display = "none";
......@@ -2768,7 +2769,7 @@ var lineNoForTax = 0;
var fld = document.getElementById("fld").value;
fld++;
tr = tr + "<input type='hidden' id='Detail2."+fld+".quantity' class='editInputClass' style='width:75px; text-align: right;' />";
tr = tr + "<input type='hidden' id='Detail2."+fld+".quantity' class='editInputClass' style='width:8.33%; text-align: right;' />";
document.getElementById("fld").value = fld;
temp = temp + fld +",";
count++;
......@@ -2796,7 +2797,7 @@ var lineNoForTax = 0;
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; color:#555 !important;'/>";
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:8.33%; text-align: right; color:#555 !important;'/>";
fx++;
......@@ -2807,7 +2808,7 @@ var lineNoForTax = 0;
if (y[j].childNodes[0].nodeValue == '0' && tranType == "T")
{
tr = tr + "<td align = 'right' class='hideQuantity' 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>";
tr = tr + "<td align = 'right' class='hideQuantity' nowrap='true'><input type='text' id='tab."+t+".fld."+fx+"' title='tab."+t+".fld."+fx+"' maxlength='0' ISCHANGED='false' readOnly = '1' style='width:8.33%; text-align: right;background-color: transparent;border: none; color:#555 !important;'/></td>";
fx++;
}
......@@ -2850,12 +2851,12 @@ var lineNoForTax = 0;
if (itemQtys[8] == "" && itemQtys[9] == "" )
{
tr = tr + "<td class='editTdClass' onclick='gotoChildTextbox(this); ' nowrap='true'><input type='text' autocomplete='off' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id); getColumnSum("+t+","+j+");' colTotName='tab."+t+".colWiseTot."+j+"' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' "+details[5]+"' 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); getStockItemWise("+t+" , this);' /><p class='calImgClass' onclick='getToolTipData(this.title,"+fld+");'><img width='15' height='15' src='/ibase/webitm/images/tax_calculationNew.png'></td>";
tr = tr + "<td class='editTdClass' onclick='gotoChildTextbox(this); ' nowrap='true'><input type='text' autocomplete='off' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id); getColumnSum("+t+","+j+");' colTotName='tab."+t+".colWiseTot."+j+"' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' "+details[5]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass editInputCur' style='width:8.33%;border:none;text-align: right;float:right; outline:none' value='' onfocus='setActiveTD(this); getStockItemWise("+t+" , this);' /><p class='calImgClass' onclick='getToolTipData(this.title,"+fld+");'><img width='15' height='15' src='/ibase/webitm/images/tax_calculationNew.png'></td>";
//console.log("new row check"+tr);
}
else
{
tr = tr + "<td class='TdHighlightClass' onclick='gotoChildTextbox(this); ' nowrap='true'><input type='text' autocomplete='off' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id); getColumnSum("+t+","+j+");' colTotName='tab."+t+".colWiseTot."+j+"' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' "+details[5]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass editHighlightedInput' style='width:100%;border:none;text-align: right; outline:none' value='' onfocus='setActiveTD(this); getStockItemWise("+t+" , this);' /><p class='calImgClass' onclick='getToolTipData(this.title,"+fld+");'><img width='15' height='15' src='/ibase/webitm/images/tax_calculationNew.png'></td>";
tr = tr + "<td class='TdHighlightClass' onclick='gotoChildTextbox(this); ' nowrap='true'><input type='text' autocomplete='off' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id); getColumnSum("+t+","+j+");' colTotName='tab."+t+".colWiseTot."+j+"' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' "+details[5]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass editHighlightedInput' style='width:8.33%;border:none;text-align: right;float:right; outline:none' value='' onfocus='setActiveTD(this); getStockItemWise("+t+" , this);' /><p class='calImgClass' onclick='getToolTipData(this.title,"+fld+");'><img width='15' height='15' src='/ibase/webitm/images/tax_calculationNew.png'></td>";
//console.log("new row check"+tr);
}
}
......@@ -2865,12 +2866,12 @@ var lineNoForTax = 0;
if (itemQtys[8] == "" && itemQtys[9] == "" )
{
tr = tr + "<td class='editTdClass' onclick='gotoChildTextbox(this); ' nowrap='true'><input type='text' autocomplete='off' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id) ; getColumnSum("+t+","+j+");' colTotName='tab."+t+".colWiseTot."+j+"' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' "+details[5]+"' 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); getStockItemWise("+t+" , this);' /><p class='calImgClass' title='view tax' onclick='getToolTipData(this.title,"+fld+");'><img width='15' height='15' src='/ibase/webitm/images/tax_calculationNew.png'></td>";
tr = tr + "<td class='editTdClass' onclick='gotoChildTextbox(this); ' nowrap='true'><input type='text' autocomplete='off' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id) ; getColumnSum("+t+","+j+");' colTotName='tab."+t+".colWiseTot."+j+"' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' "+details[5]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass editInputCur' style='width:8.33%;border:none;text-align: right;float:right; outline:none' value='"+itemQtys[1]+"' onfocus='setActiveTD(this); getStockItemWise("+t+" , this);' /><p class='calImgClass' title='view tax' onclick='getToolTipData(this.title,"+fld+");'><img width='15' height='15' src='/ibase/webitm/images/tax_calculationNew.png'></td>";
///console.log("new row check"+tr);
}
else
{
tr = tr + "<td class='TdHighlightClass' onclick='gotoChildTextbox(this); ' nowrap='true'><input type='text' autocomplete='off' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id) ; getColumnSum("+t+","+j+");' colTotName='tab."+t+".colWiseTot."+j+"' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' "+details[5]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass editHighlightedInput' style='width:100%;border:none;text-align: right; outline:none' value='"+itemQtys[1]+"' onfocus='setActiveTD(this); getStockItemWise("+t+" , this);' /><p class='calImgClass' title='view tax' onclick='getToolTipData(this.title,"+fld+");'><img width='15' height='15' src='/ibase/webitm/images/tax_calculationNew.png'></td>";
tr = tr + "<td class='TdHighlightClass' onclick='gotoChildTextbox(this); ' nowrap='true'><input type='text' autocomplete='off' onchange='calQuantity(this.id,"+xlen+","+xrows+","+qt+","+fld+","+t+","+rate+"); sendInfo(this.id) ; getColumnSum("+t+","+j+");' colTotName='tab."+t+".colWiseTot."+j+"' id='Detail2."+fld+".quantity' name='Detail2."+fld+".quantity' title='"+details[4]+"' "+details[5]+"' onkeypress='return isQuantity(event)' maxlength='10' ISCHANGED='true' class='editInputClass editHighlightedInput' style='width:8.33%;border:none;text-align: right;float:right; outline:none' value='"+itemQtys[1]+"' onfocus='setActiveTD(this); getStockItemWise("+t+" , this);' /><p class='calImgClass' title='view tax' onclick='getToolTipData(this.title,"+fld+");'><img width='15' height='15' src='/ibase/webitm/images/tax_calculationNew.png'></td>";
// console.log("new row check"+tr);
}
......@@ -3072,6 +3073,7 @@ var lineNoForTax = 0;
alignHead = "left";
}*/
var alignHead = "left";
var alignHead = "center";
var classValue = "";
if(pSet[k].childNodes[0].nodeValue == "Quantity")
{
......@@ -3096,13 +3098,13 @@ var lineNoForTax = 0;
{
rateStr = ""+itemParentRate;
}
pSetVal = pSetVal + "<th class='tHeader' align = '"+alignHead+"'>"+pSet[k].childNodes[0].nodeValue +"</th>";
pSetVal = pSetVal + "<th class='tHeader' width='8.33%' align = '"+alignHead+"'>"+pSet[k].childNodes[0].nodeValue +"</th>";
}
else
{
if(k>1)
{
pSetVal = pSetVal + "<th class='tHeader' align = '"+alignHead+"'>"+pSet[k].childNodes[0].nodeValue +"</th>";
pSetVal = pSetVal + "<th class='tHeader' width='8.33%' align = '"+alignHead+"'>"+pSet[k].childNodes[0].nodeValue +"</th>";
}
}
}
......@@ -6078,6 +6080,7 @@ function gotoChildTextbox(curTdObj)
//document.getElementById("Detail3."+r+".tax_xml").value;
var item = document.getElementById("Detail3."+r+".item_code").value;
var quantity = document.getElementById("Detail3."+r+".quantity").value;
var itemType = document.getElementById("Detail3."+r+".item_type").value;
var siteCode = document.getElementById("site_code").value;
var itemSer = document.getElementById("Detail3."+r+".item_ser").value;
......@@ -6090,6 +6093,7 @@ function gotoChildTextbox(curTdObj)
xmlString = xmlString + "<item_code__ord>"+"<![CDATA[" + item + "]]>"+"</item_code__ord>";
xmlString = xmlString + "<quantity>"+"<![CDATA[" + quantity + "]]>"+"</quantity>";
xmlString = xmlString + "<itemType>"+"<![CDATA[" + itemType + "]]>"+"</itemType>";
xmlString = xmlString + "<site_code>"+"<![CDATA[" + siteCode + "]]>"+"</site_code>";
xmlString = xmlString + "</Detail2>";
xmlString = xmlString + "<Detail1 domID='"+r+"' selected = 'N'>";
......
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