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(); ...@@ -188,7 +188,7 @@ conn = getConnection();
"<![CDATA[" + entryBatchNo + "]]>").append( "<![CDATA[" + entryBatchNo + "]]>").append(
"</entry_batch_no>"); "</entry_batch_no>");
retTabSepStrBuff.append("<ref_no>").append( retTabSepStrBuff.append("<ref_no>").append(
"<![CDATA[" + rs.getString("REF_NO") + "]]>") "<![CDATA[" + checkNull(rs.getString("REF_NO")) + "]]>")
.append("</ref_no>"); .append("</ref_no>");
retTabSepStrBuff.append("<ref_date>").append( retTabSepStrBuff.append("<ref_date>").append(
"<![CDATA[" "<![CDATA["
...@@ -248,11 +248,12 @@ conn = getConnection(); ...@@ -248,11 +248,12 @@ conn = getConnection();
"<![CDATA[" + rs.getString("TRAN_ID") + "]]>") "<![CDATA[" + rs.getString("TRAN_ID") + "]]>")
.append("</tran_id>"); .append("</tran_id>");
retTabSepStrBuff.append("<remarks>").append( retTabSepStrBuff.append("<remarks>").append(
"<![CDATA[" + rs.getString("REMARKS") + "]]>") "<![CDATA[" + checkNull(rs.getString("REMARKS")) + "]]>")
.append("</remarks>"); .append("</remarks>");
retTabSepStrBuff.append("<exch_rate>").append( retTabSepStrBuff.append("<exch_rate>").append(
"<![CDATA[" + rs.getString("EXCH_RATE") + "]]>") "<![CDATA[" + rs.getString("EXCH_RATE") + "]]>")
.append("</exch_rate>"); .append("</exch_rate>");
retTabSepStrBuff.append("<eff_date>").append("<![CDATA[" +effDate+ "]]>").append("</eff_date>");
retTabSepStrBuff.append("</Detail2>"); retTabSepStrBuff.append("</Detail2>");
cnt++; cnt++;
...@@ -744,6 +745,8 @@ conn = getConnection(); ...@@ -744,6 +745,8 @@ conn = getConnection();
currCode = childNode.getFirstChild().getNodeValue(); currCode = childNode.getFirstChild().getNodeValue();
} else if (childNodeName.equals("exch_rate")) { } else if (childNodeName.equals("exch_rate")) {
exchRate = childNode.getFirstChild().getNodeValue(); exchRate = childNode.getFirstChild().getNodeValue();
} else if (childNodeName.equals("eff_date")) {
effDate = childNode.getFirstChild().getNodeValue();
} }
}// end inner for }// end inner for
xmlValues = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>"; xmlValues = "<?xml version=\"1.0\" encoding=\"utf-8\"?><Root>";
...@@ -784,7 +787,7 @@ conn = getConnection(); ...@@ -784,7 +787,7 @@ conn = getConnection();
/* insert data into the 'bank_statement' table */ /* insert data into the 'bank_statement' table */
currDate = new java.sql.Date(System.currentTimeMillis()); currDate = new java.sql.Date(System.currentTimeMillis());
effDate = genericUtility.getColumnValue("eff_date", headerDom); //effDate = genericUtility.getColumnValue("eff_date", headerDom);
// int loop = amountList.size(); // int loop = amountList.size();
if (remarks == null) { if (remarks == null) {
...@@ -1190,4 +1193,12 @@ conn = getConnection(); ...@@ -1190,4 +1193,12 @@ conn = getConnection();
+ valueXmlString.toString()); + valueXmlString.toString());
return 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