Examples of DegreeCurricularPlan


Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        return showPostGraduationDegreeCurricularPlanPostingRules(mapping, form, request, response);
    }

    public ActionForward createDEAStandaloneGratuityPR(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) throws FenixServiceException {
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

        InstallmentBean installment = getInstallment();

        StandaloneInstallmentBean standaloneInstallment = (StandaloneInstallmentBean) installment;
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        return showPostGraduationDegreeCurricularPlanPostingRules(mapping, form, request, response);
    }

    public ActionForward changeExecutionYearForDEAGratuityPR(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

        request.setAttribute("paymentPlanEditor", getPaymentPlanBean());
        request.setAttribute("installmentEditor", getInstallment());
        request.setAttribute("degreeCurricularPlan", degreeCurricularPlan);
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        return mapping.findForward("createDEAGratuityPR");
    }

    public ActionForward changeExecutionYearForDEAStandaloneGratuityPR(ActionMapping mapping, ActionForm form,
            HttpServletRequest request, HttpServletResponse response) {
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

        request.setAttribute("paymentPlanEditor", getPaymentPlanBean());
        request.setAttribute("installmentEditor", getInstallment());
        request.setAttribute("degreeCurricularPlan", degreeCurricularPlan);
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        return mapping.findForward("createDEAStandaloneEnrolmentGratuityPR");
    }

    public ActionForward createDEAGratuityPRInvalid(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        final DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);

        request.setAttribute("paymentPlanEditor", getPaymentPlanBean());
        request.setAttribute("installmentEditor", getInstallment());
        request.setAttribute("degreeCurricularPlan", degreeCurricularPlan);
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        return executionSemester == executionCourse.getExecutionPeriod();
    }

    private boolean matchExecutionDegree(final ExecutionDegree executionDegree, final ExecutionCourse executionCourse) {
        for (final CurricularCourse curricularCourse : executionCourse.getAssociatedCurricularCoursesSet()) {
            final DegreeCurricularPlan degreeCurricularPlan = curricularCourse.getDegreeCurricularPlan();
            if (degreeCurricularPlan == executionDegree.getDegreeCurricularPlan()) {
                return true;
            }
        }
        return false;
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        final Degree chosenDegree = searchbean.getDegree();
        final DegreeType chosenDegreeType = searchbean.getDegreeType();
        final ExecutionYear executionYear = searchbean.getExecutionYear();
        for (final ExecutionDegree executionDegree : executionYear.getExecutionDegreesSet()) {
            final DegreeCurricularPlan degreeCurricularPlan = executionDegree.getDegreeCurricularPlan();
            if (chosenDegreeType != null && degreeCurricularPlan.getDegreeType() != chosenDegreeType) {
                continue;
            }
            if (chosenDegree != null && degreeCurricularPlan.getDegree() != chosenDegree) {
                continue;
            }
            if (degreeCurricularPlan.getDegreeType() != DegreeType.EMPTY) {
                if (!searchbean.getAdministratedDegreeTypes().contains(degreeCurricularPlan.getDegreeType())) {
                    continue;
                }
                if (!searchbean.getAdministratedDegrees().contains(degreeCurricularPlan.getDegree())) {
                    continue;
                }
            }
            degreeCurricularPlan.getRegistrations(executionYear, registrations);
        }
        DegreeCurricularPlan emptyDegreeCurricularPlan = DegreeCurricularPlan.readEmptyDegreeCurricularPlan();
        if (chosenDegreeType == null || emptyDegreeCurricularPlan.getDegreeType() == chosenDegreeType) {
            emptyDegreeCurricularPlan.getRegistrations(executionYear, registrations);
        }
        return filterResults(searchbean, registrations, executionYear);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        if (isValidObjectID(degreeIDString)) {
            setInfoDegreeCurricularPlans(request, userView, degreeIDString, "infoDegreeCurricularPlans");

            final String degreeCurricularPlanIDString = (String) actionForm.get("degreeCurricularPlanID");
            if (isValidObjectID(degreeCurricularPlanIDString)) {
                DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanIDString);
                List<CurricularCourseEquivalence> equivalences =
                        new ArrayList<CurricularCourseEquivalence>(degreeCurricularPlan.getCurricularCourseEquivalencesSet());
                sortInfoCurricularCourseEquivalences(equivalences);
                request.setAttribute("curricularCourseEquivalences", equivalences);
            }
        }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        final List<Integer> curricularYears = buildCurricularYearList(selectAllCurricularYears, degree, chooseExamContextoForm);
        request.setAttribute("curricularYearList", curricularYears);

        // degreeCurricularPlanID
        String degreeCurricularPlanId = getFromRequest("degreeCurricularPlanID", request);
        final DegreeCurricularPlan degreeCurricularPlan;
        if (StringUtils.isEmpty(degreeCurricularPlanId)) {
            degreeCurricularPlan = degree.getMostRecentDegreeCurricularPlan();
        } else {
            degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);
        }

        if (degreeCurricularPlan != null) {
            request.setAttribute("degreeCurricularPlanID", degreeCurricularPlan.getExternalId());

            if (!degreeCurricularPlan.getDegree().getExternalId().equals(degreeId)) {
                throw new FenixActionException();
            }

            // lista
            List<LabelValueBean> executionPeriodsLabelValueList =
                    buildExecutionPeriodsLabelValueList(degreeCurricularPlan.getExternalId());
            if (executionPeriodsLabelValueList.size() > 1) {
                request.setAttribute("lista", executionPeriodsLabelValueList);
            } else {
                request.removeAttribute("lista");
            }

            // infoDegreeCurricularPlan
            InfoDegreeCurricularPlan infoDegreeCurricularPlan = InfoDegreeCurricularPlan.newInfoFromDomain(degreeCurricularPlan);
            request.setAttribute("infoDegreeCurricularPlan", infoDegreeCurricularPlan);
        }

        InfoExecutionPeriod infoExecutionPeriod =
                (InfoExecutionPeriod) request.getAttribute(PresentationConstants.EXECUTION_PERIOD);
        String executionPeriodID = (String) chooseExamContextoForm.get("indice");
        if (executionPeriodID != null && !executionPeriodID.equals("")) {
            infoExecutionPeriod = ReadExecutionPeriodByOID.run(executionPeriodID);
        }
        request.setAttribute("indice", infoExecutionPeriod.getExternalId());
        chooseExamContextoForm.set("indice", infoExecutionPeriod.getExternalId());
        RequestUtils.setExecutionPeriodToRequest(request, infoExecutionPeriod);
        request.setAttribute(PresentationConstants.EXECUTION_PERIOD, infoExecutionPeriod);
        request.setAttribute(PresentationConstants.EXECUTION_PERIOD_OID, infoExecutionPeriod.getExternalId().toString());

        final ExecutionSemester executionSemester = FenixFramework.getDomainObject(infoExecutionPeriod.getExternalId());
        ExecutionDegree executionDegree = null;

        if (degreeCurricularPlan != null) {
            executionDegree = degreeCurricularPlan.getExecutionDegreeByYear(executionSemester.getExecutionYear());
            if (executionDegree == null) {
                executionDegree = degreeCurricularPlan.getMostRecentExecutionDegree();

                if (executionDegree != null) {
                    infoExecutionPeriod =
                            InfoExecutionPeriod.newInfoFromDomain(executionDegree.getExecutionYear().getExecutionSemesterFor(1));
                    request.setAttribute("indice", infoExecutionPeriod.getExternalId());
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

    public ActionForward showHome(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        User userView = Authenticate.getUser();

        String degreeCurricularPlanID = request.getParameter("degreeCurricularPlanID");
        DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanID);

        JsonArray executionYears = computeExecutionYearsForDegreeCurricularPlan(degreeCurricularPlan);
        request.setAttribute("executionYears", executionYears);

        String executionYearId = request.getParameter("executionYear");
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

    public Collection<DegreeModuleToEnrol> getModulesToEnrolForFirstSemester() {
        final Registration registration = getRegistration();
        final ExecutionYear executionYear = (ExecutionYear) getCandidacyExecutionInterval();
        final ExecutionSemester semesterToEnrol = executionYear.getFirstExecutionPeriod();
        final StudentCurricularPlan studentCurricularPlan = registration.getActiveStudentCurricularPlan();
        final DegreeCurricularPlan degreeCurricularPlan = registration.getLastDegreeCurricularPlan();

        Set<DegreeModuleToEnrol> degreeModulesToEnrol = new HashSet<DegreeModuleToEnrol>();

        for (CurricularCourse selectedCurricularCourse : getCurricularCoursesSet()) {
            List<Context> contextList = selectedCurricularCourse.getParentContextsByExecutionSemester(semesterToEnrol);
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.