Commit c4daf3ac authored by akhokar's avatar akhokar

Changes done to fetch employee site code,grade,cadre to insert entry in...

Changes done to fetch employee site code,grade,cadre to insert entry in FullFinal_HDR based on parameter.
EmployeeSepConfirm.java


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@208165 ce508802-f39f-4f6c-b175-0d175dae99d5
parent b13927f9
......@@ -494,6 +494,9 @@ public class EmployeeSepConfirm extends ActionHandlerEJB implements EmployeeSepC
ResultSet rs = null;
int cntRows = 0,cntInsert = 0;
double totalAmt = 0.00,itAmt = 0.00,amount = 0.00;
//Modified by Azhar K. on[24-Sep-2019][Start]
String siteCode = "",grade = "",cadre = "";
//Modified by Azhar K. on[24-Sep-2019][End]
......@@ -650,9 +653,12 @@ public class EmployeeSepConfirm extends ActionHandlerEJB implements EmployeeSepC
pstmtTranId.close();
pstmtTranId = null;
}
sql = "select c.curr_code from employee e,site s,currency c,finent f where emp_code = ? and e.emp_site = s.site_code and f.fin_entity = s.fin_entity " +
//Modified by Azhar K. on[24-Sep-2019][Start]
/*sql = "select c.curr_code from employee e,site s,currency c,finent f where emp_code = ? and e.emp_site = s.site_code and f.fin_entity = s.fin_entity " +
" and f.curr_code = c.curr_code ";*/
sql = "select c.curr_code,e.pay_site,e.grade,e.cadre from employee e,site s,currency c,finent f where emp_code = ? and e.emp_site = s.site_code and f.fin_entity = s.fin_entity " +
" and f.curr_code = c.curr_code ";
//Modified by Azhar K. on[24-Sep-2019][End]
pstmt = conn.prepareStatement(sql);
pstmt.setString(1, asEmpCode);
rs = pstmt.executeQuery();
......@@ -661,6 +667,11 @@ public class EmployeeSepConfirm extends ActionHandlerEJB implements EmployeeSepC
{
currCode = checkNull(rs.getString("curr_code"));
System.out.println("currency Code==> " + currCode);
//Modified by Azhar K. on[24-Sep-2019][Start]
siteCode = checkNull(rs.getString("pay_site"));
grade = checkNull(rs.getString("grade"));
cadre = checkNull(rs.getString("cadre"));
//Modified by Azhar K. on[24-Sep-2019][End]
}
if(rs != null)
......@@ -674,8 +685,10 @@ public class EmployeeSepConfirm extends ActionHandlerEJB implements EmployeeSepC
pstmt.close();
pstmt = null;
}
varValue = checkNull(admCommon.getSiteEnv("99999", "ADM", "X", "ZZZZZ", "GEN_FFSHDR_ONSEPCONF", ldToday, conn));
//Modified by Azhar K. on[24-Sep-2019][Start]
//varValue = checkNull(admCommon.getSiteEnv("99999", "ADM", "X", "ZZZZZ", "GEN_FFSHDR_ONSEPCONF", ldToday, conn));
varValue = checkNull(admCommon.getAdmEnv(siteCode, cadre, grade, "GEN_FFSHDR_ONSEPCONF", ldToday, conn));
//Modified by Azhar K. on[24-Sep-2019][End]
System.out.println("varValue::==>[" + varValue + "]");
if(varValue == null || varValue.trim().length() == 0 || "NULLFOUND".equalsIgnoreCase(varValue))
......
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