42 lines
1.3 KiB
C#
42 lines
1.3 KiB
C#
using Jugenddienst_Stunden.Models;
|
|
using System.Collections.ObjectModel;
|
|
|
|
namespace Jugenddienst_Stunden.Types;
|
|
/// <summary>
|
|
/// Represents a day time entry for an employee.
|
|
/// </summary>
|
|
public class DayTime {
|
|
public int? id { get; set; }
|
|
public int EmployeeId { get; set; }
|
|
public DateTime day { get; set; }
|
|
public int wday { get; set; }
|
|
public TimeOnly begin { get; set; }
|
|
public TimeOnly end { get; set; }
|
|
public string description { get; set; }
|
|
public string? free { get; set; }
|
|
public bool? approved { get; set; }
|
|
public int? type { get; set; }
|
|
public int? projekt { get; set; }
|
|
public int? gemeinde { get; set; }
|
|
public TimeOnly night { get; set; }
|
|
public Dictionary<string, TimeOnly> total { get; set; }
|
|
public TimeOnly end_print { get; set; }
|
|
public TimeSpan TimeSpanVon { get; set; }
|
|
public TimeSpan TimeSpanBis { get; set; }
|
|
public Collection<Projekt> Projekte { get; set; }
|
|
public Collection<Gemeinde> Gemeinden { get; set; }
|
|
public Collection<Freistellung> Freistellungen { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the active Gemeinde based on the gemeinde ID.
|
|
/// </summary>
|
|
public Gemeinde GemeindeAktiv { get; set; }
|
|
|
|
/// <summary>
|
|
/// Gets the active Projekt based on the projekt ID.
|
|
/// </summary>
|
|
public Projekt ProjektAktiv { get; set; }
|
|
|
|
public Freistellung FreistellungAktiv { get; set; }
|
|
}
|