row.setCell(curricularCourse.getCompetenceCourse().getScientificAreaUnit().getName()); row.setCell(this.getFormatedMessage(enumerationResources, curricularCourse.getCompetenceCourse().getRegime().toString()));
if (curricularCourse.isOptional()) { row.setCell(""); row.setCell(""); row.setCell(""); row.setCell(""); row.setCell(""); row.setCell(""); } else { row.setCell(curricularCourse.getCompetenceCourse().getScientificAreaUnit().getName()); row.setCell(""); row.setCell(this.getFormatedMessage(enumerationResources, curricularCourse.getCompetenceCourse().getRegime().toString()));
    private void fillCurricularCourse(final Spreadsheet spreadsheet, CurricularCourse curricularCourse, CurricularPeriod curricularPeriod, String parentCourseGroupName) {        final Row row = spreadsheet.addRow();                row.setCell(curricularCourse.getName());        row.setCell(curricularCourse.getCompetenceCourse().getScientificAreaUnit().getName());        row.setCell(this.getFormatedMessage(enumerationResources, curricularCourse.getCompetenceCourse().getRegime().toString()));                StringBuilder loads = new StringBuilder();        loads.append(" C=").append(curricularCourse.getContactLoad(curricularPeriod)).append(" (h/semestre)");        loads.append(" TA=").append(curricularCourse.getAutonomousWorkHours(curricularPeriod)).append(" (h/semestre)");        loads.append(" Total=").append(curricularCourse.getTotalLoad(curricularPeriod));        row.setCell(loads.toString());        StringBuilder contact = new StringBuilder();        contact.append(" T=").append(curricularCourse.getTheoreticalHours(curricularPeriod));            contact.append(" TP=").append(curricularCourse.getProblemsHours(curricularPeriod));        contact.append(" PL=").append(curricularCourse.getLaboratorialHours(curricularPeriod));            contact.append(" TC=").append(curricularCourse.getFieldWorkHours(curricularPeriod));        contact.append(" S=").append(curricularCourse.getSeminaryHours());            contact.append(" E=").append(curricularCourse.getTrainingPeriodHours(curricularPeriod));        contact.append(" OT=").append(curricularCourse.getTutorialOrientationHours(curricularPeriod));            row.setCell(contact.toString());        row.setCell(curricularCourse.getEctsCredits(curricularPeriod).toString());        row.setCell("");        row.setCell(parentCourseGroupName);        row.setCell(curricularPeriod.getParent().getOrder().toString());        row.setCell(curricularPeriod.getOrder().toString());    }