Commit b92cbeed authored by sanashaikh's avatar sanashaikh

Sana S: Modified on 05/03/20


git-svn-id: http://15.206.35.175/svn/proteus/business-java/trunk@217553 ce508802-f39f-4f6c-b175-0d175dae99d5
parent 2b08705d
...@@ -76,7 +76,7 @@ public class EmployeeWisePerkIC extends ValidatorEJB implements EmployeeWisePerk ...@@ -76,7 +76,7 @@ public class EmployeeWisePerkIC extends ValidatorEJB implements EmployeeWisePerk
String errString = "",errCode= ""; String errString = "",errCode= "";
String userId = ""; String userId = "";
String mval1= "",mval= ""; String mval1= "",mval= "";
String sql = "",ls_accfilt=""; String sql = "",lsAccfilt="";
String effDateStr = ""; String effDateStr = "";
String expDateStr = ""; String expDateStr = "";
int currentFormNo = 0; int currentFormNo = 0;
...@@ -100,8 +100,8 @@ public class EmployeeWisePerkIC extends ValidatorEJB implements EmployeeWisePerk ...@@ -100,8 +100,8 @@ public class EmployeeWisePerkIC extends ValidatorEJB implements EmployeeWisePerk
genericUtility = new E12GenericUtility(); genericUtility = new E12GenericUtility();
itmDbAcess = new ITMDBAccessEJB(); itmDbAcess = new ITMDBAccessEJB();
//modified by Sana S on 12/11/19 [start] //modified by Sana S on 12/11/19 [start]
//SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat()); SimpleDateFormat sdf = new SimpleDateFormat(genericUtility.getApplDateFormat());
SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy"); //SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yy");
//modified by Sana S on 12/11/19 [end] //modified by Sana S on 12/11/19 [end]
conn = getConnection(); conn = getConnection();
...@@ -299,7 +299,7 @@ public class EmployeeWisePerkIC extends ValidatorEJB implements EmployeeWisePerk ...@@ -299,7 +299,7 @@ public class EmployeeWisePerkIC extends ValidatorEJB implements EmployeeWisePerk
{ {
//Modified by Sana S on 14/01/2020 [start] //Modified by Sana S on 14/01/2020 [start]
//ls_accfilt = rs.getString("ls_accfilt"); //ls_accfilt = rs.getString("ls_accfilt");
ls_accfilt = checkNull(rs.getString("ls_accfilt")); lsAccfilt = checkNull(rs.getString("ls_accfilt"));
//Modified by Sana S on 14/01/2020 [end] //Modified by Sana S on 14/01/2020 [end]
} }
if (rs != null) if (rs != null)
...@@ -312,14 +312,14 @@ public class EmployeeWisePerkIC extends ValidatorEJB implements EmployeeWisePerk ...@@ -312,14 +312,14 @@ public class EmployeeWisePerkIC extends ValidatorEJB implements EmployeeWisePerk
pstmt.close(); pstmt.close();
pstmt = null; pstmt = null;
} }
System.out.print("ls_accfilt:"+ls_accfilt); System.out.print("ls_accfilt:"+lsAccfilt);
//Modified by Sana S on 14/01/2020 [start] //Modified by Sana S on 14/01/2020 [start]
if(!ls_accfilt.equals("") && ls_accfilt.trim().length() > 0) if(!lsAccfilt.equals("") && lsAccfilt.trim().length() > 0)
//if(ls_accfilt != null && ls_accfilt.trim().length() > 0) //if(ls_accfilt != null && ls_accfilt.trim().length() > 0)
//Modified by Sana S on 14/01/2020 [end] //Modified by Sana S on 14/01/2020 [end]
{ {
System.out.print("U R IN"); System.out.print("U R IN");
sql="select count(1) as cnt from allwdedn where ad_code = ? and " + ls_accfilt; sql="select count(1) as cnt from allwdedn where ad_code = ? and " + lsAccfilt;
pstmt = conn.prepareStatement(sql); pstmt = conn.prepareStatement(sql);
pstmt.setString(1, mval); pstmt.setString(1, mval);
......
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