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
//System.out.println("childNodeName["+childNodeName+"]");
if ( childNodeName.equalsIgnoreCase( "fin_entity" ) )
{
//System.out.println("Inside wfval fin_entity>>>");
System.out.println("Inside wfval fin_entity>>>");
if ( childNode.getFirstChild() == null )
{
errCode = "NULLFINENT";
......@@ -167,11 +167,11 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
else
else
{
//System.out.println("Inside wfval acct_prd else>>>");
acctPrd = genericUtility.getColumnValue( "acct_prd", dom).trim();
finEntity = genericUtility.getColumnValue( "fin_entity", dom).trim();
acctPrd = genericUtility.getColumnValue( "acct_prd", dom);
finEntity = genericUtility.getColumnValue( "fin_entity", dom);
//System.out.println(" wf else acctPrd[" + acctPrd + "]" + "finEntity "+finEntity);
......@@ -196,29 +196,33 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
pstmt.close();
pstmt = null;
if ("A".equalsIgnoreCase(editFlag) && childNode.getFirstChild() != null )
if(acctPrd != null && finEntity != null )
{
sqlfin = "SELECT COUNT(1) FROM RELA_PARTY_APPL WHERE FIN_ENTITY = ? AND ACCT_PRD = ?";
pstmt = conn.prepareStatement( sqlfin );
pstmt.setString(1,finEntity);
pstmt.setString(2,acctPrd);
finrs = pstmt.executeQuery();
if( finrs.next() )
{
cntfin = finrs.getInt( 1 );
}
System.out.println(" COUNT =====> [" + cntfin + "]");
if( cntfin > 0 )
//System.out.println(" finEntity.trim() =====> [" + finEntity.trim() + "]" + "acctPrd.trim()"+acctPrd.trim());
if ("A".equalsIgnoreCase(editFlag) && childNode.getFirstChild() != null )
{
errCode = "VTDUFINENT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
sqlfin = "SELECT COUNT(1) FROM RELA_PARTY_APPL WHERE FIN_ENTITY = ? AND ACCT_PRD = ?";
pstmt = conn.prepareStatement( sqlfin );
pstmt.setString(1,finEntity.trim());
pstmt.setString(2,acctPrd.trim());
finrs = pstmt.executeQuery();
if( finrs.next() )
{
cntfin = finrs.getInt( 1 );
}
System.out.println(" COUNT =====> [" + cntfin + "]");
if( cntfin > 0 )
{
errCode = "VTDUFINENT";
errList.add(errCode);
errFields.add(childNodeName.toLowerCase());
}
finrs.close();
finrs = null;
pstmt.close();
pstmt = null;
}
finrs.close();
finrs = null;
pstmt.close();
pstmt = null;
}
}
......@@ -226,7 +230,7 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
if ( childNodeName.equalsIgnoreCase( "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)
{
......@@ -245,7 +249,7 @@ public class RelaPartyApplIC extends ValidatorEJB implements RelaPartyApplICRemo
if ( childNodeName.equalsIgnoreCase( "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)
{
......
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