Commit cf1b9a02 authored by pjain's avatar pjain

Updated source


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@99422 ce508802-f39f-4f6c-b175-0d175dae99d5
parent d5a8c967
This diff is collapsed.
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Local;
import org.w3c.dom.Document;
@Local
public interface BusinessFunctionLocal extends ValidatorLocal
{
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;
}
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import javax.ejb.Remote;
import org.w3c.dom.Document;
@Remote
public interface BusinessFunctionRemote 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;
}
This diff is collapsed.
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local;
import org.w3c.dom.Document;
@Local
public interface BusinessUnitsLocal extends ValidatorLocal {
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;
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;
}
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote;
import org.w3c.dom.Document;
@Remote
public interface BusinessUnitsRemote extends ValidatorRemote {
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;
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;
}
This diff is collapsed.
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import javax.ejb.Local;
import org.w3c.dom.Document;
@Local
public interface EmpBondDefinitionPrsLocal extends ValidatorLocal {
public String preSave() throws RemoteException,ITMException;
public String preSaveLogic(Document dom,String editFlag, String xtraParams, Connection conn) throws RemoteException,ITMException;
public String preSave(String xmlString, String editFlag, String xtraParams, Connection conn) throws RemoteException,ITMException;
}
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import java.rmi.RemoteException;
import java.sql.Connection;
import javax.ejb.Remote;
import org.w3c.dom.Document;
@Remote
public interface EmpBondDefinitionPrsRemote extends ValidatorRemote
{
public String preSave() throws RemoteException,ITMException;
public String preSaveLogic(Document dom,String editFlag, String xtraParams, Connection conn) throws RemoteException,ITMException;
public String preSave(String xmlString, String editFlag, String xtraParams, Connection conn) throws RemoteException,ITMException;
}
......@@ -1864,19 +1864,37 @@ public class EmployeeEJB extends ValidatorEJB implements EmployeeEJBLocal,Employ
}
}
}
//Added by vinayak for date validation [to_date should not be earlier date from from_date] [20/08/2015] [start]
//Added by vinayak for date validation [to_date should not be earlier date from from_date] [25/08/2015] [start]
if(childNodeName.equalsIgnoreCase("to_date"))
{
SimpleDateFormat dateFormat = new SimpleDateFormat("dd-MMM-yyyy");
String toDate=genericUtility.getColumnValue("to_date", dom);
if(toDate == null || toDate.trim().length() == 0)
{
errList.add("VMEMPNULLT");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMEMPNULLT");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
Date tDate=(Date)dateFormat.parse(toDate);
Date fDate=(Date)dateFormat.parse(fromDate);
if(fDate.after(tDate))
{
errString = getErrorString("to_date","VMEMPINVDT",userId);
errList.add("VMEMPINVDT");
errFields.add(childNodeName.toLowerCase());
msgType = errorType(conn, "VMEMPINVDT");
if (msgType.equalsIgnoreCase("E"))
{
break;
}
}
}
//Added by vinayak for date validation [to_date should not be earlier date from from_date] [20/08/2015] [end]
//Added by vinayak for date validation [to_date should not be earlier date from from_date] [25/08/2015] [end]
if(childNodeName.equalsIgnoreCase("print_seq"))
{
printSeq = genericUtility.getColumnValue("print_seq", dom);
......
......@@ -1309,6 +1309,7 @@ public class PerkClaimProcess extends ValidatorEJB implements PerkClaimProcessLo
{
valueXmlString.append("<adjust_loan ><![CDATA[").append(adjustLoan).append("]]></adjust_loan>\r\n");
}
loanAdjust = "";//Modified By Hemlata on [07/10/2015][To resolve issue Mismatch of Loan adjust amount found ][Start]
valueXmlString.append("<contcode ><![CDATA[").append(suppCodeCon).append("]]></contcode>\r\n");
valueXmlString.append("<tran_id ><![CDATA[").append(lsEmp).append("]]></tran_id>\r\n");
valueXmlString.append("<full_amt ><![CDATA[").append(fullAmt).append("]]></full_amt>\r\n");
......
......@@ -109,7 +109,7 @@ public class ShiftChangePrc extends ProcessEJB implements ShiftChangePrcLocal ,
empCode= checkNull(genericUtility.getColumnValue("emp_code",headerDom,"1"));
frstrDate= checkNull( genericUtility.getColumnValue("from_dt",headerDom,"1"));
tostrDate= checkNull( genericUtility.getColumnValue("to_dt",headerDom,"1"));
System.out.println("Emp CODE "+ empCode+"From Daet "+ frstrDate+"To Date "+ tostrDate);
System.out.println("Emp CODE ["+ empCode+"] From Date ["+ frstrDate+"] To Date ["+ tostrDate + "]");
jSqlFromDate = java.sql.Timestamp.valueOf(genericUtility.getValidDateTimeString(frstrDate,genericUtility.getApplDateFormat(),genericUtility.getDBDateFormat()));
......
This diff is collapsed.
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local;
import org.w3c.dom.Document;
@Local
public interface StdPayStruLocal extends ValidatorLocal
{
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;
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;
}
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.Date;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import ibase.utility.GenericUtility;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
import javax.ejb.Stateless;
import org.w3c.dom.Document;
/**
* Session Bean implementation class StdPayStruPrs
*/
@Stateless
public class StdPayStruPrs extends ValidatorEJB implements StdPayStruPrsRemote, StdPayStruPrsLocal
{
public String preSave() throws RemoteException, ITMException
{
return "";
}
public String preSave(String domString, String editFlag, String xtraParams,
Connection con) throws RemoteException, ITMException
{
String retString = "";
String effDate = "";
Date effDateDB = null;
String payTable = "", grade = "", adCode = "";
String newDate = "";
String userId = "";
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
Document dom = null;
Calendar calendar = null;
GenericUtility genericUtility = null;
Date newDateDB = null;
try
{
con.setAutoCommit( false );
genericUtility = GenericUtility.getInstance();
dom = genericUtility.parseString(domString);
SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
calendar = Calendar.getInstance();
System.out.println("domString StdPayStruPrs ["+domString+"]");
if(editFlag.equalsIgnoreCase("A"))
{
effDate = checkNull(genericUtility.getColumnValue("eff_date", dom));
if(effDate != null && effDate.length() > 0)
{
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams, "loginCode");
effDateDB = Date.valueOf(genericUtility.getValidDateString(effDate, genericUtility.getApplDateFormat(), genericUtility.getDBDateFormat()));
System.out.println("effDateDB :: " + effDateDB);
java.util.Date myDate = sdf.parse(effDate);
calendar.setTime(myDate);
calendar.add(Calendar.DAY_OF_YEAR, -1);
newDate = sdf.format(calendar.getTime());
newDateDB = Date.valueOf(genericUtility.getValidDateString(newDate, genericUtility.getApplDateFormat(), getDBDateFormat()));
payTable = checkNull(genericUtility.getColumnValue("pay_table", dom));
grade = checkNull(genericUtility.getColumnValue("grade", dom));
adCode = checkNull(genericUtility.getColumnValue("ad_code", dom));
System.out.println(" newDate :: " + newDate);
System.out.println(" newDateDB :: " + newDateDB);
int cnt=0;
sql = "SELECT COUNT(1) AS ROWCOUNT FROM STD_PAYSTRU WHERE PAY_TABLE = ? AND GRADE = ? AND AD_CODE =? AND EFF_DATE <= ? AND VALID_UPTO >= ?";
pstmt = con.prepareStatement(sql);
pstmt.setString(1, payTable);
pstmt.setString(2, grade);
pstmt.setString(3, adCode);
pstmt.setDate(4, effDateDB);
pstmt.setDate(5, effDateDB);
rs = pstmt.executeQuery();
System.out.println(" SQL :: " + sql);
if(rs.next())
{
cnt = rs.getInt("ROWCOUNT");
}
if( rs != null)
{
rs.close();
rs = null;
}
if( pstmt != null)
{
pstmt.close();
pstmt = null;
}
System.out.println("Existing RowCount :: " + cnt);
if (cnt > 0)
{
int updCount = 0;
sql = "UPDATE STD_PAYSTRU SET VALID_UPTO = ? WHERE PAY_TABLE = ? AND GRADE = ? AND AD_CODE = ? AND EFF_DATE <= ? AND VALID_UPTO >= ?";
pstmt = con.prepareStatement(sql);
pstmt.setDate(1, newDateDB);
pstmt.setString(2, payTable);
pstmt.setString(3, grade);
pstmt.setString(4, adCode);
pstmt.setDate(5, effDateDB);
pstmt.setDate(6, effDateDB);
updCount = pstmt.executeUpdate();
if( pstmt != null)
{
pstmt.close();
pstmt = null;
}
if(cnt != updCount)
{
retString = getErrorString("eff_date", "VMSTDPAY11", userId);
con.rollback();
}
}
}
}
}
catch(Exception e)
{
System.out.println("Exception :StdPaystruPrs : :==>\n"+e.getMessage());
e.printStackTrace();
try
{
System.out.println("Before rollback");
con.rollback();
}
catch(SQLException sqle)
{
System.out.println(sqle);
}
throw new ITMException(e);
}
finally
{
try
{
if (rs != null)
{
rs.close();
rs = null;
}
if(pstmt != null)
{
pstmt.close();
pstmt = null;
}
}
catch(Exception e)
{
System.out.println("Exception :StdPayStruPrs : :==>\n"+e.getMessage());
try
{
System.out.println("Before rollback");
con.rollback();
}
catch(SQLException sqle)
{
System.out.println(sqle);
}
throw new ITMException(e);
}
}
System.out.println("Return string :"+retString);
return retString;
}
private String checkNull(String input)
{
if (input == null)
{
input = "";
}
else
{
input = input.trim();
}
return input;
}
}
\ No newline at end of file
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.sql.Connection;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local;
@Local
public interface StdPayStruPrsLocal extends ValidatorLocal
{
public String preSave() throws RemoteException, ITMException;
public String preSave(String xmlString, String editFlag, String xtraParams,
Connection con) throws RemoteException, ITMException;
}
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.sql.Connection;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote;
@Remote
public interface StdPayStruPrsRemote extends ValidatorRemote
{
public String preSave() throws RemoteException, ITMException;
public String preSave(String xmlString, String editFlag, String xtraParams,
Connection con) throws RemoteException, ITMException;
}
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import ibase.webitm.ejb.ValidatorRemote;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote;
import org.w3c.dom.Document;
@Remote
public interface StdPayStruRemote extends ValidatorRemote
{
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;
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;
}
......@@ -46,6 +46,14 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
double bondamt=0.0;
int lineno=0,bondprd=0,updCnt=0;
//Modified by Rahul Shenoy on 14/08/2015 [Declaration for inserting when value of line_no__ref is 0].Start
String sqlInsert ="",sqlMaxLineNo ="";
int maxLineNumber = 0,insertCnt = 0;
PreparedStatement pstmtMax = null,pstmtInsert = null;
ResultSet rsMax=null;
//Modified by Rahul Shenoy on 14/08/2015 [Declaration for inserting when value of line_no__ref is 0].End
try
{
......@@ -78,43 +86,188 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
return errString;
}
// Modified by Piyush on 16/07/2015 [To establish join between header and detail]
/*
sql="select ed.tran_id,e.emp_code,ed.line_no,ed.bond_amt,ed.bond_prd from employee_bond_def_det ed,employee_bond_def e "+
" where ed.tran_id=?";
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, tranId);
rs = pstmt.executeQuery();
sql="update employee_bond set bond_amt = ?,bond_prd = ? where line_no = ? and emp_code = ?";
pstmt = conn.prepareStatement( sql );
*/
//Modified by RAHUL SHENOY on 14/08/2015 [Reference Line Number(line_no__ref) needs to be updated instead of Line Number from employee_bond_def_det table]
/*
sql="select ed.tran_id,e.emp_code,ed.line_no,ed.bond_amt,ed.bond_prd from employee_bond_def_det ed,employee_bond_def e "+
" where e.tran_id = ed.tran_id and e.tran_id=?";
*/
ResultSet rs1 = null;
PreparedStatement pstmt1 = null;
/*
while(rs.next())
{
lineno=rs.getInt("line_no");
bondamt=rs.getInt("bond_amt");
lineno=rs.getInt("line_no__ref");
bondamt=rs.getDouble("bond_amt");
bondprd=rs.getInt("bond_prd");
empcode=rs.getString("emp_code");
sql="update employee_bond set bond_amt = ?,bond_prd = ? where line_no = ? and emp_code = ?";
pstmt = conn.prepareStatement(sql);
pstmt.setDouble(1, bondamt);
pstmt.setInt(2, bondprd);
pstmt.setInt(3, lineno);
pstmt.setString(4,empcode);
updCnt = pstmt.executeUpdate();
pstmt.clearParameters();
}*/
sql="select ed.tran_id,e.emp_code,ed.line_no__ref,ed.bond_amt,ed.bond_prd from employee_bond_def_det ed,employee_bond_def e "+
" where e.tran_id = ed.tran_id and e.tran_id=?";
pstmt1 = conn.prepareStatement(sql);
pstmt1.setString(1, tranId);
rs1 = pstmt1.executeQuery();
sql="update employee_bond set bond_amt = ?,bond_prd = ? where line_no = ? and emp_code = ?";
pstmt = conn.prepareStatement(sql);
sqlInsert = "Insert into employee_bond ( EMP_CODE , LINE_NO , BOND_PRD , BOND_AMT) values ( ? , ? , ? , ? )";
pstmtInsert = conn.prepareStatement(sqlInsert);
sqlMaxLineNo="select max(line_no) as max_line_no from employee_bond where emp_code = ? ";
pstmtMax = conn.prepareStatement(sqlMaxLineNo);
int totUpdCnt = 0;
while(rs1.next())
{
System.out.println("*** Entering the ResultSet [rs] ***");
lineno=rs1.getInt("line_no__ref");
bondamt=rs1.getDouble("bond_amt");
bondprd=rs1.getInt("bond_prd");
empcode=rs1.getString("emp_code");
//Modified by Rahul Shenoy on 14/08/2015 [Inserting where line_no__ref is 0 and updating when it is not 0 to the Employee_Bond table]
if(lineno == 0)
{
System.out.println("*** Line Number is found to be 0 ***");
//For Obtaining the available maximum line number for inserting into the master
pstmtMax.setString(1, empcode);
rsMax = pstmtMax.executeQuery();
pstmtMax.clearParameters();
while(rsMax.next())
{
maxLineNumber = rsMax.getInt("max_line_no");
}
if(maxLineNumber == 0)
{
System.out.println("*** No record present in the table for the given employee ***");
System.out.println("Setting maxLine Number value as [1]");
maxLineNumber = 1;
}else
{
maxLineNumber = maxLineNumber + 1;
}
System.out.println("Available Max Line Number for inserting data :["+ maxLineNumber +"]");
//For inserting the obtained values for 0 value of lineno
pstmtInsert.setString(1, empcode);
pstmtInsert.setInt(2, maxLineNumber);
pstmtInsert.setInt(3, bondprd);
pstmtInsert.setDouble(4, bondamt);
insertCnt = pstmtInsert.executeUpdate();
totUpdCnt = totUpdCnt + insertCnt;
System.out.println("Value of insertCnt is : ["+insertCnt+"]");
}else
{//For updating values if line Number is not zero
System.out.println("*** Line Number is found to be "+ lineno +" ***");
pstmt.setDouble(1, bondamt);
pstmt.setInt(2, bondprd);
pstmt.setInt(3, lineno);
pstmt.setString(4,empcode);
updCnt = pstmt.executeUpdate();
totUpdCnt = totUpdCnt + updCnt;
System.out.println("Value of updCnt is : ["+updCnt+"]");
pstmt.clearParameters();
}
//Modified by Rahul Shenoy on 14/08/2015 [Inserting where line_no__ref is 0 and updating when it is not 0 to the Employee_Bond table]
}
if ( rsMax != null )
{
rsMax.close();
rsMax = null;
}
if ( rs1 != null )
{
rs1.close();
rs1 = null;
}
if( pstmtInsert != null )
{
pstmtInsert.close();
pstmtInsert = null;
}
if( pstmtMax != null )
{
pstmtMax.close();
pstmtMax = null;
}
if( pstmt1 != null )
{
pstmt1.close();
pstmt1 = null;
}
if( pstmt != null )
{
pstmt.close();
pstmt = null;
}
if ( rs != null )
{
rs.close();
rs = null;
}
updcnt1 =updateConfirm(conn,tranId);
System.out.println("UPDATE COUNT --updCnt-->>"+updCnt+" updcnt1 -->>"+updcnt1);
if (updCnt > 0 && updcnt1 >0 )
//Added by RAHUL SHENOY on 21/08/2015 [Confirming the update].Start
int count=0;
String sqlConfirm = "UPDATE EMPLOYEE_BOND_DEF SET CONFIRMED = ? ,CONF_DATE = ?,EMP_CODE__APRV=? WHERE TRAN_ID = ?";
pstmt1 = conn.prepareStatement( sqlConfirm );
pstmt1.setString(1, "Y");
pstmt1.setTimestamp(2, this.getCurrdateAppFormat());
pstmt1.setString(3, loginEmpCode);
pstmt1.setString(4, tranId);
updcnt1 = pstmt1.executeUpdate();
System.out.println("confirm updated -------->>>>>>>>>updCount :"+count);
//Added by RAHUL SHENOY on 21/08/2015 [Confirming the update].End
//Modified by RAHUL SHENOY on 17/08/2015 [Displaying the Insert Count]
//System.out.println("UPDATE COUNT --updCnt-->>"+updCnt+" updcnt1 -->>"+updcnt1);
System.out.println("UPDATE COUNT --updCnt-->>"+updCnt+" insertCnt -->>"+ insertCnt+" updcnt1 -->>"+updcnt1);
if (totUpdCnt > 0 && updcnt1 >0 )
{
retString=new ITMDBAccessEJB().getErrorString("", "VCONFSUC", "", "", conn);
conn.commit();
......@@ -170,14 +323,17 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
}
//Modified by RAHUL SHENOY on 21/08/2015 [Placing the update Confirm functionality inside the Action Handler method].Start
/*
public int updateConfirm(Connection conn,String tranId)
{
PreparedStatement pstmt1=null;
int count=0;
String sql = "UPDATE EMPLOYEE_BOND_DEF SET CONFIRMED = ? ,CONF_DATE = ?,EMP_CODE__APRV=? WHERE TRAN_ID = ?";
String sqlConfirm = "UPDATE EMPLOYEE_BOND_DEF SET CONFIRMED = ? ,CONF_DATE = ?,EMP_CODE__APRV=? WHERE TRAN_ID = ?";
try
{
pstmt1 = conn.prepareStatement( sql );
pstmt1 = conn.prepareStatement( sqlConfirm );
pstmt1.setString(1, "Y");
pstmt1.setTimestamp(2, this.getCurrdateAppFormat());
pstmt1.setString(3, loginEmpCode);
......@@ -217,6 +373,9 @@ public class EmpBondDefConfirm extends ActionHandlerEJB implements EmpBondDefCon
}
return count;
}
*/
//Modified by RAHUL SHENOY on 21/08/2015 [Placing the update Confirm functionality inside the Action Handler method].End
private java.sql.Timestamp getCurrdateAppFormat()
{
GenericUtility genericUtility = GenericUtility.getInstance();
......
This diff is collapsed.
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.dis.DistCommon;
import java.rmi.RemoteException;
import org.w3c.dom.*;
//import javax.ejb.EJBObject;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Local;
public interface EmpBondDefinitionLocal extends ValidatorLocal {
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1, String objContext, String editFlag, String xtraParams) 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 objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String winName, 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;
}
package ibase.webitm.ejb.adm;
import ibase.webitm.ejb.dis.DistCommon;
import java.rmi.RemoteException;
import org.w3c.dom.*;
//import javax.ejb.EJBObject;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import javax.ejb.Remote; // added for ejb3
public interface EmpBondDefinitionRemote extends ValidatorLocal{
public String wfValData() throws RemoteException,ITMException;
public String wfValData(String xmlString, String xmlString1, String objContext, String editFlag, String xtraParams) 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 objContext, String currentColumn, String editFlag, String xtraParams) throws RemoteException,ITMException;
public String itemChanged(String xmlString, String xmlString1, String winName, 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;
}
SET DEFINE OFF
INSERT INTO OBJ_ITEMCHANGE (OBJ_NAME,FORM_NO,FIELD_NAME,MANDATORY)
VALUES
('it_reproc','1','fin_entity','Y');
COMMIT;
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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