Package org.fenixedu.academic.dto.resourceAllocationManager

Examples of org.fenixedu.academic.dto.resourceAllocationManager.CourseLoadBean


        executionCourseForm.set("comment", infoExecutionCourse.getComment());
        executionCourseForm.set("entryPhase", infoExecutionCourse.getEntryPhase().getName());
        if (infoExecutionCourse.getAvailableGradeSubmission() != null) {
            executionCourseForm.set("availableGradeSubmission", infoExecutionCourse.getAvailableGradeSubmission().toString());
        }
        request.setAttribute("courseLoadBean", new CourseLoadBean(infoExecutionCourse.getExecutionCourse()));
    }
View Full Code Here


        InfoExecutionCourse infoExecutionCourse =
                (InfoExecutionCourse) request.getAttribute(PresentationConstants.EXECUTION_COURSE);
        ExecutionCourse executionCourse = infoExecutionCourse.getExecutionCourse();
        readAndSetExecutionCourseClasses(request, executionCourse);
        request.setAttribute("courseLoadBean", new CourseLoadBean(executionCourse));
        return mapping.findForward("ManageExecutionCourse");
    }
View Full Code Here

    }

    public ActionForward preparePostBack(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        CourseLoadBean bean = getRenderedObject("courseLoadBeanID");
        ShiftType type = bean.getType();
        if (type != null) {
            CourseLoad courseLoad = bean.getExecutionCourse().getCourseLoadByShiftType(type);
            if (courseLoad != null) {
                bean.setUnitQuantity(courseLoad.getUnitQuantity());
                bean.setTotalQuantity(courseLoad.getTotalQuantity());
            } else {
                bean.setUnitQuantity(null);
                bean.setTotalQuantity(null);
            }
        }

        readAndSetExecutionCourseClasses(request, bean.getExecutionCourse());
        RenderUtils.invalidateViewState("courseLoadBeanID");
        request.setAttribute("courseLoadBean", bean);
        return mapping.findForward("ManageExecutionCourse");
    }
View Full Code Here

    }

    public ActionForward showCourseLoad(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws Exception {

        CourseLoadBean bean = getRenderedObject("courseLoadBeanID");
        readAndSetExecutionCourseClasses(request, bean.getExecutionCourse());
        request.setAttribute("courseLoadBean", bean);
        return mapping.findForward("ManageExecutionCourse");
    }
View Full Code Here

    }

    public ActionForward edit(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response)
            throws Exception {

        CourseLoadBean bean = getRenderedObject("courseLoadBeanID");
        try {
            EditExecutionCourse.run(bean);

        } catch (DomainException e) {
            addActionMessage(request, e.getMessage());
            readAndSetExecutionCourseClasses(request, bean.getExecutionCourse());
            request.setAttribute("courseLoadBean", bean);
            return mapping.findForward("ManageExecutionCourse");
        }

        bean.setType(null);
        bean.setUnitQuantity(null);
        bean.setTotalQuantity(null);

        readAndSetExecutionCourseClasses(request, bean.getExecutionCourse());
        request.setAttribute("courseLoadBean", bean);
        return mapping.findForward("ManageExecutionCourse");
    }
View Full Code Here

        } catch (DomainException e) {
            addActionMessage(request, e.getMessage());
        }

        readAndSetExecutionCourseClasses(request, executionCourse);
        request.setAttribute("courseLoadBean", new CourseLoadBean(executionCourse));
        return mapping.findForward("ManageExecutionCourse");
    }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.resourceAllocationManager.CourseLoadBean

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.