Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cmszMonitorAnalysis
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
liuna
cmszMonitorAnalysis
Commits
5cf9591e
Commit
5cf9591e
authored
Dec 19, 2017
by
胡斌
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/moly'
parents
5c490a2b
a6138146
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
49 additions
and
16 deletions
+49
-16
AssociateDiagosisDetailController.java
...b/monitoroperation/AssociateDiagosisDetailController.java
+27
-0
CreateDiagosis.jsp
.../webapp/WEB-INF/views/MonitorOperation/CreateDiagosis.jsp
+2
-2
WorkingOrderManage.jsp
...app/WEB-INF/views/MonitorOperation/WorkingOrderManage.jsp
+16
-14
xcdWarningTable.js
src/main/webapp/static/js/xcdWarningTable.js
+4
-0
No files found.
src/main/java/com/hp/cmsz/web/monitoroperation/AssociateDiagosisDetailController.java
View file @
5cf9591e
...
...
@@ -421,4 +421,31 @@ public class AssociateDiagosisDetailController {
return
PageURLController
.
CreateDiagosis
;
}
@RequestMapping
(
"/yinjingyinhuanToguanlianzhenduanmingxi"
)
public
String
yinjingyinhuanToguanlianzhenduanmingxi
(
Map
model
,
ServletRequest
request
,
HttpSession
session
)
throws
UnsupportedEncodingException
,
ParseException
{
List
<
Province
>
provinceList
=(
List
<
Province
>)
provinceDao
.
findProvince
();
String
timestamp1
=
getLastMonth
();
//getOld();
String
timestamp2
=
getNow
();
//getNew();
List
<
Object
[]>
diagosisDetailsObj
=
associateDiagosisDetailService
.
findAssociateDiagosisDetailByWarnTimeBeginAndEnd
(
timestamp1
,
timestamp2
);
List
<
AssociateDiagosisDetail
>
associateDiagosisDetails
=
new
ArrayList
<
AssociateDiagosisDetail
>();
for
(
Object
[]
objects
:
diagosisDetailsObj
)
{
AssociateDiagosisDetail
detail
=
new
AssociateDiagosisDetail
();
detail
.
setAssociationId
((
BigInteger
)
objects
[
0
]);
detail
.
setProvinceId
((
BigInteger
)
objects
[
1
]);
detail
.
setAssociationType
(
objects
[
2
].
toString
().
toCharArray
()[
0
]);
detail
.
setAssociationDesc
((
String
)
objects
[
3
]);
detail
.
setProvinceName
((
String
)
objects
[
4
]);
detail
.
setWarnBeginTime
((
Timestamp
)
objects
[
5
]);
detail
.
setWarnEndTime
((
Timestamp
)
objects
[
6
]);
detail
.
setWarningNum
((
BigInteger
)
objects
[
7
]);
associateDiagosisDetails
.
add
(
detail
);
}
model
.
put
(
"provinceList"
,
provinceList
);
Gson
gson
=
new
Gson
();
model
.
put
(
"diagosisDetails"
,
gson
.
toJson
(
associateDiagosisDetails
));
return
PageURLController
.
AssociateDiagosisDetail
;
}
}
src/main/webapp/WEB-INF/views/MonitorOperation/CreateDiagosis.jsp
View file @
5cf9591e
...
...
@@ -64,7 +64,7 @@
<td>
省份:
</td>
<td>
<div
class=
"checkbox-inline"
>
<input
type=
"checkbox"
name=
""
id=
"provinceDetailAll"
title=
""
value=
""
/>
全选
<input
type=
"checkbox"
name=
""
id=
"provinceDetailAll"
title=
""
value=
""
/>
<div
style=
"color:red;"
>
全选
</div>
</div>
<c:forEach
var=
"provice"
items=
"${proviceList}"
>
<div
class=
"checkbox-inline"
>
...
...
@@ -143,7 +143,7 @@
<tr>
<td>
业务:
</td>
<td>
<acronym
title=
"ni caicai"
>
业务:
</acronym>
</td>
<td
id=
"businessActivedListTd"
>
</td>
...
...
src/main/webapp/WEB-INF/views/MonitorOperation/WorkingOrderManage.jsp
View file @
5cf9591e
...
...
@@ -93,13 +93,6 @@
//修改无刷新的更改协查单信息
var
currentpage
=
document
.
getElementById
(
"goPageNo2"
).
value
;
/*
var listForm=$("#listForm");
listForm.attr("method","post");
listForm.attr("action","${ctx}/MonitorOperation/WorkingOrderManage/closeStatus/"+warningIds+"/"+currentpage);
listForm.submit();
listForm.attr("action","#");
listForm.attr("method","get"); */
var
period
=
getPeriodStr
();
var
warningSource
=
getWarningSourceIds
();
var
risk
=
getRiskEarlyWarningTypeIds
();
...
...
@@ -181,11 +174,13 @@
}
ids
.
splice
(
0
,
ids
.
length
);
if
(
ids
.
length
>
0
)
{
$
(
"#guanlian"
).
attr
(
"disabled"
,
false
);
$
(
"#preview"
).
attr
(
"disabled"
,
false
);
$
(
"#create"
).
attr
(
"disabled"
,
false
);
$
(
"#closeButton"
).
attr
(
"disabled"
,
false
);
$
(
"#confirmButton"
).
attr
(
"disabled"
,
false
);
}
else
{
$
(
"#guanlian"
).
attr
(
"disabled"
,
true
);
$
(
"#preview"
).
attr
(
"disabled"
,
true
);
$
(
"#create"
).
attr
(
"disabled"
,
true
);
$
(
"#closeButton"
).
attr
(
"disabled"
,
true
);
...
...
@@ -194,9 +189,6 @@
}
});
// alert(document.getElementById("goPageNo2").value);
//$("#jumpbutton").trigger("click");
},
function
(){}
...
...
@@ -205,11 +197,10 @@
}
}
});
// $("#goPageNo2").val(currentpage);
// alert(document.getElementById("goPageNo2").value
);
// $("#jumpbutton").trigger("click");
}
);
});
...
...
@@ -664,6 +655,7 @@ th{
<div
class=
"table-header"
>
预警和隐患列表
<shiro:hasAnyRoles
name=
"admin,dataAnalysis,businessAnalysis"
>
<div
class=
"bt-list-import"
>
<input
type=
"button"
id=
"guanlian"
class=
"btn btn-primary"
value=
"关联诊断"
disabled=
true
>
<input
type=
"button"
id=
"preview"
class=
"btn btn-primary"
value=
"结果预览"
disabled=
true
>
<input
type=
"button"
id=
"create"
class=
"btn btn-primary"
value=
"生成协查单"
disabled=
true
>
<!-- onclick="window.location.href='${ctx}/MonitorOperation/WorkingOrderCreate'" -->
<input
type=
"button"
id=
"closeButton"
value=
"关闭"
class=
"btn btn-primary"
disabled=
true
>
...
...
@@ -717,6 +709,14 @@ th{
}
*/
$
(
"#guanlian"
).
click
(
function
(){
alert
(
ids
[
0
]);
if
(
ids
.
length
>
10
){
$
.
alert
(
"最多只能选一个"
);
return
;
}
window
.
location
.
href
=
"${ctx}/MonitorOperation/AssociateDiagosisDetail/yinjingyinhuanToguanlianzhenduanmingxi"
;
});
$
(
function
(){
...
...
@@ -743,11 +743,13 @@ th{
}
ids
.
splice
(
0
,
ids
.
length
);
if
(
ids
.
length
>
0
)
{
$
(
"#guanlian"
).
attr
(
"disabled"
,
false
);
$
(
"#preview"
).
attr
(
"disabled"
,
false
);
$
(
"#create"
).
attr
(
"disabled"
,
false
);
$
(
"#closeButton"
).
attr
(
"disabled"
,
false
);
$
(
"#confirmButton"
).
attr
(
"disabled"
,
false
);
}
else
{
$
(
"#guanlian"
).
attr
(
"disabled"
,
true
);
$
(
"#preview"
).
attr
(
"disabled"
,
true
);
$
(
"#create"
).
attr
(
"disabled"
,
true
);
$
(
"#closeButton"
).
attr
(
"disabled"
,
true
);
...
...
src/main/webapp/static/js/xcdWarningTable.js
View file @
5cf9591e
...
...
@@ -582,11 +582,13 @@ function checkChoose(clickObj){
// 无复选框被选中时,生成协查单按钮,删除按钮,确认按钮都不可用
if
(
ids
.
length
>
0
)
{
$
(
"#guanlian"
).
attr
(
"disabled"
,
false
);
$
(
"#preview"
).
attr
(
"disabled"
,
false
);
$
(
"#create"
).
attr
(
"disabled"
,
false
);
$
(
"#closeButton"
).
attr
(
"disabled"
,
false
);
$
(
"#confirmButton"
).
attr
(
"disabled"
,
false
);
}
else
{
$
(
"#guanlian"
).
attr
(
"disabled"
,
true
);
$
(
"#preview"
).
attr
(
"disabled"
,
true
);
$
(
"#create"
).
attr
(
"disabled"
,
true
);
$
(
"#closeButton"
).
attr
(
"disabled"
,
true
);
...
...
@@ -632,11 +634,13 @@ function checkAll(){
}
// 无复选框被选中时,生成协查单按钮,删除按钮,确认按钮都不可用
if
(
ids
.
length
>
0
)
{
$
(
"#guanlian"
).
attr
(
"disabled"
,
false
);
$
(
"#preview"
).
attr
(
"disabled"
,
false
);
$
(
"#create"
).
attr
(
"disabled"
,
false
);
$
(
"#closeButton"
).
attr
(
"disabled"
,
false
);
$
(
"#confirmButton"
).
attr
(
"disabled"
,
false
);
}
else
{
$
(
"#guanlian"
).
attr
(
"disabled"
,
true
);
$
(
"#preview"
).
attr
(
"disabled"
,
true
);
$
(
"#create"
).
attr
(
"disabled"
,
true
);
$
(
"#closeButton"
).
attr
(
"disabled"
,
true
);
...
...
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