using System; using System.Collections.Generic; namespace HRM.BO { /// /// One row per active team member, from result set 1 of /// usp_EmployeeAttendanceLeaveSummaryLM. Feeds the "Team Summary" grid on /// the Team Attendance screen. /// public class TeamAttendanceLeaveSummary { public int EmployeeID { get; set; } public string CIF { get; set; } public string EmployeeName { get; set; } public string DesignationName { get; set; } public string DepartmentName { get; set; } public string GradeName { get; set; } #region Attendance public int PresentDays { get; set; } public int Absent { get; set; } public int LateDays { get; set; } public int DelayDays { get; set; } public decimal TotalLateHours { get; set; } public int EarlyDays { get; set; } public decimal TotalEarlyHours { get; set; } public int LeaveDaysInAttendance { get; set; } public int HolidayDays { get; set; } public int WeeklyOffDays { get; set; } public int OutsideDutyDays { get; set; } public int AttendanceRecordedDays { get; set; } #endregion #region Leave public int LeaveRequests { get; set; } public decimal Applied { get; set; } public decimal LeaveApproved { get; set; } public decimal LeavePendingApproval { get; set; } public decimal LeaveDeclined { get; set; } /// /// Closing balance for the current leave year, summed over leave types. /// Same figure the Leave Balance screen shows. /// public decimal RemainingLeave { get; set; } public decimal PendingApplicationbyEmployee { get; set; } #endregion } /// /// One row per calendar month, from result set 2 of /// usp_EmployeeAttendanceLeaveSummaryLM. Feeds the "Absent vs Late" trend /// chart - team-wide totals, not per employee. /// public class TeamMonthlyAttendanceTrend { public DateTime MonthStart { get; set; } public string MonthName { get; set; } public int MonthYear { get; set; } public int AbsentDays { get; set; } public int LateDays { get; set; } } /// /// Both result sets of usp_EmployeeAttendanceLeaveSummaryLM, so the two /// cards on the screen are filled from a single call. /// public class TeamAttendanceSummaryResult { public TeamAttendanceSummaryResult() { Summary = new List(); MonthlyTrend = new List(); } public List Summary { get; set; } public List MonthlyTrend { get; set; } } }