Commit 650c7982 authored by pbhosale's avatar pbhosale

Updated on [23/10/2019]

w_emp_ad.sql
w_emp_complete.sql
w_emp_other_detail.sql
w_emp_temp.sql
w_finent_acctprd.sql
EmpAdPrs.java
EmployeeAdIC.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@210445 ce508802-f39f-4f6c-b175-0d175dae99d5
parent c51d5dc4
...@@ -105,5 +105,27 @@ update ITM2MENU set OBJ_TYPE = 'T',ICON_PATH = 'EmployeewisePaystructure.png', C ...@@ -105,5 +105,27 @@ update ITM2MENU set OBJ_TYPE = 'T',ICON_PATH = 'EmployeewisePaystructure.png', C
----------------------------------------------------[17/10/19][END] ----------------------------------------------------[17/10/19][END]
----------------------------------------------------[21/10/19][START]
update TRANSETUP set PERIOD_OPTION = 'M',THUMB_ALT_COL = 'emp_fname', THUMB_IMAGE_COL= 'emp_code', THUMB_OBJ = 'EmpImages' where TRAN_WINDOW = 'w_emp_ad';
update TRANSETUP set REF_SER = 'E-AD' where TRAN_WINDOW = 'w_emp_ad';
update OBJ_FORMS set THUMB_ALT_COL = 'emp_fname', THUMB_IMAGE_COL= 'emp_code', THUMB_OBJ = 'EmpImages' where WIN_NAME = 'w_emp_ad';
UPDATE obj_forms
SET disp_metadata = '<html>
<span style="white-space: normal !important; word-break: break-word; "> <b>{emp_fname} {emp_lname} </b> (<b>{emp_code}</b>) <br/>
Amount : <b>{amount}</b> Type : <b>{type}</b> Effective From : <b>{eff_date}</b> To : <b>{exp_date}</b>
</span>
</html>' WHERE win_name ='w_emp_ad';
update POPHELP set AUTO_FILL_LEN = '3', AUTO_MIN_LENGTH = 2 , HELP_OPTION = 2 where MOD_NAME = 'W_EMP_AD';
update POPHELP set THUMB_ALT_COL = 'name',THUMB_IMAGE_COL= 'code',THUMB_OBJ = 'EmpImages' where MOD_NAME = 'W_EMP_AD' and FIELD_NAME= 'EMP_CODE';
update POPHELP set THUMB_ALT_COL = 'descr', THUMB_IMAGE_COL= 'ad_code',THUMB_OBJ = 'AdCodeImages' where MOD_NAME = 'W_EMP_AD' and FIELD_NAME= 'AD_CODE';
----------------------------------------------------[21/10/19][END]
...@@ -66,3 +66,15 @@ Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGH ...@@ -66,3 +66,15 @@ Insert into POPHELP (FIELD_NAME,MOD_NAME,SQL_STR,DW_OBJECT,MSG_TITLE,WIDTH,HEIGH
update ITM2MENU set ICON_PATH = 'FinancialEntitywiseAccountingPeriod.png', CLOSE_ICON ='FinancialEntitywiseAccountingPeriodwht.png' where WIN_NAME= 'w_finent_acctprd'; update ITM2MENU set ICON_PATH = 'FinancialEntitywiseAccountingPeriod.png', CLOSE_ICON ='FinancialEntitywiseAccountingPeriodwht.png' where WIN_NAME= 'w_finent_acctprd';
----------------------------------------------------[17/10/19][END] ----------------------------------------------------[17/10/19][END]
----------------------------------------------------[21/10/19][START]
update POPHELP set AUTO_FILL_LEN = '3', AUTO_MIN_LENGTH = 2 , HELP_OPTION = 2 where MOD_NAME = 'W_FINENT_ACCTPRD';
update POPHELP set THUMB_ALT_COL = 'descr',THUMB_IMAGE_COL= 'fin_entity',THUMB_OBJ = 'FinentImages' where MOD_NAME = 'W_FINENT_ACCTPRD' and FIELD_NAME= 'FIN_ENTITY';
update POPHELP set THUMB_ALT_COL = 'descr', THUMB_IMAGE_COL= 'code',THUMB_OBJ = 'AcctPrdImages' where MOD_NAME = 'W_FINENT_ACCTPRD' and FIELD_NAME= 'ACCT_PRD';
----------------------------------------------------[21/10/19][END]
...@@ -4,40 +4,37 @@ ...@@ -4,40 +4,37 @@
package ibase.webitm.ejb.adm; package ibase.webitm.ejb.adm;
import java.rmi.RemoteException; import java.rmi.RemoteException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.sql.Statement;
import org.w3c.dom.Document; import java.sql.*;
import org.w3c.dom.Node; //import javax.ejb.*;
import org.w3c.dom.NodeList; import org.w3c.dom.*;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.ITMDBAccessEJB;
import ibase.webitm.ejb.ValidatorEJB;
import ibase.webitm.utility.ITMException; import ibase.webitm.utility.ITMException;
import ibase.utility.E12GenericUtility;
import ibase.webitm.ejb.*;
import javax.ejb.Stateless; // added for ejb3
@Stateless // added for ejb3
//Modified by Poonam Bhosale on [27/06/2019][Start]
//@Stateless // added for ejb3
//Modified by Poonam Bhosale on [27/06/2019][End]
public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemote // SessionBean public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemote // SessionBean
{ {
E12GenericUtility genericUtility = new E12GenericUtility();//Modified by Poonam B.
/* /*
public void ejbCreate() throws RemoteException, CreateException public void ejbCreate() throws RemoteException, CreateException
{ {
} }
public void ejbRemove() public void ejbRemove()
{ {
} }
public void ejbActivate() public void ejbActivate()
{ {
} }
public void ejbPassivate() public void ejbPassivate()
{ {
}*/ }*/
public String preSaveRec() throws RemoteException,ITMException public String preSaveRec() throws RemoteException,ITMException
{ {
return ""; return "";
...@@ -52,10 +49,11 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo ...@@ -52,10 +49,11 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo
{ {
if (xmlString1 != null && xmlString1.trim().length() > 0) if (xmlString1 != null && xmlString1.trim().length() > 0)
{ {
//Modified by Poonam Bhosale on [27/06/2019][Start] //Modified by Poonam B on [21/10/2019][START]
//dom = GenericUtility.getInstance().parseString(xmlString1); //dom = GenericUtility.getInstance().parseString(xmlString1);
dom = parseString(xmlString1); dom = genericUtility.parseString(xmlString1);
//Modified by Poonam Bhosale on [27/06/2019][End] System.out.println("headerDom ["+dom+"]");
//Modified by Poonam B on [21/10/2019][END]
retString = executepreSaveRec(dom,domId,objContext,editFlag,xtraParams,conn); retString = executepreSaveRec(dom,domId,objContext,editFlag,xtraParams,conn);
} }
} }
...@@ -73,36 +71,18 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo ...@@ -73,36 +71,18 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo
Statement stmt = null; Statement stmt = null;
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
ResultSet rs = null; ResultSet rs = null;
String empCode = ""; String empCode = "", adCode = "", effDate = "", expDate = "", periodFrom = "", periodTo = "";
String adCode = ""; String sqlStr = "", amt = "", keyString = "", errorCode = "";
String effDate = ""; String updateStatus = "", userId = "", retString = "";
String expDate = ""; double originalAmt = 0d, amount = 0d;
String periodFrom = "";
String periodTo = "";
String sqlStr = "";
String amt = "";
String keyString = "";
String errorCode = "";
String updateStatus = "";
String userId = "";
String retString = "";
double originalAmt = 0d;
double amount = 0d;
boolean empStatus = false; boolean empStatus = false;
int count = 0; int count = 0;
java.sql.Timestamp effectiveDate = null, expiryDate = null; java.sql.Timestamp effectiveDate = null, expiryDate = null;
Node currDetail = null; Node currDetail = null;
//Modified by Poonam Bhosale on [27/06/2019][Start]
ITMDBAccessEJB itmdbAccessEJB= new ITMDBAccessEJB();
//Modified by Poonam Bhosale on [27/06/2019][End]
try try
{ {
conn.setAutoCommit(false); //conn.setAutoCommit(false);
//Modified by Poonam Bhosale on [27/06/2019][Start]
//GenericUtility genericUtility = GenericUtility.getInstance(); //GenericUtility genericUtility = GenericUtility.getInstance();
E12GenericUtility genericUtility= new E12GenericUtility();
//Modified by Poonam Bhosale on [27/06/2019][End]
userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userId"); userId = genericUtility.getValueFromXTRA_PARAMS(xtraParams,"userId");
AdmCommon admCommon = new AdmCommon(); AdmCommon admCommon = new AdmCommon();
System.out.println("dom.............:: "+ dom); System.out.println("dom.............:: "+ dom);
...@@ -112,15 +92,15 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo ...@@ -112,15 +92,15 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo
System.out.println("updateStatus......:: "+ updateStatus); System.out.println("updateStatus......:: "+ updateStatus);
if (currDetail != null) if (currDetail != null)
{ {
/*Modified by Anjali Rawankar on [10/04/2017][Start] /*Modified by Anjali Rawankar on [10/04/2017][Start]
*[Purpose : while upload excel file update status 'N' for add and 'O' for edit is coming in new framework.Changes done against issue reported by Jimil from fortune and as discussed with Gulzar. *[Purpose : while upload excel file update status 'N' for add and 'O' for edit is coming in new framework.Changes done against issue reported by Jimil from fortune and as discussed with Gulzar.
*/ */
//if(updateStatus.equalsIgnoreCase("A") || updateStatus.equalsIgnoreCase("E")) //if(updateStatus.equalsIgnoreCase("A") || updateStatus.equalsIgnoreCase("E"))
if(updateStatus.equalsIgnoreCase("A") || updateStatus.equalsIgnoreCase("E") || updateStatus.equalsIgnoreCase("N") || updateStatus.equalsIgnoreCase("O")) if(updateStatus.equalsIgnoreCase("A") || updateStatus.equalsIgnoreCase("E") || updateStatus.equalsIgnoreCase("N") || updateStatus.equalsIgnoreCase("O"))
/*[Purpose : while upload excel file update status 'N' for add and 'O' for edit is coming in new framework.Changes done against issue reported by Jimil from fortune and as discussed with Gulzar. /*[Purpose : while upload excel file update status 'N' for add and 'O' for edit is coming in new framework.Changes done against issue reported by Jimil from fortune and as discussed with Gulzar.
* Modified by Anjali Rawankar on [10/04/2017][End] * Modified by Anjali Rawankar on [10/04/2017][End]
*/ */
{ {
empStatus = true; // Added by Piyush on 30/06/2015[To make implication same as ITM] empStatus = true; // Added by Piyush on 30/06/2015[To make implication same as ITM]
/*Modified by Anjali Rawankar on [10/04/2017][Start] /*Modified by Anjali Rawankar on [10/04/2017][Start]
...@@ -128,9 +108,9 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo ...@@ -128,9 +108,9 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo
*/ */
//if(updateStatus.equals("A")) //if(updateStatus.equals("A"))
if(updateStatus.equals("A") || updateStatus.equals("N")) if(updateStatus.equals("A") || updateStatus.equals("N"))
/*[Purpose : while upload excel file update status 'N' for add and 'O' for edit is coming in new framework.Changes done against issue reported by Jimil from fortune and as discussed with Gulzar. /*[Purpose : while upload excel file update status 'N' for add and 'O' for edit is coming in new framework.Changes done against issue reported by Jimil from fortune and as discussed with Gulzar.
* Modified by Anjali Rawankar on [10/04/2017][End] * Modified by Anjali Rawankar on [10/04/2017][End]
*/ */
{ {
empCode = genericUtility.getColumnValueFromNode("emp_code",currDetail); empCode = genericUtility.getColumnValueFromNode("emp_code",currDetail);
adCode = genericUtility.getColumnValueFromNode("ad_code",currDetail); adCode = genericUtility.getColumnValueFromNode("ad_code",currDetail);
...@@ -199,10 +179,7 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo ...@@ -199,10 +179,7 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo
if (errorCode.trim().length() > 0) if (errorCode.trim().length() > 0)
{ {
conn.rollback(); conn.rollback();
// retString = getErrorString("",errorCode,userId);
//retString = getErrorString("",errorCode,userId);
retString = itmdbAccessEJB.getErrorString("", errorCode, userId, "", conn);
//
System.out.println("Ret String: " + retString); System.out.println("Ret String: " + retString);
} }
else if (errorCode.trim().length() == 0) else if (errorCode.trim().length() == 0)
...@@ -227,10 +204,7 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo ...@@ -227,10 +204,7 @@ public class EmpAdPrs extends ValidatorEJB implements EmpAdPrsLocal,EmpAdPrsRemo
if (count != 0) if (count != 0)
{ {
errorCode = "VTPAYFND"; errorCode = "VTPAYFND";
///Modified by Poonam Bhosale on [27/06/2019][Start] retString = getErrorString("",errorCode,userId);
//retString = getErrorString("",errorCode,userId);
retString = itmdbAccessEJB.getErrorString("", errorCode, userId, "", conn);
///Modified by Poonam Bhosale on [27/06/2019][End]
System.out.println("Ret String: " + retString); System.out.println("Ret String: " + retString);
} }
} }
......
...@@ -721,7 +721,7 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -721,7 +721,7 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
try try
{ {
System.out.println("************** Inside itemChanged method ****************"); System.out.println("************** Inside itemChanged method ****************");
System.out.println("xmlString: "+xmlString+" \nxmlString1: "+xmlString1+" \nxmlString2: "+xmlString2+" \nxtraParams: "+xtraParams); System.out.println("xmlString: "+xmlString+" \nxmlString1: "+xmlString1+" \n xmlString2: "+xmlString2+" \nxtraParams: "+xtraParams);
if(xmlString != null && xmlString.trim().length() > 0) if(xmlString != null && xmlString.trim().length() > 0)
{ {
dom = genericUtility.parseString(xmlString); dom = genericUtility.parseString(xmlString);
...@@ -1027,8 +1027,9 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -1027,8 +1027,9 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
effDateStr = todayDate; effDateStr = todayDate;
effDate=todayTm; effDate=todayTm;
System.out.println("effDateStr:::::"+ effDateStr + " effDate:::::" + effDate); System.out.println("effDateStr:::::"+ effDateStr + " effDate:::::" + effDate);
// Modified By Poonam B on [21/10/2019][START][to append emp_name while adding new record]
sql = "select pay_site,date_join from employee where emp_code = ?";
/*sql = "select pay_site,date_join from employee where emp_code = ?";
pstmt= conn.prepareStatement(sql); pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode); pstmt.setString(1,empCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
...@@ -1037,8 +1038,20 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -1037,8 +1038,20 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
paySite= checkNull(rs.getString("pay_site")); paySite= checkNull(rs.getString("pay_site"));
joinDate= rs.getTimestamp("date_join"); joinDate= rs.getTimestamp("date_join");
}*/
sql = "select pay_site,date_join, FN_GET_EMP_NAME(?,'FL1') as emp_name from employee where emp_code= ?";
pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode);
pstmt.setString(2,empCode);
rs = pstmt.executeQuery();
if(rs.next())
{
joinDate = rs.getTimestamp("date_join");
empName = rs.getString("emp_name");
System.out.println("joinDate:::::"+ joinDate + " empName::::: "+empName);
} }
// Modified By Poonam B on [21/10/2019][END][to append emp_name while adding new record]
if(rs != null) if(rs != null)
{ {
rs.close(); rs.close();
...@@ -1091,6 +1104,10 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -1091,6 +1104,10 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
} }
} }
// Modified By Poonam B on [21/10/2019][START][to append emp_name while adding new record]
valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>");
// Modified By Poonam B on [21/10/2019][END][to append emp_name while adding new record]
valueXmlString.append("<pay_site>").append("<![CDATA["+paySite+"]]>").append("</pay_site>"); valueXmlString.append("<pay_site>").append("<![CDATA["+paySite+"]]>").append("</pay_site>");
} }
} }
......
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