Commit 6171cebf authored by akhokar's avatar akhokar

Changes done On confirmation of employee separation system should update

 chg_date,chg_user,chg_term in employee master.
EmployeeSepConfirm.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@200156 ce508802-f39f-4f6c-b175-0d175dae99d5
parent ed4f2d0c
......@@ -6,7 +6,9 @@ import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import javax.ejb.Stateless;
import ibase.utility.CommonConstants;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ActionHandlerEJB;
......@@ -532,11 +534,21 @@ public class EmployeeSepConfirm extends ActionHandlerEJB implements EmployeeSepC
if(ldResigned == null)
{
sql = "update employee set resi_date = ? ,relieve_date = ? where emp_code = ? ";
// Modified by Azhar K. on [26-APR-2019][Added chg_date,chg_user,chg_term in employee update][A18LSUN003][Start]
//sql = "update employee set resi_date = ? ,relieve_date = ? where emp_code = ? ";
sql = "update employee set resi_date = ? ,relieve_date = ?, chg_date = ?, chg_user = ?, chg_term = ? where emp_code = ? ";
// Modified by Azhar K. on [26-APR-2019][Added chg_date,chg_user,chg_term in employee update][A18LSUN003][End]
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, adResiDate);
pstmt.setTimestamp(2, adReliDate);
pstmt.setString(3, asEmpCode);
// Modified by Azhar K. on [26-APR-2019][Added chg_date,chg_user,chg_term in employee update][A18LSUN003][Start]
pstmt.setTimestamp(3, new java.sql.Timestamp(System.currentTimeMillis()));
pstmt.setString(4, userId);
pstmt.setString(5, chgTerm);
// Modified by Azhar K. on [26-APR-2019][Added chg_date,chg_user,chg_term in employee update][A18LSUN003][End]
pstmt.setString(6, asEmpCode);
cntRows = pstmt.executeUpdate();
if(cntRows == 0)
{
......@@ -552,11 +564,21 @@ public class EmployeeSepConfirm extends ActionHandlerEJB implements EmployeeSepC
}
else if(ldResigned.equals(adResiDate))
{
sql = "update employee set resi_date = ? , relieve_date = ? where emp_code = ? ";
// Modified by Azhar K. on [26-APR-2019][Added chg_date,chg_user,chg_term in employee update][A18LSUN003][Start]
//sql = "update employee set resi_date = ? ,relieve_date = ? where emp_code = ? ";
sql = "update employee set resi_date = ? ,relieve_date = ?, chg_date = ?, chg_user = ?, chg_term = ? where emp_code = ? ";
// Modified by Azhar K. on [26-APR-2019][Added chg_date,chg_user,chg_term in employee update][A18LSUN003][End]
pstmt = conn.prepareStatement(sql);
pstmt.setTimestamp(1, adResiDate);
pstmt.setTimestamp(2, adReliDate);
pstmt.setString(3, asEmpCode);
// Modified by Azhar K. on [26-APR-2019][Added chg_date,chg_user,chg_term in employee update][A18LSUN003][Start]
pstmt.setTimestamp(3, new java.sql.Timestamp(System.currentTimeMillis()));
pstmt.setString(4, userId);
pstmt.setString(5, chgTerm);
// Modified by Azhar K. on [26-APR-2019][Added chg_date,chg_user,chg_term in employee update][A18LSUN003][End]
pstmt.setString(6, asEmpCode);
cntRows = pstmt.executeUpdate();
if(cntRows == 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