Package org.fenixedu.academic.dto.administrativeOffice.dismissal

Examples of org.fenixedu.academic.dto.administrativeOffice.dismissal.DismissalBean$SelectedExternalEnrolment


public class StudentSubstitutionsDA extends StudentDismissalsDA {

    @Override
    public ActionForward chooseEquivalents(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        DismissalBean dismissalBean = getRenderedObject("dismissalBean");
        if (dismissalBean.getSelectedEnrolments().isEmpty()) {
            addActionMessage(request, "error.createSubstitution.origin.cannot.be.empty");
            return prepare(mapping, form, request, response);
        }

        return super.chooseEquivalents(mapping, form, request, response);
View Full Code Here


        return mapping.findForward("manage");
    }

    public ActionForward prepare(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {

        final DismissalBean dismissalBean = createDismissalBean();
        dismissalBean.setStudentCurricularPlan(getSCP(request));

        request.setAttribute("dismissalBean", dismissalBean);
        dismissalBean.setEnrolments(buildStudentEnrolmentsInformation(dismissalBean));
        dismissalBean.setExternalEnrolments(buildStudentExternalEnrolmentsInformation(dismissalBean));

        return mapping.findForward("chooseDismissalEnrolments");
    }
View Full Code Here

        return mapping.findForward("chooseDismissalEnrolments");
    }

    protected DismissalBean createDismissalBean() {
        return new DismissalBean();
    }
View Full Code Here

    }

    public ActionForward chooseEquivalents(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final DismissalBean dismissalBean = getRenderedObject("dismissalBean");
        dismissalBean.setDismissalType(DismissalType.CURRICULAR_COURSE_CREDITS);

        final DegreeCurricularPlan dcp = dismissalBean.getStudentCurricularPlan().getDegreeCurricularPlan();
        final ExecutionSemester actualEP = ExecutionSemester.readActualExecutionSemester();

        dismissalBean.setExecutionPeriod(dcp.hasExecutionDegreeFor(actualEP.getExecutionYear()) ? actualEP : dcp
                .getMostRecentExecutionYear().getFirstExecutionPeriod());

        request.setAttribute("dismissalBean", dismissalBean);

        return mapping.findForward("chooseEquivalents");
View Full Code Here

    }

    public ActionForward dismissalTypePostBack(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final DismissalBean dismissalBean = getRenderedObject();
        dismissalBean.setCredits(null);
        dismissalBean.setCourseGroup(null);
        dismissalBean.setDismissals(null);
        dismissalBean.setCurriculumGroup(null);

        RenderUtils.invalidateViewState();
        request.setAttribute("dismissalBean", dismissalBean);

        return mapping.findForward("chooseEquivalents");
View Full Code Here

    }

    public ActionForward confirmCreateDismissals(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        final DismissalBean dismissalBean = getRenderedObject();
        request.setAttribute("dismissalBean", dismissalBean);

        try {
            checkArguments(request, dismissalBean);

        } catch (FenixActionException e) {
            return stepTwo(mapping, actionForm, request, response);
        }

        if (dismissalBean.getDismissalType() == DismissalType.CURRICULAR_COURSE_CREDITS) {
            setCurriculumGroups(dismissalBean);
        }

        return mapping.findForward("confirmCreateDismissals");
    }
View Full Code Here

    }

    public ActionForward createDismissals(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {

        final DismissalBean dismissalBean = getRenderedObject();

        try {
            checkArguments(request, dismissalBean);
        } catch (FenixActionException e) {
            return stepTwo(mapping, form, request, response);
View Full Code Here

    @Override
    public ActionForward chooseEquivalents(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {

        final DismissalBean dismissalBean = getRenderedObject("dismissalBean");
        if (!dismissalBean.hasAnySelectedIEnrolments()) {
            addActionMessage(request, "error.StudentInternalSubstitutionsDA.must.select.ienrolments");
            request.setAttribute("dismissalBean", dismissalBean);
            return mapping.findForward("chooseDismissalEnrolments");
        }
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.administrativeOffice.dismissal.DismissalBean$SelectedExternalEnrolment

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.