Commit 283bbc66 authored by dpawar's avatar dpawar

update java files


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@92360 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 1948f232
...@@ -232,9 +232,12 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -232,9 +232,12 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
bondAmt = genericUtility.getColumnValue("bond_amt",dom); bondAmt = genericUtility.getColumnValue("bond_amt",dom);
recAmtDone= genericUtility.getColumnValue("recovery_amt__done",dom); recAmtDone= genericUtility.getColumnValue("recovery_amt__done",dom);
System.out.println("Actual amt :"+recAmtAct+" recAmtDue :"+recAmtDue);
double recAmountAct=0.0,recAmountDue=0.0,bondAmount=0.0,recAmountDone=0.0; double recAmountAct=0.0,recAmountDue=0.0,bondAmount=0.0,recAmountDone=0.0;
if (recAmtAct == null || recAmtAct.trim().length() == 0 ) if (recAmtAct == null || recAmtAct.trim().length() == 0 )
{ {
System.out.println(" recAmtAct Null value........");
errCode = "VBACTAMT"; errCode = "VBACTAMT";
errString = getErrorString("recovery_amt__act",errCode,userId); errString = getErrorString("recovery_amt__act",errCode,userId);
break; break;
...@@ -248,6 +251,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -248,6 +251,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
System.out.println("bondAmount :-->>"+bondAmount+" recAmountDone : "+recAmountDone); System.out.println("bondAmount :-->>"+bondAmount+" recAmountDone : "+recAmountDone);
if(bondAmount == recAmountDone) if(bondAmount == recAmountDone)
{ {
System.out.println("equality condition true -------");
errCode="VRECAMTGRT"; errCode="VRECAMTGRT";
errString = getErrorString("recovery_amt__done",errCode,userId); errString = getErrorString("recovery_amt__done",errCode,userId);
break; break;
...@@ -465,6 +469,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -465,6 +469,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
System.out.println("IN EMP CODE OF ITEM CHANGE"); System.out.println("IN EMP CODE OF ITEM CHANGE");
empCode = genericUtility.getColumnValue("emp_code",dom); empCode = genericUtility.getColumnValue("emp_code",dom);
System.out.println("Employee Code in item change ---->>>"+empCode); System.out.println("Employee Code in item change ---->>>"+empCode);
sql = " Select e.emp_fname,e.emp_mname,e.emp_lname,e.dept_code,d.descr,e.acct_code__sal,e.CCTR_CODE__SAL,e.date_join,e.RELIEVE_DATE,e.BOND_AMT__RECO from "+ sql = " Select e.emp_fname,e.emp_mname,e.emp_lname,e.dept_code,d.descr,e.acct_code__sal,e.CCTR_CODE__SAL,e.date_join,e.RELIEVE_DATE,e.BOND_AMT__RECO from "+
" employee e,department d "+ " employee e,department d "+
" where e.dept_code = d.dept_code and e.emp_code = ? "; " where e.dept_code = d.dept_code and e.emp_code = ? ";
...@@ -510,6 +515,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -510,6 +515,7 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
pstmt = null; pstmt = null;
rs = null; rs = null;
if (dateRelieve !=null && dateJoin !=null&& dateRelieve.length()>0 && dateJoin.length()>0) if (dateRelieve !=null && dateJoin !=null&& dateRelieve.length()>0 && dateJoin.length()>0)
{ {
StringTokenizer st = new StringTokenizer(dateJoin, "/"); StringTokenizer st = new StringTokenizer(dateJoin, "/");
...@@ -586,7 +592,9 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon ...@@ -586,7 +592,9 @@ public class BondRecovery extends ValidatorEJB implements BondRecoveryLocal, Bon
{ {
bondAmtDue= bondAmtDue+rs.getDouble(1); bondAmtDue= bondAmtDue+rs.getDouble(1);
} }
System.out.println("After while bond amt due------->>>>"+bondAmtDue);
bondAmtDone=bondAmtDue; bondAmtDone=bondAmtDue;
bondAmtDue=bondAmt-bondAmtDue; bondAmtDue=bondAmt-bondAmtDue;
valueXmlString.append("<amt__due>").append("<![CDATA["+bondAmtDue+"]]>").append("</amt__due>"); valueXmlString.append("<amt__due>").append("<![CDATA["+bondAmtDue+"]]>").append("</amt__due>");
......
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm.adv;
import ibase.webitm.ejb.dis.DistCommon; import ibase.webitm.ejb.dis.DistCommon;
import java.rmi.RemoteException; import java.rmi.RemoteException;
......
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm.adv;
import ibase.webitm.ejb.dis.DistCommon; import ibase.webitm.ejb.dis.DistCommon;
import java.rmi.RemoteException; import java.rmi.RemoteException;
......
This diff is collapsed.
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm.adv;
import ibase.webitm.ejb.dis.DistCommon; import ibase.webitm.ejb.dis.DistCommon;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import org.w3c.dom.*; import org.w3c.dom.*;
......
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm.adv;
import ibase.webitm.ejb.dis.DistCommon; import ibase.webitm.ejb.dis.DistCommon;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import org.w3c.dom.*; import org.w3c.dom.*;
//import javax.ejb.EJBObject;
import ibase.webitm.ejb.*; import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; import javax.ejb.Remote; // added for ejb3
public interface EmpBondDefinitionRemote extends ValidatorLocal{ public interface EmpBondDefinitionRemote extends ValidatorLocal{
public String wfValData() throws RemoteException,ITMException; public String wfValData() throws RemoteException,ITMException;
......
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