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
db6118b1
Commit
db6118b1
authored
Aug 19, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
4e6ac35f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
80 additions
and
153 deletions
+80
-153
ComProjectAuditServiceImpl.java
...oshi/science/service/impl/ComProjectAuditServiceImpl.java
+1
-1
TaskInfoToPDFUtil.java
...ain/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
+79
-152
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectAuditServiceImpl.java
View file @
db6118b1
...
@@ -98,7 +98,7 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
...
@@ -98,7 +98,7 @@ public class ComProjectAuditServiceImpl extends BaseServiceImpl<ComProjectAuditD
criteria
.
like
(
"cert_id"
,
vo
.
getCertId
());
criteria
.
like
(
"cert_id"
,
vo
.
getCertId
());
}
}
if
(
Objects
.
nonNull
(
vo
.
getAppPersonName
()))
{
if
(
Objects
.
nonNull
(
vo
.
getAppPersonName
()))
{
criteria
.
like
(
"person_name"
,
vo
.
getAppPersonName
());
criteria
.
like
(
"
e.
person_name"
,
vo
.
getAppPersonName
());
}
}
if
(
Objects
.
nonNull
(
vo
.
getCheckYear
()))
{
if
(
Objects
.
nonNull
(
vo
.
getCheckYear
()))
{
criteria
.
eq
(
"check_year"
,
vo
.
getCheckYear
());
criteria
.
eq
(
"check_year"
,
vo
.
getCheckYear
());
...
...
science-admin/src/main/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
View file @
db6118b1
...
@@ -2,6 +2,7 @@ package com.yiboshi.science.utils;
...
@@ -2,6 +2,7 @@ package com.yiboshi.science.utils;
import
com.itextpdf.text.*
;
import
com.itextpdf.text.*
;
import
com.itextpdf.text.pdf.*
;
import
com.itextpdf.text.pdf.*
;
import
com.yiboshi.science.enumeration.CommonEnum
;
import
com.yiboshi.science.param.dto.*
;
import
com.yiboshi.science.param.dto.*
;
import
java.io.ByteArrayOutputStream
;
import
java.io.ByteArrayOutputStream
;
...
@@ -951,39 +952,28 @@ public class TaskInfoToPDFUtil {
...
@@ -951,39 +952,28 @@ public class TaskInfoToPDFUtil {
fileTable
.
setWidthPercentage
(
100
);
fileTable
.
setWidthPercentage
(
100
);
// 表头
// 表头
addCell
(
fileTable
,
"序号"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
fileTable
,
"序号"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
"附件名称"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
fileTable
,
"附件名称"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
"份数"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
fileTable
,
"份数"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
"备注"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
fileTable
,
"备注"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_CENTER
);
// 附件列表内容
if
(
dto
.
getFileList
()
==
null
||
dto
.
getFileList
().
size
()
<
1
)
{
String
[][]
attachments
=
{
for
(
int
i
=
dto
.
getFileList
()
!=
null
?
dto
.
getFileList
().
size
()
:
0
;
i
<
1
;
i
++)
{
{
"1"
,
"项目申请书"
,
"1"
,
""
},
if
(
dto
.
getFileList
()
==
null
)
{
{
"2"
,
"项目可行性研究报告"
,
"1"
,
""
},
List
<
ComFileDTO
>
list
=
new
ArrayList
<>();
{
"3"
,
"项目预算书"
,
"1"
,
""
},
dto
.
setFileList
(
list
);
{
"4"
,
"项目组成员简历"
,
"1"
,
""
},
}
{
"5"
,
"项目承担单位资质证明"
,
"1"
,
""
},
dto
.
getFileList
().
add
(
new
ComFileDTO
());
{
"6"
,
"项目合作协议(如有合作单位)"
,
"1"
,
""
},
}
{
"7"
,
"项目技术方案"
,
"1"
,
""
},
}
{
"8"
,
"项目进度计划"
,
"1"
,
""
},
for
(
int
i
=
0
;
i
<
dto
.
getFileList
().
size
();
i
++)
{
{
"9"
,
"项目风险分析报告"
,
"1"
,
""
},
ComFileDTO
e
=
dto
.
getFileList
().
get
(
i
);
{
"10"
,
"项目预期成果说明"
,
"1"
,
""
}
addCell
(
fileTable
,
i
+
1
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
};
addCell
(
fileTable
,
e
.
getFileExplain
(),
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
e
.
getIsRequired
()
?
"是"
:
"否"
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
for
(
String
[]
attachment
:
attachments
)
{
addCell
(
fileTable
,
""
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
attachment
[
0
],
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
fileTable
,
attachment
[
1
],
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
fileTable
,
attachment
[
2
],
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
fileTable
,
attachment
[
3
],
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
}
}
document
.
add
(
fileTable
);
document
.
add
(
fileTable
);
// 添加说明文字
Paragraph
note
=
new
Paragraph
(
"注:以上附件为项目合同书的重要组成部分,请按要求提供完整材料。"
,
new
Font
(
bfChinese
,
10
f
,
Font
.
NORMAL
));
note
.
setSpacingBefore
(
20
f
);
note
.
setFirstLineIndent
(
28
f
);
document
.
add
(
note
);
}
}
private
static
void
addCommonTerms
(
Document
document
,
ComProjectTaskDTO
dto
,
BaseFont
bfChinese
,
BaseFont
fsChinese
)
throws
DocumentException
{
private
static
void
addCommonTerms
(
Document
document
,
ComProjectTaskDTO
dto
,
BaseFont
bfChinese
,
BaseFont
fsChinese
)
throws
DocumentException
{
...
@@ -997,31 +987,19 @@ public class TaskInfoToPDFUtil {
...
@@ -997,31 +987,19 @@ public class TaskInfoToPDFUtil {
// 共同条款内容
// 共同条款内容
String
[]
commonTerms
=
{
String
[]
commonTerms
=
{
"第一条 签约各方本着平等互利、诚实信用的原则,依据《中华人民共和国合同法》和国家有关法律、法规,经协商一致,订立本合同,作为甲、乙双方在项目实施和管理过程中共同遵守的依据。"
,
"第一条 签约各方本着平等互利、诚实信用的原则,依据《中华人民共和国合同法》和国家有关法律、法规,经协商一致,订立本合同,作为甲、乙双方在项目实施和管理过程中共同遵守的依据。"
,
"第二条 甲方权利和义务:1. 按合同约定拨付资金,协调相关工作。2. 按合同约定对乙方项目实施情况和资金到位使用情况进行监督检查。"
,
"第二条 甲方权利和义务:\n1. 按合同约定拨付资金,协调相关工作。\n2. 按合同约定对乙方项目实施情况和资金到位使用情况进行监督检查。"
,
"第三条 乙方权利和义务:1. 落实自筹资金,为项目实施提供技术和条件保障。2. 规范财务管理,确保甲方拨付资金专款专用,设立专账进行明细核算,并与预算进行核对。3. 接受甲方对项目实施和资金使用情况的中期评估、绩效考核和现场检查。4. 在项目期间按要求向甲方提交年度项目及预算执行报告。5. 按规定申请项目验收或终止,配合甲方项目验收要求。"
,
"第四条 在合同履行过程中,如遇有关政策法规重大变化或不可抗力事件,甲方有权调整拨付资金的数量和时机。对分期拨付的项目,甲方有权根据项目研究进展、中期评估、乙方信用、审计结果和运行状况等情况,减少或停止后续拨付。如因非不可抗力因素导致项目未履行或未完成,或因乙方责任导致项目终止,甲方有权终止项目合同。甲方可收回未使用和不符合规定的财政资金。如乙方拒不退回资金,甲方可通过法律途径追回。"
,
"第三条 乙方权利和义务:\n1. 落实自筹资金,为项目实施提供技术和条件保障。\n2. 规范财务管理,确保甲方拨付资金专款专用,设立专账进行明细核算,并与预算进行核对。\n3. 接受甲方对项目实施和资金使用情况的中期评估、绩效考核和现场检查。\n4. 在项目期间按要求向甲方提交年度项目及预算执行报告。\n5. 按规定申请项目验收或终止,配合甲方项目验收要求。"
,
"第五条 在合同履行过程中,一方发现可能导致项目整体或部分失败的情况时,应及时通知另一方,并采取适当措施减少损失。如未及时通知并采取适当措施,导致损失扩大的,应就扩大的损失承担责任。"
,
"第六条 在合同履行过程中,任何一方不得擅自变更或修改合同内容。"
,
"第四条 在合同履行过程中,如遇有关政策法规重大变化或不可抗力事件,甲方有权调整拨付资金的数量和时机。对分期拨付的项目,甲方有权根据项目研究进展、中期评估、乙方信用、审计结果和运行状况等情况,减少或停止后续拨付。如因非不可抗力因素导致项目未履行或未完成,或因乙方责任导致项目终止,甲方有权终止项目合同。甲方可收回未使用和不符合规定的财政资金。如乙方拒不退回资金,甲方可通过法律途径追回。"
,
"第七条 项目获得的科技成果(知识产权)归属、成果转让、实施技术成果产生的经济效益分享等事项,除双方另有约定外,按国家和云南省有关规定执行。如项目涉及多个(含两个)参与单位,乙方应在签订本合同前与涉及单位就合作任务和知识产权分配等事项签订相关合同或协议,并作为本合同附件。"
,
"第八条 乙方应依法依规、诚实守信地开展相关科研活动。如发生严重科研诚信失信行为,甲方将按照《云南省科技厅项目管理办法》《云南省科技计划项目资金管理办法》等相关规定处理。甲方有权按照相关规定将乙方和项目负责人的科研诚信信息向其他行政管理部门或社会公开。"
,
"第五条 在合同履行过程中,一方发现可能导致项目整体或部分失败的情况时,应及时通知另一方,并采取适当措施减少损失。如未及时通知并采取适当措施,导致损失扩大的,应就扩大的损失承担责任。"
,
"第九条 涉及技术保密的项目,甲方和乙方应另行签订技术保密条款,作为本合同正式内容的组成部分,具有同等法律效力。"
,
"第十条 本合同未尽事宜,按国家和省有关科技项目和经费管理的相关规定执行。"
,
"第六条 在合同履行过程中,任何一方不得擅自变更或修改合同内容。"
,
"第十一条 因本合同引起的争议,双方应协商解决。协商不成的,由甲方所在地法院管辖。"
,
"第十二条 本合同经甲方、乙方、丙方签字盖章后生效。甲方执两份,乙方、丙方各执一份,具有同等法律效力。"
,
"第七条 项目获得的科技成果(知识产权)归属、成果转让、实施技术成果产生的经济效益分享等事项,除双方另有约定外,按国家和云南省有关规定执行。如项目涉及多个(含两个)参与单位,乙方应在签订本合同前与涉及单位就合作任务和知识产权分配等事项签订相关合同或协议,并作为本合同附件。"
,
"第十三条 各方补充条款。"
"第八条 乙方应依法依规、诚实守信地开展相关科研活动。如发生严重科研诚信失信行为,甲方将按照《云南省科技厅项目管理办法》《云南省科技计划项目资金管理办法》等相关规定处理。甲方有权按照相关规定将乙方和项目负责人的科研诚信信息向其他行政管理部门或社会公开。"
,
"第九条 涉及技术保密的项目,甲方和乙方应另行签订技术保密条款,作为本合同正式内容的组成部分,具有同等法律效力。"
,
"第十条 本合同未尽事宜,按国家和省有关科技项目和经费管理的相关规定执行。"
,
"第十一条 因本合同引起的争议,双方应协商解决。协商不成的,由甲方所在地法院管辖。"
,
"第十二条 本合同经甲方、乙方、丙方签字盖章后生效。甲方执两份,乙方、丙方各执一份,具有同等法律效力。"
,
"第十三条 各方补充条款:"
};
};
for
(
String
term
:
commonTerms
)
{
for
(
String
term
:
commonTerms
)
{
...
@@ -1043,103 +1021,52 @@ public class TaskInfoToPDFUtil {
...
@@ -1043,103 +1021,52 @@ public class TaskInfoToPDFUtil {
// 添加标题
// 添加标题
addSection
(
document
,
"十一、合同书各责任方"
,
titleFont
);
addSection
(
document
,
"十一、合同书各责任方"
,
titleFont
);
// 甲方部分
Paragraph
partyATitle
=
new
Paragraph
(
"甲方(项目下达单位)"
,
new
Font
(
bfChinese
,
13
f
,
Font
.
BOLD
));
partyATitle
.
setSpacingBefore
(
20
f
);
partyATitle
.
setSpacingAfter
(
15
f
);
document
.
add
(
partyATitle
);
// 创建甲方表格
// 创建甲方表格
PdfPTable
partyATable
=
new
PdfPTable
(
4
);
PdfPTable
table
=
new
PdfPTable
(
2
);
partyATable
.
setWidths
(
new
float
[]{
120
f
,
200
f
,
120
f
,
200
f
});
table
.
setWidths
(
new
float
[]{
35
f
,
65
f
});
partyATable
.
setWidthPercentage
(
100
);
table
.
setWidthPercentage
(
100
);
// 甲方经办人签字
addCell
(
partyATable
,
"经办人签字:"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
table
,
"甲方(项目下达单位)"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyATable
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
table
,
""
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyATable
,
"年 月 日"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyATable
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
String
commonTerms
=
"\n\n\n\n\n\n\n"
+
" 经办人签字: 法定代表人(或授权代表): \n\n"
// 甲方法定代表人签字
+
" 年 月 日 年 月 日 "
;
addCell
(
partyATable
,
"法定代表人(或授权代表):"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
Paragraph
para
=
new
Paragraph
(
commonTerms
,
normalFont
);
addCell
(
partyATable
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
para
.
setAlignment
(
Element
.
ALIGN_LEFT
);
addCell
(
partyATable
,
"年 月 日"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
para
.
setSpacingBefore
(
40
f
);
addCell
(
partyATable
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
// para.setSpacingAfter(15f);
document
.
add
(
partyATable
);
PdfPCell
timeCell
=
new
PdfPCell
(
para
);
timeCell
.
setMinimumHeight
(
210
f
);
// 乙方部分
timeCell
.
setColspan
(
2
);
Paragraph
partyBTitle
=
new
Paragraph
(
"乙方(项目承担单位)"
,
new
Font
(
bfChinese
,
13
f
,
Font
.
BOLD
));
// timeCell.setVerticalAlignment(Element.ALIGN_MIDDLE);
partyBTitle
.
setSpacingBefore
(
30
f
);
timeCell
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
partyBTitle
.
setSpacingAfter
(
15
f
);
table
.
addCell
(
timeCell
);
document
.
add
(
partyBTitle
);
addCell
(
table
,
"乙方(项目承担单位)"
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
// 创建乙方表格 - 第一行:签字部分
addCell
(
table
,
""
,
null
,
null
,
labelFont
,
null
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
PdfPTable
partyBTable1
=
new
PdfPTable
(
6
);
partyBTable1
.
setWidths
(
new
float
[]{
120
f
,
200
f
,
120
f
,
200
f
,
120
f
,
200
f
});
String
terms
=
"\n\n\n\n\n\n"
partyBTable1
.
setWidthPercentage
(
100
);
+
" 法定代表人(或授权代表): 项目负责人(签字): 财务负责人(签字):\n\n"
+
" 年 月 日 年 月 日 年 月 日 \n\n"
// 乙方法定代表人签字
+
" 开户银行:\n\n"
addCell
(
partyBTable1
,
"法定代表人(或授权代表):"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
+
" 账号名称:\n\n"
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
+
" 银行账号:\n\n"
addCell
(
partyBTable1
,
"年 月 日"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
+
" (承担单位公章)\n\n"
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
+
" 年 月 日 \n\n"
;
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
Paragraph
ph
=
new
Paragraph
(
terms
,
normalFont
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
ph
.
setAlignment
(
Element
.
ALIGN_LEFT
);
ph
.
setSpacingBefore
(
40
f
);
// 项目负责人签字
addCell
(
partyBTable1
,
"项目负责人(签字):"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
PdfPCell
cell
=
new
PdfPCell
(
ph
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
cell
.
setMinimumHeight
(
300
f
);
addCell
(
partyBTable1
,
"年 月 日"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
cell
.
setColspan
(
2
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
cell
.
setHorizontalAlignment
(
Element
.
ALIGN_LEFT
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
table
.
addCell
(
cell
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
document
.
add
(
table
);
// 财务负责人签字
addCell
(
partyBTable1
,
"财务负责人(签字):"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable1
,
"年 月 日"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable1
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
document
.
add
(
partyBTable1
);
// 创建乙方表格 - 第二行:银行信息
PdfPTable
partyBTable2
=
new
PdfPTable
(
4
);
partyBTable2
.
setWidths
(
new
float
[]{
120
f
,
200
f
,
120
f
,
200
f
});
partyBTable2
.
setWidthPercentage
(
100
);
// 银行信息
addCell
(
partyBTable2
,
"开户银行:"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable2
,
dto
.
getDepositBank
()
!=
null
?
dto
.
getDepositBank
()
:
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable2
,
"账号名称:"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable2
,
dto
.
getAppUnitName
()
!=
null
?
dto
.
getAppUnitName
()
:
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable2
,
"银行账号:"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable2
,
dto
.
getBankAccount
()
!=
null
?
dto
.
getBankAccount
()
:
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable2
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable2
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
document
.
add
(
partyBTable2
);
// 创建乙方表格 - 第三行:公章和日期
PdfPTable
partyBTable3
=
new
PdfPTable
(
4
);
partyBTable3
.
setWidths
(
new
float
[]{
120
f
,
200
f
,
120
f
,
200
f
});
partyBTable3
.
setWidthPercentage
(
100
);
// 公章和日期
addCell
(
partyBTable3
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable3
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable3
,
"(承担单位公章)"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable3
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable3
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable3
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable3
,
"年 月 日"
,
null
,
null
,
labelFont
,
40
f
,
Element
.
ALIGN_CENTER
,
Element
.
ALIGN_MIDDLE
);
addCell
(
partyBTable3
,
""
,
null
,
null
,
normalFont
,
40
f
,
Element
.
ALIGN_LEFT
,
Element
.
ALIGN_MIDDLE
);
document
.
add
(
partyBTable3
);
}
}
private
static
String
numberTo
(
int
number
)
{
private
static
String
numberTo
(
int
number
)
{
...
...
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