MoK-Kalender weitergemacht
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BS.Shared.DataContracts;
|
||||
using BS.Shared.Extensions;
|
||||
|
||||
|
||||
@@ -162,6 +162,10 @@ namespace BS.Shared.DataContracts
|
||||
[DataMember]
|
||||
public List<ServiceRecordDC> ServiceRecordList { get; set; }
|
||||
|
||||
// Nur im DC, damit man im MoK-Scheduler als CustomField darauf zugreifen kann.
|
||||
public bool ShowEmployeeColors { get; set; }
|
||||
public bool CanBeViewed { get; set; } = true;
|
||||
public bool CanBeDeleted { get; set; } = true;
|
||||
public long? FormerAbsenceTimeOid { get; set; }
|
||||
public DateTime? Krankheitsmeldung { get; set; }
|
||||
public AbsenceReasonDC AbsenceReason { get; set; }
|
||||
|
||||
@@ -614,7 +614,7 @@ namespace BS.Shared.Extensions
|
||||
$"{start.ToShortDateString()} {start.ToShortTimeString()} - {end.ToShortTimeString()}";
|
||||
}
|
||||
|
||||
public static DateTime MergeDateWithHoursMinutesSeconds(this DateTime date, int hours, int minutes, int seconds = 0)
|
||||
public static DateTime MergeDateWithHoursMinutesSeconds(this DateTime date, int hours, int minutes = 0, int seconds = 0)
|
||||
{
|
||||
var h = hours >= 0 && hours < 24 ? hours : 0;
|
||||
var m = minutes >= 0 && minutes < 60 ? minutes : 0;
|
||||
|
||||
Reference in New Issue
Block a user