Commit 6496fa80 authored by vkadam's avatar vkadam

Changes for STATUS_DATE and Charge back Form validation.


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@98053 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 97687fc2
This diff is collapsed.
package ibase.webitm.ejb.dis;
import ibase.webitm.ejb.*;
import java.rmi.RemoteException;
import ibase.webitm.utility.ITMException;
import org.w3c.dom.*;
import ibase.webitm.ejb.ValidatorLocal;
//import javax.ejb.CreateException;
//import javax.ejb.EJBHome;
import javax.ejb.Local; // added for ejb3
@Local // added for ejb3
public interface ChargeBackFormIcLocal extends ValidatorLocal
{
//public Validator create() throws RemoteException, CreateException;
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
// public String itemChanged() throws RemoteException,ITMException;
// public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
// public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import java.rmi.RemoteException;
import org.w3c.dom.*;
//import javax.ejb.EJBObject;
import ibase.webitm.utility.ITMException;
import ibase.webitm.ejb.*;
import javax.ejb.Remote; // added for ejb3
import ibase.webitm.ejb.ValidatorRemote;// added for ejb3
@Remote // added for ejb3
public interface ChargeBackFormIcRemote extends ValidatorRemote
{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1,String xmlString2, String objContext, String editFlag, String xtraParams) throws RemoteException, ITMException;
public String wfValData(Document dom, Document dom1,Document dom2, String objContext, String editFlag, String xtraParams) throws RemoteException,ITMException;
// public String itemChanged() throws RemoteException,ITMException;
// public String itemChanged(String xmlString, String xmlString1,String xmlString2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
// public String itemChanged(Document dom, Document dom1,Document dom2, String objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
}
\ No newline at end of file
package ibase.webitm.ejb.dis;
import ibase.webitm.utility.*;
import org.w3c.dom.*;
import ibase.utility.CommonConstants;
import ibase.webitm.ejb.*;
import ibase.system.config.*;
import java.rmi.RemoteException;
import java.util.*;
import java.text.*;
import java.sql.*;
import javax.ejb.*;
import java.util.Calendar;
import java.util.Date;
import javax.naming.InitialContext;
import ibase.system.config.AppConnectParm;
//import ibase.webitm.ejb.MasterStateful;
//import ibase.webitm.ejb.MasterStatefulHome;
import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import org.apache.axis.encoding.XMLType;
import javax.xml.rpc.ParameterMode;
import javax.ejb.Stateless; // added for ejb3
......@@ -86,6 +96,7 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
String returnString = null;
boolean conFlag = false;
String errStr = "";
Timestamp sysDate = null;
try
{
......@@ -117,19 +128,28 @@ public class ChrgBckLocConf extends ActionHandlerEJB implements ChrgBckLocConfLo
return returnString;
}
Calendar currentDate = Calendar.getInstance();
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
String sysDateStr = sdf.format(currentDate.getTime());
System.out.println(">>>>>>>Now sysDateStr :=> " + sysDateStr);
sysDate= Timestamp.valueOf(genericUtility.getValidDateString(sysDateStr, genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()) + " 00:00:00.0");
System.out.println(">>>>>>>>sysDate:"+sysDate);
sql = "update charge_back set "
+" confirmed = 'Y', "
+" VERIFY_FLAG = 'Y', "
+" conf_date = ?, "
+" emp_code__aprv = ?,"
+ "STATUS='A'" //VALLABH KADAM STATUS='A' as APPROVE
+ "STATUS='A',"//VALLABH KADAM STATUS='A' as APPROVE
+ " STATUS_DATE=?" //VALLABH KADAM STATUS_DATE
+" where tran_id = ? ";
// +" and confirmed <> 'Y' ";
System.out.println( "upd sql " + sql );
pstmt = conn.prepareStatement( sql );
pstmt.setTimestamp( 1, currDate );
pstmt.setString( 2, empCode );
pstmt.setString( 3, tranID );
pstmt.setTimestamp(3, sysDate);
pstmt.setString( 4, tranID );
int chkupdt = pstmt.executeUpdate();
System.out.println("chkupdt==>"+chkupdt);
......
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