Commit 1b189c0a authored by didonet's avatar didonet
Browse files

Update in the pdf that lists transcripts per section.

parent db7e9c2d
......@@ -499,7 +499,7 @@ public class Transcript {
response.setContentType("application/pdf");
//left,right,top,bottom margins
Document document = new Document(PageSize.A4, 80, 80, 80, 80);
float[] colswidth = {2f,1f,1f};
float[] colswidth = {2f,1f,1f,1f,1f};
PdfPTable table = new PdfPTable(colswidth);
Paragraph p;
......@@ -515,7 +515,8 @@ public class Transcript {
}
document.open();
p = new Paragraph(sg.getCourse().getCode()+" - "+sg.getCourse().getName()+" - "+sg.getSectionYear().toString()+"/"+sg.getPeriod().toString(),ReportUtil.getTitleTextFont());
p = new Paragraph(sg.getCourse().getCode()+" - "+sg.getCourse().getName()+" - "+sg.getSectionYear().toString()+
"/"+sg.getPeriod().toString(),ReportUtil.getTitleTextFont());
document.add(p);
// p = new Paragraph(sg.getSectionYear().toString()+"/"+sg.getPeriod().toString(),ReportUtil.getTitleTextFont());
// document.add(p);
......@@ -535,6 +536,12 @@ public class Transcript {
cell = new PdfPCell(new Paragraph("Conceito", ReportUtil.getTableTitleTextFont()));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(cell);
cell = new PdfPCell(new Paragraph("Nota", ReportUtil.getTableTitleTextFont()));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(cell);
cell = new PdfPCell(new Paragraph("Frequencia", ReportUtil.getTableTitleTextFont()));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(cell);
for(Transcript t:l){
cell = new PdfPCell(new Paragraph(t.getStudent().getStudent().getName(), ReportUtil.getTableTextFont()));
table.addCell(cell);
......@@ -546,6 +553,15 @@ public class Transcript {
cell = new PdfPCell(new Paragraph(convertConcept(t.concept), ReportUtil.getTableTextFont()));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(cell);
cell = new PdfPCell(new Paragraph(t.getGrade().toString(), ReportUtil.getTableTextFont()));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(cell);
cell = new PdfPCell(new Paragraph(t.getFrequency().toString(), ReportUtil.getTableTextFont()));
cell.setHorizontalAlignment(Element.ALIGN_CENTER);
table.addCell(cell);
}
document.add(table);
......
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