Package org.fenixedu.academic.domain

Examples of org.fenixedu.academic.domain.Enrolment


            Map<CurricularCourse, Map<MarkSheetType, Collection<MarkSheetEnrolmentEvaluationBean>>> markSheetsInformation)
            throws InvalidArgumentsServiceException {

        Date nowDate = new Date();
        for (MarkSheetTeacherMarkBean markBean : submissionBean.getSelectedMarksToSubmit()) {
            final Enrolment enrolment = markBean.getAttends().getEnrolment();
            CurricularCourse curricularCourse = enrolment.getCurricularCourse();
            final Grade grade = getGrade(markBean.getAttends(), markBean, markBean.getEvaluationDate(), nowDate);

            addMarkSheetEvaluationBeanToMap(markSheetsInformation, curricularCourse, executionCourse,
                    new MarkSheetEnrolmentEvaluationBean(enrolment, markBean.getEvaluationDate(), grade));
        }
View Full Code Here


            if (curriculumLine.getExecutionPeriod().isAfter(getExecutionSemester())) {
                continue;
            }

            if (curriculumLine.isEnrolment()) {
                final Enrolment enrolment = (Enrolment) curriculumLine;

                totalECTS = totalECTS.add(enrolment.getEctsCreditsForCurriculum());

            } else if (curriculumLine.isDismissal()) {
                final Dismissal dismissal = (Dismissal) curriculumLine;

                if (dismissal.getCredits().isSubstitution()) {
                    for (final IEnrolment enrolment : dismissal.getSourceIEnrolments()) {
                        totalECTS = totalECTS.add(enrolment.getEctsCreditsForCurriculum());
                    }
                } else if (dismissal.getCredits().isEquivalence()) {
                    totalECTS = totalECTS.add(dismissal.getEctsCreditsForCurriculum());
                }
            } else {
View Full Code Here

        }

        private void calculateGrade(final CycleType cycleType, CurriculumModule module) {
            if (module.isLeaf()) {
                if (module.isEnrolment()) {
                    final Enrolment enrolment = (Enrolment) module;
                    final BigDecimal weigth = enrolment.getWeigthForCurriculum();
                    enrolledECTS = enrolledECTS.add(weigth);
                    if (enrolment.isApproved()) {
                        completedECTS = completedECTS.add(weigth);
                        if (cycleType == CycleType.FIRST_CYCLE) {
                            completedECTSCycle1 = completedECTSCycle1.add(weigth);
                        } else if (cycleType == CycleType.SECOND_CYCLE) {
                            completedECTSCycle2 = completedECTSCycle2.add(weigth);
                        }

                        final Grade grade = enrolment.getGrade();
                        if (grade.isNumeric()) {
                            final BigDecimal value = grade.getNumericValue();
                            factoredECTS = factoredECTS.add(weigth);
                            factoredGradeSum = factoredGradeSum.add(value.multiply(weigth));
                            if (cycleType == CycleType.FIRST_CYCLE) {
View Full Code Here

    @Atomic
    public static void run(final Integer studentNumber, final DegreeType degreeType, final String enrollmentId) {
        check(RolePredicates.MANAGER_OR_OPERATOR_PREDICATE);
        for (Registration registration : Registration.readByNumberAndDegreeType(studentNumber, degreeType)) {
            final Enrolment enrollment = registration.findEnrolmentByEnrolmentID(enrollmentId);
            if (enrollment != null) {
                for (EnrolmentEvaluation evaluation : enrollment.getEvaluationsSet()) {
                    evaluation.setEnrolmentEvaluationState(EnrolmentEvaluationState.TEMPORARY_OBJ);
                }

                final CurriculumGroup parentCurriculumGroup = enrollment.getCurriculumGroup();

                enrollment.delete();

                if (parentCurriculumGroup != null && parentCurriculumGroup.isDeletable()) {
                    parentCurriculumGroup.delete();
                }
View Full Code Here

        return readAllNonReimbursedInsuranceTransactionsByExecutionYear(executionYear).isEmpty();
    }

    final public Enrolment findEnrolmentByEnrolmentID(final String enrolmentID) {
        for (final StudentCurricularPlan studentCurricularPlan : getStudentCurricularPlansSet()) {
            final Enrolment enrolment = studentCurricularPlan.findEnrolmentByEnrolmentID(enrolmentID);
            if (enrolment != null) {
                return enrolment;
            }
        }
        return null;
View Full Code Here

    public void addAttendsTo(final ExecutionCourse executionCourse) {

        checkIfReachedAttendsLimit();

        if (getStudent().readAttendByExecutionCourse(executionCourse) == null) {
            final Enrolment enrolment =
                    findEnrolment(getActiveStudentCurricularPlan(), executionCourse, executionCourse.getExecutionPeriod());
            if (enrolment != null) {
                enrolment.createAttends(this, executionCourse);
            } else {
                Attends attends = getAttendsForExecutionCourse(executionCourse);
                if (attends != null) {
                    attends.delete();
                }
View Full Code Here

    }

    private Enrolment findEnrolment(final StudentCurricularPlan studentCurricularPlan, final ExecutionCourse executionCourse,
            final ExecutionSemester executionSemester) {
        for (final CurricularCourse curricularCourse : executionCourse.getAssociatedCurricularCoursesSet()) {
            final Enrolment enrolment =
                    studentCurricularPlan.getEnrolmentByCurricularCourseAndExecutionPeriod(curricularCourse, executionSemester);
            if (enrolment != null) {
                return enrolment;
            }
        }
View Full Code Here

        for (StudentCurricularPlan scp : getStudentCurricularPlansSet()) {
            if (degreeCurricularPlan != null && scp.getDegreeCurricularPlan() != degreeCurricularPlan) {
                continue;
            }

            Enrolment enrolment = scp.getLatestDissertationEnrolment();
            if (enrolment != null) {
                return enrolment;
            }
        }
View Full Code Here

        final ExecutionYear previousExecutionYear = executionDegree.getExecutionYear();
        if (previousExecutionYear.hasNextExecutionYear()) {
            final ExecutionYear executionYear = previousExecutionYear.getNextExecutionYear();
            for (final Attends attends : getAssociatedAttendsSet()) {
                if (attends.getExecutionYear() == executionYear && attends.getEnrolment() != null) {
                    final Enrolment enrolment = attends.getEnrolment();
                    if (enrolment.isDissertation()
                            && enrolment.getDegreeCurricularPlanOfDegreeModule() == executionDegree.getDegreeCurricularPlan()) {
                        return true;
                    }
                }
            }
        }
View Full Code Here

    public FenixCourseStudents(final ExecutionCourse executionCourse) {
        final Set<Attends> attendsSet = executionCourse.getAttendsSet();
        attendingCount = attendsSet.size();

        for (final Attends attends : attendsSet) {
            final Enrolment enrolment = attends.getEnrolment();
            if (enrolment != null) {
                enrolmentCount++;
            }

            students.add(new FenixCourseStudent(attends));
View Full Code Here

TOP

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

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.