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
ca6b6000
Commit
ca6b6000
authored
Oct 10, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
工作台、转文档等修改
parent
55cb247d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
178 additions
and
56 deletions
+178
-56
ReportToPdfController.java
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
+27
-3
WorkbenchService.java
src/main/java/com/ejweb/modules/workbench/service/WorkbenchService.java
+46
-46
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+105
-7
No files found.
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
View file @
ca6b6000
...
...
@@ -228,7 +228,31 @@ public class ReportToPdfController extends BaseController {
PdfPCell
supplementArea
=
new
PdfPCell
(
new
Paragraph
(
"被举报区域:"
,
textfont
));
supplementArea
.
setBorderWidth
(
0
);
table3
.
addCell
(
supplementArea
);
PdfPCell
supplementArea1
=
new
PdfPCell
(
new
Paragraph
(
reportEntity
.
getSupplementArea
()==
null
?
""
:
reportEntity
.
getSupplementArea
(),
textfont
));
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
=
""
;
}
PdfPCell
supplementArea1
=
new
PdfPCell
(
new
Paragraph
(
supplement_area
,
textfont
));
supplementArea1
.
setBorderWidth
(
0
);
table3
.
addCell
(
supplementArea1
);
PdfPCell
supplementProject
=
new
PdfPCell
(
new
Paragraph
(
"被举报项目:"
,
textfont
));
...
...
@@ -254,8 +278,8 @@ public class ReportToPdfController extends BaseController {
List
<
ReportAttachmentEntity
>
list1
=
reportService
.
getAttachmentInfo
(
reportAttachmentBean
);
Paragraph
paragraphPath2
=
new
Paragraph
();
if
(
list
!=
null
&&
list
.
size
()
!=
0
)
{
for
(
ReportAttachmentEntity
reportAttachmentEntity
:
list
)
{
if
(
list
1
!=
null
&&
list1
.
size
()
!=
0
)
{
for
(
ReportAttachmentEntity
reportAttachmentEntity
:
list
1
)
{
Chunk
chunk
=
new
Chunk
(
reportAttachmentEntity
.
getAttachmentPath
(),
urlfont
);
paragraphPath2
.
add
(
chunk
);
paragraphPath2
.
add
(
Chunk
.
NEWLINE
);
...
...
src/main/java/com/ejweb/modules/workbench/service/WorkbenchService.java
View file @
ca6b6000
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
ca6b6000
...
...
@@ -60,13 +60,14 @@
var
path
=
"mailto:?subject=举报核查-"
+
supplementType
+
"-"
+
supplementInformant
+
"违规操作"
;
path
+=
"&body=Dear,<br/>附件是举报核查-"
+
supplementType
+
"-"
+
supplementInformant
+
"违规操作,请核实是否属实。<br/>谢谢!"
;
//path += "
<
br
/><
br
/><
br
/>%
0
D
%
0
A$
{
userName
}
";
path += "
<
/p>举报内容</
<
br
>
";
path += "
<
/p>举报内容</
br
>
";
path += "
被举报项目
:
$
{
report
.
reportProject
}
<
/br>"
;
path
+=
"举报时间:${report.reportTime}</br>"
;
path
+=
"所在城市:${report.reportCity}</br>"
;
path
+=
"内容:${report.reportContent}</br>"
;
path
+=
"附件:"
;
<%--
var
reportAttachmentList
=
"${reportAttachmentList}"
;
--%>
<%--
var
reportAttachmentList
=
$
{
supplementAttachmentList
};
--%>
<%--
console
.
log
(
reportAttachmentList
);
--%>
<%--
for
(
var
i
=
0
;
i
<
reportAttachmentList
.
length
;
i
++
){
--%>
<%--
path
+=
" "
+
reportAttachmentList
[
i
].
attachmentPath
+
"</br>"
;
--%>
<%--
}
--%>
...
...
@@ -75,9 +76,89 @@
path
+=
"举报人信息</br>"
;
path
+=
"姓名:${report.reportPersonName}</br>"
;
path
+=
"Email:${report.reportPersonTel}</br>"
;
path
+=
"举报途径:${report.reportSource}</br>"
;
var
reportSource
=
"${report.reportSource}"
;
if
(
reportSource
==
"web"
){
reportSource
=
"官网"
;
}
else
if
(
reportSource
==
"oa"
){
reportSource
=
"融创OA系统"
;
}
else
if
(
reportSource
==
"supplier"
){
reportSource
=
"供应商系统"
;
}
else
if
(
reportSource
==
"wechat"
){
reportSource
=
"微信公众号"
;
}
else
if
(
reportSource
==
"sunacE"
){
reportSource
=
"融E"
;
}
else
if
(
reportSource
==
"offline"
){
reportSource
=
"线下扫码"
;
}
else
if
(
reportSource
==
"tel"
){
reportSource
=
"电话"
;
}
else
if
(
reportSource
==
"email"
){
reportSource
=
"邮件"
;
}
else
if
(
reportSource
==
"visit"
){
reportSource
=
"来访"
;
}
path
+=
"举报途径:"
+
reportSource
+
"</br>"
;
var
reportStatus
=
"${report.reportStatus}"
;
if
(
reportStatus
!=
"0"
){
path
+=
"举报信息补充</br>"
;
path
+=
"标题:${report.supplementTitle}</br>"
;
path
+=
"被举报公司:${report.supplementCompany}</br>"
;
path
+=
"被举报部门:${report.supplementDepartment}</br>"
;
path
+=
"被举报人:${report.supplementInformant}</br>"
;
var
supplementType
=
"${report.supplementType}"
;
if
(
supplementType
==
"1"
){
supplementType
=
"营销"
;
}
else
if
(
supplementType
==
"2"
){
supplementType
=
"工程"
;
}
else
if
(
supplementType
==
"3"
){
supplementType
=
"成本"
;
}
else
if
(
supplementType
==
"4"
){
supplementType
=
"招采"
;
}
else
if
(
supplementType
==
"5"
){
supplementType
=
"人力"
;
}
else
if
(
supplementType
==
"6"
){
supplementType
=
"物业"
;
}
else
if
(
supplementType
==
"7"
){
supplementType
=
"投诉"
;
}
path
+=
"业务类型:"
+
supplementType
+
"</br>"
;
var
supplementArea
=
"${report.supplementArea}"
;
if
(
supplementArea
==
"North China"
){
supplementArea
=
"华北区域公司"
;
}
else
if
(
supplementArea
==
"BeiJing"
){
supplementArea
=
"北京区域公司"
;
}
else
if
(
supplementArea
==
"ShangHai"
){
supplementArea
=
"上海区域公司"
;
}
else
if
(
supplementArea
==
"SouthWest"
){
supplementArea
=
"西南区域公司"
;
}
else
if
(
supplementArea
==
"SouthEast"
){
supplementArea
=
"东南区域公司"
;
}
else
if
(
supplementArea
==
"Central China"
){
supplementArea
=
"华中区域公司"
;
}
else
if
(
supplementArea
==
"GuangShen"
){
supplementArea
=
"广深区域公司"
;
}
else
if
(
supplementArea
==
"Hainan"
){
supplementArea
=
"海南区域公司"
;
}
else
if
(
supplementArea
==
"Group"
){
supplementArea
=
"集团本部"
;
}
path
+=
"被举报区域:"
+
supplementArea
+
"</br>"
;
path
+=
"被举报项目:${report.supplementProject}</br>"
;
path
+=
"内容:${report.reportContent}</br>"
;
}
if
(
reportStatus
==
"2"
){
path
+=
"处理结果</br>"
;
path
+=
"处理人:${report.dealPersonName}</br>"
;
path
+=
"处理成果文件:${report.supplementCompany}</br>"
;
var
dealResult
=
"${report.dealResult}"
;
if
(
dealResult
==
"North China"
){
dealResult
=
"华北区域公司"
;
}
else
if
(
dealResult
==
"BeiJing"
){
dealResult
=
"北京区域公司"
;
}
else
if
(
dealResult
==
"ShangHai"
){
dealResult
=
"上海区域公司"
;
}
path
+=
"处理结论:"
+
dealResult
+
"</br>"
;
}
window
.
location
.
href
=
path
;
});
});
...
...
@@ -126,6 +207,13 @@
<form:hidden
path=
"id"
/>
<sys:message
content=
"${message}"
/>
<div
id=
"reportAttachment"
style=
"display: none"
>
<c:if
test=
"${supplementAttachmentList ne null}"
>
<c:forEach
items=
"${reportAttachmentList}"
var=
"reportAttachment"
varStatus=
"vs"
>
<a
href=
"${reportAttachment.attachmentPath}"
target=
"_blank"
>
${reportAttachment.attachmentName}
</a><br>
</c:forEach>
</c:if>
</div>
<span
class=
"title"
>
举报信息补充
</span>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报公司:
</label>
...
...
@@ -190,7 +278,12 @@
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
附件:
</label>
<div
class=
"controls"
>
<div
id=
"fujian2"
class=
"controls"
>
<c:if
test=
"${supplementAttachmentList ne null}"
>
<c:forEach
items=
"${supplementAttachmentList}"
var=
"supplementAttachment"
varStatus=
"vs"
>
<a
href=
"${supplementAttachment.attachmentPath}"
target=
"_blank"
>
${supplementAttachment.attachmentName}
</a><br>
</c:forEach>
</c:if>
<form:hidden
id=
"nameFile"
path=
"supplementAttachment"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge"
/>
<sys:ckfinder
input=
"nameFile"
type=
"files"
uploadPath=
"/file"
...
...
@@ -207,7 +300,12 @@
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理成果文件:
</label>
<div
class=
"controls"
>
<div
id=
"dealAttachment"
class=
"controls"
>
<c:if
test=
"${dealAttachmentList ne null}"
>
<c:forEach
items=
"${dealAttachmentList}"
var=
"dealAttachment"
varStatus=
"vs"
>
<a
href=
"${dealAttachment.attachmentPath}"
target=
"_blank"
>
${dealAttachment.attachmentName}
</a><br>
</c:forEach>
</c:if>
<form:hidden
id=
"dealFile"
path=
"dealAttachment"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge"
/>
<sys:ckfinder
input=
"dealFile"
type=
"files"
uploadPath=
"/file"
...
...
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