Commit 2ccf50e1 authored by vvengurlekar's avatar vvengurlekar

Add current financial year and previous financial year as a title


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@105446 ce508802-f39f-4f6c-b175-0d175dae99d5
parent fc6262a2
......@@ -127,8 +127,19 @@ public class ProfitNLossSummary extends ValidatorEJB implements ProfitNLossSumm
rowCount = rs.getRow();
rs.beforeFirst();
String prvFinYear = "";
if(prvFinPeriod.trim()!=null && prvFinPeriod.trim().length() > 0)
{
prvFinYear= "("+prvFinPeriod+")";
}
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' align='center' style='width: 4%;' class = 'commonHeaderCardhtml'>Current financial year ("+curFinPrdFrom.substring(0, 4)+'-'+curFinPrdTo.substring(0, 4)+")</td> <td colspan='2' align='center' style='width: 4%;' class = 'commonHeaderCardhtml'>Previous financial year ("+prvFinPeriod.substring(0, 4)+'-'+prvFinPrdTo.substring(0, 4)+")</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>");
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' " +
"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>");
}
else{
rowBuffer = new StringBuffer("<table id='htmlTable' cellpadding='2' align='center'><tr><td align = 'center' class='gwt-ScrollTable'>No Data Found</td></tr></table>");
......
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