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
ff98cb64
Commit
ff98cb64
authored
Aug 22, 2025
by
wangxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
cde6fec1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
16 deletions
+19
-16
ComProjectTaskServiceImpl.java
...boshi/science/service/impl/ComProjectTaskServiceImpl.java
+2
-0
TaskInfoToPDFUtil.java
...ain/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
+16
-15
ComProjectAuditDAO.xml
...ce-admin/src/main/resources/mapper/ComProjectAuditDAO.xml
+1
-1
No files found.
science-admin/src/main/java/com/yiboshi/science/service/impl/ComProjectTaskServiceImpl.java
View file @
ff98cb64
...
@@ -412,6 +412,8 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
...
@@ -412,6 +412,8 @@ public class ComProjectTaskServiceImpl extends BaseServiceImpl<ComProjectTaskDAO
if
(
null
!=
e
.
getFileExplain
()
&&
e
.
getFileExplain
().
equals
(
p
.
getName
()))
{
if
(
null
!=
e
.
getFileExplain
()
&&
e
.
getFileExplain
().
equals
(
p
.
getName
()))
{
e
.
setShowIndex
(
p
.
getDisplayOrder
());
e
.
setShowIndex
(
p
.
getDisplayOrder
());
e
.
setRequired
(
true
);
e
.
setRequired
(
true
);
if
(
e
.
getFileExplain
().
equals
(
"课题组成员签名表"
))
e
.
setIsRequired
(
true
);
num
.
incrementAndGet
();
num
.
incrementAndGet
();
}
}
});
});
...
...
science-admin/src/main/java/com/yiboshi/science/utils/TaskInfoToPDFUtil.java
View file @
ff98cb64
...
@@ -133,7 +133,7 @@ public class TaskInfoToPDFUtil {
...
@@ -133,7 +133,7 @@ public class TaskInfoToPDFUtil {
private
static
void
fillInInstructions
(
Document
document
,
BaseFont
bfChinese
,
BaseFont
fsChinese
)
throws
DocumentException
{
private
static
void
fillInInstructions
(
Document
document
,
BaseFont
bfChinese
,
BaseFont
fsChinese
)
throws
DocumentException
{
document
.
newPage
();
document
.
newPage
();
Paragraph
instructionTitle
=
new
Paragraph
(
"填写说明"
,
new
Font
(
fsChinese
,
1
6
,
Font
.
BOLD
));
Paragraph
instructionTitle
=
new
Paragraph
(
"填写说明"
,
new
Font
(
fsChinese
,
1
4
,
Font
.
BOLD
));
instructionTitle
.
setAlignment
(
Element
.
ALIGN_CENTER
);
instructionTitle
.
setAlignment
(
Element
.
ALIGN_CENTER
);
document
.
add
(
instructionTitle
);
document
.
add
(
instructionTitle
);
// 添加填写说明内容
// 添加填写说明内容
...
@@ -146,7 +146,7 @@ public class TaskInfoToPDFUtil {
...
@@ -146,7 +146,7 @@ public class TaskInfoToPDFUtil {
"七、“科技报告类型”,包括项目验收前撰写的全面描述研究过程和技术内容的最终科技报告、项目年度或中期检查时撰写的描述本年度研究过程和进展的年度技术进展报告以及在项目实施过程中撰写的包含科研活动细节及基础数据的专题科技报告。科技报告“公开类别及时限”分为公开或延期公开,内容需要发表论文、申请专利、出版专著或涉及技术诀窍的,可标注为延期公开需要发表论文的,延期公开时限原则上在2年(含2年)以内;需要申请专利、出版专著的,延期公开时限原则上在3年(含3年)以内;涉及技术诀窍的,延期公开时限原则上在5年(含5年)以内(涉密项目科技报告按照有关规定管理)"
,
"七、“科技报告类型”,包括项目验收前撰写的全面描述研究过程和技术内容的最终科技报告、项目年度或中期检查时撰写的描述本年度研究过程和进展的年度技术进展报告以及在项目实施过程中撰写的包含科研活动细节及基础数据的专题科技报告。科技报告“公开类别及时限”分为公开或延期公开,内容需要发表论文、申请专利、出版专著或涉及技术诀窍的,可标注为延期公开需要发表论文的,延期公开时限原则上在2年(含2年)以内;需要申请专利、出版专著的,延期公开时限原则上在3年(含3年)以内;涉及技术诀窍的,延期公开时限原则上在5年(含5年)以内(涉密项目科技报告按照有关规定管理)"
,
"八、省财政资金支出的预算计划应按照国家及省相关规定执行。重大、重点项目的预算计划应吸纳经费评审时提出的调整意见。"
,
"八、省财政资金支出的预算计划应按照国家及省相关规定执行。重大、重点项目的预算计划应吸纳经费评审时提出的调整意见。"
,
};
};
Font
contentFont
=
new
Font
(
bfChinese
,
1
6
,
Font
.
NORMAL
);
Font
contentFont
=
new
Font
(
bfChinese
,
1
4
,
Font
.
NORMAL
);
for
(
String
instruction
:
instructions
)
{
for
(
String
instruction
:
instructions
)
{
Paragraph
para
=
new
Paragraph
(
instruction
,
contentFont
);
Paragraph
para
=
new
Paragraph
(
instruction
,
contentFont
);
para
.
setAlignment
(
Element
.
ALIGN_LEFT
);
para
.
setAlignment
(
Element
.
ALIGN_LEFT
);
...
@@ -241,19 +241,19 @@ public class TaskInfoToPDFUtil {
...
@@ -241,19 +241,19 @@ public class TaskInfoToPDFUtil {
addCell
(
projTable
,
"分 工"
,
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
"分 工"
,
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
"签字"
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
"签字"
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
for
(
int
i
=
dto
.
get
CooperativeUnits
()
!=
null
?
dto
.
getCooperativ
eUnits
().
size
()
:
0
;
i
<
2
;
i
++)
{
for
(
int
i
=
dto
.
get
ParticipateUnits
()
!=
null
?
dto
.
getParticipat
eUnits
().
size
()
:
0
;
i
<
2
;
i
++)
{
if
(
dto
.
get
Cooperativ
eUnits
()
==
null
)
{
if
(
dto
.
get
Participat
eUnits
()
==
null
)
{
List
<
ComProjectCooperativeUnitsDTO
>
list
=
new
ArrayList
<>();
List
<
ComProjectCooperativeUnitsDTO
>
list
=
new
ArrayList
<>();
dto
.
set
Cooperativ
eUnits
(
list
);
dto
.
set
Participat
eUnits
(
list
);
}
}
dto
.
get
Cooperativ
eUnits
().
add
(
new
ComProjectCooperativeUnitsDTO
());
dto
.
get
Participat
eUnits
().
add
(
new
ComProjectCooperativeUnitsDTO
());
}
}
for
(
int
i
=
0
;
i
<
dto
.
get
Cooperativ
eUnits
().
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
dto
.
get
Participat
eUnits
().
size
();
i
++)
{
addCell
(
projTable
,
String
.
valueOf
(
i
+
1
),
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
String
.
valueOf
(
i
+
1
),
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
dto
.
get
Cooperativ
eUnits
().
get
(
i
).
getUnitName
(),
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
dto
.
get
Participat
eUnits
().
get
(
i
).
getUnitName
(),
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
dto
.
get
Cooperativ
eUnits
().
get
(
i
).
getUnitAddress
(),
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
dto
.
get
Participat
eUnits
().
get
(
i
).
getUnitAddress
(),
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
dto
.
get
Cooperativ
eUnits
().
get
(
i
).
getOrganizationCode
(),
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
dto
.
get
Participat
eUnits
().
get
(
i
).
getOrganizationCode
(),
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
dto
.
get
Cooperativ
eUnits
().
get
(
i
).
getProjectWork
(),
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
dto
.
get
Participat
eUnits
().
get
(
i
).
getProjectWork
(),
2
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
""
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
projTable
,
""
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
}
}
document
.
add
(
projTable
);
document
.
add
(
projTable
);
...
@@ -970,7 +970,7 @@ public class TaskInfoToPDFUtil {
...
@@ -970,7 +970,7 @@ public class TaskInfoToPDFUtil {
ComFileDTO
e
=
dto
.
getFileList
().
get
(
i
);
ComFileDTO
e
=
dto
.
getFileList
().
get
(
i
);
addCell
(
fileTable
,
i
+
1
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
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
.
getFileExplain
(),
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
e
.
getIsRequired
()
?
"是"
:
"否
"
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
"1
"
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
""
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
addCell
(
fileTable
,
""
,
null
,
null
,
normalFont
,
null
,
null
,
Element
.
ALIGN_CENTER
);
}
}
document
.
add
(
fileTable
);
document
.
add
(
fileTable
);
...
@@ -980,7 +980,8 @@ public class TaskInfoToPDFUtil {
...
@@ -980,7 +980,8 @@ public class TaskInfoToPDFUtil {
document
.
newPage
();
document
.
newPage
();
Font
titleFont
=
new
Font
(
bfChinese
,
14
f
,
Font
.
BOLD
);
Font
titleFont
=
new
Font
(
bfChinese
,
14
f
,
Font
.
BOLD
);
Font
normalFont
=
new
Font
(
bfChinese
,
10.5f
,
Font
.
NORMAL
);
Font
normalFont
=
new
Font
(
bfChinese
,
10.5f
,
Font
.
NORMAL
);
Font
contentFont
=
new
Font
(
bfChinese
,
12
f
,
Font
.
NORMAL
);
// Font contentFont = new Font(bfChinese, 12f, Font.NORMAL);
Font
contentFont
=
new
Font
(
bfChinese
,
14
,
Font
.
NORMAL
);
// 添加标题
// 添加标题
addSection
(
document
,
"十、共同条款"
,
titleFont
);
addSection
(
document
,
"十、共同条款"
,
titleFont
);
...
@@ -1006,9 +1007,9 @@ public class TaskInfoToPDFUtil {
...
@@ -1006,9 +1007,9 @@ public class TaskInfoToPDFUtil {
Paragraph
para
=
new
Paragraph
(
term
,
contentFont
);
Paragraph
para
=
new
Paragraph
(
term
,
contentFont
);
para
.
setAlignment
(
Element
.
ALIGN_LEFT
);
para
.
setAlignment
(
Element
.
ALIGN_LEFT
);
para
.
setFirstLineIndent
(
28
f
);
// 设置首行缩进
para
.
setFirstLineIndent
(
28
f
);
// 设置首行缩进
para
.
setLeading
(
24
f
);
// 设置行间距
//
para.setLeading(24f); // 设置行间距
document
.
add
(
para
);
document
.
add
(
para
);
document
.
add
(
new
Paragraph
(
"\n"
));
// 添加段落间距
//
document.add(new Paragraph("\n")); // 添加段落间距
}
}
}
}
...
...
science-admin/src/main/resources/mapper/ComProjectAuditDAO.xml
View file @
ff98cb64
...
@@ -43,7 +43,7 @@
...
@@ -43,7 +43,7 @@
SELECT
SELECT
a.*,c.id proj_id,c.proj_name,c.proj_no,c.version_no,c.app_no,c.proj_class,c.start_date,c.end_date,c.proj_state,d.unit_name app_unit_name,e.person_name app_person_name
a.*,c.id proj_id,c.proj_name,c.proj_no,c.version_no,c.app_no,c.proj_class,c.start_date,c.end_date,c.proj_state,d.unit_name app_unit_name,e.person_name app_person_name
FROM com_project_audit a
FROM com_project_audit a
left join com_project_t
est
b on a.audit_object_id=b.id
left join com_project_t
ask
b on a.audit_object_id=b.id
left join com_project c on b.proj_id=c.id
left join com_project c on b.proj_id=c.id
left join com_unit d on c.app_unit_id=d.id
left join com_unit d on c.app_unit_id=d.id
left join com_person e on c.app_person_id=e.id
left join com_person e on c.app_person_id=e.id
...
...
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