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.
40 lines
1,015 B
C#
40 lines
1,015 B
C#
namespace WorkTracker.Domain;
|
|
|
|
public sealed class WorkDayDocument
|
|
{
|
|
public string Id { get; set; } = string.Empty;
|
|
|
|
public DateOnly Date { get; set; }
|
|
|
|
public TimeOnly? StartTime { get; set; }
|
|
|
|
public TimeOnly? ProjectedExitTime { get; set; }
|
|
|
|
public TimeOnly? ActualExitTime { get; set; }
|
|
|
|
public DayType DayType { get; set; } = DayType.None;
|
|
|
|
public decimal ExtraHoursDelta { get; set; }
|
|
|
|
public decimal WorkedHoursBase { get; set; }
|
|
|
|
public decimal WorkedHoursFinal { get; set; }
|
|
|
|
public decimal HoursOff { get; set; }
|
|
|
|
public decimal GrossIncome { get; set; }
|
|
|
|
public decimal NetIncome { get; set; }
|
|
|
|
public bool IsWeekend { get; set; }
|
|
|
|
public bool IsItalianFestivity { get; set; }
|
|
|
|
public string? Notes { get; set; }
|
|
|
|
public CoeffSnapshotDocument CoeffSnapshot { get; set; } = new();
|
|
|
|
public DateTimeOffset CreatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
|
|
|
public DateTimeOffset UpdatedAtUtc { get; set; } = DateTimeOffset.UtcNow;
|
|
}
|