Commit 85ea5fc3 authored by ngadkari's avatar ngadkari

change in getData method added validation

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@189406 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 26f1c7a0
...@@ -238,9 +238,26 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR ...@@ -238,9 +238,26 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
retTabSepStrBuff.append("<sundry_code>").append("<![CDATA[" + rs.getString(1) +"]]>").append("</sundry_code>"); retTabSepStrBuff.append("<sundry_code>").append("<![CDATA[" + rs.getString(1) +"]]>").append("</sundry_code>");
retTabSepStrBuff.append("<supp_name>").append("<![CDATA[" + rs.getString(2) +"]]>").append("</supp_name>"); retTabSepStrBuff.append("<supp_name>").append("<![CDATA[" + rs.getString(2) +"]]>").append("</supp_name>");
retTabSepStrBuff.append("<tran_ser>").append("<![CDATA[" + rs.getString(3) +"]]>").append("</tran_ser>"); retTabSepStrBuff.append("<tran_ser>").append("<![CDATA[" + rs.getString(3) +"]]>").append("</tran_ser>");
if(rs.getTimestamp("TRAN_DATE") == null)
{
retTabSepStrBuff.append("<tran_date>").append("<![CDATA[]]>").append("</tran_date>");
}
else
{
retTabSepStrBuff.append("<tran_date>").append("<![CDATA[" +sdf.format( rs.getTimestamp(4)) +"]]>").append("</tran_date>"); retTabSepStrBuff.append("<tran_date>").append("<![CDATA[" +sdf.format( rs.getTimestamp(4)) +"]]>").append("</tran_date>");
}
retTabSepStrBuff.append("<ref_no>").append("<![CDATA[" + rs.getString(5) +"]]>").append("</ref_no>"); retTabSepStrBuff.append("<ref_no>").append("<![CDATA[" + rs.getString(5) +"]]>").append("</ref_no>");
if(rs.getTimestamp("REF_DATE") == null)
{
retTabSepStrBuff.append("<ref_date>").append("<![CDATA[]]>").append("</ref_date>");
}
else
{
retTabSepStrBuff.append("<ref_date>").append("<![CDATA[" +sdf.format( rs.getTimestamp(6)) +"]]>").append("</ref_date>"); retTabSepStrBuff.append("<ref_date>").append("<![CDATA[" +sdf.format( rs.getTimestamp(6)) +"]]>").append("</ref_date>");
}
retTabSepStrBuff.append("<tot_amt>").append("<![CDATA[" + rs.getDouble(7) +"]]>").append("</tot_amt>"); retTabSepStrBuff.append("<tot_amt>").append("<![CDATA[" + rs.getDouble(7) +"]]>").append("</tot_amt>");
retTabSepStrBuff.append("<adj_amt>").append("<![CDATA[" + rs.getDouble(8) +"]]>").append("</adj_amt>"); retTabSepStrBuff.append("<adj_amt>").append("<![CDATA[" + rs.getDouble(8) +"]]>").append("</adj_amt>");
totAmt = rs.getDouble(7) ; totAmt = rs.getDouble(7) ;
...@@ -301,7 +318,8 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR ...@@ -301,7 +318,8 @@ public class PayRecXfrPrc extends ProcessEJB implements PayRecXfrPrcLocal , PayR
}//try }//try
catch (Exception e) catch (Exception e)
{ {
e.printStackTrace();
System.out.println("Exception :PayRecXfrPrc :getData(Document headerDom, Document detailDom, String windowName, String xtraParams):" + e.getMessage() + ":"); System.out.println("Exception :PayRecXfrPrc :getData(Document headerDom, Document detailDom, String windowName, String xtraParams):" + e.getMessage() + ":");
throw new ITMException(e); throw new ITMException(e);
} }
......
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