Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.ExecutionCourse


            request.setAttribute("attends", attends);

            for (final Registration registration : getUserView(request).getPerson().getStudents()) {
                for (final Attends attend : registration.getOrderedAttends()) {
                    if (attend.getEnrolment() != null) {
                        final ExecutionCourse executionCourse = attend.getExecutionCourse();
                        if (executionCourse.getExecutionPeriod() == selectedExecutionPeriod) {
                            weeklyWorkLoadView.add(attend);
                            attends.add(attend);
                        }
                    }
                }
View Full Code Here


    private Attends findFirstAttends(final HttpServletRequest request, final ExecutionSemester selectedExecutionPeriod)
            throws FenixServiceException {
        for (final Registration registration : getUserView(request).getPerson().getStudents()) {
            for (final Attends attend : registration.getOrderedAttends()) {
                final ExecutionCourse executionCourse = attend.getExecutionCourse();
                if (executionCourse.getExecutionPeriod() == selectedExecutionPeriod && attend.getEnrolment() != null) {
                    return attend;
                }
            }
        }
        return null;
View Full Code Here

    public ActionForward sendEmail(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        String executionCourseCode = request.getParameter("executionCourseID");
        String studentGroupCode = request.getParameter("studentGroupCode");
        ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseCode);
        StudentGroup studentGroup = FenixFramework.getDomainObject(studentGroupCode);
        Group groupToSend = StudentGroupGroup.get(studentGroup);
        Sender sender = ExecutionCourseSender.newInstance(executionCourse);
        final String label =
                getResources(request, "APPLICATION_RESOURCES").getMessage("label.students.group.send.email",
View Full Code Here

    public ActionForward sendGroupingEmail(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        String executionCourseCode = request.getParameter("executionCourseID");
        String groupingCode = request.getParameter("groupingCode");
        ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseCode);
        Grouping grouping = FenixFramework.getDomainObject(groupingCode);
        Group groupToSend = GroupingGroup.get(grouping);
        Sender sender = ExecutionCourseSender.newInstance(executionCourse);
        final String label =
                getResources(request, "APPLICATION_RESOURCES").getMessage("label.students.grouping.send.email",
View Full Code Here

    private void correctExecutionCourseIfNecessary(Registration registration, Shift shift) {

        final StudentCurricularPlan studentCurricularPlan = registration.getActiveStudentCurricularPlan();
        final ExecutionSemester semester = ExecutionSemester.readActualExecutionSemester();
        final ExecutionCourse executionCourse = shift.getExecutionCourse();

        for (final CurricularCourse curricularCourse : executionCourse.getAssociatedCurricularCoursesSet()) {
            final Enrolment enrolment = studentCurricularPlan.findEnrolmentFor(curricularCourse, semester);
            if (enrolment != null) {
                final Attends attends = enrolment.getAttendsFor(semester);
                if (attends != null && !attends.isFor(executionCourse)) {
                    attends.setDisciplinaExecucao(executionCourse);
View Full Code Here

    public ActionForward showExecutionCourseStatistics(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        final Student student = getLoggedPerson(request).getStudent();

        ExecutionCourse executionCourse = getDomainObject(request, "executionCourseId");
        if (student != null && executionCourse != null) {
            request.setAttribute("executionCourse", executionCourse);
            request.setAttribute("executionCourseStatistics", computeStudentExecutionCourseStatistics(student, executionCourse));
            request.setAttribute("curricularCourseOvertimeStatistics", computeCurricularCourseOvertimeStatistics(student
                    .getAttends(executionCourse).getEnrolment().getCurricularCourse()));
View Full Code Here

public class ListShiftsToSummariesManagementProvider implements DataProvider {

    @Override
    public Object provide(Object source, Object currentValue) {
        SummariesManagementBean bean = (SummariesManagementBean) source;
        ExecutionCourse executionCourse = bean.getExecutionCourse();
        Set<Shift> shifts = new TreeSet<Shift>(Shift.SHIFT_COMPARATOR_BY_TYPE_AND_ORDERED_LESSONS);
        if (executionCourse != null) {
            shifts.addAll(executionCourse.getAssociatedShifts());
        }
        return shifts;
    }
View Full Code Here

        if (beanList.isEmpty()) {
            return;
        }

        final Iterator<ExecutionCourse> iter = beanList.iterator();
        ExecutionCourse prev = iter.next();
        while (iter.hasNext()) {
            final ExecutionCourse curr = iter.next();
            if (curr.equals(prev)) {
                iter.remove();
            }
            prev = curr;
        }
    }
View Full Code Here

        if (beanList.isEmpty()) {
            return;
        }

        final Iterator<ExecutionCourse> iter = beanList.iterator();
        ExecutionCourse prev = iter.next();
        while (iter.hasNext()) {
            final ExecutionCourse curr = iter.next();
            if (curr.equals(prev)) {
                iter.remove();
            }
            prev = curr;
        }
    }
View Full Code Here

    @Override
    public Object provide(Object source, Object currentValue) {
        SummariesManagementBean bean = (SummariesManagementBean) source;
        ShiftType lessonType = bean.getLessonType();
        if (lessonType != null) {
            ExecutionCourse executionCourse = bean.getExecutionCourse();
            return executionCourse.getLessonPlanningsOrderedByOrder(lessonType);
        }
        return new ArrayList<LessonPlanning>();
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.ExecutionCourse

Copyright © 2018 www.massapicom. 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.