Examples of ExecutionDegreeBean


Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

            return FenixFramework.getDomainObject(id);
        }
    }

    private ExecutionDegree getExecutionDegree(HttpServletRequest request) {
        ExecutionDegreeBean bean = getRenderedObject("executionDegreeChoice");
        if (bean != null) {
            return bean.getExecutionDegree();
        } else {
            String id = request.getParameter("executionDegreeID");
            if (id == null) {
                return getDefaultExecutionDegree(request);
            } else {
View Full Code Here

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    public ActionForward manage(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) throws Exception {
        DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan(request);
        ExecutionDegree executionDegree = getExecutionDegree(request);

        ExecutionDegreeBean bean = getRenderedObject("executionDegreeChoice");
        if (bean == null) {
            bean = new ExecutionDegreeBean(degreeCurricularPlan);
            bean.setExecutionDegree(executionDegree);
        }

        request.setAttribute("executionDegree", executionDegree);
        request.setAttribute("executionDegreeBean", bean);
        request.setAttribute("usernameBean", new VariantBean());
View Full Code Here

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    @EntryPoint
    public ActionForward prepareCreateStudent(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {

        request.setAttribute("executionDegreeBean", new ExecutionDegreeBean());
        return mapping.findForward("chooseNewStudentExecutionDegreeAndIdentification");
    }
View Full Code Here

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    }

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

        ExecutionDegreeBean executionDegreeBean = (ExecutionDegreeBean) RenderUtils.getViewState().getMetaObject().getObject();
        executionDegreeBean.setDegreeCurricularPlan(null);
        executionDegreeBean.setExecutionDegree(null);
        RenderUtils.invalidateViewState();
        request.setAttribute("executionDegreeBean", executionDegreeBean);

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

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    }

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

        ExecutionDegreeBean executionDegreeBean = (ExecutionDegreeBean) RenderUtils.getViewState().getMetaObject().getObject();

        ExecutionDegree executionDegree = null;
        if (executionDegreeBean.getDegreeCurricularPlan() != null) {
            executionDegree =
                    executionDegreeBean.getDegreeCurricularPlan()
                            .getExecutionDegreeByYear(executionDegreeBean.getExecutionYear());
        }

        executionDegreeBean.setExecutionDegree(executionDegree);
        RenderUtils.invalidateViewState();
        request.setAttribute("executionDegreeBean", executionDegreeBean);
        request.setAttribute("ingressionInformationBean", new IngressionInformationBean());

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

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    }

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

        ExecutionDegreeBean executionDegreeBean =
                (ExecutionDegreeBean) RenderUtils.getViewState("executionDegree").getMetaObject().getObject();
        IngressionInformationBean ingressionInformationBean =
                (IngressionInformationBean) RenderUtils.getViewState("chooseIngression").getMetaObject().getObject();
        ingressionInformationBean.clearIngressionAndEntryPhase();
View Full Code Here

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    }

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

        ExecutionDegreeBean executionDegreeBean =
                (ExecutionDegreeBean) RenderUtils.getViewState("executionDegree").getMetaObject().getObject();
        IngressionInformationBean ingressionInformationBean =
                (IngressionInformationBean) RenderUtils.getViewState("chooseIngression").getMetaObject().getObject();
        ingressionInformationBean.clearAgreement();
View Full Code Here

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    }

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

        ExecutionDegreeBean executionDegreeBean =
                (ExecutionDegreeBean) RenderUtils.getViewState("executionDegree").getMetaObject().getObject();
        IngressionInformationBean ingressionInformationBean =
                (IngressionInformationBean) RenderUtils.getViewState("chooseIngression").getMetaObject().getObject();
        ingressionInformationBean.clearAgreement();
View Full Code Here

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    }

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

        ExecutionDegreeBean executionDegreeBean =
                (ExecutionDegreeBean) RenderUtils.getViewState("executionDegree").getMetaObject().getObject();
        IngressionInformationBean ingressionInformationBean =
                (IngressionInformationBean) RenderUtils.getViewState("chooseIngression").getMetaObject().getObject();
        PrecedentDegreeInformationBean precedentDegreeInformationBean =
                RenderUtils.getViewState("precedentDegreeInformation") == null ? new PrecedentDegreeInformationBean() : (PrecedentDegreeInformationBean) RenderUtils
View Full Code Here

Examples of org.fenixedu.academic.dto.administrativeOffice.ExecutionDegreeBean

    @Override
    public Object provide(Object source, Object currentValue) {
        Set<ExecutionDegree> result =
                new TreeSet<ExecutionDegree>(new ReverseComparator(ExecutionDegree.EXECUTION_DEGREE_COMPARATORY_BY_YEAR));

        ExecutionDegreeBean executionDegreeBean = (ExecutionDegreeBean) source;
        DegreeCurricularPlan degreeCurricularPlan = executionDegreeBean.getDegreeCurricularPlan();

        if (degreeCurricularPlan != null) {
            result.addAll(degreeCurricularPlan.getExecutionDegreesSet());
        }
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.