Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
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
4955bed5
Commit
4955bed5
authored
Feb 12, 2025
by
徐俊
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xujun
parent
ab7472df
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
ProjectInfoToPDF.java
...main/java/com/yiboshi/science/utils/ProjectInfoToPDF.java
+11
-0
No files found.
science-admin/src/main/java/com/yiboshi/science/utils/ProjectInfoToPDF.java
View file @
4955bed5
...
@@ -226,6 +226,11 @@ public class ProjectInfoToPDF {
...
@@ -226,6 +226,11 @@ public class ProjectInfoToPDF {
/**
/**
* 项目基本信息
* 项目基本信息
* @param document
* @param project
* @param bfChinese
* @param fsChinese
* @throws DocumentException
*/
*/
private
static
void
addProjectBasicTable
(
Document
document
,
ComProjectDTO
project
,
BaseFont
bfChinese
,
BaseFont
fsChinese
)
throws
DocumentException
{
private
static
void
addProjectBasicTable
(
Document
document
,
ComProjectDTO
project
,
BaseFont
bfChinese
,
BaseFont
fsChinese
)
throws
DocumentException
{
Font
labelFont
=
new
Font
(
bfChinese
,
12
,
Font
.
NORMAL
);
Font
labelFont
=
new
Font
(
bfChinese
,
12
,
Font
.
NORMAL
);
...
@@ -341,6 +346,12 @@ public class ProjectInfoToPDF {
...
@@ -341,6 +346,12 @@ public class ProjectInfoToPDF {
/**
/**
* 添加基本信息表格单元格
* 添加基本信息表格单元格
* @param table
* @param label
* @param value
* @param colspan
* @param labelFont
* @param valueFont
*/
*/
private
static
void
addBasicTableCell
(
PdfPTable
table
,
String
label
,
String
value
,
int
colspan
,
Font
labelFont
,
Font
valueFont
)
{
private
static
void
addBasicTableCell
(
PdfPTable
table
,
String
label
,
String
value
,
int
colspan
,
Font
labelFont
,
Font
valueFont
)
{
PdfPCell
labelCell
=
new
PdfPCell
(
new
Phrase
(
label
,
labelFont
));
PdfPCell
labelCell
=
new
PdfPCell
(
new
Phrase
(
label
,
labelFont
));
...
...
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