Commit 8fbb1dfe authored by jshaikh's avatar jshaikh

Added a condition to check whether tranId is null or its length is greater...

Added a condition to check whether tranId is null or its length is greater than zero in EmpItDeclarationIC component

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@203920 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 9c515950
......@@ -393,15 +393,6 @@ public class EmpITDeclarationIC extends ValidatorEJB implements EmpITDeclaration
if(rs.next())
{
tranId = checkNull(rs.getString("tran_id")).trim();
if(tranId != null)
{
valueXmlString.append("<tran_id>").append("<![CDATA[" + tranId + "]]>").append("</tran_id>");
}
else
{
valueXmlString.append("<tran_id>").append("<![CDATA[" + acctPrd + "]]>").append("</tran_id>");
}
}
if (rs != null)
{
......@@ -414,6 +405,15 @@ public class EmpITDeclarationIC extends ValidatorEJB implements EmpITDeclaration
pstmt = null;
}
if(tranId != null && tranId.trim().length() > 0)
{
valueXmlString.append("<tran_id>").append("<![CDATA[" + tranId + "]]>").append("</tran_id>");
}
else
{
valueXmlString.append("<tran_id>").append("<![CDATA[" + acctPrd + "]]>").append("</tran_id>");
}
valueXmlString.append("<emp_code><![CDATA[").append(empCode).append("]]></emp_code>");
valueXmlString.append("<acct_prd><![CDATA[").append(acctPrd).append("]]></acct_prd>");
valueXmlString.append("<tran_date><![CDATA[").append(tranDate).append("]]></tran_date>");
......
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