示例#1
0
 private bool checkMaxHoursExceeded(Shift option)
 {
     int totalHours = countWorkersHours(option.getWroker_ID());
     int optionHours = option.getShiftHours();
     if (totalHours + optionHours > MAX_WORK_HOURS_PER_WEEK)
     {
         return true;
     }
     return false;
 }