Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dd_school
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wangqi
dd_school
Commits
d6855395
Commit
d6855395
authored
Dec 22, 2023
by
baochunxin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#G:导出pdf新增辅导老师
parent
d509cee7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
72 additions
and
0 deletions
+72
-0
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/schoolNewTeacherDzdn/SchoolTeacherBasiclnformationController.java
+72
-0
No files found.
smart-campus/src/main/java/yangtz/cs/liu/campus/controller/schoolNewTeacherDzdn/SchoolTeacherBasiclnformationController.java
View file @
d6855395
...
...
@@ -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
(
5
f
);
qtParagrfdteacher
.
setLeading
(
15
f
);
//行间距
qtParagrfdteacher
.
setSpacingBefore
(
10
f
);
//设置段落上空白
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
(
5
f
);
qtParagrfdStudent
.
setLeading
(
15
f
);
//行间距
qtParagrfdStudent
.
setSpacingBefore
(
10
f
);
//设置段落上空白
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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment