HRM-10/HRM.BO/Attendance/TeamAttendanceSummary.cs
Mohaimen Hasan 838b8d4480 first commit
2026-11-03 13:06:00 +06:00

86 lines
2.8 KiB
C#

using System;
using System.Collections.Generic;
namespace HRM.BO
{
/// <summary>
/// One row per active team member, from result set 1 of
/// usp_EmployeeAttendanceLeaveSummaryLM. Feeds the "Team Summary" grid on
/// the Team Attendance screen.
/// </summary>
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; }
/// <summary>
/// Closing balance for the current leave year, summed over leave types.
/// Same figure the Leave Balance screen shows.
/// </summary>
public decimal RemainingLeave { get; set; }
public decimal PendingApplicationbyEmployee { get; set; }
#endregion
}
/// <summary>
/// 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.
/// </summary>
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; }
}
/// <summary>
/// Both result sets of usp_EmployeeAttendanceLeaveSummaryLM, so the two
/// cards on the screen are filled from a single call.
/// </summary>
public class TeamAttendanceSummaryResult
{
public TeamAttendanceSummaryResult()
{
Summary = new List<TeamAttendanceLeaveSummary>();
MonthlyTrend = new List<TeamMonthlyAttendanceTrend>();
}
public List<TeamAttendanceLeaveSummary> Summary { get; set; }
public List<TeamMonthlyAttendanceTrend> MonthlyTrend { get; set; }
}
}