Examples of ThesisPresentationState


Examples of org.fenixedu.academic.ui.struts.action.coordinator.thesis.ThesisPresentationState

        for (final Thesis thesis : getRootDomainObject().getThesesSet()) {
            final Enrolment enrolment = thesis.getEnrolment();
            final ExecutionSemester executionPeriod = enrolment.getExecutionPeriod();
            if (executionPeriod.getExecutionYear() == executionYear) {
                final ThesisPresentationState thesisPresentationState =
                        ThesisPresentationState.getThesisPresentationState(thesis);;

                final Degree degree = enrolment.getStudentCurricularPlan().getDegree();
                final DegreeType degreeType = degree.getDegreeType();

                final Row row = spreadsheet.addRow();
                row.setCell(thesis.getStudent().getNumber().toString());
                row.setCell(thesis.getStudent().getPerson().getName());
                row.setCell(degreeType.getLocalizedName());
                row.setCell(degree.getPresentationName());
                row.setCell(degree.getSigla());
                row.setCell(thesis.getTitle().getContent());
                row.setCell(thesisPresentationState.getName());

                addTeacherRows(thesis, row, ThesisParticipationType.ORIENTATOR);
                addTeacherRows(thesis, row, ThesisParticipationType.COORIENTATOR);
            }
        }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.coordinator.thesis.ThesisPresentationState

            HttpServletResponse response) throws Exception {
        final Thesis thesis = getThesis(request);
        request.setAttribute("thesis", thesis);

        if (thesis != null) {
            final ThesisPresentationState thesisPresentationState = ThesisPresentationState.getThesisPresentationState(thesis);
            request.setAttribute("thesisPresentationState", thesisPresentationState);
            request.setAttribute("degreeID", thesis.getDegree().getExternalId());
            request.setAttribute("executionYearID", thesis.getExecutionYear().getExternalId());
        }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.coordinator.thesis.ThesisPresentationState

        Thesis thesis = getThesis(request);

        if (thesis != null) {
            try {
                ApproveThesisProposal.runApproveThesisProposal(thesis);
                final ThesisPresentationState thesisPresentationState =
                        ThesisPresentationState.getThesisPresentationState(thesis);
                request.setAttribute("thesisPresentationState", thesisPresentationState);
            } catch (final DomainException e) {
                addActionMessage("error", request, e.getKey(), e.getArgs());
                return reviewProposal(mapping, actionForm, request, response);
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.coordinator.thesis.ThesisPresentationState

        if (thesis != null) {
            try {
                ApproveThesisDiscussion.runApproveThesisDiscussion(thesis);
                addActionMessage("mail", request, "thesis.evaluated.mail.sent");
                final ThesisPresentationState thesisPresentationState =
                        ThesisPresentationState.getThesisPresentationState(thesis);
                request.setAttribute("thesisPresentationState", thesisPresentationState);
            } catch (DomainException e) {
                addActionMessage("error", request, e.getKey(), e.getArgs());
                return reviewThesis(mapping, actionForm, request, response);
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.coordinator.thesis.ThesisPresentationState

        for (final Thesis thesis : rootDomainObject.getThesesSet()) {
            final Enrolment enrolment = thesis.getEnrolment();
            final ExecutionSemester executionSemester = enrolment.getExecutionPeriod();
            if (executionSemester.getExecutionYear() == executionYear) {
                final ThesisPresentationState thesisPresentationState =
                        ThesisPresentationState.getThesisPresentationState(thesis);

                final Degree degree = enrolment.getStudentCurricularPlan().getDegree();
                final DegreeType degreeType = degree.getDegreeType();

                final Row row = spreadsheet.addRow();
                row.setCell(thesis.getStudent().getNumber().toString());
                row.setCell(thesis.getStudent().getPerson().getName());
                row.setCell(degreeType.getLocalizedName());
                row.setCell(degree.getPresentationName(executionYear));
                row.setCell(degree.getSigla());
                row.setCell(thesis.getTitle().getContent());
                row.setCell(thesisPresentationState.getName());

                if (thesis.getDiscussed() != null) {
                    row.setCell(thesis.getDiscussed().toDate().toString());
                }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.coordinator.thesis.ThesisPresentationState

                            curricularCourses.add(curricularCourse);
                            for (final CurriculumModule curriculumModule : curricularCourse.getCurriculumModulesSet()) {
                                if (curriculumModule.isEnrolment()) {
                                    final Enrolment enrolment = (Enrolment) curriculumModule;
                                    if (enrolment.getExecutionYear() == executionYear) {
                                        final ThesisPresentationState state =
                                                ThesisPresentationState.getThesisPresentationState(enrolment);
                                        if (presentationState == null || state == presentationState) {
                                            result.add(enrolment);
                                        }
                                        thesisPresentationStateCountMap.count(state);
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.coordinator.thesis.ThesisPresentationState

    private void setThesisCount() {
        DegreeCurricularPlan degreeCurricularPlan = getDegreeCurricularPlan();
        ExecutionYear executionYear = getExecutionDegree().getExecutionYear().getNextExecutionYear();
        for (Enrolment enrolment : degreeCurricularPlan.getDissertationEnrolments(executionYear)) {
            ThesisPresentationState state = ThesisPresentationState.getThesisPresentationState(enrolment.getThesis());
            if (!thesisExcludedStates.contains(state)) {
                incThesis(state);
            }
        }
    }
View Full Code Here

Examples of org.fenixedu.academic.ui.struts.action.coordinator.thesis.ThesisPresentationState

        final String thesisIdString = request.getParameter("thesisID");

        final Thesis thesis = FenixFramework.getDomainObject(thesisIdString);
        request.setAttribute("thesis", thesis);

        final ThesisPresentationState thesisPresentationState = ThesisPresentationState.getThesisPresentationState(thesis);;
        request.setAttribute("thesisPresentationState", thesisPresentationState);

        return mapping.findForward("viewThesis");
    }
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.