Commit b90e1e91 authored by didonet's avatar didonet

Corrected bug in the transcript section report.

parent ae705e90
......@@ -87,12 +87,20 @@ public class Transcript {
}
public static String convertConcept(ConceptTranscript concept) {
if (concept == ConceptTranscript.Nulo)
if (concept == null || concept == ConceptTranscript.Nulo)
return " ";
else
return concept.toString();
}
private static String convertSituation(SituationTranscript situation) {
if (situation != null)
if(situation == SituationTranscript.Trancado || situation == SituationTranscript.Cancelado)
return situation.toString();
return " ";
}
public static void statementPdf(Registration reg, HttpServletResponse response) {
response.setContentType("application/pdf");
//left,right,top,bottom margins
......@@ -578,7 +586,9 @@ public class Transcript {
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(cell);
cell = new PdfPCell(new Paragraph(convertConcept(t.concept), ReportUtil.getTableTextFont()));
cell = new PdfPCell(new Paragraph(convertConcept(t.concept)+convertSituation(t.situation), ReportUtil.getTableTextFont()));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(cell);
......
......@@ -4,5 +4,7 @@ package br.ufpr.c3sl.sapos.models.scholar.enums;
public enum RegistrationKind {
Mestrado,
Doutorado,
Isolado;
Isolado,
PosDoutorado,
Sanduiche;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment