Das Recht Mitarbeiterabwesenheiten bearbeiten wird jetzt beachtet.

This commit is contained in:
2026-03-18 18:05:58 +01:00
parent 0d381136ad
commit 99e64f067d
14 changed files with 307 additions and 40 deletions

View File

@@ -38,6 +38,26 @@ namespace BS.Shared.DataContracts
[DataMember]
public string BackgroundColor { get; set; }
public bool IsAllDay
{
get
{
if(End is null && Start is null || (End != null && Start is null))
{
return false;
}
var start = Start.Value;
var end = End.HasValue == false ? DateTime.MaxValue : End.Value;
return start.Hour == 0 &&
start.Minute == 0 &&
start.Second == 0 &&
(end == DateTime.MaxValue || end.Hour == 0 &&
end.Minute == 0 &&
end.Second == 0);
}
}
public override bool Equals(object obj)
{

View File

@@ -162,6 +162,10 @@ namespace BS.Shared.DataContracts
[DataMember]
public List<ServiceRecordDC> ServiceRecordList { get; set; }
public long? FormerAbsenceTimeOid { get; set; }
public DateTime? Krankheitsmeldung { get; set; }
public AbsenceReasonDC AbsenceReason { get; set; }
public override bool Equals(object obj)
{
if (!(obj is SchedulerAppointmentDC schedulerAppointmentDC))