Commit 613891da authored by nkhan's avatar nkhan

*** empty log message ***


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@103521 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c9df162f
...@@ -357,8 +357,7 @@ public class SiteCustomer extends ValidatorEJB implements SiteCustomerLocal,Site ...@@ -357,8 +357,7 @@ public class SiteCustomer extends ValidatorEJB implements SiteCustomerLocal,Site
else if(childNodeName.equalsIgnoreCase("curr_code__frt")) else if(childNodeName.equalsIgnoreCase("curr_code__frt"))
{ {
CurrCodeFrt = genericUtility.getColumnValue("curr_code__frt", dom); CurrCodeFrt = genericUtility.getColumnValue("curr_code__frt", dom);
if(CurrCodeFrt != null && CurrCodeFrt.trim().length() > 0 )
{
sql = "select count(*) from currency where curr_code = ?"; sql = "select count(*) from currency where curr_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,CurrCodeFrt); pstmt.setString(1,CurrCodeFrt);
...@@ -377,13 +376,12 @@ public class SiteCustomer extends ValidatorEJB implements SiteCustomerLocal,Site ...@@ -377,13 +376,12 @@ public class SiteCustomer extends ValidatorEJB implements SiteCustomerLocal,Site
rs = null; rs = null;
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
}
} }
else if(childNodeName.equalsIgnoreCase("curr_code__ins")) else if(childNodeName.equalsIgnoreCase("curr_code__ins"))
{ {
currCodeIns = genericUtility.getColumnValue("curr_code__ins", dom); currCodeIns = genericUtility.getColumnValue("curr_code__ins", dom);
if(currCodeIns != null && currCodeIns.trim().length() > 0 )
{
sql = "select count(*) from currency where curr_code = ?"; sql = "select count(*) from currency where curr_code = ?";
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1,currCodeIns); pstmt.setString(1,currCodeIns);
...@@ -403,7 +401,7 @@ public class SiteCustomer extends ValidatorEJB implements SiteCustomerLocal,Site ...@@ -403,7 +401,7 @@ public class SiteCustomer extends ValidatorEJB implements SiteCustomerLocal,Site
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
}
}//end of for }//end of for
......
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