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
d79e6b73
Commit
d79e6b73
authored
Nov 02, 2017
by
java-lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存附件地址乱码
新增转为word文档功能
parent
de72a624
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
183 additions
and
175 deletions
+183
-175
ReportService.java
src/main/java/com/ejweb/modules/report/service/ReportService.java
+4
-0
ReportToWordController.java
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
+175
-171
reportDetail.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
+1
-1
reportList.jsp
src/main/webapp/WEB-INF/views/modules/report/reportList.jsp
+1
-1
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+2
-2
No files found.
src/main/java/com/ejweb/modules/report/service/ReportService.java
View file @
d79e6b73
...
...
@@ -95,6 +95,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
if
(
StringUtils
.
isNotBlank
(
fileName
))
{
reportAttachmentEntity
.
setAttachmentName
(
fileName
);
}
int
index
=
path
.
lastIndexOf
(
"/"
)+
1
;
path
=
path
.
substring
(
0
,
index
)
+
fileName
;
reportAttachmentEntity
.
setAttachmentPath
(
path
);
File
file
=
new
File
(
reportAttachmentEntity
.
getAttachmentPath
());
long
length
=
file
.
length
();
...
...
@@ -165,6 +167,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
if
(
StringUtils
.
isNotBlank
(
fileName
))
{
reportAttachmentEntity
.
setAttachmentName
(
fileName
);
}
int
index
=
path
.
lastIndexOf
(
"/"
)+
1
;
path
=
path
.
substring
(
0
,
index
)
+
fileName
;
reportAttachmentEntity
.
setAttachmentPath
(
path
);
File
file
=
new
File
(
reportAttachmentEntity
.
getAttachmentPath
());
long
length
=
file
.
length
();
...
...
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
View file @
d79e6b73
...
...
@@ -57,8 +57,8 @@ public class ReportToWordController {
if
(
reportProjectTitle
.
contains
(
"\\"
)){
reportProjectTitle
=
reportProjectTitle
.
replace
(
"\\"
,
"|"
);
}
// FileOutputStream out = new FileOutputStream(GConstants.FILE_UPLOAD_DIR+"pdf/"+reportProjectTitle+"_"+reportEntity.getId()+".pdf
");
FileOutputStream
out
=
new
FileOutputStream
(
"D:/1.docx"
);
FileOutputStream
out
=
new
FileOutputStream
(
GConstants
.
FILE_UPLOAD_DIR
+
"pdf/"
+
reportProjectTitle
+
"_"
+
reportEntity
.
getId
()+
".docx
"
);
//
FileOutputStream out = new FileOutputStream("D:/1.docx");
//添加标题
XWPFParagraph
titleParagraph
=
document
.
createParagraph
();
//设置段落居中
...
...
@@ -205,182 +205,186 @@ public class ReportToWordController {
XWPFRun
paragraphRun6
=
newLine6
.
createRun
();
paragraphRun6
.
setText
(
"\r"
);
//段落 第三段 举报信息补充
XWPFParagraph
paragraphSupplement
=
document
.
createParagraph
();
XWPFRun
runSupplement
=
paragraphSupplement
.
createRun
();
runSupplement
.
setText
(
"举报信息补充"
);
runSupplement
.
setColor
(
"696969"
);
runSupplement
.
setFontSize
(
16
);
//换行
XWPFParagraph
newLine4
=
document
.
createParagraph
();
XWPFRun
paragraphRun4
=
newLine4
.
createRun
();
paragraphRun4
.
setText
(
"\r"
);
//举报信息补充表格
XWPFTable
supplementInfoTable
=
document
.
createTable
();
//去表格边框
supplementInfoTable
.
getCTTbl
().
getTblPr
().
unsetTblBorders
();
//列宽自动分割
CTTblWidth
supplementInfoTableWidth
=
supplementInfoTable
.
getCTTbl
().
addNewTblPr
().
addNewTblW
();
supplementInfoTableWidth
.
setType
(
STTblWidth
.
AUTO
);
supplementInfoTableWidth
.
setW
(
BigInteger
.
valueOf
(
9072
));
//表格第一行
XWPFTableRow
supplementTitle
=
supplementInfoTable
.
getRow
(
0
);
supplementTitle
.
getCell
(
0
).
setText
(
"标题:"
);
supplementTitle
.
addNewTableCell
().
setText
(
reportEntity
.
getSupplementTitle
()==
null
?
""
:
reportEntity
.
getSupplementTitle
());
//表格第二行
XWPFTableRow
supplementCompany
=
supplementInfoTable
.
createRow
();
supplementCompany
.
getCell
(
0
).
setText
(
"被举报公司:"
);
supplementCompany
.
getCell
(
1
).
setText
(
reportEntity
.
getSupplementCompany
()
==
null
?
""
:
reportEntity
.
getSupplementCompany
());
//表格第三行
XWPFTableRow
supplementDepartment
=
supplementInfoTable
.
createRow
();
supplementDepartment
.
getCell
(
0
).
setText
(
"被举报部门:"
);
supplementDepartment
.
getCell
(
1
).
setText
(
reportEntity
.
getSupplementDepartment
()==
null
?
""
:
reportEntity
.
getSupplementDepartment
());
//表格第四行
XWPFTableRow
supplementType
=
supplementInfoTable
.
createRow
();
supplementType
.
getCell
(
0
).
setText
(
"业务类型:"
);
String
supplement_type
=
reportEntity
.
getSupplementType
();
if
(
StringUtils
.
isNotBlank
(
supplement_type
))
{
if
(
supplement_type
.
equals
(
"1"
))
{
supplement_type
=
"营销"
;
}
else
if
(
supplement_type
.
equals
(
"2"
))
{
supplement_type
=
"工程"
;
}
else
if
(
supplement_type
.
equals
(
"3"
))
{
supplement_type
=
"成本"
;
}
else
if
(
supplement_type
.
equals
(
"4"
))
{
supplement_type
=
"招采"
;
}
else
if
(
supplement_type
.
equals
(
"5"
))
{
supplement_type
=
"人力"
;
}
else
if
(
supplement_type
.
equals
(
"6"
))
{
supplement_type
=
"物业"
;
}
else
if
(
supplement_type
.
equals
(
"7"
))
{
supplement_type
=
"投诉"
;
if
(!
reportEntity
.
getReportStatus
().
equals
(
"0"
))
{
//段落 第三段 举报信息补充
XWPFParagraph
paragraphSupplement
=
document
.
createParagraph
();
XWPFRun
runSupplement
=
paragraphSupplement
.
createRun
();
runSupplement
.
setText
(
"举报信息补充"
);
runSupplement
.
setColor
(
"696969"
);
runSupplement
.
setFontSize
(
16
);
//换行
XWPFParagraph
newLine4
=
document
.
createParagraph
();
XWPFRun
paragraphRun4
=
newLine4
.
createRun
();
paragraphRun4
.
setText
(
"\r"
);
//举报信息补充表格
XWPFTable
supplementInfoTable
=
document
.
createTable
();
//去表格边框
supplementInfoTable
.
getCTTbl
().
getTblPr
().
unsetTblBorders
();
//列宽自动分割
CTTblWidth
supplementInfoTableWidth
=
supplementInfoTable
.
getCTTbl
().
addNewTblPr
().
addNewTblW
();
supplementInfoTableWidth
.
setType
(
STTblWidth
.
AUTO
);
supplementInfoTableWidth
.
setW
(
BigInteger
.
valueOf
(
9072
));
//表格第一行
XWPFTableRow
supplementTitle
=
supplementInfoTable
.
getRow
(
0
);
supplementTitle
.
getCell
(
0
).
setText
(
"标题:"
);
supplementTitle
.
addNewTableCell
().
setText
(
reportEntity
.
getSupplementTitle
()
==
null
?
""
:
reportEntity
.
getSupplementTitle
());
//表格第二行
XWPFTableRow
supplementCompany
=
supplementInfoTable
.
createRow
();
supplementCompany
.
getCell
(
0
).
setText
(
"被举报公司:"
);
supplementCompany
.
getCell
(
1
).
setText
(
reportEntity
.
getSupplementCompany
()
==
null
?
""
:
reportEntity
.
getSupplementCompany
());
//表格第三行
XWPFTableRow
supplementDepartment
=
supplementInfoTable
.
createRow
();
supplementDepartment
.
getCell
(
0
).
setText
(
"被举报部门:"
);
supplementDepartment
.
getCell
(
1
).
setText
(
reportEntity
.
getSupplementDepartment
()
==
null
?
""
:
reportEntity
.
getSupplementDepartment
());
//表格第四行
XWPFTableRow
supplementType
=
supplementInfoTable
.
createRow
();
supplementType
.
getCell
(
0
).
setText
(
"业务类型:"
);
String
supplement_type
=
reportEntity
.
getSupplementType
();
if
(
StringUtils
.
isNotBlank
(
supplement_type
))
{
if
(
supplement_type
.
equals
(
"1"
))
{
supplement_type
=
"营销"
;
}
else
if
(
supplement_type
.
equals
(
"2"
))
{
supplement_type
=
"工程"
;
}
else
if
(
supplement_type
.
equals
(
"3"
))
{
supplement_type
=
"成本"
;
}
else
if
(
supplement_type
.
equals
(
"4"
))
{
supplement_type
=
"招采"
;
}
else
if
(
supplement_type
.
equals
(
"5"
))
{
supplement_type
=
"人力"
;
}
else
if
(
supplement_type
.
equals
(
"6"
))
{
supplement_type
=
"物业"
;
}
else
if
(
supplement_type
.
equals
(
"7"
))
{
supplement_type
=
"投诉"
;
}
}
else
{
supplement_type
=
""
;
}
}
else
{
supplement_type
=
""
;
}
supplementType
.
getCell
(
1
).
setText
(
supplement_type
);
//表格第五行
XWPFTableRow
supplementArea
=
supplementInfoTable
.
createRow
();
supplementArea
.
getCell
(
0
).
setText
(
"被举报区域:"
);
String
supplement_area
=
reportEntity
.
getSupplementArea
()
;
if
(
StringUtils
.
isNotBlank
(
supplement_area
))
{
if
(
supplement_area
.
equals
(
"North China"
))
{
supplement_area
=
"华北区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"BeiJing"
))
{
supplement_area
=
"北京区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"ShangHai"
))
{
supplement_area
=
"上海区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"SouthWest"
))
{
supplement_area
=
"西南区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"SouthEast"
))
{
supplement_area
=
"东南区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"Central China"
))
{
supplement_area
=
"华中区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"GuangShen"
))
{
supplement_area
=
"广深区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"Hainan"
))
{
supplement_area
=
"海南区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"Group"
))
{
supplement_area
=
"
集团本部
"
;
supplementType
.
getCell
(
1
).
setText
(
supplement_type
);
//表格第五行
XWPFTableRow
supplementArea
=
supplementInfoTable
.
createRow
();
supplementArea
.
getCell
(
0
).
setText
(
"被举报区域:"
);
String
supplement_area
=
reportEntity
.
getSupplementArea
();
if
(
StringUtils
.
isNotBlank
(
supplement_area
))
{
if
(
supplement_area
.
equals
(
"North China"
))
{
supplement_area
=
"华北区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"BeiJing"
))
{
supplement_area
=
"北京区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"ShangHai"
))
{
supplement_area
=
"上海区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"SouthWest"
))
{
supplement_area
=
"西南区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"SouthEast"
))
{
supplement_area
=
"东南区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"Central China"
))
{
supplement_area
=
"华中区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"GuangShen"
))
{
supplement_area
=
"广深区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"Hainan"
))
{
supplement_area
=
"海南区域公司"
;
}
else
if
(
supplement_area
.
equals
(
"Group"
))
{
supplement_area
=
"集团本部"
;
}
}
else
{
supplement_area
=
""
;
}
}
else
{
supplement_area
=
""
;
}
supplementArea
.
getCell
(
1
).
setText
(
supplement_area
);
//表格第六行
XWPFTableRow
supplementContent
=
supplementInfoTable
.
createRow
();
supplementContent
.
getCell
(
0
).
setText
(
"内容:"
);
supplementContent
.
getCell
(
1
).
setText
(
reportEntity
.
getSupplementContent
()==
null
?
""
:
reportEntity
.
getSupplementContent
());
//表格 附件行
//获取附件列表
ReportAttachmentEntity
supplementAttachmentBean
=
new
ReportAttachmentEntity
();
supplementAttachmentBean
.
setReportId
(
reportEntity
.
getId
());
supplementAttachmentBean
.
setAttachmentType
(
"1"
);
List
<
ReportAttachmentEntity
>
list1
=
reportService
.
getAttachmentInfo
(
supplementAttachmentBean
);
if
(
list1
!=
null
&&
list1
.
size
()
!=
0
)
{
for
(
int
i
=
0
;
i
<
list1
.
size
();
i
++)
{
XWPFTableRow
reportAttachment
=
supplementInfoTable
.
createRow
();
reportAttachment
.
getCell
(
0
).
setText
(
"附件:"
);
reportAttachment
.
getCell
(
1
).
setText
(
list1
.
get
(
i
).
getAttachmentPath
());
supplementArea
.
getCell
(
1
).
setText
(
supplement_area
);
//表格第六行
XWPFTableRow
supplementContent
=
supplementInfoTable
.
createRow
();
supplementContent
.
getCell
(
0
).
setText
(
"内容:"
);
supplementContent
.
getCell
(
1
).
setText
(
reportEntity
.
getSupplementContent
()
==
null
?
""
:
reportEntity
.
getSupplementContent
());
//表格 附件行
//获取附件列表
ReportAttachmentEntity
supplementAttachmentBean
=
new
ReportAttachmentEntity
();
supplementAttachmentBean
.
setReportId
(
reportEntity
.
getId
());
supplementAttachmentBean
.
setAttachmentType
(
"1"
);
List
<
ReportAttachmentEntity
>
list1
=
reportService
.
getAttachmentInfo
(
supplementAttachmentBean
);
if
(
list1
!=
null
&&
list1
.
size
()
!=
0
)
{
for
(
int
i
=
0
;
i
<
list1
.
size
();
i
++)
{
XWPFTableRow
reportAttachment
=
supplementInfoTable
.
createRow
();
reportAttachment
.
getCell
(
0
).
setText
(
"附件:"
);
reportAttachment
.
getCell
(
1
).
setText
(
list1
.
get
(
i
).
getAttachmentPath
());
}
}
}
if
(
list1
.
size
()
>
1
)
{
mergeCellsVertically
(
supplementInfoTable
,
0
,
6
,
6
+
list1
.
size
()
-
1
);
}
this
.
setCellWidth
(
supplementInfoTable
);
supplementInfoTable
.
setCellMargins
(
0
,
100
,
0
,
100
);
//两个表格之间加个换行
XWPFParagraph
newLine5
=
document
.
createParagraph
();
XWPFRun
paragraphRun5
=
newLine5
.
createRun
();
paragraphRun5
.
setText
(
"\r"
);
//段落 第四段 处理结果
XWPFParagraph
paragraphResult
=
document
.
createParagraph
();
XWPFRun
runResult
=
paragraphResult
.
createRun
();
runResult
.
setText
(
"处理结果"
);
runResult
.
setColor
(
"696969"
);
runResult
.
setFontSize
(
16
);
//换行
XWPFParagraph
newLine7
=
document
.
createParagraph
();
XWPFRun
paragraphRun7
=
newLine7
.
createRun
();
paragraphRun7
.
setText
(
"\r"
);
//举报信息补充表格
XWPFTable
resultInfoTable
=
document
.
createTable
();
//去表格边框
resultInfoTable
.
getCTTbl
().
getTblPr
().
unsetTblBorders
();
//列宽自动分割
CTTblWidth
resultInfoTableWidth
=
resultInfoTable
.
getCTTbl
().
addNewTblPr
().
addNewTblW
();
resultInfoTableWidth
.
setType
(
STTblWidth
.
AUTO
);
resultInfoTableWidth
.
setW
(
BigInteger
.
valueOf
(
9072
));
//表格第一行
XWPFTableRow
dealPersonName
=
resultInfoTable
.
getRow
(
0
);
dealPersonName
.
getCell
(
0
).
setText
(
"处理人:"
);
dealPersonName
.
addNewTableCell
().
setText
(
reportEntity
.
getDealPersonName
()==
null
?
""
:
reportEntity
.
getDealPersonName
());
//表格 附件行
//获取附件列表
ReportAttachmentEntity
dealAttachmentBean
=
new
ReportAttachmentEntity
();
dealAttachmentBean
.
setReportId
(
reportEntity
.
getId
());
dealAttachmentBean
.
setAttachmentType
(
"2"
);
List
<
ReportAttachmentEntity
>
list2
=
reportService
.
getAttachmentInfo
(
dealAttachmentBean
);
if
(
list2
!=
null
&&
list2
.
size
()
!=
0
)
{
for
(
int
i
=
0
;
i
<
list2
.
size
();
i
++)
{
XWPFTableRow
reportAttachment
=
resultInfoTable
.
createRow
();
reportAttachment
.
getCell
(
0
).
setText
(
"附件:"
);
reportAttachment
.
getCell
(
1
).
setText
(
list2
.
get
(
i
).
getAttachmentPath
());
if
(
list1
.
size
()
>
1
)
{
mergeCellsVertically
(
supplementInfoTable
,
0
,
6
,
6
+
list1
.
size
()
-
1
);
}
this
.
setCellWidth
(
supplementInfoTable
);
supplementInfoTable
.
setCellMargins
(
0
,
100
,
0
,
100
);
//两个表格之间加个换行
XWPFParagraph
newLine5
=
document
.
createParagraph
();
XWPFRun
paragraphRun5
=
newLine5
.
createRun
();
paragraphRun5
.
setText
(
"\r"
);
}
if
(
list2
.
size
()
>
1
)
{
mergeCellsVertically
(
resultInfoTable
,
0
,
1
,
1
+
list2
.
size
()
-
1
);
}
this
.
setCellWidth
(
resultInfoTable
);
resultInfoTable
.
setCellMargins
(
0
,
100
,
0
,
100
);
//表格第三行
XWPFTableRow
dealResult
=
resultInfoTable
.
createRow
();
dealResult
.
getCell
(
0
).
setText
(
"处理结论:"
);
String
deal_result
=
reportEntity
.
getDealResult
();
if
(
StringUtils
.
isNotBlank
(
deal_result
))
{
if
(
deal_result
.
equals
(
"1"
))
{
deal_result
=
"投诉"
;
}
else
if
(
deal_result
.
equals
(
"2"
))
{
deal_result
=
"举报无效"
;
}
else
if
(
deal_result
.
equals
(
"3"
))
{
deal_result
=
"举报属实"
;
if
(
reportEntity
.
getReportStatus
().
equals
(
"2"
))
{
//段落 第四段 处理结果
XWPFParagraph
paragraphResult
=
document
.
createParagraph
();
XWPFRun
runResult
=
paragraphResult
.
createRun
();
runResult
.
setText
(
"处理结果"
);
runResult
.
setColor
(
"696969"
);
runResult
.
setFontSize
(
16
);
//换行
XWPFParagraph
newLine7
=
document
.
createParagraph
();
XWPFRun
paragraphRun7
=
newLine7
.
createRun
();
paragraphRun7
.
setText
(
"\r"
);
//举报信息补充表格
XWPFTable
resultInfoTable
=
document
.
createTable
();
//去表格边框
resultInfoTable
.
getCTTbl
().
getTblPr
().
unsetTblBorders
();
//列宽自动分割
CTTblWidth
resultInfoTableWidth
=
resultInfoTable
.
getCTTbl
().
addNewTblPr
().
addNewTblW
();
resultInfoTableWidth
.
setType
(
STTblWidth
.
AUTO
);
resultInfoTableWidth
.
setW
(
BigInteger
.
valueOf
(
9072
));
//表格第一行
XWPFTableRow
dealPersonName
=
resultInfoTable
.
getRow
(
0
);
dealPersonName
.
getCell
(
0
).
setText
(
"处理人:"
);
dealPersonName
.
addNewTableCell
().
setText
(
reportEntity
.
getDealPersonName
()
==
null
?
""
:
reportEntity
.
getDealPersonName
());
//表格 附件行
//获取附件列表
ReportAttachmentEntity
dealAttachmentBean
=
new
ReportAttachmentEntity
();
dealAttachmentBean
.
setReportId
(
reportEntity
.
getId
());
dealAttachmentBean
.
setAttachmentType
(
"2"
);
List
<
ReportAttachmentEntity
>
list2
=
reportService
.
getAttachmentInfo
(
dealAttachmentBean
);
if
(
list2
!=
null
&&
list2
.
size
()
!=
0
)
{
for
(
int
i
=
0
;
i
<
list2
.
size
();
i
++)
{
XWPFTableRow
reportAttachment
=
resultInfoTable
.
createRow
();
reportAttachment
.
getCell
(
0
).
setText
(
"附件:"
);
reportAttachment
.
getCell
(
1
).
setText
(
list2
.
get
(
i
).
getAttachmentPath
());
}
}
}
else
{
deal_result
=
""
;
if
(
list2
.
size
()
>
1
)
{
mergeCellsVertically
(
resultInfoTable
,
0
,
1
,
1
+
list2
.
size
()
-
1
);
}
this
.
setCellWidth
(
resultInfoTable
);
resultInfoTable
.
setCellMargins
(
0
,
100
,
0
,
100
);
//表格第三行
XWPFTableRow
dealResult
=
resultInfoTable
.
createRow
();
dealResult
.
getCell
(
0
).
setText
(
"处理结论:"
);
String
deal_result
=
reportEntity
.
getDealResult
();
if
(
StringUtils
.
isNotBlank
(
deal_result
))
{
if
(
deal_result
.
equals
(
"1"
))
{
deal_result
=
"投诉"
;
}
else
if
(
deal_result
.
equals
(
"2"
))
{
deal_result
=
"举报无效"
;
}
else
if
(
deal_result
.
equals
(
"3"
))
{
deal_result
=
"举报属实"
;
}
}
else
{
deal_result
=
""
;
}
dealResult
.
getCell
(
1
).
setText
(
deal_result
);
this
.
setCellWidth
(
basicInfoTable
);
}
dealResult
.
getCell
(
1
).
setText
(
deal_result
);
this
.
setCellWidth
(
basicInfoTable
);
CTSectPr
sectPr
=
document
.
getDocument
().
getBody
().
addNewSectPr
();
XWPFHeaderFooterPolicy
policy
=
new
XWPFHeaderFooterPolicy
(
document
,
sectPr
);
...
...
@@ -390,7 +394,7 @@ public class ReportToWordController {
PrintWriter
printWriter
=
response
.
getWriter
();
response
.
setContentType
(
"application/json;charset=utf-8"
);
printWriter
.
write
(
GConstants
.
FILE_PREFIX_URL
+
"pdf/"
+
reportProjectTitle
+
"_"
+
reportEntity
.
getId
()+
".
pdf
"
);
printWriter
.
write
(
GConstants
.
FILE_PREFIX_URL
+
"pdf/"
+
reportProjectTitle
+
"_"
+
reportEntity
.
getId
()+
".
docx
"
);
printWriter
.
close
();
}
...
...
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
View file @
d79e6b73
...
...
@@ -66,7 +66,7 @@
function
openDownloadDialog
(
id
){
if
(
requestFlag
==
true
){
$
.
ajax
({
url
:
"${ctx}/report/
document
?id="
+
id
,
url
:
"${ctx}/report/
toWord
?id="
+
id
,
dataType
:
"text"
,
traditional
:
true
,
//这里设置为true
cache
:
false
,
...
...
src/main/webapp/WEB-INF/views/modules/report/reportList.jsp
View file @
d79e6b73
...
...
@@ -41,7 +41,7 @@
function
openDownloadDialog
(
id
){
if
(
requestFlag
==
true
){
$
.
ajax
({
url
:
"${ctx}/report/
document
?id="
+
id
,
url
:
"${ctx}/report/
toWord
?id="
+
id
,
dataType
:
"text"
,
traditional
:
true
,
//这里设置为true
cache
:
false
,
...
...
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
d79e6b73
...
...
@@ -55,7 +55,7 @@
//发邮件
$
(
"#btnMail"
).
click
(
function
()
{
var
supplementType
=
$
(
"#supplementType"
).
find
(
"option:selected"
).
text
();
var
supplementInformant
=
$
(
"#supplementInformant"
).
val
()
;
var
supplementInformant
=
"${report.supplementInformant}"
;
var
path
=
"mailto:?subject=举报核查-"
+
supplementType
+
"-"
+
supplementInformant
+
"违规操作"
;
path
+=
"&body=Dear,<br/>附件是举报核查-"
+
supplementType
+
"-"
+
supplementInformant
+
"违规操作,请核实是否属实。<br/>谢谢!"
;
...
...
@@ -71,7 +71,7 @@
var
url
=
$
(
this
).
text
();
path
+=
url
;
});
path
+=
"举报人信息</br>"
;
path
+=
"
</br>
举报人信息</br>"
;
path
+=
"姓名:${report.reportPersonName}</br>"
;
path
+=
"手机号:${report.reportPersonTel}</br>"
;
path
+=
"Email:${report.reportPersonEmail}</br>"
;
...
...
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