Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.EnrolmentEvaluation


        return prepareCurriculumValidation(mapping, actionForm, request, response);
    }

    public ActionForward removeEnrolmentEvaluation(ActionMapping mapping, ActionForm actionForm, HttpServletRequest request,
            HttpServletResponse response) {
        EnrolmentEvaluation evaluationToVoid = readEnrolmentEvaluation(request);

        evaluationToVoid.deleteEnrolmentEvaluationCurriculumValidationContext();

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


            for (String[] element : TYPE_AND_PHASE) {
                EnrolmentEvaluationType type = EnrolmentEvaluationType.valueOf(element[0]);
                CurriculumValidationEvaluationPhase phase =
                        element[1] != null ? CurriculumValidationEvaluationPhase.valueOf(element[1]) : null;
                EnrolmentEvaluation evaluation = enrolment.getLatestEnrolmentEvaluationByTypeAndPhase(type, phase);
                if (evaluation != null) {
                    logger.info(String.format("%s[%s][%s] State: %s", evaluation.getEnrolment().getName().getContent(), type,
                            phase, evaluation.getEnrolmentEvaluationState().toString()));
                }
            }

            if (enrolment.hasAnyNonTemporaryEvaluations() && !forEdition) {
                finalEnrolmentEvaluationBeanList.add(markSheetList);
View Full Code Here

        row.setCell(enrolment.isApproved() ? EnrollmentState.APROVED.getDescription() : enrolment.getEnrollmentState()
                .getDescription());
        row.setCell(enrolment.getEnrolmentEvaluationType().getDescription());
        row.setCell(enrolment.getGradeValue());

        final EnrolmentEvaluation normal = enrolment.getLatestFinalNormalEnrolmentEvaluation();
        row.setCell(normal == null ? "" : normal.getGradeValue());
        final EnrolmentEvaluation special = enrolment.getLatestFinalSpecialSeasonEnrolmentEvaluation();
        row.setCell(special == null ? "" : special.getGradeValue());
        final EnrolmentEvaluation improvement = enrolment.getLatestFinalImprovementEnrolmentEvaluation();
        row.setCell(improvement == null ? "" : improvement.getGradeValue());

        row.setCell(registration.getRegistrationProtocol().getCode());
        row.setCell(countPreviousEnrolments(curricularCourse, executionSemesterForPreviousEnrolmentCount, student));
        Attends attends = null; // enrolment.getAttendsFor(executionSemester);
        for (final Attends a : enrolment.getAttendsSet()) {
View Full Code Here

    @Override
    protected void fillReport() {
        addParameter("markSheet", markSheet);
        addParameter("checkSum", FenixDigestUtils.getPrettyCheckSum(markSheet.getCheckSum()));
        if (markSheet.isRectification()) {
            final EnrolmentEvaluation rectification = markSheet.getEnrolmentEvaluationsSet().iterator().next();
            addParameter("rectification", rectification);
            addParameter("rectified", rectification.getRectified());
        } else {
            List<EnrolmentEvaluation> evaluations = new ArrayList<EnrolmentEvaluation>(markSheet.getEnrolmentEvaluationsSet());
            Collections.sort(evaluations, EnrolmentEvaluation.SORT_BY_STUDENT_NUMBER);
            addDataSourceElements(evaluations);
        }
View Full Code Here

    }

    public ActionForward rectifyMarkSheetStepOneByEvaluation(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        DynaActionForm form = (DynaActionForm) actionForm;
        EnrolmentEvaluation enrolmentEvaluation = getDomainObject(form, "evaluationID");
        MarkSheetRectifyBean rectifyBean = new MarkSheetRectifyBean();
        rectifyBean.setEnrolmentEvaluation(enrolmentEvaluation);
        fillMarkSheetRectifyBean(actionForm, request, rectifyBean);

        request.setAttribute("rectifyBean", rectifyBean);
View Full Code Here

    }

    public ActionForward rectifyMarkSheetStepOneByEvaluation(ActionMapping mapping, ActionForm actionForm,
            HttpServletRequest request, HttpServletResponse response) {
        DynaActionForm form = (DynaActionForm) actionForm;
        EnrolmentEvaluation enrolmentEvaluation = getDomainObject(form, "evaluationID");
        MarkSheet markSheet = enrolmentEvaluation.getMarkSheet();
        MarkSheetRectifyBean rectifyBean = new MarkSheetRectifyBean();
        rectifyBean.setMarkSheet(markSheet);
        rectifyBean.setEnrolmentEvaluation(enrolmentEvaluation);
        return rectifyMarkSheetStepOne(mapping, actionForm, request, response, rectifyBean, enrolmentEvaluation);
    }
View Full Code Here

            ActionMessages actionMessages = new ActionMessages();
            addMessage(request, actionMessages, "error.no.student", studentNumber.toString());
            return prepareRectifyMarkSheet(mapping, actionForm, request, response);
        }
        MarkSheet markSheet = rectifyBean.getMarkSheet();
        EnrolmentEvaluation enrolmentEvaluation = markSheet.getEnrolmentEvaluationByStudent(student);

        if (enrolmentEvaluation == null) {
            ActionMessages actionMessages = new ActionMessages();
            addMessage(request, actionMessages, "error.no.student.in.markSheet", studentNumber.toString());
            return prepareRectifyMarkSheet(mapping, actionForm, request, response);
        }
        if (!enrolmentEvaluation.getEnrolmentEvaluationState().equals(EnrolmentEvaluationState.FINAL_OBJ)
                && !enrolmentEvaluation.getEnrolmentEvaluationState().equals(EnrolmentEvaluationState.RECTIFICATION_OBJ)) {
            ActionMessages actionMessages = new ActionMessages();
            addMessage(request, actionMessages, "error.markSheet.student.alreadyRectified", studentNumber.toString());
            return prepareRectifyMarkSheet(mapping, actionForm, request, response);
        }
        return rectifyMarkSheetStepOne(mapping, actionForm, request, response, rectifyBean, enrolmentEvaluation);
View Full Code Here

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

        DynaActionForm form = (DynaActionForm) actionForm;
        EnrolmentEvaluation enrolmentEvaluation = getDomainObject(form, "evaluationID");
        Enrolment enrolment = enrolmentEvaluation.getEnrolment();

        List<EnrolmentEvaluation> rectifiedAndRectificationEvaluations =
                enrolment.getConfirmedEvaluations(enrolmentEvaluation.getMarkSheet().getMarkSheetType());
        if (!rectifiedAndRectificationEvaluations.isEmpty()) {
            request.setAttribute("enrolmentEvaluation", rectifiedAndRectificationEvaluations.remove(0));
            request.setAttribute("rectificationEvaluations", rectifiedAndRectificationEvaluations);
        }
View Full Code Here

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

        DynaActionForm form = (DynaActionForm) actionForm;
        EnrolmentEvaluation enrolmentEvaluation = getDomainObject(form, "evaluationID");
        MarkSheet markSheet = enrolmentEvaluation.getRectificationMarkSheet();

        request.setAttribute("markSheet", markSheet);
        request.setAttribute("url", buildUrl(form));

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

    private List<EnrolmentEvaluation> getEvaluationsToRemove(DynaActionForm actionForm) {
        List<EnrolmentEvaluation> res = new ArrayList<EnrolmentEvaluation>();
        String[] evaluationsToRemove = (String[]) actionForm.get("evaluationsToRemove");
        for (String eeID : evaluationsToRemove) {
            EnrolmentEvaluation enrolmentEvaluation = FenixFramework.getDomainObject(eeID);
            if (enrolmentEvaluation != null) {
                res.add(enrolmentEvaluation);
            }
        }
        return res;
View Full Code Here

TOP

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

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.