AkggMid/Mitarbeiterarbeitszeitkonto.cs - auch Feiertage grau hinterlegt
SupportOID=167595
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user