Beispiel #1
0
 public void UpdateHolidaysTime()
 {
     foreach (EmployeeWeek week in _ActualWorldState.List)
     {
         foreach (EmployeeDay day in week.DaysList)
         {
             if (day.TimeList != null && day.TimeList.Count > 0)
             {
                 foreach (EmployeeTimeRange timerange in day.TimeList)
                 {
                     if (!timerange.IsWorkingRange)
                     {
                         if (timerange.Absence != null && timerange.Absence.AbsenceTypeID == AbsenceType.Holiday)
                         {
                             timerange.Time = Utills.GetEntityTime(timerange.Absence, timerange.Begin, timerange.End, week.ContractHoursPerWeek, StoreDays.AvgDayInWeek);
                         }
                     }
                 }
             }
         }
     }
 }