Package org.fenixedu.academic.dto

Examples of org.fenixedu.academic.dto.InfoExecutionCourse


            }

        } else if (showOccupation instanceof InfoExam) {
            InfoExam infoExam = (InfoExam) showOccupation;
            for (int iterEC = 0; iterEC < infoExam.getAssociatedExecutionCourse().size(); iterEC++) {
                InfoExecutionCourse infoEC = infoExam.getAssociatedExecutionCourse().get(iterEC);
                if (iterEC != 0) {
                    strBuffer.append(", ");
                }
                strBuffer.append(infoEC.getSigla());
            }
            strBuffer.append(" - ");
            strBuffer.append(infoExam.getSeason().getSeason());
            strBuffer.append("ยช época");

        } else if (showOccupation instanceof InfoWrittenTest) {
            InfoWrittenTest infoWrittenTest = (InfoWrittenTest) showOccupation;
            for (int iterEC = 0; iterEC < infoWrittenTest.getAssociatedExecutionCourse().size(); iterEC++) {
                InfoExecutionCourse infoEC = infoWrittenTest.getAssociatedExecutionCourse().get(iterEC);
                if (iterEC != 0) {
                    strBuffer.append(", ");
                }
                strBuffer.append(infoEC.getSigla());
            }
            strBuffer.append(" - ");
            strBuffer.append(infoWrittenTest.getDescription());
        }
View Full Code Here


            Integer curicularYear = infoExam.getInfoExecutionCourse().getCurricularYear();

            if (curicularYear.equals(year1) || curicularYear.equals(year2)) {
                boolean isOnValidWeekDay = onValidWeekDay(infoExam);

                InfoExecutionCourse infoExecutionCourse = infoExam.getInfoExecutionCourse();
                String courseInitials = infoExam.getInfoExecutionCourse().getSigla();

                if (typeUser.equals("sop")) {
                    strBuffer.append("<a href='showExamsManagement.do?method=edit&amp;"
                            + PresentationConstants.EXECUTION_COURSE_OID + "=" + infoExecutionCourse.getExternalId() + "&amp;"
                            + PresentationConstants.EXECUTION_PERIOD_OID + "="
                            + infoExecutionCourse.getInfoExecutionPeriod().getExternalId() + "&amp;"
                            + PresentationConstants.EXECUTION_DEGREE_OID + "="
                            + examsMap.getInfoExecutionDegree().getExternalId() + "&amp;"
                            + PresentationConstants.CURRICULAR_YEAR_OID + "=" + curicularYear.toString() + "&amp;"
                            + PresentationConstants.EXAM_OID + "=" + infoExam.getExternalId() + "'>");
                    if (isOnValidWeekDay) {
                        strBuffer.append(courseInitials);
                    } else {
                        strBuffer.append("<span class='redtxt'>" + courseInitials + "</span>");
                    }

                } else if (typeUser.equals("public")) {

                    String siteUrl = infoExecutionCourse.getExecutionCourse().getSiteUrl();
                    siteUrl = siteUrl == null ? "#" : siteUrl;
                    strBuffer.append(GenericChecksumRewriter.NO_CHECKSUM_PREFIX);
                    strBuffer.append("<a href=\"");
                    strBuffer.append(siteUrl);
                    strBuffer.append("\">");
View Full Code Here

    private List<InfoExam> findExams(Calendar day, List executionCourses) {
        List<InfoExam> result = new ArrayList<InfoExam>();

        for (int i = 0; i < executionCourses.size(); i++) {
            InfoExecutionCourse infoExecutionCourse = (InfoExecutionCourse) executionCourses.get(i);
            List infoExams = infoExecutionCourse.getAssociatedInfoExams();

            for (int j = 0; j < infoExams.size(); j++) {
                InfoExam infoExam = (InfoExam) infoExams.get(j);

                if (sameDayAsExam(day, infoExam)) {
View Full Code Here

        InfoShowOccupation showOccupation = lessonSlot.getInfoLessonWrapper().getInfoShowOccupation();

        if (showOccupation instanceof InfoLesson) {

            InfoLesson lesson = (InfoLesson) showOccupation;
            final InfoExecutionCourse infoExecutionCourse = lesson.getInfoShift().getInfoDisciplinaExecucao();
            String siteUrl = infoExecutionCourse.getExecutionCourse().getSiteUrl();

            if (Strings.isNullOrEmpty(siteUrl)) {
                strBuffer.append(infoExecutionCourse.getSigla());
            } else {
                strBuffer.append(GenericChecksumRewriter.NO_CHECKSUM_PREFIX);
                strBuffer.append("<a href=\"").append(context);
                strBuffer.append(siteUrl);
                strBuffer.append("\">");
                strBuffer.append(infoExecutionCourse.getSigla()).append("</a>");
            }

            strBuffer.append("&nbsp;").append("&nbsp;(").append(lesson.getInfoShift().getShiftTypesCodePrettyPrint())
                    .append(")&nbsp;");

            final Space allocatableSpace = lesson.getAllocatableSpace();
            if (allocatableSpace != null) {
                strBuffer.append(allocatableSpace.getName());
            }

            return strBuffer;

        } else if (showOccupation instanceof InfoLessonInstance) {

            InfoLessonInstance lesson = (InfoLessonInstance) showOccupation;
            final InfoExecutionCourse infoExecutionCourse = lesson.getInfoShift().getInfoDisciplinaExecucao();
            String siteUrl = infoExecutionCourse.getExecutionCourse().getSiteUrl();

            if (Strings.isNullOrEmpty(siteUrl)) {
                strBuffer.append(infoExecutionCourse.getSigla());
            } else {
                strBuffer.append(GenericChecksumRewriter.NO_CHECKSUM_PREFIX);
                strBuffer.append("<a href=\"").append(context);
                strBuffer.append(siteUrl);
                strBuffer.append("\">");
                strBuffer.append(infoExecutionCourse.getSigla()).append("</a>");
            }
            strBuffer.append("&nbsp;").append("&nbsp;(").append(lesson.getShiftTypeCodesPrettyPrint()).append(")&nbsp;");

            if (lesson.getInfoRoomOccupation() != null) {
                strBuffer.append(lesson.getInfoRoomOccupation().getInfoRoom().getNome());
View Full Code Here

            }

            Collections.sort(examsMap.getExecutionCourses(), new BeanComparator("sigla"));
            String rowClass = "notFirstRow"; // used for CSS style
            for (int i = 0; i < examsMap.getExecutionCourses().size(); i++) {
                InfoExecutionCourse infoExecutionCourse = (InfoExecutionCourse) examsMap.getExecutionCourses().get(i);

                if (user.equals("sop")) {
                    strBuffer.append("<table border='1' cellspacing='0' cellpadding='3' width='95%'>");
                    strBuffer.append("<tr>");
                }

                if (i == 0) {
                    rowClass = "firstRow";
                }

                if (infoExecutionCourse.getCurricularYear().equals(curricularYear)) {
                    boolean showCreateExamLink = infoExecutionCourse.getAssociatedInfoExams().size() < 2;
                    if (user.equals("sop")) {
                        strBuffer.append("<td colspan='6'>");
                    }

                    if (user.equals("public")) {
                        strBuffer.append("<tr valign='top'>");
                        strBuffer.append("<td class='" + rowClass + "'>");

                        String siteUrl = infoExecutionCourse.getExecutionCourse().getSiteUrl();
                        siteUrl = siteUrl == null ? "" : siteUrl;
                        strBuffer.append(GenericChecksumRewriter.NO_CHECKSUM_PREFIX);
                        strBuffer.append("<a href=\"");
                        strBuffer.append(siteUrl);
                        strBuffer.append("\">");

                    } else if (showCreateExamLink && user.equals("sop")) {
                        strBuffer.append("<a href='" + addPublicPrefix("showExamsManagement.do") + "?method=createByCourse&amp;"
                                + PresentationConstants.EXECUTION_COURSE_OID + "=" + infoExecutionCourse.getExternalId()
                                + "&amp;" + PresentationConstants.EXECUTION_PERIOD_OID + "="
                                + infoExecutionCourse.getInfoExecutionPeriod().getExternalId() + "&amp;"
                                + PresentationConstants.EXECUTION_DEGREE_OID + "="
                                + examsMap.getInfoExecutionDegree().getExternalId() + "&amp;"
                                + PresentationConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString() + "'>");
                    }

                    strBuffer.append(infoExecutionCourse.getSigla());
                    strBuffer.append(" - ");
                    strBuffer.append(infoExecutionCourse.getNome());

                    if (user.equals("public")) {
                        strBuffer.append("</a>");
                        strBuffer.append("</td>");
                    }

                    boolean hasComment =
                            infoExecutionCourse.getComment() != null && infoExecutionCourse.getComment().length() > 0
                                    && !infoExecutionCourse.getComment().equals(" ");

                    if (hasComment) {
                        if (user.equals("sop")) {
                            strBuffer.append(" : ");
                            strBuffer.append("<a href='" + addPublicPrefix("defineComment.do") + "?executionCourseCode=");
                            strBuffer.append(infoExecutionCourse.getSigla());
                            strBuffer
                                    .append("&amp;executionPeriodName=" + infoExecutionCourse.getInfoExecutionPeriod().getName());
                            strBuffer.append("&amp;executionYear="
                                    + infoExecutionCourse.getInfoExecutionPeriod().getInfoExecutionYear().getYear());
                            strBuffer.append("&amp;comment=" + infoExecutionCourse.getComment());
                            strBuffer.append("&amp;method=prepare");
                            strBuffer.append("&amp;indexExecutionCourse=" + i);
                            strBuffer.append("&amp;" + PresentationConstants.EXECUTION_PERIOD_OID + "="
                                    + infoExecutionCourse.getInfoExecutionPeriod().getExternalId() + "&amp;"
                                    + PresentationConstants.EXECUTION_DEGREE_OID + "="
                                    + examsMap.getInfoExecutionDegree().getExternalId() + getCurricularYearsArgs());
                            strBuffer.append("'>");
                        } else if (user.equals("public")) {
                            strBuffer.append("<td colspan='6' class='" + rowClass + "'><i>");
                        }

                        strBuffer.append(infoExecutionCourse.getComment());

                        if (user.equals("sop")) {
                            strBuffer.append("</a>");
                        } else if (user.equals("public")) {
                            strBuffer.append("</i></td>");
                        }

                    } else {
                        if (user.equals("sop")) {
                            strBuffer.append(" : ");
                            strBuffer.append("<a href='" + addPublicPrefix("defineComment.do") + "?executionCourseCode=");
                            strBuffer.append(infoExecutionCourse.getSigla());
                            strBuffer
                                    .append("&amp;executionPeriodName=" + infoExecutionCourse.getInfoExecutionPeriod().getName());
                            strBuffer.append("&amp;executionYear="
                                    + infoExecutionCourse.getInfoExecutionPeriod().getInfoExecutionYear().getYear());
                            strBuffer.append("&amp;method=prepare");
                            strBuffer.append("&amp;indexExecutionCourse=" + i);
                            strBuffer.append("&amp;" + PresentationConstants.EXECUTION_PERIOD_OID + "="
                                    + infoExecutionCourse.getInfoExecutionPeriod().getExternalId() + "&amp;"
                                    + PresentationConstants.EXECUTION_DEGREE_OID + "="
                                    + examsMap.getInfoExecutionDegree().getExternalId() + getCurricularYearsArgs());
                            strBuffer.append("'>");
                            strBuffer.append("Definir coment&aacute;rio");
                            strBuffer.append("</a>");
                        }
                    }

                    if (user.equals("sop")) {
                        strBuffer.append("</td>");
                        strBuffer.append("</tr>");
                    }

                    if (infoExecutionCourse.getAssociatedInfoExams().isEmpty() && !hasComment) {
                        strBuffer.append("<td colspan='6' align='center' class='" + rowClass + "'>");
                        strBuffer.append("<i>").append(getMessageResource(pageContext, "no.exams.for.curricular.year"))
                                .append("</i>");
                        strBuffer.append("</td>");
                    } else {
                        // Get 1st season exam
                        InfoExam season1Exam =
                                (InfoExam) CollectionUtils.find(infoExecutionCourse.getAssociatedInfoExams(), new Predicate() {
                                    @Override
                                    public boolean evaluate(Object obj) {
                                        InfoExam infoExam = (InfoExam) obj;
                                        return infoExam.getSeason().equals(new Season(Season.SEASON1));
                                    }
                                });
                        // Get 2nd season exam
                        InfoExam season2Exam =
                                (InfoExam) CollectionUtils.find(infoExecutionCourse.getAssociatedInfoExams(), new Predicate() {
                                    @Override
                                    public boolean evaluate(Object obj) {
                                        InfoExam infoExam = (InfoExam) obj;
                                        return infoExam.getSeason().equals(new Season(Season.SEASON2));
                                    }
                                });

                        if (user.equals("public")) {
                            if (season1Exam == null && !hasComment) {
                                strBuffer.append("<td colspan='3' class='" + rowClass + "'>&nbsp;</td>");
                            }
                            if (season2Exam == null && !hasComment) {
                                strBuffer.append("<td colspan='3' class='" + rowClass + "'>&nbsp;</td>");
                            }
                        }

                        if ((season1Exam != null)
                        // && season1Exam.getAssociatedRooms() != null
                        // && season1Exam.getAssociatedRooms().size() >
                        // 0)
                                || (season2Exam != null))
                        // && season2Exam.getAssociatedRooms() != null
                        // && season2Exam.getAssociatedRooms().size() > 0))
                        {
                            if (season1Exam != null) {
                                if (user.equals("sop")) {
                                    strBuffer.append("<tr>");
                                    strBuffer.append("<td>");

                                    strBuffer
                                            .append("<a href='" + addPublicPrefix("showExamsManagement.do") + "?method=edit&amp;"
                                                    + PresentationConstants.EXECUTION_COURSE_OID + "="
                                                    + infoExecutionCourse.getExternalId() + "&amp;"
                                                    + PresentationConstants.EXECUTION_PERIOD_OID + "="
                                                    + infoExecutionCourse.getInfoExecutionPeriod().getExternalId() + "&amp;"
                                                    + PresentationConstants.EXECUTION_DEGREE_OID + "="
                                                    + examsMap.getInfoExecutionDegree().getExternalId() + "&amp;"
                                                    + PresentationConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString()
                                                    + "&amp;" + PresentationConstants.EXAM_OID + "="
                                                    + season1Exam.getExternalId() + "'>");
                                }

                                if (user.equals("sop")) {
                                    strBuffer.append("1&ordf; &Eacute;poca");
                                    strBuffer.append("</a>");
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");
                                    strBuffer.append(season1Exam.getDate());
                                    strBuffer.append("<br/>");
                                    strBuffer.append(season1Exam.getBeginningHour());
                                    strBuffer.append("-");
                                    strBuffer.append(season1Exam.getEndHour());
                                } else if (user.equals("public")) {
                                    strBuffer.append("<td class='" + rowClass + "'>");
                                    strBuffer.append(season1Exam.getDate());
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td class='" + rowClass + "'>");
                                    strBuffer.append(season1Exam.getBeginningHour());
                                    strBuffer.append("</td>");
                                    // strBuffer.append("-");
                                    // strBuffer.append(season1Exam.getEndHour())
                                    // ;
                                }

                                if (user.equals("sop")) {
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");

                                    // Integer numAlunos =
                                    // infoExecutionCourse.
                                    // getNumberOfAttendingStudents();

                                    Integer numAlunos = season1Exam.getEnrolledStudents();

                                    strBuffer.append(numAlunos);
                                    strBuffer.append(getMessageResource(pageContext,
                                            "public.degree.information.label.enrolledPupils"));
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");
                                    strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.lack"));

                                    // Obter o num de lugares de exame das salas
                                    List roomOccupation = season1Exam.getWrittenEvaluationSpaceOccupations();
                                    int numLugaresSalas = 0;

                                    for (int iterRO = 0; iterRO < roomOccupation.size(); iterRO++) {
                                        InfoRoomOccupation infoRO = (InfoRoomOccupation) roomOccupation.get(iterRO);

                                        numLugaresSalas += infoRO.getInfoRoom().getCapacidadeExame().intValue();
                                    }

                                    int numLugaresAPreencher = numAlunos.intValue() - numLugaresSalas;

                                    // if (numLugaresAPreencher < 0)
                                    // numLugaresAPreencher = 0;

                                    strBuffer.append(numLugaresAPreencher);
                                    strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.places"));

                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");
                                }

                                List infoRoomOccupations = season1Exam.getWrittenEvaluationSpaceOccupations();

                                if (infoRoomOccupations != null && infoRoomOccupations.size() > 0) {
                                    if (user.equals("sop")) {
                                        strBuffer
                                                .append(getMessageResource(pageContext, "public.degree.information.label.rooms"));
                                        strBuffer.append("<br/>");
                                    } else if (user.equals("public")) {
                                        strBuffer.append("<td class='" + rowClass + "'>");
                                    }

                                    for (int iterIRO = 0; iterIRO < infoRoomOccupations.size(); iterIRO++) {
                                        InfoRoomOccupation infoRoomOccupation =
                                                (InfoRoomOccupation) infoRoomOccupations.get(iterIRO);

                                        strBuffer.append(infoRoomOccupation.getInfoRoom().getNome() + "; ");
                                    }
                                } else {
                                    if (user.equals("sop")) {
                                        strBuffer.append("-");
                                    } else if (user.equals("public")) {
                                        strBuffer.append("<td class='" + rowClass + "'>");
                                        strBuffer.append("<i>");
                                        strBuffer.append(getMessageResource(pageContext,
                                                "public.degree.information.label.noRoomsAttributed"));
                                        strBuffer.append("</i>");
                                    }
                                }

                                if (user.equals("sop")) {
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");

                                    strBuffer
                                            .append("<a href='" + addPublicPrefix("showExamsManagement.do")
                                                    + "?method=delete&amp;" + PresentationConstants.EXECUTION_COURSE_OID + "="
                                                    + infoExecutionCourse.getExternalId() + "&amp;"
                                                    + PresentationConstants.EXECUTION_PERIOD_OID + "="
                                                    + infoExecutionCourse.getInfoExecutionPeriod().getExternalId() + "&amp;"
                                                    + PresentationConstants.EXECUTION_DEGREE_OID + "="
                                                    + examsMap.getInfoExecutionDegree().getExternalId() + "&amp;"
                                                    + PresentationConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString()
                                                    + "&amp;" + PresentationConstants.EXAM_OID + "="
                                                    + season1Exam.getExternalId() + "'>");
                                    strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.delete"));
                                    strBuffer.append("</a>");
                                    strBuffer.append("</td>");
                                }
                            }

                            if (season2Exam != null) {
                                if (user.equals("sop")) {
                                    strBuffer.append("<tr>");

                                    strBuffer.append("<td>");

                                    strBuffer
                                            .append("<a href='" + addPublicPrefix("showExamsManagement.do") + "?method=edit&amp;"
                                                    + PresentationConstants.EXECUTION_COURSE_OID + "="
                                                    + infoExecutionCourse.getExternalId() + "&amp;"
                                                    + PresentationConstants.EXECUTION_PERIOD_OID + "="
                                                    + infoExecutionCourse.getInfoExecutionPeriod().getExternalId() + "&amp;"
                                                    + PresentationConstants.EXECUTION_DEGREE_OID + "="
                                                    + examsMap.getInfoExecutionDegree().getExternalId() + "&amp;"
                                                    + PresentationConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString()
                                                    + "&amp;" + PresentationConstants.EXAM_OID + "="
                                                    + season2Exam.getExternalId() + "'>");
                                }

                                if (user.equals("sop")) {
                                    strBuffer.append("2&ordf; ");
                                    strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.times"));
                                    strBuffer.append("</a>");
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");
                                    strBuffer.append(season2Exam.getDate());
                                    strBuffer.append("<br/>");
                                    strBuffer.append(season2Exam.getBeginningHour());
                                    strBuffer.append("-");
                                    strBuffer.append(season2Exam.getEndHour());
                                } else if (user.equals("public")) {
                                    strBuffer.append("<td class='" + rowClass + "'>");
                                    strBuffer.append(season2Exam.getDate());
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td class='" + rowClass + "'>");
                                    strBuffer.append(season2Exam.getBeginningHour());
                                    strBuffer.append("</td>");
                                    // strBuffer.append("-");
                                    // strBuffer.append(season2Exam.getEndHour())
                                    // ;
                                }

                                if (user.equals("sop")) {
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");
                                    // Integer numAlunos =
                                    // infoExecutionCourse.
                                    // getNumberOfAttendingStudents();
                                    Integer numAlunos = season2Exam.getEnrolledStudents();

                                    strBuffer.append(numAlunos);
                                    strBuffer.append(getMessageResource(pageContext,
                                            "public.degree.information.label.enrolledPupils"));

                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");
                                    strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.lack"));

                                    // Obter o num de lugares de exame das salas
                                    List roomOccupation = season2Exam.getWrittenEvaluationSpaceOccupations();
                                    int numLugaresSalas = 0;

                                    for (int iterRO = 0; iterRO < roomOccupation.size(); iterRO++) {
                                        InfoRoomOccupation infoRO = (InfoRoomOccupation) roomOccupation.get(iterRO);

                                        numLugaresSalas += infoRO.getInfoRoom().getCapacidadeExame().intValue();
                                    }

                                    int numLugaresAPreencher = numAlunos.intValue() - numLugaresSalas;

                                    // if (numLugaresAPreencher < 0)
                                    // numLugaresAPreencher = 0;

                                    strBuffer.append(numLugaresAPreencher);
                                    strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.places"));
                                    strBuffer.append("</td>");

                                    strBuffer.append("<td>");
                                }

                                List infoRoomOccupations = season2Exam.getWrittenEvaluationSpaceOccupations();

                                if (infoRoomOccupations != null && infoRoomOccupations.size() > 0) {
                                    if (user.equals("sop")) {
                                        strBuffer.append(getMessageResource(pageContext, "public.degree.information.label.rooms")
                                                + ":");
                                        strBuffer.append("<br/>");
                                    } else if (user.equals("public")) {
                                        strBuffer.append("<td class='" + rowClass + "'>");
                                    }

                                    for (int iterIRO = 0; iterIRO < infoRoomOccupations.size(); iterIRO++) {
                                        InfoRoomOccupation infoRoomOccupation =
                                                (InfoRoomOccupation) infoRoomOccupations.get(iterIRO);

                                        strBuffer.append(infoRoomOccupation.getInfoRoom().getNome() + "; ");
                                    }

                                    if (user.equals("public")) {
                                        strBuffer.append("</td>");
                                    }
                                } else {
                                    if (user.equals("sop")) {
                                        strBuffer.append("-");
                                    } else if (user.equals("public")) {
                                        strBuffer.append("<td class='" + rowClass + "'>");
                                        strBuffer.append("<i>");
                                        strBuffer.append(getMessageResource(pageContext,
                                                "public.degree.information.label.noRoomsAttributed"));
                                        strBuffer.append("</i>");
                                        strBuffer.append("</td>");
                                    }
                                }

                                if (user.equals("sop")) {
                                    strBuffer.append("</td>");
                                    strBuffer.append("<td>");
                                    strBuffer
                                            .append("<a href='" + addPublicPrefix("showExamsManagement.do")
                                                    + "?method=delete&amp;" + PresentationConstants.EXECUTION_COURSE_OID + "="
                                                    + infoExecutionCourse.getExternalId() + "&amp;"
                                                    + PresentationConstants.EXECUTION_PERIOD_OID + "="
                                                    + infoExecutionCourse.getInfoExecutionPeriod().getExternalId() + "&amp;"
                                                    + PresentationConstants.EXECUTION_DEGREE_OID + "="
                                                    + examsMap.getInfoExecutionDegree().getExternalId() + "&amp;"
                                                    + PresentationConstants.CURRICULAR_YEAR_OID + "=" + curricularYear.toString()
                                                    + "&amp;" + PresentationConstants.EXAM_OID + "="
                                                    + season2Exam.getExternalId() + "'>");
View Full Code Here

        renderExamsTableHeader(strBuffer, pageContext);

        Collections.sort(examsMap.getExecutionCourses(), new BeanComparator("nome"));

        for (int i = 0; i < examsMap.getExecutionCourses().size(); i++) {
            InfoExecutionCourse infoExecutionCourse = (InfoExecutionCourse) examsMap.getExecutionCourses().get(i);
            if (infoExecutionCourse.getCurricularYear().equals(year) && !infoExecutionCourse.getAssociatedInfoExams().isEmpty()) {
                strBuffer.append("<tr>");
                strBuffer.append("<td rowspan='2'>");
                strBuffer.append(infoExecutionCourse.getNome());
                strBuffer.append("</td>");

                writeLineForExecutionCourseAndExamOfSeason(strBuffer, infoExecutionCourse, Season.SEASON1);
                strBuffer.append("</tr>");
View Full Code Here

                    InfoProfessorship infoResponsibleFor = InfoProfessorship.newInfoFromDomain(responsibleFor);
                    return infoResponsibleFor;
                }
            });

            InfoExecutionCourse infoExecutionCourse = InfoExecutionCourse.newInfoFromDomain(executionCourse);
            throw new MaxResponsibleForExceed(infoExecutionCourse, infoResponsibleFors);
        }
    }
View Full Code Here

        request.setAttribute("curYear", curYear.getYear().toString());

        ExecutionDegree executionDegree = FenixFramework.getDomainObject(originExecutionDegreeId);
        request.setAttribute("originExecutionDegreeName", executionDegree.getPresentationName());

        InfoExecutionCourse infoExecutionCourse = ReadExecutionCourseWithShiftsAndCurricularCoursesByOID.run(executionCourseId);
        request.setAttribute("infoExecutionCourse", infoExecutionCourse);

        List executionDegrees =
                ReadExecutionDegreesByExecutionPeriodId.runForAcademicAdminAdv(infoExecutionCourse.getInfoExecutionPeriod()
                        .getExternalId());
        transformExecutionDegreesIntoLabelValueBean(executionDegrees);
        request.setAttribute("executionDegrees", executionDegrees);

        List curricularYears = RequestUtils.buildCurricularYearLabelValueBean();
View Full Code Here

        request.setAttribute("curYear", curYear.getYear().toString());

        ExecutionDegree executionDegree = FenixFramework.getDomainObject(originExecutionDegreeId);
        request.setAttribute("originExecutionDegreeName", executionDegree.getPresentationName());

        InfoExecutionCourse infoExecutionCourse = ReadExecutionCourseWithShiftsAndCurricularCoursesByOID.run(executionCourseId);
        request.setAttribute("infoExecutionCourse", infoExecutionCourse);

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

        String executionCourseId = (String) request.getAttribute("executionCourseId");
        if (executionCourseId == null) {
            executionCourseId = RequestUtils.getAndSetStringToRequest(request, "executionCourseId");
        }

        InfoExecutionCourse infoExecutionCourse;

        try {
            infoExecutionCourse = ReadInfoExecutionCourseByOID.run(executionCourseId);
        } catch (FenixServiceException e) {
            throw new FenixActionException(e);
        }

        if (infoExecutionCourse.getAssociatedInfoCurricularCourses() != null) {
            Collections.sort(infoExecutionCourse.getAssociatedInfoCurricularCourses(), new BeanComparator("name"));
        }

        request.setAttribute(PresentationConstants.EXECUTION_COURSE, infoExecutionCourse);

        // Setting bean for return to listExecutionCourseActions
View Full Code Here

TOP

Related Classes of org.fenixedu.academic.dto.InfoExecutionCourse

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.