Settings so halb und a bissi aufgeräumt ...
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
using System.Collections.ObjectModel;
|
||||
using CommunityToolkit.Mvvm.ComponentModel;
|
||||
using System.Collections.ObjectModel;
|
||||
|
||||
namespace Jugenddienst_Stunden.Types;
|
||||
/// <summary>
|
||||
/// Represents a day time entry for an employee.
|
||||
/// </summary>
|
||||
public class DayTime
|
||||
{
|
||||
public class DayTime {
|
||||
/// <summary>
|
||||
/// ID des Stundeneintrages
|
||||
/// </summary>
|
||||
public int? id { get; set; }
|
||||
public int? Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Mitarbeiter-ID
|
||||
@@ -19,92 +19,76 @@ public class DayTime
|
||||
/// <summary>
|
||||
/// Der betreffende Tag
|
||||
/// </summary>
|
||||
public DateTime day { get; set; }
|
||||
public DateTime Day { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Der Wochentag
|
||||
/// </summary>
|
||||
public int wday { get; set; }
|
||||
public int Wday { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Arbeitsbeginn
|
||||
/// </summary>
|
||||
public TimeOnly begin { get; set; }
|
||||
public TimeOnly Begin { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Arbeitsende
|
||||
/// </summary>
|
||||
public TimeOnly end { get; set; }
|
||||
public TimeOnly End { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Beschreibung der Arbeit
|
||||
/// Beschreibung der Tätigkeit
|
||||
/// </summary>
|
||||
public string description { get; set; }
|
||||
public string? Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Freistellung
|
||||
/// </summary>
|
||||
public string? free { get; set; }
|
||||
public string? Free { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Freisetellung genehmigt?
|
||||
/// Freistellung genehmigt?
|
||||
/// </summary>
|
||||
public bool? approved { get; set; }
|
||||
public bool? Approved { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Sollte nix sein
|
||||
/// </summary>
|
||||
public int? type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Das gewählte Projekt
|
||||
/// </summary>
|
||||
public int? projekt { get; set; }
|
||||
public int? Projekt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Die gewählte Gemeinde
|
||||
/// </summary>
|
||||
public int? gemeinde { get; set; }
|
||||
public int? Gemeinde { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Nachtstunden
|
||||
/// </summary>
|
||||
public TimeOnly night { get; set; }
|
||||
public TimeOnly Night { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Summe Arbeitszeit (inklusive Nachstunden mit Faktor)
|
||||
/// </summary>
|
||||
public Dictionary<string, TimeOnly> total { get; set; }
|
||||
public TimeOnly end_print { 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; }
|
||||
|
||||
/// <summary>
|
||||
/// Projekte für die Auswahlliste
|
||||
/// </summary>
|
||||
public Collection<Projekt> Projekte { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gemeinden für die Auswahlliste
|
||||
/// </summary>
|
||||
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; }
|
||||
public Gemeinde? GemeindeAktiv { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the active Projekt based on the projekt ID.
|
||||
/// </summary>
|
||||
public Projekt ProjektAktiv { get; set; }
|
||||
public Projekt? ProjektAktiv { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets the active Freistellung based on the Freistellung ID
|
||||
/// </summary>
|
||||
public Freistellung FreistellungAktiv { get; set; }
|
||||
public Freistellung? FreistellungAktiv { get; set; }
|
||||
|
||||
public bool ProjektAktivSet { get; set; } = false;
|
||||
public bool GemeindeAktivSet { get; set; } = false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user