feat: Add Grid View and Monthly Summary pages with workday management
Some checks failed
Publish Container / publish (push) Failing after 1m2s
Some checks failed
Publish Container / publish (push) Failing after 1m2s
- Implement GridView.razor for displaying a tabular view of workdays in the current month. - Create MonthlySummary.razor to show a summary of worked hours, income, and day types for the selected month. - Introduce WorkDayEditor.razor for adding and editing workday entries with detailed calculations. - Update Home.razor to include links to the new Grid View and Monthly Summary pages. - Add IWorkDayService interface and CouchbaseLiteWorkDayService implementation for managing workday data. - Define domain models: WorkDayDocument, MonthlySummaryModel, and CoeffSnapshotDocument for data structure. - Enhance CouchbaseLiteDatabaseProvider to include a collection for workdays. - Update app settings and services to support new features. - Add CSS styles for calendar view and table formatting.
This commit is contained in:
parent
6e3371514e
commit
3ccce7e8a6
17 changed files with 1257 additions and 18 deletions
30
Domain/MonthlySummaryModel.cs
Normal file
30
Domain/MonthlySummaryModel.cs
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
namespace WorkTracker.Domain;
|
||||
|
||||
public sealed class MonthlySummaryModel
|
||||
{
|
||||
public int Year { get; set; }
|
||||
|
||||
public int Month { get; set; }
|
||||
|
||||
public decimal TotalWorkedHours { get; set; }
|
||||
|
||||
public int OfficeDays { get; set; }
|
||||
|
||||
public int HomeDays { get; set; }
|
||||
|
||||
public int HolidayDays { get; set; }
|
||||
|
||||
public int SickDays { get; set; }
|
||||
|
||||
public int DaysOff { get; set; }
|
||||
|
||||
public int ClosureDays { get; set; }
|
||||
|
||||
public decimal TotalHoursOff { get; set; }
|
||||
|
||||
public decimal TotalGrossIncome { get; set; }
|
||||
|
||||
public decimal TotalNetIncome { get; set; }
|
||||
|
||||
public int TotalWorkingDays { get; set; }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue