AkggMid/Mitarbeiterarbeitszeitkonto.cs - auch Feiertage grau hinterlegt

SupportOID=167595
This commit is contained in:
2026-07-09 13:50:28 +02:00
parent 75aff1a436
commit c8199f2530

View File

@@ -182,7 +182,7 @@ namespace AkggMid
System.Drawing.Color backColor = System.Drawing.Color.Transparent;
if (myRow.Date.DayOfWeek == DayOfWeek.Saturday || myRow.Date.DayOfWeek == DayOfWeek.Sunday)
if (myRow.Date.DayOfWeek == DayOfWeek.Saturday || myRow.Date.DayOfWeek == DayOfWeek.Sunday || IstFeiertag(myRow.Date))
{
backColor = System.Drawing.Color.Gainsboro;
}
@@ -194,6 +194,18 @@ namespace AkggMid
}
}
private Service.CustomVacationService _vacationService;
private bool IstFeiertag(DateTime date)
{
if (_vacationService == null)
{
_vacationService = new Service.CustomVacationService();
}
return _vacationService.IstFeiertag(date);
}
private string AddText(string text, string description)
{
if (text.Length > 0)