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
aed2e6ae
Commit
aed2e6ae
authored
Dec 26, 2017
by
java-lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
消息中心 即时提醒
parent
e2602e49
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
60 additions
and
7 deletions
+60
-7
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+29
-1
ReportToWordController.java
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
+1
-1
reportDetail.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
+2
-2
sysIndex.jsp
src/main/webapp/WEB-INF/views/modules/sys/sysIndex.jsp
+10
-1
notice.jsp
src/main/webapp/WEB-INF/views/modules/workbench/notice.jsp
+18
-2
No files found.
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
aed2e6ae
...
...
@@ -12,6 +12,7 @@ import com.ejweb.modules.sys.entity.Office;
import
com.ejweb.modules.sys.entity.Position
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.sys.utils.UserUtils
;
import
com.ejweb.modules.workbench.service.NoticeService
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
...
...
@@ -39,6 +40,8 @@ public class ReportController extends BaseController {
@Autowired
private
ReportService
reportService
;
@Autowired
private
NoticeService
noticeService
;
@ModelAttribute
public
ReportEntity
get
(
@RequestParam
(
required
=
false
)
String
id
)
{
...
...
@@ -178,6 +181,15 @@ public class ReportController extends BaseController {
supplementType
=
supplementType
.
substring
(
0
,
supplementType
.
length
()
-
1
);
reportEntity
.
setSupplementType
(
supplementType
);
}
String
isSendEmail
=
reportEntity
.
getIsSendEmail
();
if
(
StringUtils
.
isNotBlank
(
isSendEmail
)){
if
(
isSendEmail
.
equals
(
"1"
)){
isSendEmail
=
"是"
;
}
}
else
{
isSendEmail
=
"否"
;
}
reportEntity
.
setIsSendEmail
(
isSendEmail
);
List
<
ReportAttachmentEntity
>
reportAttachmentList
=
reportService
.
getAttachmentInfo
(
reportAttachment
);
//获取补充提交文件列表
ReportAttachmentEntity
supplementAttachment
=
new
ReportAttachmentEntity
();
...
...
@@ -189,11 +201,18 @@ public class ReportController extends BaseController {
dealAttachment
.
setReportId
(
reportEntity
.
getId
());
dealAttachment
.
setAttachmentType
(
"2"
);
List
<
ReportAttachmentEntity
>
dealAttachmentList
=
reportService
.
getAttachmentInfo
(
dealAttachment
);
//修改消息中心的未读消息提醒
User
user
=
UserUtils
.
getUser
();
Integer
count
=
noticeService
.
getMessageCount
(
user
.
getId
());
String
result
=
""
;
if
(
count
!=
0
){
result
=
count
.
toString
();
}
model
.
addAttribute
(
"report"
,
reportEntity
);
model
.
addAttribute
(
"reportAttachmentList"
,
reportAttachmentList
);
model
.
addAttribute
(
"supplementAttachmentList"
,
supplementAttachmentList
);
model
.
addAttribute
(
"dealAttachmentList"
,
dealAttachmentList
);
model
.
addAttribute
(
"result"
,
result
);
return
"modules/report/reportDetail"
;
}
...
...
@@ -243,6 +262,15 @@ public class ReportController extends BaseController {
if
(
StringUtils
.
isBlank
(
reportEntity
.
getDealPersonName
())){
reportEntity
.
setDealPersonName
(
user
.
getName
());
}
String
isSendEmail
=
reportEntity
.
getIsSendEmail
();
if
(
StringUtils
.
isNotBlank
(
isSendEmail
)){
if
(
isSendEmail
.
equals
(
"1"
)){
isSendEmail
=
"是"
;
}
}
else
{
isSendEmail
=
"否"
;
}
reportEntity
.
setIsSendEmail
(
isSendEmail
);
model
.
addAttribute
(
"page"
,
page
);
model
.
addAttribute
(
"user"
,
userEntity
);
model
.
addAttribute
(
"userName"
,
user
.
getName
());
...
...
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
View file @
aed2e6ae
...
...
@@ -151,7 +151,7 @@ public class ReportToWordController {
}
}
if
(
list
.
size
()
>
1
)
{
mergeCellsVertically
(
basicInfoTable
,
0
,
6
,
6
+
list
.
size
()
-
1
);
mergeCellsVertically
(
basicInfoTable
,
0
,
9
,
9
+
list
.
size
()
-
1
);
}
this
.
setCellWidth
(
basicInfoTable
);
...
...
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
View file @
aed2e6ae
...
...
@@ -6,7 +6,8 @@
<meta
name=
"decorator"
content=
"default"
/>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
alert
(
$
(
"#prompt"
));
var
count
=
"${result}"
;
parent
.
refreshPromt
(
count
);
$
(
"input[type='text']"
).
attr
(
"disabled"
,
true
);
$
(
"#btnTrack"
).
click
(
function
()
{
...
...
@@ -44,7 +45,6 @@
dealResult
=
"举报受理"
;
}
$
(
"#dealResult"
).
val
(
dealResult
);
alert
(
$
(
'#default'
,
window
.
parent
.
document
).
html
());
});
var
requestFlag
=
true
;
function
openDownloadDialog
(
id
){
...
...
src/main/webapp/WEB-INF/views/modules/sys/sysIndex.jsp
View file @
aed2e6ae
...
...
@@ -157,6 +157,15 @@
}).
loadData
(
refresh
);
return
false
;
}
//
<
/c:if
>
function
refreshPromt
(
result
)
{
if
(
result
!=
""
)
{
$
(
"#prompt"
).
text
(
result
);
$
(
"#promptMessage"
).
text
(
result
);
}
else
{
$
(
"#message"
).
hide
();
$
(
"#messageDiv"
).
hide
();
}
}
</script>
</head>
<body>
...
...
@@ -230,7 +239,7 @@
</div>
<div
class=
"container-fluid"
>
<div
id=
"content"
class=
"row-fluid"
>
<div
id=
"left"
><
%
--
<div
id=
"left"
><
%
--
<
iframe
id=
"menuFrame"
name=
"menuFrame"
src=
""
style=
"overflow:visible;"
scrolling=
"yes"
frameborder=
"no"
width=
"100%"
height=
"650"
></iframe>
--%>
</div>
<div
id=
"openClose"
class=
"close"
>
</div>
...
...
src/main/webapp/WEB-INF/views/modules/workbench/notice.jsp
View file @
aed2e6ae
...
...
@@ -23,7 +23,23 @@
$
(
"#refresh"
).
click
(
function
()
{
window
.
location
.
href
=
"${ctx}/notice/list"
;
});
//序号连续
var
i
=
1
;
var
pageNo
=
$
(
"#pageNo"
).
val
();
var
pageSize
=
$
(
"#pageSize"
).
val
();
$
(
".reportList"
).
each
(
function
(){
var
num
=
(
pageNo
-
1
)
*
pageSize
+
i
;
i
+=
1
;
$
(
this
).
children
(
"td:first-child"
).
html
(
num
);
});
});
function
page
(
n
,
s
){
$
(
"#pageNo"
).
val
(
n
);
$
(
"#pageSize"
).
val
(
s
);
$
(
"#searchForm"
).
attr
(
"action"
,
"${ctx}/notice/list"
);
$
(
"#searchForm"
).
submit
();
return
false
;
}
</script>
</head>
<body>
...
...
@@ -51,8 +67,8 @@
<tbody>
<c:if
test=
"${noticePage.list.size()>0}"
>
<c:forEach
items=
"${noticePage.list}"
var=
"notice"
varStatus=
"vs"
>
<tr>
<td>
${vs.count}
</td>
<tr
class=
"reportList"
>
<td></td>
<td><a
href=
"${ctx}/notice/view?id=${notice.id}&reportId=${notice.reportId}"
><span
<
c:if
test=
"${notice.status eq '1'}"
>
style="color: #6f4086"
</c:if>
>${notice.title}。
</span></a></td>
<td>
${notice.sendTime}
</td>
<td>
${notice.sendFromId}
</td>
...
...
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