Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-sunac-report
sunac_report
Commits
3321198b
Commit
3321198b
authored
Oct 09, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
导出pdf,jsp验证等修改
parent
2ce40995
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
ReportToPdfController.java
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
+4
-3
reportDeliver.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDeliver.jsp
+2
-2
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+2
-2
No files found.
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
View file @
3321198b
...
...
@@ -54,7 +54,8 @@ public class ReportToPdfController extends BaseController {
Font
textfont
=
new
Font
(
bfChinese
,
14
,
Font
.
NORMAL
);
//正常文字
Font
urlfont
=
new
Font
(
bfChinese
,
12
,
Font
.
NORMAL
);
//路径文字
//document是创建的文档,FileOutputStream是向文档中输入
PdfWriter
.
getInstance
(
document
,
new
FileOutputStream
(
GConstants
.
FILE_UPLOAD_DIR
+
"pdf/"
+
reportEntity
.
getReportProject
()+
"_"
+
reportEntity
.
getId
()+
".pdf"
));
//PdfWriter.getInstance(document, new FileOutputStream(GConstants.FILE_UPLOAD_DIR+"pdf/"+reportEntity.getReportProject()+"_"+reportEntity.getId()+".pdf"));
PdfWriter
.
getInstance
(
document
,
new
FileOutputStream
(
"E:/1.pdf"
));
//打开文档
document
.
open
();
Paragraph
pt1
=
new
Paragraph
(
"举报内容"
,
title
);
...
...
@@ -256,8 +257,8 @@ public class ReportToPdfController extends BaseController {
if
(
list
!=
null
&&
list
.
size
()
!=
0
)
{
for
(
ReportAttachmentEntity
reportAttachmentEntity
:
list
)
{
Chunk
chunk
=
new
Chunk
(
reportAttachmentEntity
.
getAttachmentPath
(),
urlfont
);
paragraphPath
1
.
add
(
chunk
);
paragraphPath
1
.
add
(
Chunk
.
NEWLINE
);
paragraphPath
2
.
add
(
chunk
);
paragraphPath
2
.
add
(
Chunk
.
NEWLINE
);
}
}
PdfPCell
supplementAttachment1
=
new
PdfPCell
(
paragraphPath2
);
...
...
src/main/webapp/WEB-INF/views/modules/report/reportDeliver.jsp
View file @
3321198b
...
...
@@ -40,7 +40,7 @@
}
},
error
:
function
(){
alert
(
"
数据错误
!"
);
alert
(
"
请选择需要移交的数据
!"
);
}
});
$
(
"#chooseDiv"
).
hide
();
...
...
@@ -187,7 +187,7 @@
$
(
"#userList"
).
html
(
$
(
data
));
},
error
:
function
(){
alert
(
"
请选择需要移交的数据
!"
);
alert
(
"
数据错误
!"
);
},
complete
:
function
()
{
$
(
"#btnSearch"
).
removeAttr
(
"disabled"
);
...
...
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
3321198b
...
...
@@ -189,9 +189,9 @@
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理成果文件:
</label>
<div
class=
"controls"
>
<form:hidden
id=
"
name
File"
path=
"dealAttachment"
htmlEscape=
"false"
<form:hidden
id=
"
deal
File"
path=
"dealAttachment"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge"
/>
<sys:ckfinder
input=
"
name
File"
type=
"files"
uploadPath=
"/file"
<sys:ckfinder
input=
"
deal
File"
type=
"files"
uploadPath=
"/file"
selectMultiple=
"true"
maxWidth=
"100"
maxHeight=
"100"
/>
<label
id=
"checkFile"
class=
"error"
style=
"display: none;"
>
必填信息
</label>
</div>
...
...
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