forked from AcaMate/AcaMate_Web
36 lines
941 B
C#
36 lines
941 B
C#
using Microsoft.AspNetCore.Components;
|
|
|
|
namespace Front.Program.Views.Academy.Main;
|
|
|
|
public partial class CheckAttendance : ComponentBase
|
|
{
|
|
|
|
private AttendanceInfo Attendance { get; set; } = new();
|
|
|
|
protected override void OnInitialized()
|
|
{
|
|
Attendance = new AttendanceInfo
|
|
{
|
|
Month = 7,
|
|
MonthlyPercentage = 10,
|
|
MonthlyAttendedDays = 11,
|
|
MonthlyTotalDays = 31,
|
|
DailyPercentage = 75,
|
|
DailyAttendedHours = 3,
|
|
DailyTotalHours = 4
|
|
};
|
|
}
|
|
|
|
}
|
|
|
|
public class AttendanceInfo
|
|
{
|
|
public int Month { get; set; }
|
|
public int MonthlyPercentage { get; set; }
|
|
public int MonthlyAttendedDays { get; set; }
|
|
public int MonthlyTotalDays { get; set; }
|
|
public int DailyPercentage { get; set; }
|
|
public int DailyAttendedHours { get; set; }
|
|
public int DailyTotalHours { get; set; }
|
|
}
|