Commit 447abac1 authored by prane's avatar prane

updated for GTPL eff_date should be visible during processing

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@184425 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 66ca1a7a
......@@ -188,7 +188,7 @@ conn = getConnection();
"<![CDATA[" + entryBatchNo + "]]>").append(
"</entry_batch_no>");
retTabSepStrBuff.append("<ref_no>").append(
"<![CDATA[" + rs.getString("REF_NO") + "]]>")
"<![CDATA[" + checkNull(rs.getString("REF_NO")) + "]]>")
.append("</ref_no>");
retTabSepStrBuff.append("<ref_date>").append(
"<![CDATA["
......@@ -248,11 +248,12 @@ conn = getConnection();
"<![CDATA[" + rs.getString("TRAN_ID") + "]]>")
.append("</tran_id>");
retTabSepStrBuff.append("<remarks>").append(
"<![CDATA[" + rs.getString("REMARKS") + "]]>")
"<![CDATA[" + checkNull(rs.getString("REMARKS")) + "]]>")
.append("</remarks>");
retTabSepStrBuff.append("<exch_rate>").append(
"<![CDATA[" + rs.getString("EXCH_RATE") + "]]>")
.append("</exch_rate>");
retTabSepStrBuff.append("<eff_date>").append("<![CDATA[" +effDate+ "]]>").append("</eff_date>");
retTabSepStrBuff.append("</Detail2>");
cnt++;
......@@ -744,6 +745,8 @@ conn = getConnection();
currCode = childNode.getFirstChild().getNodeValue();
} else if (childNodeName.equals("exch_rate")) {
exchRate = childNode.getFirstChild().getNodeValue();
} else if (childNodeName.equals("eff_date")) {
effDate = childNode.getFirstChild().getNodeValue();
}
}// end inner for
xmlValues = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
......@@ -784,7 +787,7 @@ conn = getConnection();
/* insert data into the 'bank_statement' table */
currDate = new java.sql.Date(System.currentTimeMillis());
effDate = genericUtility.getColumnValue("eff_date", headerDom);
//effDate = genericUtility.getColumnValue("eff_date", headerDom);
// int loop = amountList.size();
if (remarks == null) {
......@@ -1190,4 +1193,12 @@ conn = getConnection();
+ valueXmlString.toString());
return valueXmlString.toString();
}
private String checkNull(String input)
{
if (input == null || "null".equals(input))
{
input = "";
}
return input;
}
}
\ No newline at end of file
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