protected EmployGuidesBuilder(BundleVersion version, TDays weeklyWorkingDays, THours dailyWorkingHours) : base(version) { __WeeklyWorkingDays = weeklyWorkingDays; __DailyWorkingHours = dailyWorkingHours; }
public EmployGuides(Period period, TDays weeklyWorkingDays, THours dailyWorkingHours) { InternalPeriod = period; __WeeklyWorkingDays = weeklyWorkingDays; __DailyWorkingHours = dailyWorkingHours; }
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); }
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)); }