Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.ExecutionSemester


    }

    public ActionForward prepareStudentEnrolment(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);
        ExecutionSemester executionSemester = readExecutionSemester(request);

        addDebtsWarningMessages(studentCurricularPlan.getRegistration().getStudent(), executionSemester, request);

        request.setAttribute(
                "bolonhaStudentEnrollmentBean",
View Full Code Here


    }

    public ActionForward prepareSetEvaluations(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);
        ExecutionSemester executionSemester = readExecutionSemester(request);

        RenderUtils.invalidateViewState("student.enrolment.bean");
        RenderUtils.invalidateViewState("student.enrolment.bean.execution.semester");

        request.setAttribute(
View Full Code Here

    public ActionForward setEvaluations(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        List<List<MarkSheetEnrolmentEvaluationBean>> evaluationsList = getCurriculumEntries();

        StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);
        ExecutionSemester selectedSemester = readExecutionSemester(request);

        try {
            studentCurricularPlan.setEvaluationsForCurriculumValidation(evaluationsList);

            for (int i = 0; i < evaluationsList.size(); i++) {
View Full Code Here

    }

    public ActionForward prepareEditEvaluation(ActionMapping mapping, ActionForm form, HttpServletRequest request,
            HttpServletResponse response) {
        Enrolment enrolment = getEnrolmentForEdition(request);
        ExecutionSemester executionSemester = readExecutionSemester(request);
        StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);

        java.util.List<Enrolment> enrolmentToUse = new java.util.ArrayList<Enrolment>();
        enrolmentToUse.add(enrolment);
View Full Code Here

        try {
            List<List<MarkSheetEnrolmentEvaluationBean>> evaluationsList = getCurriculumEntries();

            StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);

            ExecutionSemester executionSemester = readExecutionSemester(request);
            studentCurricularPlan.setEvaluationsForCurriculumValidation(evaluationsList);

            return prepareSetEvaluations(mapping, actionForm, request, response);
        } catch (DomainException e) {
            if ("error.grade.invalid.grade".equals(e.getMessage())) {
View Full Code Here

    }

    public ActionForward prepareEditEndStageDate(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);
        ExecutionSemester executionSemester = readExecutionSemester(request);

        request.setAttribute(
                "bolonhaStudentEnrollmentBean",
                readBolonhaStudentEnrollmentBean(request, studentCurricularPlan, executionSemester, null,
                        CurricularRuleLevel.ENROLMENT_NO_RULES, true));
View Full Code Here

        return getDomainObject(request, "studentCurricularPlanId");

    }

    private ExecutionSemester readExecutionSemester(HttpServletRequest request) {
        ExecutionSemester executionSemester = (ExecutionSemester) request.getAttribute("executionSemester");

        if (executionSemester == null) {
            executionSemester = getDomainObject(request, "executionSemesterId");
        }
View Full Code Here

                                for (final CurriculumModule curriculumModule : curricularCourse.getCurriculumModulesSet()) {
                                    if (curriculumModule.isEnrolment()) {
                                        final Enrolment enrolment = (Enrolment) curriculumModule;
                                        if (enrolment.getExecutionYear() == getExecutionYear()) {
                                            final ExecutionSemester executionSemester = enrolment.getExecutionPeriod();
                                            if (curricularCourse.isAnual()) {
                                                addEtiRow(spreadsheet, curricularCourse.getDegree(), curricularCourse, enrolment,
                                                        executionSemester, executionSemester);
                                                if (executionSemester.getSemester().intValue() == 1) {
                                                    final ExecutionSemester nextSemester =
                                                            executionSemester.getNextExecutionPeriod();
                                                    addEtiRow(spreadsheet, curricularCourse.getDegree(), curricularCourse,
                                                            enrolment, nextSemester, executionSemester);
                                                }
                                            } else {
View Full Code Here

    }

    @Override
    public ActionForward prepare(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        final ExecutionSemester semester = getExecutionSemester(request);
        if (isStudentInPartialRegime(request, semester)) {
            addActionMessage("error", request, "error.Student.has.partial.regime", semester.getQualifiedName());
        }
        return super.prepare(mapping, actionForm, request, response);
    }
View Full Code Here

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

        final Enrolment enrolment = getEnrolment(request);
        final StudentCurricularPlan studentCurricularPlan = getStudentCurricularPlan(request);
        final ExecutionSemester executionSemester = getExecutionSemester(request);

        try {
            studentCurricularPlan.removeCurriculumModulesFromNoCourseGroupCurriculumGroup(
                    Collections.<CurriculumModule> singletonList(enrolment), executionSemester, getGroupType());
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.domain.ExecutionSemester

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.