Commit 8f0b4185 authored by vvengurlekar's avatar vvengurlekar

Header scroll remove for profit and loss dashboard


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105480 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d1b93746
......@@ -31,6 +31,7 @@ public class ProfitNLossSummary extends ValidatorEJB implements ProfitNLossSumm
JSONObject rawDataJson = new JSONObject();
String codes[]=new String[20];
String signs[] =new String[20];
DecimalFormat decFormator =new DecimalFormat("#.##");
@SuppressWarnings("unchecked")
public JSONObject generateReport(String siteCode,String acctPrd, String formatCode,String reportType,String dataSourceName) throws RemoteException, ITMException
......@@ -134,12 +135,16 @@ public class ProfitNLossSummary extends ValidatorEJB implements ProfitNLossSumm
}
if(!(rowCount == 0)){
rowBuffer = new StringBuffer("<table style = 'table-layout: fixed; width: 100%;' id='htmlTable' class = 'mtBackgroundWhite' cellpadding='3' " +
"border='1'><tr><td rowspan='2' align='center' class = 'commonHeaderCardhtml' style='width: 5%;'>Description</td> <td colspan='2' " +
rowBuffer = new StringBuffer("<table border='1' width='100%' cellpadding='4' name ='localityDetail' style = 'table-layout: fixed; width: 100%;' id='htmlTable' class = 'mtBackgroundWhite' cellpadding='3' " +
"border='1'><thead><tr><td rowspan='2' align='center' class = 'commonHeaderCardhtml' style='width: 5%;'>Description</td> <td colspan='2' " +
"align='center' style='width: 4%;' class = 'commonHeaderCardhtml'>Current financial year ("
+acctPrd+")</td> <td colspan='2' align='center' style='width: 4%;' " +
"class = 'commonHeaderCardhtml'>Previous financial year "+prvFinYear+
"</td></tr><tr><td align='center' style='width: 2%;' class = 'commonHeaderCardhtml'>In</td><td class='commonHeaderCardhtml' align='center' style='width: 2%;'>Out</td><td class='commonHeaderCardhtml' align='center' style='width: 2%;'>In</td><td align='center' style='width: 2%;' class = 'commonHeaderCardhtml'>Out</td></tr>");
"</td></tr><tr><td align='center' style='width: 2%;' class = 'commonHeaderCardhtml'>In</td>" +
"<td class='commonHeaderCardhtml' align='center' style='width: 2%;'>Out</td>" +
"<td class='commonHeaderCardhtml' align='center' style='width: 2%;'>In</td>" +
"<td align='center' style='width: 2%;' class = 'commonHeaderCardhtml'>Out</td></tr></thead>" +
"<tbody>");
}
else{
rowBuffer = new StringBuffer("<table id='htmlTable' cellpadding='2' align='center'><tr><td align = 'center' class='gwt-ScrollTable'>No Data Found</td></tr></table>");
......@@ -624,14 +629,14 @@ public class ProfitNLossSummary extends ValidatorEJB implements ProfitNLossSumm
rawDataJson.put(count, rowData);*/
rowBuffer.append("<tr><td class= 'cardHtmlTableBodyAlignLft' style='width: 5%; overflow: hidden;'>"+titleDescr+"</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>0.0</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+dfFormatter(curGroupTotal)+"</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+decFormator.format(curGroupTotal)+"</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>0.0</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+dfFormatter(preGroupTotal)+"</td></tr>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+decFormator.format(preGroupTotal)+"</td></tr>");
System.out.println("In generatereport() count:"+count+" titleDescr: "+titleDescr+"curr_in_val: 0.0 ,prev_in_val:0.0, curr_out_val: "+curGroupTotal+"prev_out_val: "+preGroupTotal);
count++;
} // end of else of llCount >0
}// end of while
rowBuffer.append("</table>");
rowBuffer.append("</tbody></table>");
System.out.println("rowBuffer"+rowBuffer);
rowData = new JSONObject();
rowData.put("plblTableData", rowBuffer.toString());
......@@ -1210,21 +1215,21 @@ public class ProfitNLossSummary extends ValidatorEJB implements ProfitNLossSumm
/*rowData.put("curr_in_val", curGroupTotalSGrp);
rowData.put("prev_in_val", preGroupTotalSGrp);
totalCurr[printlevel] += curGroupTotalSGrp;
totalPrev[printlevel] += preGroupTotalSGrp;*/
*/
totalCurr[printLevel] += curGroupTotalSGrp;
totalPrev[printLevel] += preGroupTotalSGrp;
/*rowData.put("curr_out_val", totalCurr[printlevel]);
rowData.put("prev_out_val", totalPrev[printlevel]);
rawDataJson.put(count, rowData);*/
//System.out.println("totalCurr: "+totalCurr.toString()+" totalCurr length : "+totalCurr.length+" totalPrev: "+totalPrev.toString()+" totalPrev length : "+totalPrev.length);
System.out.println("totalCurr: "+Arrays.toString(totalCurr)+" totalPrev: "+Arrays.toString(totalPrev));
rowBuffer.append("<tr><td class= 'cardHtmlTableBodyAlignLft' style='width: 5%; overflow: hidden;'>"+titleDescr+"</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+dfFormatter(curGroupTotalSGrp)+"</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+decFormator.format(curGroupTotalSGrp)+"</td>");
System.out.println("totalCurr[printlevel]: "+totalCurr[printLevel]);
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+dfFormatter(totalCurr[printLevel])+"</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+dfFormatter(preGroupTotalSGrp)+"</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+decFormator.format(totalCurr[printLevel])+"</td>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+decFormator.format(preGroupTotalSGrp)+"</td>");
System.out.println("totalPrev[printlevel]: "+totalPrev[printLevel]);
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+dfFormatter(totalPrev[printLevel])+"</td></tr>");
rowBuffer.append("<td class= 'cardHtmlTableBodyAlignRgt' style='width: 2%; overflow: hidden;'>"+decFormator.format(totalPrev[printLevel])+"</td></tr>");
System.out.println("In populate() count:"+count+" titleDescr: "+titleDescr+"curr_in_val: "+curGroupTotalSGrp+"prev_in_val: "+preGroupTotalSGrp+"curr_out_val: "+totalCurr[printLevel]+"prev_out_val: "+totalPrev[printLevel]);
//System.out.println("printlevel: "+printlevel);
count++;
......
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