Examples of PhdCandidacyRefereeLetter


Examples of org.fenixedu.academic.domain.phd.candidacy.PhdCandidacyRefereeLetter

        return page.toByteArray();
    }

    private static void letterInformation(final PhdCandidacyReferee referee, final Page page) throws IOException {

        final PhdCandidacyRefereeLetter letter = referee.getLetter();

        page.h(3, "Reference Letter", "mtop2");
        page.tableStart("tstyle2 thwhite thnowrap thlight thleft thtop ulnomargin");

        page.rowStart().headerStartWithStyle("width: 200px;").write("How long have you known the applicant?").headerEnd()
                .column(string(letter.getHowLongKnownApplicant()) + " months").rowEnd();
        page.rowStart().header("In what capacity?").column(string(letter.getCapacity())).rowEnd();
        page.rowStart().header("Comparison group:").column(string(letter.getComparisonGroup())).rowEnd();
        page.rowStart().header("Rank in class (if applicable):").column(string(letter.getRankInClass())).rowEnd();
        page.rowStart().header("Academic performance:").column(string(letter.getAcademicPerformance().getLocalizedName()))
                .rowEnd();
        page.rowStart().header("Social and Communication Skills:")
                .column(string(letter.getSocialAndCommunicationSkills().getLocalizedName())).rowEnd();
        page.rowStart().header("Potential to excel in a PhD:").column(string(letter.getPotencialToExcelPhd().getLocalizedName()))
                .rowEnd();

        page.rowStart().header("Recomendation letter:");
        if (letter.getFile() != null) {
            page.column(letter.getFile().getDisplayName() + " (file is inside documents zip file)");
        } else {
            page.column("-");
        }
        page.rowEnd();

        page.rowStart().header("Comments:").column(string(letter.getComments())).rowEnd();
        page.rowStart().header("Name:").column(string(letter.getRefereeName())).rowEnd();
        page.rowStart().header("Position/Title:").column(string(letter.getRefereePosition())).rowEnd();
        page.rowStart().header("Institution:").column(string(letter.getRefereeInstitution())).rowEnd();
        page.rowStart().header("Address:").column(string(letter.getRefereeInstitution())).rowEnd();
        page.rowStart().header("City:").column(string(letter.getRefereeCity())).rowEnd();
        page.rowStart().header("Zip code:").column(string(letter.getRefereeZipCode())).rowEnd();
        page.rowStart().header("Country:")
                .column(letter.getRefereeCountry() != null ? letter.getRefereeCountry().getLocalizedName().getContent() : "-")
                .rowEnd();
        page.rowStart().header("Email:").column(string(letter.getRefereeEmail())).rowEnd();

        page.tableEnd();
    }
View Full Code Here

Examples of org.fenixedu.academic.domain.phd.candidacy.PhdCandidacyRefereeLetter

                for (final PhdCandidacyReferee referee : process.getPhdCandidacyReferees()) {
                    final HSSFRow row = sheet.createRow(i++);

                    final String email = referee.getEmail();
                    final String name = referee.getName();
                    final PhdCandidacyRefereeLetter letter = referee.getLetter();

                    addCellValue(row, onNullEmptyString(processNumber), 0);
                    addCellValue(row, onNullEmptyString(name), 1);
                    addCellValue(row, onNullEmptyString(email), 2);
                    if (letter == null) {
                        addCellValue(row, "NO", 3);
                    } else {
                        addCellValue(row, "YES", 3);
                        addCellValue(row, onNullEmptyString(letter.getHowLongKnownApplicant()), 4);
                        addCellValue(row, onNullEmptyString(letter.getCapacity()), 5);
                        addCellValue(row, onNullEmptyString(letter.getComparisonGroup()), 6);
                        addCellValue(row, onNullEmptyString(letter.getRankInClass()), 7);

                        addCellValue(row, onNullEmptyString(letter.getAcademicPerformance().getLocalizedName()), 8);
                        addCellValue(row, onNullEmptyString(letter.getSocialAndCommunicationSkills()), 9);
                        addCellValue(row, onNullEmptyString(letter.getPotencialToExcelPhd()), 10);

                        addCellValue(row, onNullEmptyString(letter.getRefereeName()), 11);
                        addCellValue(row, onNullEmptyString(letter.getRefereePosition()), 12);
                        addCellValue(row, onNullEmptyString(letter.getRefereeInstitution()), 13);
                        addCellValue(row, onNullEmptyString(letter.getRefereeAddress()), 14);
                        addCellValue(row, onNullEmptyString(letter.getRefereeCity()), 15);
                        addCellValue(row, onNullEmptyString(letter.getRefereeZipCode()), 16);
                        addCellValue(row, onNullEmptyString(letter.getRefereeCountry().getLocalizedName().getContent()), 17);
                        addCellValue(row, onNullEmptyString(letter.getRefereeEmail()), 18);
                    }
                }
            }

        }
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.