Commit 0d3641db authored by pgole's avatar pgole

Updated ejb component


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@101456 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8d72758b
...@@ -123,7 +123,7 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo ...@@ -123,7 +123,7 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
//System.out.println("childNodeName["+childNodeName+"]"); //System.out.println("childNodeName["+childNodeName+"]");
if ( childNodeName.equalsIgnoreCase( "fin_entity" ) ) if ( childNodeName.equalsIgnoreCase( "fin_entity" ) )
{ {
//System.out.println("Inside wfval fin_entity>>>"); System.out.println("Inside wfval fin_entity>>>");
if ( childNode.getFirstChild() == null ) if ( childNode.getFirstChild() == null )
{ {
errCode = "NULLFINENT"; errCode = "NULLFINENT";
...@@ -170,8 +170,8 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo ...@@ -170,8 +170,8 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
else else
{ {
//System.out.println("Inside wfval acct_prd else>>>"); //System.out.println("Inside wfval acct_prd else>>>");
acctPrd = genericUtility.getColumnValue( "acct_prd", dom).trim(); acctPrd = genericUtility.getColumnValue( "acct_prd", dom);
finEntity = genericUtility.getColumnValue( "fin_entity", dom).trim(); finEntity = genericUtility.getColumnValue( "fin_entity", dom);
//System.out.println(" wf else acctPrd[" + acctPrd + "]" + "finEntity "+finEntity); //System.out.println(" wf else acctPrd[" + acctPrd + "]" + "finEntity "+finEntity);
...@@ -196,12 +196,15 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo ...@@ -196,12 +196,15 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
if(acctPrd != null && finEntity != null )
{
//System.out.println(" finEntity.trim() =====> [" + finEntity.trim() + "]" + "acctPrd.trim()"+acctPrd.trim());
if ("A".equalsIgnoreCase(editFlag) && childNode.getFirstChild() != null ) if ("A".equalsIgnoreCase(editFlag) && childNode.getFirstChild() != null )
{ {
sqlfin = "SELECT COUNT(1) FROM RELA_PARTY_APPL WHERE FIN_ENTITY = ? AND ACCT_PRD = ?"; sqlfin = "SELECT COUNT(1) FROM RELA_PARTY_APPL WHERE FIN_ENTITY = ? AND ACCT_PRD = ?";
pstmt = conn.prepareStatement( sqlfin ); pstmt = conn.prepareStatement( sqlfin );
pstmt.setString(1,finEntity); pstmt.setString(1,finEntity.trim());
pstmt.setString(2,acctPrd); pstmt.setString(2,acctPrd.trim());
finrs = pstmt.executeQuery(); finrs = pstmt.executeQuery();
if( finrs.next() ) if( finrs.next() )
{ {
...@@ -220,13 +223,14 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo ...@@ -220,13 +223,14 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
}
} }
} }
if ( childNodeName.equalsIgnoreCase( "proj_turnover" ) ) if ( childNodeName.equalsIgnoreCase( "proj_turnover" ) )
{ {
//System.out.println("Inside wfval proj_turnover>>>"); //System.out.println("Inside wfval proj_turnover>>>");
proTurnover = genericUtility.getColumnValue( "proj_turnover", dom).trim(); proTurnover = genericUtility.getColumnValue( "proj_turnover", dom);
if(proTurnover!=null && proTurnover.trim().length() > 0) if(proTurnover!=null && proTurnover.trim().length() > 0)
{ {
...@@ -245,7 +249,7 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo ...@@ -245,7 +249,7 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
if ( childNodeName.equalsIgnoreCase( "relp_allw_perc" ) ) if ( childNodeName.equalsIgnoreCase( "relp_allw_perc" ) )
{ {
//System.out.println("Inside wfval relp_allw_perc>>>"); //System.out.println("Inside wfval relp_allw_perc>>>");
relatedAllow = genericUtility.getColumnValue( "relp_allw_perc", dom).trim(); relatedAllow = genericUtility.getColumnValue( "relp_allw_perc", dom);
if(relatedAllow!=null && relatedAllow.trim().length() > 0) if(relatedAllow!=null && relatedAllow.trim().length() > 0)
{ {
......
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