Beispiel #1
0
        public static Int32[] TimesheetAbsence(MonthPeriod period, Int32[] absenceSchedule, uint dayOrdFrom, uint dayOrdEnds)
        {
            int periodDaysCount = period.DaysInMonth();

            Int32[] monthSchedule = Enumerable.Range(1, periodDaysCount).
                                    Select((x) => (SecondsFromScheduleSeq(period, absenceSchedule, x, dayOrdFrom, dayOrdEnds))).ToArray();

            return(monthSchedule);
        }
Beispiel #2
0
        public static Int32[] MonthSchedule(MonthPeriod period, Int32[] weekSchedule)
        {
            int periodDaysCount = period.DaysInMonth();

            int periodBeginCwd = period.WeekDayOfMonth(1);

            Int32[] monthSchedule = Enumerable.Range(1, periodDaysCount).
                                    Select((x) => (SecondsFromWeekSchedule(period, weekSchedule, x, periodBeginCwd))).ToArray();

            return(monthSchedule);
        }