Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.StudentCurricularPlan


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

    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");
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++) {
                RenderUtils.invalidateViewState("set.evaluations.form." + 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);

        java.util.List<java.util.List<MarkSheetEnrolmentEvaluationBean>> enrolmentEvaluationBeanList =
View Full Code Here

    public ActionForward editEvaluations(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        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())) {
                addActionMessage("grade-messages", request, "error.invalid.grade");
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,
View Full Code Here

    }

    public ActionForward editEndStageDate(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        BolonhaStudentEnrollmentBean studentEnrolmentBean = readStudentEnrolmentBean(request);
        StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);

        studentCurricularPlan.editEndStageDate(studentEnrolmentBean.getEndStageDate());

        return prepareCurriculumValidation(mapping, actionForm, request, response);
    }
View Full Code Here

        return studentEnrolmentBean;
    }

    private List<ExecutionSemester> readPossibleExecutionSemestersForStudentCurricularPlan(HttpServletRequest request) {
        StudentCurricularPlan studentCurricularPlan = readStudentCurricularPlan(request);
        final List<ExecutionSemester> executionPeriodsInTimePeriod =
                ExecutionSemester.readExecutionPeriodsInTimePeriod(studentCurricularPlan.getStartDate(),
                        getCurrentExecutionSemesterEndDate());

        Collections.sort(executionPeriodsInTimePeriod, new ReverseComparator(ExecutionSemester.COMPARATOR_BY_SEMESTER_AND_YEAR));
        return executionPeriodsInTimePeriod;
    }
View Full Code Here

    }

    private void addEtiRow(final Spreadsheet spreadsheet, final Degree degree, final CurricularCourse curricularCourse,
            final Enrolment enrolment, final ExecutionSemester executionSemester,
            final ExecutionSemester executionSemesterForPreviousEnrolmentCount) {
        final StudentCurricularPlan studentCurricularPlan = enrolment.getStudentCurricularPlan();
        final Registration registration = studentCurricularPlan.getRegistration();
        final Student student = registration.getStudent();

        final Row row = spreadsheet.addRow();
        row.setCell(registration.getNumber());
        setDegreeCells(row, registration.getDegree());
View Full Code Here

public class OptionalCurricularCoursesLocationManagementDA extends FenixDispatchAction {

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

        final StudentCurricularPlan studentCurricularPlan = getStudentCurricularPlan(request);
        request.setAttribute("studentCurricularPlan", studentCurricularPlan);

        final List<Enrolment> enrolments = new ArrayList<>(studentCurricularPlan.getEnrolmentsSet());
        Collections.sort(enrolments, Enrolment.COMPARATOR_BY_EXECUTION_PERIOD_AND_NAME_AND_ID);
        request.setAttribute("enrolments", enrolments);

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

    }

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

        final StudentCurricularPlan studentCurricularPlan = getStudentCurricularPlan(request);
        request.setAttribute("studentCurricularPlan", studentCurricularPlan);

        final OptionalCurricularCoursesLocationBean bean = new OptionalCurricularCoursesLocationBean(studentCurricularPlan);
        final String[] enrolmentIds = ((OptionalCurricularCoursesLocationForm) actionForm).getEnrolmentsToChange();
        bean.addEnrolments(getEnrolments(bean.getStudentCurricularPlan(), enrolmentIds));
View Full Code Here

TOP

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

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.