using CommunityToolkit.Mvvm.ComponentModel;
using System.Collections.ObjectModel;
namespace Jugenddienst_Stunden.Types;
///
/// Represents a day time entry for an employee.
///
public class DayTime {
///
/// ID des Stundeneintrages
///
public int? Id { get; set; }
///
/// Mitarbeiter-ID
///
public int EmployeeId { get; set; }
///
/// Der betreffende Tag
///
public DateTime Day { get; set; }
///
/// Der Wochentag
///
public int Wday { get; set; }
///
/// Arbeitsbeginn
///
public TimeOnly Begin { get; set; }
///
/// Arbeitsende
///
public TimeOnly End { get; set; }
///
/// Beschreibung der Tätigkeit
///
public string? Description { get; set; }
///
/// Freistellung
///
public string? Free { get; set; }
///
/// Freistellung genehmigt?
///
public bool Approved { get; set; }
///
/// Das gewählte Projekt
///
public int? Projekt { get; set; }
///
/// Die gewählte Gemeinde
///
public int? Gemeinde { get; set; }
///
/// Nachtstunden
///
public TimeOnly Night { get; set; }
///
/// Summe Arbeitszeit (inklusive Nachstunden mit Faktor)
///
public Dictionary Total { get; set; }
public TimeOnly End_print { get; set; }
public TimeSpan TimeSpanVon { get; set; }
public TimeSpan TimeSpanBis { get; set; }
///
/// Gets the active Gemeinde based on the gemeinde ID.
///
public Gemeinde? GemeindeAktiv { get; set; }
///
/// Gets the active Projekt based on the projekt ID.
///
public Projekt? ProjektAktiv { get; set; }
///
/// Gets the active Freistellung based on the Freistellung ID
///
public Freistellung? FreistellungAktiv { get; set; }
public int TimeTable { get; set; }
}