Examples of DiaSemana


Examples of org.fenixedu.academic.util.DiaSemana

            saveErrors(request, actionErrors);
            return prepare(mapping, form, request, response);
        }

        int dayOfWeekInt = searchDate.get(Calendar.DAY_OF_WEEK);
        DiaSemana dayOfWeek = new DiaSemana(dayOfWeekInt);

        List<InfoRoom> availableInfoRoom = null;
        availableInfoRoom =
                SpaceUtils.allocatableSpace(YearMonthDay.fromCalendarFields(searchDate),
                        YearMonthDay.fromCalendarFields(searchDate), HourMinuteSecond.fromCalendarFields(searchStartTime),
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

            HttpServletResponse response) throws Exception {

        DynaActionForm manageLessonForm = (DynaActionForm) form;
        ContextUtils.setExecutionPeriodContext(request);

        DiaSemana weekDay = new DiaSemana(new Integer(formDay2EnumerateDay((String) manageLessonForm.get("diaSemana"))));

        Calendar inicio = Calendar.getInstance();
        inicio.set(Calendar.HOUR_OF_DAY, Integer.parseInt((String) manageLessonForm.get("horaInicio")));
        inicio.set(Calendar.MINUTE, Integer.parseInt((String) manageLessonForm.get("minutosInicio")));
        inicio.set(Calendar.SECOND, 0);
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

        DynaActionForm manageLessonForm = (DynaActionForm) form;
        request.setAttribute("manageLessonForm", manageLessonForm);

        ContextUtils.setExecutionPeriodContext(request);

        DiaSemana weekDay = new DiaSemana(new Integer(formDay2EnumerateDay((String) manageLessonForm.get("diaSemana"))));
        YearMonthDay newBeginDate = getDateFromForm(manageLessonForm, "newBeginDate");
        YearMonthDay newEndDate = getDateFromForm(manageLessonForm, "newEndDate");

        Boolean quinzenal = (Boolean) manageLessonForm.get("quinzenal");
        if (quinzenal == null) {
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

            setEndHourMinuteSecond(org.fenixedu.academic.util.HourMinuteSecond.fromDateFields(date));
        }
    }

    public WeekDay getWeekDay() {
        final DiaSemana diaSemana = getDiaSemana();
        return diaSemana == null ? null : WeekDay.getWeekDay(diaSemana);
    }
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

    }

    @Override
    public DiaSemana getDiaSemana() {
        Calendar day = this.getDay();
        return new DiaSemana(day.get(Calendar.DAY_OF_WEEK));
    }
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

    public Space getRoom() {
        return getLessonInstanceSpaceOccupation() != null ? getLessonInstanceSpaceOccupation().getRoom() : null;
    }

    public DiaSemana getDayOfweek() {
        return new DiaSemana(DiaSemana.getDiaSemana(getDay()));
    }
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

        }
        return false;
    }

    public DiaSemana getDayOfWeek() {
        return new DiaSemana(DiaSemana.getDiaSemana(getDayDateYearMonthDay()));
    }
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

    }

    @Override
    public DiaSemana getDiaSemana() {
        Calendar day = this.getDay();
        return new DiaSemana(day.get(Calendar.DAY_OF_WEEK));
    }
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

        examDate.set(Calendar.MONTH, getMonth() - 1);
        examDate.set(Calendar.DAY_OF_MONTH, getDay());
        examDate.set(Calendar.SECOND, 0);
        examDate.set(Calendar.MILLISECOND, 0);

        DiaSemana dayOfWeek = new DiaSemana(examDate.get(Calendar.DAY_OF_WEEK));

        Calendar examStartTime = Calendar.getInstance();
        examStartTime.set(Calendar.HOUR_OF_DAY, getBeginHour());
        examStartTime.set(Calendar.MINUTE, getBeginMinute());
        examStartTime.set(Calendar.SECOND, 0);
View Full Code Here

Examples of org.fenixedu.academic.util.DiaSemana

    public double getHoursOnSaturdaysOrNightHours(int nightHour) {
        double hours = 0;
        Collection<Lesson> lessons = this.getAssociatedLessonsSet();
        for (Lesson lesson : lessons) {
            if (lesson.getDiaSemana().equals(new DiaSemana(DiaSemana.SABADO))) {
                hours += lesson.getUnitHours().doubleValue();
            } else {
                hours += lesson.hoursAfter(nightHour);
            }
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.