Commit d6855395 by baochunxin

#G:导出pdf新增辅导老师

parent d509cee7
......@@ -26,6 +26,8 @@ import yangtz.cs.liu.campus.domain.schoolAnnualAssessment.SchoolAnnualAssessment
import yangtz.cs.liu.campus.domain.schoolNewTeacherDzdn.*;
import yangtz.cs.liu.campus.service.impl.teacherFiles.IdCardNumberUtils;
import yangtz.cs.liu.campus.service.schoolNewTeacherDzdn.SchoolTeacherBasichlnformationService;
import yangtz.cs.liu.campus.vo.fudao.FudaoStudentVo;
import yangtz.cs.liu.campus.vo.fudao.FudaoTeacherVo;
import yangtz.cs.liu.campus.vo.schoolNewTeacherDzdn.SchoolXteachingAchievementsVo;
......@@ -686,6 +688,76 @@ public class SchoolTeacherBasiclnformationController extends BaseController {
PDFUtil.addPdfPCell(date.getOther(), cellcoentFont, pdfCell, pdfPTablegk, 20);
}
document.add(pdfPTablegk);
//8.表格 辅导老师获奖
PdfPTable pdfPTablfdteacher = PDFUtil.getPdfPTable(10, 100, 1500);
Chunk qtchunfdteacher = PDFUtil.getChunk("辅导老师获奖", font);
Paragraph qtParagrfdteacher= PDFUtil.getParagraph(qtchunfdteacher, Element.ALIGN_LEFT, 0, null);
qtParagrfdteacher.setSpacingAfter(5f);
qtParagrfdteacher.setLeading(15f); //行间距
qtParagrfdteacher.setSpacingBefore(10f); //设置段落上空白
document.add(qtParagrfdteacher);
List<FudaoTeacherVo> fudaoTeacher = comprehensive.getFudaoTeacher();
PDFUtil.addPdfPTitleCell("成长类型", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("学科", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("获奖类别", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("获奖级别", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("班级类比赛名称", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("获奖人", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("指导教师", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("辅导职责", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("主办单位", cellFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPTitleCell("获奖时间", cellFont, pdfCell, pdfPTablfdteacher, 20);
for (FudaoTeacherVo date: fudaoTeacher){
PDFUtil.addPdfPCell("辅导老师获奖", cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(sysDictDataService.selectDictLabel("sub_dzdn",date.getSub()), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(sysDictDataService.selectDictLabel("award_type_fdjs",date.getAwardtype()), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(sysDictDataService.selectDictLabel("awards_level",date.getAwardrank()), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(date.getCompetitionname(), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(date.getUsername(), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(date.getGuidanceteacher(), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(sysDictDataService.selectDictLabel("coachingr",date.getCoachingr()), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(date.getOrg(), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
PDFUtil.addPdfPCell(dateConversionString(date.getAwardtime()), cellcoentFont, pdfCell, pdfPTablfdteacher, 20);
}
document.add(pdfPTablfdteacher);
//8.表格 辅导学生获奖
PdfPTable pdfPTablfdStudent = PDFUtil.getPdfPTable(10, 100, 1500);
Chunk qtchunfdStudent = PDFUtil.getChunk("辅导学生获奖", font);
Paragraph qtParagrfdStudent= PDFUtil.getParagraph(qtchunfdStudent, Element.ALIGN_LEFT, 0, null);
qtParagrfdStudent.setSpacingAfter(5f);
qtParagrfdStudent.setLeading(15f); //行间距
qtParagrfdStudent.setSpacingBefore(10f); //设置段落上空白
document.add(qtParagrfdStudent);
List<FudaoStudentVo> fudaoStudent = comprehensive.getFudaoStudent();
PDFUtil.addPdfPTitleCell("成长类型", cellFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPTitleCell("学科", cellFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPTitleCell("获奖类别", cellFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPTitleCell("获奖级别", cellFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPTitleCell("班级类比赛名称", cellFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPTitleCell("获奖人", cellFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPTitleCell("指导教师", cellFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPTitleCell("主办单位", cellFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPTitleCell("获奖时间", cellFont, pdfCell, pdfPTablfdStudent, 20);
for (FudaoStudentVo date: fudaoStudent){
PDFUtil.addPdfPCell("辅导学生获奖", cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPCell(sysDictDataService.selectDictLabel("sub_dzdn",date.getSub()), cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPCell(sysDictDataService.selectDictLabel("award_type_fdjs",date.getAwardtype()), cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPCell(sysDictDataService.selectDictLabel("awards_level",date.getAwardrank()), cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPCell(date.getResultname(), cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPCell(date.getUsername(), cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPCell(date.getGuidanceteacher(), cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPCell(date.getOrg(), cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
PDFUtil.addPdfPCell(dateConversionString(date.getAwardtime()), cellcoentFont, pdfCell, pdfPTablfdStudent, 20);
}
document.add(pdfPTablfdStudent);
//导出
PDFUtil.exportPDF(document, response, outStream);
}catch (Exception e){
......
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