Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
Y
yn-health-science
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
徐俊
yn-health-science
Commits
73f4d0b7
Commit
73f4d0b7
authored
Aug 25, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
91d40026
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
3 deletions
+31
-3
TaskInfoToPDFUtil.java
...ain/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
+31
-3
No files found.
science-admin/src/main/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
View file @
73f4d0b7
...
@@ -38,8 +38,7 @@ public class TaskInfoToPDFUtil {
...
@@ -38,8 +38,7 @@ public class TaskInfoToPDFUtil {
// 宋体
// 宋体
BaseFont
sfChinese
=
loadChineseFont
(
"simsun.ttc"
);
BaseFont
sfChinese
=
loadChineseFont
(
"simsun.ttc"
);
// 仿宋
// 仿宋
// BaseFont fsChinese = loadChineseFont("simfang.ttf");
BaseFont
fsChinese
=
loadChineseFont
(
"simfang.ttf"
);
BaseFont
fsChinese
=
loadChineseFont
(
"simsun.ttf"
);
// WINGDNG2
// WINGDNG2
BaseFont
WINGDNG2
=
loadChineseFont
(
"WINGDNG2.ttf"
);
BaseFont
WINGDNG2
=
loadChineseFont
(
"WINGDNG2.ttf"
);
...
@@ -241,7 +240,36 @@ public class TaskInfoToPDFUtil {
...
@@ -241,7 +240,36 @@ public class TaskInfoToPDFUtil {
addValueCell
(
projTable
,
"是否科技报告:"
,
2
,
dto
.
getIsTechnologyReport
().
equals
(
1
)
?
"是"
:
"否"
,
8
,
normalFont
,
null
,
null
,
null
);
addValueCell
(
projTable
,
"是否科技报告:"
,
2
,
dto
.
getIsTechnologyReport
().
equals
(
1
)
?
"是"
:
"否"
,
8
,
normalFont
,
null
,
null
,
null
);
addValueCell
(
projTable
,
"科技报告类型:"
,
2
,
""
,
8
,
normalFont
,
null
,
null
,
null
);
if
(
Objects
.
nonNull
(
dto
.
getIsTechnologyReport
())
&&
dto
.
getIsTechnologyReport
().
equals
(
1
))
{
String
commonTerms
=
"科技报告类型:"
;
Paragraph
para
=
new
Paragraph
(
commonTerms
,
normalFont
);
para
.
setAlignment
(
Element
.
ALIGN_LEFT
);
PdfPCell
timeCell
=
new
PdfPCell
(
para
);
timeCell
.
setMinimumHeight
(
25.5f
);
timeCell
.
setColspan
(
2
);
timeCell
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
timeCell
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
timeCell
.
setCellEvent
(
new
UniformBorderEvent
());
timeCell
.
setPadding
(
5
f
);
timeCell
.
setBorderColor
(
new
BaseColor
(
0
,
0
,
0
));
projTable
.
addCell
(
timeCell
);
String
terms
=
"立项报告 份数 "
+
dto
.
getProjectReport
()
+
" 进展报告 份数 "
+
dto
.
getProgressReport
()
+
" 专题报告 份数 "
+
dto
.
getSpecialReport
()
+
" 最终报告 份数 "
+
dto
.
getFinalReport
();
Paragraph
para2
=
new
Paragraph
(
terms
,
normalFont
);
para
.
setAlignment
(
Element
.
ALIGN_LEFT
);
PdfPCell
timeCell2
=
new
PdfPCell
(
para2
);
timeCell2
.
setMinimumHeight
(
25.5f
);
timeCell2
.
setColspan
(
8
);
timeCell2
.
setVerticalAlignment
(
Element
.
ALIGN_MIDDLE
);
timeCell2
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
timeCell2
.
setCellEvent
(
new
UniformBorderEvent
());
timeCell2
.
setPadding
(
5
f
);
timeCell2
.
setBorderColor
(
new
BaseColor
(
0
,
0
,
0
));
projTable
.
addCell
(
timeCell2
);
}
addCell
(
projTable
,
"项目主要参与单位及分工"
,
10
,
null
,
normalFont
,
null
,
null
,
null
);
addCell
(
projTable
,
"项目主要参与单位及分工"
,
10
,
null
,
normalFont
,
null
,
null
,
null
);
...
...
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