Commit b5ebc4b4 authored by vdhoble's avatar vdhoble

added changes for jsp


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98008 ce508802-f39f-4f6c-b175-0d175dae99d5
parent f44525b1
...@@ -18,10 +18,30 @@ ...@@ -18,10 +18,30 @@
<style> <style>
table, th, td { table ,td {
border: 1px solid black; border: 1px solid black;
border-collapse: collapse; border-collapse: collapse;
font-size: small; font-size: small;
}
th{
width: auto;
font-size: small;
font-weight: bold;
}
.heading{
font-size: medium;
text-align:center;
font-weight: bold;
}
.detail{
width: auto;
}
table td.descr{
white-space:nowrap
} }
</style> </style>
</head> </head>
...@@ -33,6 +53,8 @@ table, th, td { ...@@ -33,6 +53,8 @@ table, th, td {
inp = " "; inp = " ";
return inp.trim(); return inp.trim();
} }
%> %>
<% <%
// out.println("JSP CALLED FOR PREVIEW"); // out.println("JSP CALLED FOR PREVIEW");
...@@ -207,23 +229,59 @@ System.out.println("ArrayList preview Size>>>>>>>>>"+gltracePreviewList1.size()) ...@@ -207,23 +229,59 @@ System.out.println("ArrayList preview Size>>>>>>>>>"+gltracePreviewList1.size())
<table border ='0'> <table border ='0'>
<thead> <thead>
<td>Tran Id</td><td>Trand_date</td><td>Ref_Ser</td><td>Ref_Id</td><td>Acct Code</td><td>Descr</td><td>Dr Amt</td><td>Cr Amt</td><td>Site Code</td><td>Fin Entity</td><td>Sundry Code</td><td>Sundry Type</td> <td class='heading'>Tran Id</td><td class='heading'>Tran_date</td><td class='heading'>Ref_Ser</td><td class='heading'>Ref_Id</td><td class='heading'>Acct Code</td><td class="descr heading" >Descr</td><td class='heading'>Dr Amt</td><td class='heading'>Cr Amt</td><td class='heading'>Site Code</td><td class='heading'>Fin Entity</td><td class='heading'>Sundry Code</td><td class='heading'>Sundry Type</td>
<td>Remarks</td><td>Cctr Code</td><td>Curr Code</td><td>Exchange Rate</td><td>Dr Amt Bc</td><td>Cr Amt Bc</td><td>Eff Date</td> <td class='heading'>Remarks</td><td class='heading'>Cctr Code</td><td class='heading'>Curr Code</td><td class='heading'>Exch Rate</td><td class='heading'>Dr Amt Bc</td><td class='heading'>Cr Amt Bc</td><td class='heading'>Eff Date</td>
<td>Emp Code</td><td>Anal Code</td><td>Ref Type</td><td>Analysis 1</td><td> Analysis 2</td><td>Analysis 3</td> <td class='heading'>Emp Code</td><td class='heading'>Anal Code</td><td class='heading'>Ref Type</td><td class='heading'>Analysis 1</td><td class='heading'> Analysis 2</td><td class='heading'>Analysis 3</td>
</thead> </thead>
<tbody> <tbody>
<%!
public static boolean isNum(String s)
{
boolean ret = true;
try {
Double.parseDouble(s);
}catch (NumberFormatException e) {
ret = false;
}
return ret;
}
%>
<% for(int i=0;i<gltracePreviewList1.size();i++) <% for(int i=0;i<gltracePreviewList1.size();i++)
{ {
abc = gltracePreviewList1.get(i); abc = gltracePreviewList1.get(i);
%> %>
<tr><%for(int j=0;j<abc.size();j++) <tr>
<%for(int j=0;j<abc.size();j++)
{ {
%>
boolean val = isNum(abc.get(j).toString());
if(val)
{
%>
<td class="descr" align="right"><%= abc.get(j) %></td>
<td><%= abc.get(j) %></td>
<% <%
}
else{
%>
<td class="descr" align="left"><%= abc.get(j) %></td>
<%
}
} }
%> %>
</tr> </tr>
......
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