Attendance report starus edition
This commit is contained in:
parent
63253ff06d
commit
2a30841b13
|
@ -312,18 +312,10 @@ namespace HRM.BO
|
||||||
type = "A";
|
type = "A";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EnumAttendanceType.Delay:
|
|
||||||
type = "L";
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EnumAttendanceType.Holiday:
|
case EnumAttendanceType.Holiday:
|
||||||
type = "H";
|
type = "H";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case EnumAttendanceType.Late:
|
|
||||||
type = "L";
|
|
||||||
break;
|
|
||||||
|
|
||||||
case EnumAttendanceType.Leave:
|
case EnumAttendanceType.Leave:
|
||||||
type = "Lv";
|
type = "Lv";
|
||||||
break;
|
break;
|
||||||
|
@ -332,6 +324,17 @@ namespace HRM.BO
|
||||||
type = "P";
|
type = "P";
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case EnumAttendanceType.HalfDay:
|
||||||
|
type = "HD";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EnumAttendanceType.Delay:
|
||||||
|
type = "L";
|
||||||
|
break;
|
||||||
|
|
||||||
|
case EnumAttendanceType.Late:
|
||||||
|
type = "L";
|
||||||
|
break;
|
||||||
|
|
||||||
case EnumAttendanceType.OutSideDuty:
|
case EnumAttendanceType.OutSideDuty:
|
||||||
type = "OD";
|
type = "OD";
|
||||||
|
|
|
@ -2425,13 +2425,24 @@ namespace HRM.BO
|
||||||
//Delay = 3,
|
//Delay = 3,
|
||||||
//Leave = 4,
|
//Leave = 4,
|
||||||
//Holiday = 5,
|
//Holiday = 5,
|
||||||
WeeklyOff = 6,
|
//WeeklyOff = 6,
|
||||||
//TourDuty = 7,
|
//TourDuty = 7,
|
||||||
//OfficialDuty = 8,
|
//OfficialDuty = 8,
|
||||||
Compensation = 9,
|
//Compensation = 9,
|
||||||
ManualEntry = 10,
|
//ManualEntry = 10,
|
||||||
//Late = 11
|
//Late = 11
|
||||||
None = 0,
|
None = 0,
|
||||||
|
//Present = 1,
|
||||||
|
//Absent = 2,
|
||||||
|
//Delay = 3,
|
||||||
|
//Late = 11,
|
||||||
|
//Early = 12,
|
||||||
|
//Leave = 4,
|
||||||
|
//Holiday = 5,
|
||||||
|
//OutSideDuty = 7,
|
||||||
|
//WeeklyHoliday = 8,
|
||||||
|
//HalfDay = 18,
|
||||||
|
//LOA = 22
|
||||||
Present = 1,
|
Present = 1,
|
||||||
Absent = 2,
|
Absent = 2,
|
||||||
Delay = 3,
|
Delay = 3,
|
||||||
|
@ -2439,10 +2450,9 @@ namespace HRM.BO
|
||||||
Early = 12,
|
Early = 12,
|
||||||
Leave = 4,
|
Leave = 4,
|
||||||
Holiday = 5,
|
Holiday = 5,
|
||||||
|
HalfDay = 6,
|
||||||
OutSideDuty = 7,
|
OutSideDuty = 7,
|
||||||
WeeklyHoliday = 8,
|
WeeklyHoliday = 8
|
||||||
HalfDay = 18,
|
|
||||||
LOA = 22
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2628,6 +2628,7 @@ namespace HRM.Report
|
||||||
DataSet oDailyInOut = null;
|
DataSet oDailyInOut = null;
|
||||||
DataSet oPreviousDayInOut = null;
|
DataSet oPreviousDayInOut = null;
|
||||||
DataRow oDR = null;
|
DataRow oDR = null;
|
||||||
|
List<Shift> oShifts = new ShiftService().Get(EnumStatus.Active, payrollTypeID);
|
||||||
oDailyInOut = new EchoTexExceptionReportService().GetDailyInOut(attnDate, sEmpID);
|
oDailyInOut = new EchoTexExceptionReportService().GetDailyInOut(attnDate, sEmpID);
|
||||||
oPreviousDayInOut = new EchoTexExceptionReportService().GetDailyInOut(PreviousAttnDate, sEmpID);
|
oPreviousDayInOut = new EchoTexExceptionReportService().GetDailyInOut(PreviousAttnDate, sEmpID);
|
||||||
position = 1;
|
position = 1;
|
||||||
|
@ -2666,6 +2667,35 @@ namespace HRM.Report
|
||||||
oDR["Shift"] = Dr["Shift"].ToString();
|
oDR["Shift"] = Dr["Shift"].ToString();
|
||||||
oDR["CardNo"] = Dr["CardNo"].ToString();
|
oDR["CardNo"] = Dr["CardNo"].ToString();
|
||||||
|
|
||||||
|
Shift oSft = oShifts.Find(x => x.ShortName == Dr["Shift"].ToString());
|
||||||
|
DateTime? dtIn = null;
|
||||||
|
DateTime? dtOut = null;
|
||||||
|
|
||||||
|
if (Dr["InTime"] is DBNull)
|
||||||
|
{
|
||||||
|
dtIn = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dtIn = Convert.ToDateTime(Dr["InTime"].ToString());
|
||||||
|
}
|
||||||
|
if (Dr["OutTime"] is DBNull)
|
||||||
|
{
|
||||||
|
dtOut = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
dtOut = Convert.ToDateTime(Dr["OutTime"].ToString());
|
||||||
|
}
|
||||||
|
|
||||||
|
if (oSft != null && dtIn != null && dtOut != null)
|
||||||
|
{
|
||||||
|
if (Convert.ToDateTime(dtIn).TimeOfDay > oSft.InTime.TimeOfDay &&
|
||||||
|
Convert.ToDateTime(dtOut).TimeOfDay < oSft.OutTime.TimeOfDay)
|
||||||
|
{
|
||||||
|
oDR["Status"] = "LE";
|
||||||
|
}
|
||||||
|
}
|
||||||
dTable.Rows.Add(oDR);
|
dTable.Rows.Add(oDR);
|
||||||
}
|
}
|
||||||
position = 6;
|
position = 6;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user