Examples of DegreeCurricularPlan


Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        path = "/academicAdministration/bolonha/curricularCourses/search/searchCurricularCourses.jsp") })
public class SearchCurricularCoursesInDegreeCurricularPlan extends FenixDispatchAction {

    public ActionForward prepareSearch(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        DegreeCurricularPlan degreeCurricularPlan = getDomainObject(request, "dcpId");

        SearchCurricularCourseBean searchBean = new SearchCurricularCourseBean(degreeCurricularPlan);

        request.setAttribute("results", new ArrayList<Context>());
        request.setAttribute("degreeCurricularPlan", degreeCurricularPlan);
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        return mapping.findForward("searchCurricularCourses");
    }

    public ActionForward search(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) {
        DegreeCurricularPlan degreeCurricularPlan = getDomainObject(request, "dcpId");
        SearchCurricularCourseBean searchBean = getRenderedObject("searchBean");

        request.setAttribute("results", searchBean.search());
        request.setAttribute("degreeCurricularPlan", degreeCurricularPlan);
        request.setAttribute("searchBean", searchBean);
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        return mapping.findForward("searchCurricularCourses");
    }

    public ActionForward searchInvalid(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        DegreeCurricularPlan degreeCurricularPlan = getDomainObject(request, "dcpId");
        SearchCurricularCourseBean searchBean = getRenderedObject("searchBean");

        request.setAttribute("results", new ArrayList<Context>());
        request.setAttribute("degreeCurricularPlan", degreeCurricularPlan);
        request.setAttribute("searchBean", searchBean);
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        List lista = (List) request.getAttribute("lista");
        request.setAttribute("lista", lista);

        InfoExecutionDegree infoExecutionDegree =
                (InfoExecutionDegree) request.getAttribute(PresentationConstants.EXECUTION_DEGREE);
        final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);
        infoExecutionDegree =
                infoExecutionDegree == null || infoExecutionDegree.getExecutionDegree() == null ? findLatestInfoExecutionDegree(degreeCurricularPlan) : infoExecutionDegree;
        if (infoExecutionDegree == null || infoExecutionDegree.getExecutionDegree() == null) {
            request.setAttribute("infoDegreeCurricularPlan", "");
        } else {
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        ExecutionCourseManagementBean bean = (ExecutionCourseManagementBean) source;

        ExecutionSemester semester = bean.getSemester();
        CurricularYear curricularYear = bean.getCurricularYear();
        DegreeCurricularPlan plan = bean.getDegreeCurricularPlan();

        return plan.getExecutionCoursesByExecutionPeriodAndSemesterAndYear(semester, curricularYear.getYear(),
                semester.getSemester());
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

            addActionMessage("successHead", request,
                    "message.executionCourseManagement.createExecutionCoursesForDegreeCurricularPlan.successHead",
                    executionPeriod.getName() + " " + executionPeriod.getExecutionYear().getYear());

            for (final String degreeCurricularPlanID : degreeCurricularPlansIDs) {
                final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanID);
                addActionMessage("successDCP", request,
                        "message.executionCourseManagement.createExecutionCoursesForDegreeCurricularPlan.successDCP",
                        degreeCurricularPlan.getPresentationName(), result.get(degreeCurricularPlanID).getKey().toString(),
                        result.get(degreeCurricularPlanID).getValue());
            }

        } catch (DomainException e) {
            addActionMessage("error", request, e.getMessage());
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

    public static Object run(InfoExecutionDegree infoExecutionDegree, InfoExecutionPeriod infoExecutionPeriod,
            Integer curricularYear) {

        List infoExecutionCourseList = new ArrayList();

        DegreeCurricularPlan degreeCurricularPlan =
                DegreeCurricularPlan.readByNameAndDegreeSigla(infoExecutionDegree.getInfoDegreeCurricularPlan().getName(),
                        infoExecutionDegree.getInfoDegreeCurricularPlan().getInfoDegree().getSigla());
        if (degreeCurricularPlan != null) {
            ExecutionSemester executionSemester = FenixFramework.getDomainObject(infoExecutionPeriod.getExternalId());
            List<ExecutionCourse> executionCourseList =
                    degreeCurricularPlan.getExecutionCoursesByExecutionPeriodAndSemesterAndYear(executionSemester,
                            curricularYear, infoExecutionPeriod.getSemester());

            for (int i = 0; i < executionCourseList.size(); i++) {
                ExecutionCourse aux = executionCourseList.get(i);
                InfoExecutionCourse infoExecutionCourse = InfoExecutionCourse.newInfoFromDomain(aux);
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        if (bean.getDegreeCurricularPlan() == null) {
            return new ArrayList<CurricularCourse>();
        }

        DegreeCurricularPlan degreeCurricularPlan = bean.getDegreeCurricularPlan();
        ExecutionSemester semester = bean.getSemester();

        return degreeCurricularPlan.getActiveCurricularCourses(semester);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

            HttpServletResponse response) {

        final DynaActionForm form = (DynaActionForm) actionForm;
        final String degreeCurricularPlanID = (String) form.get("degreeCurricularPlanID");
        if (!StringUtils.isEmpty(degreeCurricularPlanID)) {
            final DegreeCurricularPlan degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanID);
            if (degreeCurricularPlan != null) {
                request.setAttribute("executionDegrees", degreeCurricularPlan.getExecutionDegreesSet());
            }
        }
        return readDegreeCurricularPlans(mapping, actionForm, request, response);
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.DegreeCurricularPlan

        RequestUtils.getAndSetStringToRequest(request, "executionCourseName");

        //FIXME: executionPeriod might not be needed (present in exec course)
        //processing attributes
        String degreeCurricularPlanId = RequestUtils.getAndSetStringToRequest(request, "degreeCurricularPlanId");
        DegreeCurricularPlan degreeCurricularPlan = null;
        if (!StringUtils.isEmpty(degreeCurricularPlanId)) {
            degreeCurricularPlan = FenixFramework.getDomainObject(degreeCurricularPlanId);
        }
        try {
            if (degreeCurricularPlan == null) {
                throw new DomainException("error.selection.noDegree");
            }
            request.setAttribute("degreeCurricularPlanName",
                    degreeCurricularPlan.getPresentationName(executionPeriod.getExecutionYear()));
            request.setAttribute("degreeCurricularPlan", degreeCurricularPlan);
            String executionCourseId = RequestUtils.getAndSetStringToRequest(request, "executionCourseId");
            final ExecutionCourse executionCourse = FenixFramework.getDomainObject(executionCourseId);
            final ExecutionSemester executionSemester = executionCourse.getExecutionPeriod();
            final List<InfoCurricularCourse> infoCurricularCourses = new ArrayList<InfoCurricularCourse>();
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.