Ejemplo n.º 1
0
        protected EmployGuidesBuilder(BundleVersion version,
                                      TDays weeklyWorkingDays, THours dailyWorkingHours) : base(version)
        {
            __WeeklyWorkingDays = weeklyWorkingDays;

            __DailyWorkingHours = dailyWorkingHours;
        }
Ejemplo n.º 2
0
        public EmployGuides(Period period, TDays weeklyWorkingDays, THours dailyWorkingHours)
        {
            InternalPeriod = period;

            __WeeklyWorkingDays = weeklyWorkingDays;

            __DailyWorkingHours = dailyWorkingHours;
        }
Ejemplo n.º 3
0
        public static TSeconds[] WeekSchedule(Period period, TSeconds secondsWeekly, TDays workdaysWeekly)
        {
            TSeconds secondsDaily = (secondsWeekly / Math.Min(workdaysWeekly, WEEKDAYS_COUNT));

            TSeconds secRemainder = secondsWeekly - (secondsDaily * workdaysWeekly);

            TSeconds[] weekSchedule = Enumerable.Range(1, 7).
                                      Select((x) => (WeekDaySeconds(x, workdaysWeekly, secondsDaily, secRemainder))).ToArray();

            return(weekSchedule);
        }
Ejemplo n.º 4
0
        public static int WorkingSecondsWeekly(TDays workingDays, THours workingHours)
        {
            TSeconds secondsDaily = WorkingSecondsDaily(workingHours);

            return(workingDays * secondsDaily);
        }
 public TSeconds[] TimesheetWeekSchedule(Period period, TSeconds secondsWeekly, TDays workdaysWeekly)
 {
     return(OperationsPeriod.WeekSchedule(period, secondsWeekly, workdaysWeekly));
 }