Commit 47120418 authored by dpingle's avatar dpingle

* changes done for Employee Work Detail- obj_name: emp_work_info

EmpWorkInfo.java
EmpWorkInfoLocal.java
EmpWorkInfoPrs.java
emp_work_info21.xml
d_emp_work_info21.srd
w_emp_work_info.sql


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@205033 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 8d7f08c8
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import ibase.webitm.ejb.*;
import ibase.webitm.ejb.ValidatorLocal;
import ibase.webitm.utility.ITMException;
@javax.ejb.Local
......
......@@ -2,19 +2,24 @@
package ibase.webitm.ejb.adm;
import java.rmi.RemoteException;
import java.sql.*;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import org.w3c.dom.*;
import ibase.webitm.ejb.*;
import ibase.webitm.utility.ITMException;
import ibase.utility.E12GenericUtility;
import ibase.system.config.*;
import javax.naming.InitialContext;
import java.util.*;
import org.w3c.dom.Document;
import org.w3c.dom.Node;
import org.w3c.dom.NodeList;
@javax.ejb.Stateless
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException;
//Added by Dipesh on[23/07/2019][Start]
//@javax.ejb.Stateless
//Added by Dipesh on[23/07/2019][End]
public class EmpWorkInfoPrs extends ValidatorEJB
{
public String preSave()throws RemoteException,ITMException
......@@ -33,7 +38,6 @@ public class EmpWorkInfoPrs extends ValidatorEJB
String posCode = "";
java.util.Date dateJoindb = null;
String dateJoinOld = "";
String sql = "";
PreparedStatement pstmt = null;
ResultSet rs = null;
......@@ -44,23 +48,26 @@ public class EmpWorkInfoPrs extends ValidatorEJB
// Modified by Piyush on 08/12/2014 [To update user id in users table if changed CCF No. CQ14/CS1089 - A14GSUN004].Start
String userIdDom = "";
String userIdDB = "";
//Commented and added by Varsha V on 20-Jul-18 for removing lookup
//Added by Dipesh on[23/07/2019][Start]
//ITMDBAccessLocal itmdbAccessLocal = null ;
ITMDBAccessEJB itmDBAccess = null;
ITMDBAccessEJB itmDbAccess = null;
String errString = "";
//String errFldName = "";
//Added by Dipesh on[23/07/2019][End]
// Modified by Piyush on 08/12/2014 [To update user id in users table if changed CCF No. CQ14/CS1089 - A14GSUN004].End
try
{
// Modified by Piyush on 08/12/2014 [To update user id in users table if changed CCF No. CQ14/CS1089 - A14GSUN004].Start
//Commented and added by Varsha V on 20-Jul-18 for removing lookup
//AppConnectParm appConnect = new AppConnectParm();
//Properties p = appConnect.getProperty();
//InitialContext ctx = new InitialContext(p);
//itmdbAccessLocal = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local");
itmDBAccess = new ITMDBAccessEJB();
//Added by Dipesh on[23/07/2019][Start]
/*AppConnectParm appConnect = new AppConnectParm();
Properties p = appConnect.getProperty();
InitialContext ctx = new InitialContext(p);
itmdbAccessLocal = (ITMDBAccessLocal)ctx.lookup("ibase/ITMDBAccessEJB/local");*/
// Modified by Piyush on 08/12/2014 [To update user id in users table if changed CCF No. CQ14/CS1089 - A14GSUN004].End
itmDbAccess = new ITMDBAccessEJB();
//Added by Dipesh on[23/07/2019][End]
conn.setAutoCommit( false );
E12GenericUtility genericUtility = new E12GenericUtility();
......@@ -155,10 +162,11 @@ public class EmpWorkInfoPrs extends ValidatorEJB
}
if (usrUpdateCnt != usrCnt)
{
//Commented and added by Varsha V on 20-Jul-18 for calling connection method
//Added by Dipesh on[23/07/2019][Start]
//retString = itmdbAccessLocal.getErrorString("","VTEMPUID01","");
retString = itmDBAccess.getErrorString("", "VTMARPRFL", "", "", conn);
return retString;
errString = itmDbAccess.getErrorString("", "VTEMPUID01", userId, "", conn);
return errString;
//Added by Dipesh on[23/07/2019][End]
}
}
}
......@@ -239,7 +247,8 @@ public class EmpWorkInfoPrs extends ValidatorEJB
try
{
NodeList detailList = null;
Node currDetail = null,reqDetail = null;
Node currDetail = null;
//Node reqDetail = null;
int detailListLength = 0;
detailList = dom.getElementsByTagName("Detail1");
......
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