@page "/grid"
@page "/grid/{YearMonth}"
@attribute [Authorize]
@rendermode InteractiveServer
@inject IWorkDayService WorkDayService
@inject IItalianFestivitySource FestivitySource
@inject NavigationManager Navigation
Loading...
} else {| Date | Day | Work Units | Calendar Events | Counted | Preview | Off | Gross € | Net € | |
|---|---|---|---|---|---|---|---|---|---|
| @row.Date.ToString("dd") | @row.Date.ToString("ddd") |
@if (row.Entry?.WorkUnits.Count > 0)
{
@foreach (var unit in row.Entry.WorkUnits)
{
@unit.Label: @FormatTimeRange(unit.StartTime, unit.EndTime) (@FormatHours(unit.ManualWorkedHours)@(unit.IsPreview ? ", preview" : ""))
}
}
else
{
—
}
|
@if (row.Entry?.CalendarEvents.Count > 0)
{
@foreach (var calendarEvent in row.Entry.CalendarEvents)
{
@CalendarEventFormatter.GetEventTypeName(calendarEvent.EventType): @CalendarEventFormatter.GetDisplayDescription(calendarEvent)
}
}
else
{
—
}
|
@FormatHours(GetCountedHours(row)) | @FormatHours(GetPreviewHours(row)) | @FormatHours(GetHoursOff(row)) | @GetGrossIncome(row).ToString("N2") | @GetNetIncome(row).ToString("N2") |