Commit dd2ad61b authored by jshaikh's avatar jshaikh

Some minor changes related to Empwise pay structure

git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@202011 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 4d9947ca
...@@ -591,7 +591,6 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -591,7 +591,6 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
if("NULLFOUND".equalsIgnoreCase(mval) || ("N".equalsIgnoreCase(mval))) if("NULLFOUND".equalsIgnoreCase(mval) || ("N".equalsIgnoreCase(mval)))
{ {
confirmed = checkNull(genericUtility.getColumnValue("confirmed", dom)); confirmed = checkNull(genericUtility.getColumnValue("confirmed", dom));
}
if(confirmed == null || !("Y".equalsIgnoreCase(confirmed))) if(confirmed == null || !("Y".equalsIgnoreCase(confirmed)))
{ {
...@@ -606,6 +605,8 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -606,6 +605,8 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
} }
} }
}
//--------------Validation for Confirmed Ends here-------------------------- //--------------Validation for Confirmed Ends here--------------------------
//--------------Validation for Amount Starts here-------------------------- //--------------Validation for Amount Starts here--------------------------
...@@ -769,6 +770,7 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -769,6 +770,7 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
String refType="",refNo="", login_emp_code=""; String refType="",refNo="", login_emp_code="";
String confirmed=""; String confirmed="";
Timestamp joinDate = null, effDate = null; Timestamp joinDate = null, effDate = null;
String empName = "";
String adCode = "", descr ="" ,ls_empad_aprv= "",prop_yn=""; String adCode = "", descr ="" ,ls_empad_aprv= "",prop_yn="";
String sql = ""; String sql = "";
int currentFormNo=0,ctr=0; int currentFormNo=0,ctr=0;
...@@ -837,14 +839,18 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -837,14 +839,18 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
System.out.println("effDateStr :::::"+ effDateStr +" effDate :::::"+ effDate); System.out.println("effDateStr :::::"+ effDateStr +" effDate :::::"+ effDate);
cnt = 0; cnt = 0;
sql = "select date_join from employee where emp_code= ?"; //----Modified by Jaffar S on 13th June 19
//sql = "select date_join from employee where emp_code= ?";
sql = "select date_join, FN_GET_EMP_NAME(?,'FL1') as emp_name from employee where emp_code= ?";
pstmt= conn.prepareStatement(sql); pstmt= conn.prepareStatement(sql);
pstmt.setString(1,empCode); pstmt.setString(1,empCode);
pstmt.setString(2,empCode);
rs = pstmt.executeQuery(); rs = pstmt.executeQuery();
if(rs.next()) if(rs.next())
{ {
joinDate = rs.getTimestamp("date_join"); joinDate = rs.getTimestamp("date_join");
System.out.println("joinDate:::::"+ joinDate); empName = rs.getString("emp_name");
System.out.println("joinDate:::::"+ joinDate + " empName::::: "+empName);
} }
if(rs != null) if(rs != null)
{ {
...@@ -857,6 +863,9 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl ...@@ -857,6 +863,9 @@ public class EmployeeAdIC extends ValidatorEJB implements EmployeeAdICLocal,Empl
pstmt = null; pstmt = null;
} }
//Added by Jaffar for getting employee name
valueXmlString.append("<emp_name>").append("<![CDATA["+empName+"]]>").append("</emp_name>");
if(joinDate != null) if(joinDate != null)
{ {
sql = "select count(*) as count from employee_ad where emp_code = ? and eff_date > ?"; sql = "select count(*) as count from employee_ad where emp_code = ? and eff_date > ?";
......
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