Examples of IGrade


Examples of org.fenixedu.academic.domain.curriculum.IGrade

            if (enrolment.isFirstTime()) {
                firstEnrolledCount++;

                if (evaluation != null && evaluation.getEnrollmentStateByGrade() == EnrollmentState.APROVED) {
                    firstApprovedCount++;
                    IGrade grade = evaluation.getGradeWrapper();
                    firstApprovedGrades.add(grade);
                    totalApprovedGrades.add(grade);
                    totalApprovedCount++;
                }
            } else {
                restEnrolledCount++;
                if (evaluation != null && evaluation.getEnrollmentStateByGrade() == EnrollmentState.APROVED) {
                    restApprovedCount++;
                    IGrade grade = evaluation.getGradeWrapper();
                    restApprovedGrades.add(grade);
                    totalApprovedGrades.add(grade);
                    totalApprovedCount++;
                }
            }
        }

        IGrade firstApprovedAverage = calculateApprovedAverage(firstApprovedGrades);
        IGrade restApprovedAverage = calculateApprovedAverage(restApprovedGrades);
        IGrade totalApprovedAverage = calculateApprovedAverage(totalApprovedGrades);

        courseStatistics.setFirstEnrolledCount(firstEnrolledCount);
        courseStatistics.setFirstApprovedCount(firstApprovedCount);
        courseStatistics.setFirstApprovedAverage(firstApprovedAverage);
View Full Code Here

Examples of org.fenixedu.academic.domain.curriculum.IGrade

            public HtmlComponent createComponent(Object object, Class type) {
                if (object == null) {
                    return new HtmlText(RenderUtils.getResourceString("ENUMERATION_RESOURCES", "msg.enrolled"));
                }

                IGrade grade = (IGrade) object;
                switch (grade.getGradeType()) {
                case GRADENA:
                case GRADERE:
                case GRADEAP:
                    return new HtmlText(RenderUtils.getResourceString("ENUMERATION_RESOURCES", grade.getGradeType().toString()));
                case GRADEFIVE:
                case GRADETWENTY:
                    return new HtmlText(((Integer) grade.getGradeValue()).toString());
                }

                return new HtmlText("");
            }
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.