Unverified Commit 433a0ed7 authored by mmudrakola-nisum-com's avatar mmudrakola-nisum-com Committed by GitHub

Update MyTimeUtils.java

parent 27627f50
...@@ -78,7 +78,7 @@ public class MyTimeUtils { ...@@ -78,7 +78,7 @@ public class MyTimeUtils {
public final static String ABESENT_STATUS_QUERY = "select emp.EmployeeCode,emp.FirstName," public final static String ABESENT_STATUS_QUERY = "select emp.EmployeeCode,emp.FirstName,"
+ "MIN(tr.aDateTime) AS FirstLogin,MAX(tr.aDateTime) AS LastLogin\n" + + "MIN(tr.aDateTime) AS FirstLogin,MAX(tr.aDateTime) AS LastLogin\n" +
"from Transactions as tr,EmployeeMaster as emp\n" + "from Transactions as tr,EmployeeMaster as emp\n" +
"where tr.EmployeemasterID=emp.EmployeeMasterID and \n" + "where tr.EmployeemasterID=emp.EmployeeMasterID and EmployeeControllerStatus=1 and \n" +
"replace(convert(varchar,tr.aDateTime, 111), '/', '-')>= "; "replace(convert(varchar,tr.aDateTime, 111), '/', '-')>= ";
public final static String ABESENT_STATUS_QUERY1 =" and \n" + public final static String ABESENT_STATUS_QUERY1 =" and \n" +
"replace(convert(varchar,tr.aDateTime, 111), '/', '-')<= "; "replace(convert(varchar,tr.aDateTime, 111), '/', '-')<= ";
...@@ -86,7 +86,7 @@ public class MyTimeUtils { ...@@ -86,7 +86,7 @@ public class MyTimeUtils {
public final static String ABESENT_STATUS_QUERY3 =" group by convert(varchar,tr.aDateTime, 111),emp.EmployeeCode,emp.FirstName"; public final static String ABESENT_STATUS_QUERY3 =" group by convert(varchar,tr.aDateTime, 111),emp.EmployeeCode,emp.FirstName";
public final static String ATTENDANCE_PRESENT_REPORT_QUERY ="select distinct emp.EmployeeCode,emp.FirstName,'P' as AttStatus\n" + public final static String ATTENDANCE_PRESENT_REPORT_QUERY ="select distinct emp.EmployeeCode,emp.FirstName,'P' as AttStatus\n" +
" FROM Transactions as tr,EmployeeMaster as emp where tr.EmployeemasterID=emp.EmployeeMasterID and \n" + " FROM Transactions as tr,EmployeeMaster as emp where tr.EmployeemasterID=emp.EmployeeMasterID and EmployeeControllerStatus=1 and \n" +
" replace(convert(varchar,tr.aDateTime, 111), '/', '-')= "; " replace(convert(varchar,tr.aDateTime, 111), '/', '-')= ";
public final static String UNION=" Union "; public final static String UNION=" Union ";
public final static String ATTENDANCE_ABSENT_REPORT_QUERY= "select distinct M.EmployeeCode,M.FirstName,'A' as AttStatus from [smartiSCC].[dbo].[EmployeeMaster] M \n" + public final static String ATTENDANCE_ABSENT_REPORT_QUERY= "select distinct M.EmployeeCode,M.FirstName,'A' as AttStatus from [smartiSCC].[dbo].[EmployeeMaster] M \n" +
......
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