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
ea1d1e22
Commit
ea1d1e22
authored
Dec 01, 2017
by
liuna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2017年12月1日 智能分析平台提交内容
--数据质量核查
parent
a061e9dd
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
1526 additions
and
145 deletions
+1526
-145
workspace.xml
.idea/workspace.xml
+111
-145
QualityRuleInfo.java
src/main/java/com/hp/cmsz/entity/QualityRuleInfo.java
+196
-0
QualityRuleView.java
src/main/java/com/hp/cmsz/entity/QualityRuleView.java
+187
-0
QualityRuleInfoDao.java
src/main/java/com/hp/cmsz/repository/QualityRuleInfoDao.java
+20
-0
QualityRuleViewDao.java
src/main/java/com/hp/cmsz/repository/QualityRuleViewDao.java
+15
-0
QualityRuleInfoService.java
.../cmsz/service/analysissupport/QualityRuleInfoService.java
+27
-0
QualityRuleViewService.java
.../cmsz/service/analysissupport/QualityRuleViewService.java
+23
-0
QualityRuleOperationController.java
...z/web/analysissupport/QualityRuleOperationController.java
+148
-0
QualityRule_IfFilter.tag
src/main/webapp/WEB-INF/tags/QualityRule_IfFilter.tag
+31
-0
QualityRuleOperation.jsp
...pp/WEB-INF/views/AnalysisSupport/QualityRuleOperation.jsp
+171
-0
ruleOperationDetailTable.js
src/main/webapp/static/js/ruleOperationDetailTable.js
+597
-0
No files found.
.idea/workspace.xml
View file @
ea1d1e22
...
@@ -6,20 +6,19 @@
...
@@ -6,20 +6,19 @@
</artifacts-to-build>
</artifacts-to-build>
</component>
</component>
<component
name=
"ChangeListManager"
>
<component
name=
"ChangeListManager"
>
<list
default=
"true"
readonly=
"true"
id=
"729f43c8-1bb9-40d5-9567-47c5307fe3f5"
name=
"Default"
comment=
"2017年11月28 智能分析平台提交内容 --质量规则维护"
>
<list
default=
"true"
readonly=
"true"
id=
"729f43c8-1bb9-40d5-9567-47c5307fe3f5"
name=
"Default"
comment=
""
>
<change
type=
"DELETED"
beforePath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleService.java"
afterPath=
""
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/entity/QualityRuleInfo.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/classes/com/hp/cmsz/web/PageURLController.class"
afterPath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/classes/com/hp/cmsz/web/PageURLController.class"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/entity/QualityRuleView.java"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/repository/QualityRuleInfoDao.java"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/repository/QualityRuleViewDao.java"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleInfoService.java"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleViewService.java"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleOperationController.java"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/tags/QualityRule_IfFilter.tag"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleOperation.jsp"
/>
<change
type=
"NEW"
beforePath=
""
afterPath=
"$PROJECT_DIR$/src/main/webapp/static/js/ruleOperationDetailTable.js"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/.idea/workspace.xml"
afterPath=
"$PROJECT_DIR$/.idea/workspace.xml"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/entity/QualityRule.java"
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/entity/QualityRule.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleService.java"
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleService.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/repository/QualityRuleDao.java"
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/repository/QualityRuleDao.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/PageURLController.java"
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/PageURLController.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleMaintainController.java"
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleMaintainController.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleResultController.java"
afterPath=
"$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleResultController.java"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/layouts/header.jsp"
afterPath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/layouts/header.jsp"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/FilterRuleResult.jsp"
afterPath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/FilterRuleResult.jsp"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleMaintain.jsp"
afterPath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleMaintain.jsp"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleResult.jsp"
afterPath=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleResult.jsp"
/>
<change
type=
"MODIFICATION"
beforePath=
"$PROJECT_DIR$/src/main/webapp/static/js/ruleResultDetailTable.js"
afterPath=
"$PROJECT_DIR$/src/main/webapp/static/js/ruleResultDetailTable.js"
/>
</list>
</list>
<ignored
path=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/classes/"
/>
<ignored
path=
"$PROJECT_DIR$/src/main/webapp/WEB-INF/classes/"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
<option
name=
"EXCLUDED_CONVERTED_TO_IGNORED"
value=
"true"
/>
...
@@ -34,20 +33,10 @@
...
@@ -34,20 +33,10 @@
</component>
</component>
<component
name=
"FileEditorManager"
>
<component
name=
"FileEditorManager"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<leaf
SIDE_TABS_SIZE_LIMIT_KEY=
"300"
>
<file
leaf-file-name=
"WorkingOrderManageControll.java"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"QualityRuleOperationController.java"
pinned=
"false"
current-in-tab=
"true"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/monitoroperation/WorkingOrderManageControll.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"1205"
>
<caret
line=
"189"
column=
"33"
lean-forward=
"true"
selection-start-line=
"189"
selection-start-column=
"33"
selection-end-line=
"189"
selection-end-column=
"33"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"QualityRuleOperationController.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleOperationController.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleOperationController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
125
"
>
<state
relative-caret-position=
"
-997
"
>
<caret
line=
"82"
column=
"53"
lean-forward=
"false"
selection-start-line=
"82"
selection-start-column=
"53"
selection-end-line=
"82"
selection-end-column=
"53"
/>
<caret
line=
"82"
column=
"53"
lean-forward=
"false"
selection-start-line=
"82"
selection-start-column=
"53"
selection-end-line=
"82"
selection-end-column=
"53"
/>
<folding
/>
<folding
/>
</state>
</state>
...
@@ -57,28 +46,8 @@
...
@@ -57,28 +46,8 @@
<file
leaf-file-name=
"QualityRuleInfoDao.java"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"QualityRuleInfoDao.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/repository/QualityRuleInfoDao.java"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/repository/QualityRuleInfoDao.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"242"
>
<state
relative-caret-position=
"286"
>
<caret
line=
"18"
column=
"125"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"125"
selection-end-line=
"18"
selection-end-column=
"125"
/>
<caret
line=
"20"
column=
"0"
lean-forward=
"true"
selection-start-line=
"20"
selection-start-column=
"0"
selection-end-line=
"20"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"QualityRuleInfo.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/entity/QualityRuleInfo.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2772"
>
<caret
line=
"195"
column=
"1"
lean-forward=
"false"
selection-start-line=
"195"
selection-start-column=
"1"
selection-end-line=
"195"
selection-end-column=
"1"
/>
<folding
/>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"DataModelDao.java"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/repository/DataModelDao.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-20"
>
<caret
line=
"37"
column=
"14"
lean-forward=
"true"
selection-start-line=
"37"
selection-start-column=
"14"
selection-end-line=
"37"
selection-end-column=
"14"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
...
@@ -97,48 +66,37 @@
...
@@ -97,48 +66,37 @@
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"header.jsp"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"QualityRuleOperation.jsp"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/layouts/header.jsp"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleOperation.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"264"
>
<caret
line=
"276"
column=
"113"
lean-forward=
"false"
selection-start-line=
"276"
selection-start-column=
"113"
selection-end-line=
"276"
selection-end-column=
"113"
/>
<folding>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"28676:28700"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"28918:28932"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29204:29218"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29492:29506"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29669:29686"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
</file>
<file
leaf-file-name=
"FilterRuleResult.jsp"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/FilterRuleResult.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2
95
"
>
<state
relative-caret-position=
"2
20
"
>
<caret
line=
"
29"
column=
"88"
lean-forward=
"true"
selection-start-line=
"29"
selection-start-column=
"88"
selection-end-line=
"29"
selection-end-column=
"88
"
/>
<caret
line=
"
43"
column=
"54"
lean-forward=
"false"
selection-start-line=
"43"
selection-start-column=
"54"
selection-end-line=
"43"
selection-end-column=
"54
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"
QualityRuleResult
.jsp"
pinned=
"false"
current-in-tab=
"false"
>
<file
leaf-file-name=
"
InsideXcd
.jsp"
pinned=
"false"
current-in-tab=
"false"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/
AnalysisSupport/QualityRuleResult
.jsp"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/
MonitorOperation/InsideXcd
.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"299"
>
<state
relative-caret-position=
"264"
>
<caret
line=
"29"
column=
"89"
lean-forward=
"false"
selection-start-line=
"29"
selection-start-column=
"89"
selection-end-line=
"29"
selection-end-column=
"89"
/>
<caret
line=
"93"
column=
"51"
lean-forward=
"true"
selection-start-line=
"93"
selection-start-column=
"51"
selection-end-line=
"93"
selection-end-column=
"51"
/>
<folding
/>
<folding>
<marker
date=
"1511516640327"
expanded=
"true"
signature=
"13862:13918"
ph=
"..."
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
</file>
</file>
<file
leaf-file-name=
"
QualityRuleOperation.jsp"
pinned=
"false"
current-in-tab=
"tru
e"
>
<file
leaf-file-name=
"
WorkingOrderManage.jsp"
pinned=
"false"
current-in-tab=
"fals
e"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/
AnalysisSupport/QualityRuleOperation
.jsp"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/
MonitorOperation/WorkingOrderManage
.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"281"
>
<state
relative-caret-position=
"-10098"
>
<caret
line=
"30"
column=
"85"
lean-forward=
"false"
selection-start-line=
"30"
selection-start-column=
"85"
selection-end-line=
"30"
selection-end-column=
"85"
/>
<caret
line=
"549"
column=
"39"
lean-forward=
"false"
selection-start-line=
"549"
selection-start-column=
"39"
selection-end-line=
"549"
selection-end-column=
"57"
/>
<folding
/>
<folding>
<marker
date=
"1511516640337"
expanded=
"true"
signature=
"47293:47349"
ph=
"..."
/>
<marker
date=
"1511516640337"
expanded=
"true"
signature=
"47572:47583"
ph=
"..."
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
...
@@ -702,7 +660,7 @@
...
@@ -702,7 +660,7 @@
<workItem
from=
"1511860853640"
duration=
"322000"
/>
<workItem
from=
"1511860853640"
duration=
"322000"
/>
<workItem
from=
"1511861266553"
duration=
"41183000"
/>
<workItem
from=
"1511861266553"
duration=
"41183000"
/>
<workItem
from=
"1512006065543"
duration=
"10575000"
/>
<workItem
from=
"1512006065543"
duration=
"10575000"
/>
<workItem
from=
"1512018064699"
duration=
"2
1967
000"
/>
<workItem
from=
"1512018064699"
duration=
"2
2846
000"
/>
</task>
</task>
<task
id=
"LOCAL-00001"
summary=
"first commit"
>
<task
id=
"LOCAL-00001"
summary=
"first commit"
>
<created>
1507828551888
</created>
<created>
1507828551888
</created>
...
@@ -788,11 +746,18 @@
...
@@ -788,11 +746,18 @@
<option
name=
"project"
value=
"LOCAL"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1511851739774
</updated>
<updated>
1511851739774
</updated>
</task>
</task>
<option
name=
"localTasksCounter"
value=
"13"
/>
<task
id=
"LOCAL-00013"
summary=
"2017年12月1日 智能分析平台提交内容 --数据质量核查"
>
<created>
1512093167759
</created>
<option
name=
"number"
value=
"00013"
/>
<option
name=
"presentableId"
value=
"LOCAL-00013"
/>
<option
name=
"project"
value=
"LOCAL"
/>
<updated>
1512093167759
</updated>
</task>
<option
name=
"localTasksCounter"
value=
"14"
/>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"38
6559
000"
/>
<option
name=
"totallyTimeSpent"
value=
"38
7438
000"
/>
</component>
</component>
<component
name=
"TodoView"
>
<component
name=
"TodoView"
>
<todo-panel
id=
"selected-file"
>
<todo-panel
id=
"selected-file"
>
...
@@ -823,11 +788,11 @@
...
@@ -823,11 +788,11 @@
<window_info
id=
"Image Layers"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"5"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Image Layers"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"5"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Java Enterprise"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32786885"
sideWeight=
"0.5"
order=
"9"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Java Enterprise"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32786885"
sideWeight=
"0.5"
order=
"9"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Capture Analysis"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Capture Analysis"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"6"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
false"
show_stripe_button=
"true"
weight=
"0.74590164
"
sideWeight=
"0.4939394"
order=
"5"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Run"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"
true"
show_stripe_button=
"true"
weight=
"0.29508197
"
sideWeight=
"0.4939394"
order=
"5"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.5344262"
sideWeight=
"0.49545455"
order=
"12"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Version Control"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.5344262"
sideWeight=
"0.49545455"
order=
"12"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Spring"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32786885"
sideWeight=
"0.5"
order=
"13"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Spring"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32786885"
sideWeight=
"0.5"
order=
"13"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32840723"
sideWeight=
"0.5"
order=
"14"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Terminal"
active=
"false"
anchor=
"bottom"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32840723"
sideWeight=
"0.5"
order=
"14"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Project"
active=
"
fals
e"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.25113463"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Project"
active=
"
tru
e"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"true"
show_stripe_button=
"true"
weight=
"0.25113463"
sideWeight=
"0.5"
order=
"0"
side_tool=
"false"
content_ui=
"combo"
/>
<window_info
id=
"Bean Validation"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Bean Validation"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"7"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Web"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32954547"
sideWeight=
"0.5"
order=
"3"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Web"
active=
"false"
anchor=
"left"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.32954547"
sideWeight=
"0.5"
order=
"3"
side_tool=
"true"
content_ui=
"tabs"
/>
<window_info
id=
"Theme Preview"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"8"
side_tool=
"false"
content_ui=
"tabs"
/>
<window_info
id=
"Theme Preview"
active=
"false"
anchor=
"right"
auto_hide=
"false"
internal_type=
"DOCKED"
type=
"DOCKED"
visible=
"false"
show_stripe_button=
"true"
weight=
"0.33"
sideWeight=
"0.5"
order=
"8"
side_tool=
"false"
content_ui=
"tabs"
/>
...
@@ -932,7 +897,8 @@
...
@@ -932,7 +897,8 @@
<MESSAGE
value=
"2017年11月09 智能分析平台提交内容 --模型管理增加字段 --告警监控-内部协查单功能 --验收通过"
/>
<MESSAGE
value=
"2017年11月09 智能分析平台提交内容 --模型管理增加字段 --告警监控-内部协查单功能 --验收通过"
/>
<MESSAGE
value=
"2017年11月09 智能分析平台提交内容 --数据库脚本更新"
/>
<MESSAGE
value=
"2017年11月09 智能分析平台提交内容 --数据库脚本更新"
/>
<MESSAGE
value=
"2017年11月28 智能分析平台提交内容 --质量规则维护"
/>
<MESSAGE
value=
"2017年11月28 智能分析平台提交内容 --质量规则维护"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"2017年11月28 智能分析平台提交内容 --质量规则维护"
/>
<MESSAGE
value=
"2017年12月1日 智能分析平台提交内容 --数据质量核查"
/>
<option
name=
"LAST_COMMIT_MESSAGE"
value=
"2017年12月1日 智能分析平台提交内容 --数据质量核查"
/>
</component>
</component>
<component
name=
"XDebuggerManager"
>
<component
name=
"XDebuggerManager"
>
<breakpoint-manager>
<breakpoint-manager>
...
@@ -961,32 +927,6 @@
...
@@ -961,32 +927,6 @@
</buildFile>
</buildFile>
</component>
</component>
<component
name=
"editorHistoryManager"
>
<component
name=
"editorHistoryManager"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/monitoroperation/InsideXcdController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"2086"
>
<caret
line=
"139"
column=
"59"
lean-forward=
"false"
selection-start-line=
"139"
selection-start-column=
"32"
selection-end-line=
"139"
selection-end-column=
"59"
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/modelmanage/ModelMaintainController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"726"
>
<caret
line=
"130"
column=
"11"
lean-forward=
"false"
selection-start-line=
"130"
selection-start-column=
"11"
selection-end-line=
"130"
selection-end-column=
"11"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ModelManage/ModelMaintain.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"975"
>
<caret
line=
"203"
column=
"4"
lean-forward=
"true"
selection-start-line=
"203"
selection-start-column=
"4"
selection-end-line=
"203"
selection-end-column=
"4"
/>
<folding>
<marker
date=
"1511516952446"
expanded=
"true"
signature=
"10247:10253"
ph=
"&nbsp;"
/>
<marker
date=
"1511516952446"
expanded=
"true"
signature=
"10253:10259"
ph=
"&nbsp;"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"jar://$APPLICATION_HOME_DIR$/lib/idea.jar!/standardSchemas/xhtml1-transitional.dtd"
>
<entry
file=
"jar://$APPLICATION_HOME_DIR$/lib/idea.jar!/standardSchemas/xhtml1-transitional.dtd"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"104"
>
<state
relative-caret-position=
"104"
>
...
@@ -1211,17 +1151,6 @@
...
@@ -1211,17 +1151,6 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/MonitorOperation/WorkingOrderManage.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-5975"
>
<caret
line=
"949"
column=
"22"
lean-forward=
"false"
selection-start-line=
"949"
selection-start-column=
"11"
selection-end-line=
"949"
selection-end-column=
"22"
/>
<folding>
<marker
date=
"1511516640337"
expanded=
"true"
signature=
"47293:47349"
ph=
"..."
/>
<marker
date=
"1511516640337"
expanded=
"true"
signature=
"47572:47583"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ModelManage/ModelResult.jsp"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/ModelManage/ModelResult.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"565"
>
<state
relative-caret-position=
"565"
>
...
@@ -1335,50 +1264,49 @@
...
@@ -1335,50 +1264,49 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/
java/com/hp/cmsz/web/analysissupport/QualityRuleOperationController.java
"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/
webapp/WEB-INF/layouts/header.jsp
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"125"
>
<state
relative-caret-position=
"264"
>
<caret
line=
"82"
column=
"53"
lean-forward=
"false"
selection-start-line=
"82"
selection-start-column=
"53"
selection-end-line=
"82"
selection-end-column=
"53"
/>
<caret
line=
"276"
column=
"113"
lean-forward=
"false"
selection-start-line=
"276"
selection-start-column=
"113"
selection-end-line=
"276"
selection-end-column=
"113"
/>
<folding
/>
<folding>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"28676:28700"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"28918:28932"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29204:29218"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29492:29506"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29669:29686"
ph=
"..."
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/
java/com/hp/cmsz/repository/QualityRuleInfoDao.java
"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/
webapp/WEB-INF/tags/PeriodTag.tag
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
242
"
>
<state
relative-caret-position=
"
-2046
"
>
<caret
line=
"
18"
column=
"125"
lean-forward=
"false"
selection-start-line=
"18"
selection-start-column=
"125"
selection-end-line=
"18"
selection-end-column=
"125
"
/>
<caret
line=
"
0"
column=
"0"
lean-forward=
"false"
selection-start-line=
"0"
selection-start-column=
"0"
selection-end-line=
"0"
selection-end-column=
"0
"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/
java/com/hp/cmsz/service/analysissupport/QualityRuleInfoService.java
"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/
webapp/WEB-INF/views/MonitorOperation/InsideXcd.jsp
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
37
4"
>
<state
relative-caret-position=
"
26
4"
>
<caret
line=
"
24"
column=
"38"
lean-forward=
"false"
selection-start-line=
"24"
selection-start-column=
"38"
selection-end-line=
"24"
selection-end-column=
"38
"
/>
<caret
line=
"
93"
column=
"51"
lean-forward=
"true"
selection-start-line=
"93"
selection-start-column=
"51"
selection-end-line=
"93"
selection-end-column=
"51
"
/>
<folding>
<folding>
<element
signature=
"e#556#557#0"
expanded=
"true"
/>
<marker
date=
"1511516640327"
expanded=
"true"
signature=
"13862:13918"
ph=
"..."
/>
<element
signature=
"e#619#620#0"
expanded=
"true"
/>
</folding>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/
layouts/header.jsp
"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/
tags/GZFX_Period_stats.tag
"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"264"
>
<state
relative-caret-position=
"176"
>
<caret
line=
"276"
column=
"113"
lean-forward=
"false"
selection-start-line=
"276"
selection-start-column=
"113"
selection-end-line=
"276"
selection-end-column=
"113"
/>
<caret
line=
"101"
column=
"9"
lean-forward=
"false"
selection-start-line=
"101"
selection-start-column=
"9"
selection-end-line=
"101"
selection-end-column=
"22"
/>
<folding>
<folding
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"28676:28700"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"28918:28932"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29204:29218"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29492:29506"
ph=
"..."
/>
<marker
date=
"1512092899872"
expanded=
"true"
signature=
"29669:29686"
ph=
"..."
/>
</folding>
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/FilterRuleResult.jsp"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/FilterRuleResult.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"
295
"
>
<state
relative-caret-position=
"
493
"
>
<caret
line=
"29"
column=
"88"
lean-forward=
"true"
selection-start-line=
"29"
selection-start-column=
"88"
selection-end-line=
"29"
selection-end-column=
"88"
/>
<caret
line=
"29"
column=
"88"
lean-forward=
"true"
selection-start-line=
"29"
selection-start-column=
"88"
selection-end-line=
"29"
selection-end-column=
"88"
/>
<folding
/>
<folding
/>
</state>
</state>
...
@@ -1392,10 +1320,48 @@
...
@@ -1392,10 +1320,48 @@
</state>
</state>
</provider>
</provider>
</entry>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleInfoService.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"374"
>
<caret
line=
"24"
column=
"38"
lean-forward=
"false"
selection-start-line=
"24"
selection-start-column=
"38"
selection-end-line=
"24"
selection-end-column=
"38"
/>
<folding>
<element
signature=
"e#556#557#0"
expanded=
"true"
/>
<element
signature=
"e#619#620#0"
expanded=
"true"
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleOperation.jsp"
>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleOperation.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"281"
>
<state
relative-caret-position=
"220"
>
<caret
line=
"30"
column=
"85"
lean-forward=
"false"
selection-start-line=
"30"
selection-start-column=
"85"
selection-end-line=
"30"
selection-end-column=
"85"
/>
<caret
line=
"43"
column=
"54"
lean-forward=
"false"
selection-start-line=
"43"
selection-start-column=
"54"
selection-end-line=
"43"
selection-end-column=
"54"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/webapp/WEB-INF/views/MonitorOperation/WorkingOrderManage.jsp"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-10098"
>
<caret
line=
"549"
column=
"39"
lean-forward=
"false"
selection-start-line=
"549"
selection-start-column=
"39"
selection-end-line=
"549"
selection-end-column=
"57"
/>
<folding>
<marker
date=
"1511516640337"
expanded=
"true"
signature=
"47293:47349"
ph=
"..."
/>
<marker
date=
"1511516640337"
expanded=
"true"
signature=
"47572:47583"
ph=
"..."
/>
</folding>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/repository/QualityRuleInfoDao.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"286"
>
<caret
line=
"20"
column=
"0"
lean-forward=
"true"
selection-start-line=
"20"
selection-start-column=
"0"
selection-end-line=
"20"
selection-end-column=
"0"
/>
<folding
/>
</state>
</provider>
</entry>
<entry
file=
"file://$PROJECT_DIR$/src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleOperationController.java"
>
<provider
selected=
"true"
editor-type-id=
"text-editor"
>
<state
relative-caret-position=
"-997"
>
<caret
line=
"82"
column=
"53"
lean-forward=
"false"
selection-start-line=
"82"
selection-start-column=
"53"
selection-end-line=
"82"
selection-end-column=
"53"
/>
<folding
/>
<folding
/>
</state>
</state>
</provider>
</provider>
...
...
src/main/java/com/hp/cmsz/entity/QualityRuleInfo.java
0 → 100644
View file @
ea1d1e22
package
com
.
hp
.
cmsz
.
entity
;
import
org.elasticsearch.cluster.metadata.MappingMetaData
;
import
javax.persistence.*
;
import
java.sql.Timestamp
;
/**
* ccolap.quality_operation_detail_v视图对应的实体类
*
* @author Liu Na
*
*/
@Entity
@Table
(
name
=
"quality_operation_detail_v"
)
public
class
QualityRuleInfo
{
private
Long
qualityRuleId
;
private
Long
kpiId
;
private
Long
businessId
;
private
Long
channelId
;
private
Long
dataSourceId
;
private
Long
provinceId
;
private
Long
qualityVerificationResultId
;
private
Timestamp
kpiMonitorRunTime
;
private
Timestamp
businessTime
;
private
String
kpiName
;
private
String
kpiCode
;
private
String
businessName
;
private
String
channelName
;
private
String
dataSourceName
;
private
String
provinceName
;
private
String
warningType
;
private
Long
ifFilter
;
public
Long
getQualityRuleId
()
{
return
qualityRuleId
;
}
public
void
setQualityRuleId
(
Long
qualityRuleId
)
{
this
.
qualityRuleId
=
qualityRuleId
;
}
public
Long
getKpiId
()
{
return
kpiId
;
}
public
void
setKpiId
(
Long
kpiId
)
{
this
.
kpiId
=
kpiId
;
}
public
Long
getBusinessId
()
{
return
businessId
;
}
public
void
setBusinessId
(
Long
businessId
)
{
this
.
businessId
=
businessId
;
}
public
Long
getChannelId
()
{
return
channelId
;
}
public
void
setChannelId
(
Long
channelId
)
{
this
.
channelId
=
channelId
;
}
public
Long
getDataSourceId
()
{
return
dataSourceId
;
}
public
void
setDataSourceId
(
Long
dataSourceId
)
{
this
.
dataSourceId
=
dataSourceId
;
}
public
Long
getProvinceId
()
{
return
provinceId
;
}
public
void
setProvinceId
(
Long
provinceId
)
{
this
.
provinceId
=
provinceId
;
}
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
public
Long
getQualityVerificationResultId
()
{
return
qualityVerificationResultId
;
}
public
void
setQualityVerificationResultId
(
Long
qualityVerificationResultId
)
{
this
.
qualityVerificationResultId
=
qualityVerificationResultId
;
}
public
Timestamp
getKpiMonitorRunTime
()
{
return
kpiMonitorRunTime
;
}
public
void
setKpiMonitorRunTime
(
Timestamp
kpiMonitorRunTime
)
{
this
.
kpiMonitorRunTime
=
kpiMonitorRunTime
;
}
public
Timestamp
getBusinessTime
()
{
return
businessTime
;
}
public
void
setBusinessTime
(
Timestamp
businessTime
)
{
this
.
businessTime
=
businessTime
;
}
public
String
getKpiName
()
{
return
kpiName
;
}
public
void
setKpiName
(
String
kpiName
)
{
this
.
kpiName
=
kpiName
;
}
public
String
getKpiCode
()
{
return
kpiCode
;
}
public
void
setKpiCode
(
String
kpiCode
)
{
this
.
kpiCode
=
kpiCode
;
}
public
String
getBusinessName
()
{
return
businessName
;
}
public
void
setBusinessName
(
String
businessName
)
{
this
.
businessName
=
businessName
;
}
public
String
getChannelName
()
{
return
channelName
;
}
public
void
setChannelName
(
String
channelName
)
{
this
.
channelName
=
channelName
;
}
public
String
getDataSourceName
()
{
return
dataSourceName
;
}
public
void
setDataSourceName
(
String
dataSourceName
)
{
this
.
dataSourceName
=
dataSourceName
;
}
public
String
getProvinceName
()
{
return
provinceName
;
}
public
void
setProvinceName
(
String
provinceName
)
{
this
.
provinceName
=
provinceName
;
}
public
String
getWarningType
()
{
return
warningType
;
}
public
void
setWarningType
(
String
warningType
)
{
this
.
warningType
=
warningType
;
}
public
Long
getIfFilter
()
{
return
ifFilter
;
}
public
void
setIfFilter
(
Long
ifFilter
)
{
this
.
ifFilter
=
ifFilter
;
}
@Override
public
String
toString
()
{
return
"QualityRuleInfo{"
+
"kpiId="
+
kpiId
+
", businessId="
+
businessId
+
", channelId="
+
channelId
+
", dataSourceId="
+
dataSourceId
+
", provinceId="
+
provinceId
+
", qualityVerificationResultId="
+
qualityVerificationResultId
+
", qualityRuleId="
+
qualityRuleId
+
", kpiMonitorRunTime="
+
kpiMonitorRunTime
+
", businessTime="
+
businessTime
+
", kpiName='"
+
kpiName
+
'\''
+
", kpiCode='"
+
kpiCode
+
'\''
+
", businessName='"
+
businessName
+
'\''
+
", channelName='"
+
channelName
+
'\''
+
", dataSourceName='"
+
dataSourceName
+
'\''
+
", provinceName='"
+
provinceName
+
'\''
+
", warningType='"
+
warningType
+
'\''
+
", ifFilter='"
+
ifFilter
+
'\''
+
'}'
;
}
}
src/main/java/com/hp/cmsz/entity/QualityRuleView.java
0 → 100644
View file @
ea1d1e22
package
com
.
hp
.
cmsz
.
entity
;
import
javax.persistence.*
;
import
java.sql.Timestamp
;
/**
* ccolap.quality_rule_detail_v视图对应的实体类
*
* @author Liu Na
*
*/
@Entity
@Table
(
name
=
"quality_rule_detail_v"
)
public
class
QualityRuleView
{
private
Long
qualityRuleId
;
private
Long
kpiId
;
private
Long
businessId
;
private
Long
channelId
;
private
Long
dataSourceId
;
private
Long
provinceId
;
private
String
kpiMonitorTime
;
private
Timestamp
businessTime
;
private
String
kpiName
;
private
String
kpiCode
;
private
String
businessName
;
private
String
channelName
;
private
String
dataSourceName
;
private
String
provinceName
;
private
String
calCycle
;
private
String
kpiTypeName
;
public
Long
getKpiId
()
{
return
kpiId
;
}
public
void
setKpiId
(
Long
kpiId
)
{
this
.
kpiId
=
kpiId
;
}
public
Long
getBusinessId
()
{
return
businessId
;
}
public
void
setBusinessId
(
Long
businessId
)
{
this
.
businessId
=
businessId
;
}
public
Long
getChannelId
()
{
return
channelId
;
}
public
void
setChannelId
(
Long
channelId
)
{
this
.
channelId
=
channelId
;
}
public
Long
getDataSourceId
()
{
return
dataSourceId
;
}
public
void
setDataSourceId
(
Long
dataSourceId
)
{
this
.
dataSourceId
=
dataSourceId
;
}
public
Long
getProvinceId
()
{
return
provinceId
;
}
public
void
setProvinceId
(
Long
provinceId
)
{
this
.
provinceId
=
provinceId
;
}
@Id
@GeneratedValue
(
strategy
=
GenerationType
.
IDENTITY
)
public
Long
getQualityRuleId
()
{
return
qualityRuleId
;
}
public
void
setQualityRuleId
(
Long
qualityRuleId
)
{
this
.
qualityRuleId
=
qualityRuleId
;
}
public
String
getKpiMonitorTime
()
{
return
kpiMonitorTime
;
}
public
void
setKpiMonitorTime
(
String
kpiMonitorTime
)
{
this
.
kpiMonitorTime
=
kpiMonitorTime
;
}
public
Timestamp
getBusinessTime
()
{
return
businessTime
;
}
public
void
setBusinessTime
(
Timestamp
businessTime
)
{
this
.
businessTime
=
businessTime
;
}
public
String
getKpiName
()
{
return
kpiName
;
}
public
void
setKpiName
(
String
kpiName
)
{
this
.
kpiName
=
kpiName
;
}
public
String
getKpiCode
()
{
return
kpiCode
;
}
public
void
setKpiCode
(
String
kpiCode
)
{
this
.
kpiCode
=
kpiCode
;
}
public
String
getBusinessName
()
{
return
businessName
;
}
public
void
setBusinessName
(
String
businessName
)
{
this
.
businessName
=
businessName
;
}
public
String
getChannelName
()
{
return
channelName
;
}
public
void
setChannelName
(
String
channelName
)
{
this
.
channelName
=
channelName
;
}
public
String
getDataSourceName
()
{
return
dataSourceName
;
}
public
void
setDataSourceName
(
String
dataSourceName
)
{
this
.
dataSourceName
=
dataSourceName
;
}
public
String
getProvinceName
()
{
return
provinceName
;
}
public
void
setProvinceName
(
String
provinceName
)
{
this
.
provinceName
=
provinceName
;
}
public
String
getCalCycle
()
{
return
calCycle
;
}
public
void
setCalCycle
(
String
calCycle
)
{
this
.
calCycle
=
calCycle
;
}
public
String
getKpiTypeName
()
{
return
kpiTypeName
;
}
public
void
setKpiTypeName
(
String
kpiTypeName
)
{
this
.
kpiTypeName
=
kpiTypeName
;
}
@Override
public
String
toString
()
{
return
"QualityRuleView{"
+
"kpiId="
+
kpiId
+
", businessId="
+
businessId
+
", channelId="
+
channelId
+
", dataSourceId="
+
dataSourceId
+
", provinceId="
+
provinceId
+
", qualityRuleId="
+
qualityRuleId
+
", kpiMonitorTime='"
+
kpiMonitorTime
+
'\''
+
", businessTime="
+
businessTime
+
", kpiName='"
+
kpiName
+
'\''
+
", kpiCode='"
+
kpiCode
+
'\''
+
", businessName='"
+
businessName
+
'\''
+
", channelName='"
+
channelName
+
'\''
+
", dataSourceName='"
+
dataSourceName
+
'\''
+
", provinceName='"
+
provinceName
+
'\''
+
", calCycle='"
+
calCycle
+
'\''
+
", kpiTypeName='"
+
kpiTypeName
+
'\''
+
'}'
;
}
}
src/main/java/com/hp/cmsz/repository/QualityRuleInfoDao.java
0 → 100644
View file @
ea1d1e22
package
com
.
hp
.
cmsz
.
repository
;
import
com.hp.cmsz.entity.QualityRuleInfo
;
import
org.springframework.data.jpa.domain.Specification
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.jpa.repository.Query
;
import
org.springframework.data.repository.PagingAndSortingRepository
;
import
java.util.Date
;
import
java.util.List
;
public
interface
QualityRuleInfoDao
extends
JpaSpecificationExecutor
<
QualityRuleInfo
>,
PagingAndSortingRepository
<
QualityRuleInfo
,
Long
>
{
@Query
(
"from QualityRuleInfo qualityRuleInfo where qualityRuleInfo.businessTime between timestampadd(M,-1,getdate()) and getdate() order by qualityRuleInfo.businessTime Desc"
)
List
<
QualityRuleInfo
>
findQualityRuleInfo
();
//根据筛选项查找
List
<
QualityRuleInfo
>
findByBusinessTimeBetweenAndChannelIdInAndBusinessIdInAndProvinceIdInAndIfFilterInAndDataSourceIdInOrderByBusinessTimeDesc
(
Date
time1
,
Date
time2
,
List
<
Long
>
dataSource
,
List
<
Long
>
chnnal
,
List
<
Long
>
busines
,
List
<
Long
>
province
,
List
<
Long
>
ifFilter
);
}
src/main/java/com/hp/cmsz/repository/QualityRuleViewDao.java
0 → 100644
View file @
ea1d1e22
package
com
.
hp
.
cmsz
.
repository
;
import
com.hp.cmsz.entity.QualityRuleView
;
import
org.springframework.data.jpa.repository.JpaSpecificationExecutor
;
import
org.springframework.data.repository.PagingAndSortingRepository
;
import
java.util.List
;
public
interface
QualityRuleViewDao
extends
JpaSpecificationExecutor
<
QualityRuleView
>,
PagingAndSortingRepository
<
QualityRuleView
,
Long
>
{
//根据筛选项得到质量规则
List
<
QualityRuleView
>
findByDataSourceIdInAndChannelIdInAndBusinessIdInAndProvinceIdInOrderByQualityRuleIdAscBusinessTimeDesc
(
List
<
Long
>
dataSource
,
List
<
Long
>
chnnal
,
List
<
Long
>
busines
,
List
<
Long
>
province
);
}
src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleInfoService.java
0 → 100644
View file @
ea1d1e22
package
com
.
hp
.
cmsz
.
service
.
analysissupport
;
import
com.hp.cmsz.entity.QualityRuleInfo
;
import
com.hp.cmsz.repository.QualityRuleInfoDao
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.Date
;
import
java.util.List
;
@Service
@Transactional
public
class
QualityRuleInfoService
{
@Autowired
private
QualityRuleInfoDao
qualityRuleInfoDao
;
public
List
<
QualityRuleInfo
>
getQualityRuleInfoByLastMonth
(){
return
qualityRuleInfoDao
.
findQualityRuleInfo
();
}
//根据筛选项获取质量规则
public
List
<
QualityRuleInfo
>
getQualityRuleInfoBy
(
Date
time1
,
Date
time2
,
List
<
Long
>
dataSource
,
List
<
Long
>
chnnal
,
List
<
Long
>
busines
,
List
<
Long
>
province
,
List
<
Long
>
ifFilter
){
return
qualityRuleInfoDao
.
findByBusinessTimeBetweenAndChannelIdInAndBusinessIdInAndProvinceIdInAndIfFilterInAndDataSourceIdInOrderByBusinessTimeDesc
(
time1
,
time2
,
dataSource
,
chnnal
,
busines
,
province
,
ifFilter
);
}
}
src/main/java/com/hp/cmsz/service/analysissupport/QualityRuleViewService.java
0 → 100644
View file @
ea1d1e22
package
com
.
hp
.
cmsz
.
service
.
analysissupport
;
import
com.hp.cmsz.entity.QualityRuleView
;
import
com.hp.cmsz.repository.QualityRuleViewDao
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
java.util.List
;
@Service
@Transactional
public
class
QualityRuleViewService
{
@Autowired
private
QualityRuleViewDao
qualityRuleViewDao
;
//根据筛选项得到质量规则
public
List
<
QualityRuleView
>
getQualityRuleViewBy
(
List
<
Long
>
dataSource
,
List
<
Long
>
chnnal
,
List
<
Long
>
busines
,
List
<
Long
>
province
){
return
qualityRuleViewDao
.
findByDataSourceIdInAndChannelIdInAndBusinessIdInAndProvinceIdInOrderByQualityRuleIdAscBusinessTimeDesc
(
dataSource
,
chnnal
,
busines
,
province
);
}
}
src/main/java/com/hp/cmsz/web/analysissupport/QualityRuleOperationController.java
0 → 100644
View file @
ea1d1e22
package
com
.
hp
.
cmsz
.
web
.
analysissupport
;
import
com.google.gson.Gson
;
import
com.hp.cmsz.entity.*
;
import
com.hp.cmsz.repository.DataSourceDao
;
import
com.hp.cmsz.repository.KpiDao
;
import
com.hp.cmsz.repository.ProvinceDao
;
import
com.hp.cmsz.service.BusinessService
;
import
com.hp.cmsz.service.ChannelService
;
import
com.hp.cmsz.service.CmszOperationLogService
;
import
com.hp.cmsz.service.analysissupport.QualityRuleInfoService
;
import
com.hp.cmsz.web.PageURLController
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.RequestMapping
;
import
org.springframework.web.bind.annotation.RequestMethod
;
import
org.springframework.web.bind.annotation.RequestParam
;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.io.PrintWriter
;
import
java.io.UnsupportedEncodingException
;
import
java.text.ParseException
;
import
java.text.SimpleDateFormat
;
import
java.util.ArrayList
;
import
java.util.Date
;
import
java.util.List
;
import
java.util.Map
;
/**
* 数据质量核查中的质量规则运营结果控制类
*
* @author Liu Na
*
*/
@Controller
@RequestMapping
(
value
=
"AnalysisSupport/QualityRuleOperation"
)
public
class
QualityRuleOperationController
{
@Autowired
private
ProvinceDao
provinceDao
;
@Autowired
private
ChannelService
channelService
;
@Autowired
private
BusinessService
businessService
;
@Autowired
private
KpiDao
kpiDao
;
@Autowired
private
DataSourceDao
dataSourceDao
;
@Autowired
private
QualityRuleInfoService
qualityRuleInfoService
;
@Autowired
private
CmszOperationLogService
cmszOperationLogService
;
@RequestMapping
(
value
=
""
)
public
String
ruleResultHome
(
@RequestParam
(
value
=
"rulePageNum"
,
defaultValue
=
"1"
)
String
rulePageNum
,
Map
model
){
List
<
QualityRuleInfo
>
qualityRuleInfoList
=
new
ArrayList
<
QualityRuleInfo
>();
//查询出所有省份的信息
List
<
Province
>
provinceList
=(
List
<
Province
>)
provinceDao
.
findAll
();
//查询出所有的渠道信息
//List<Channel> channelList=(List<Channel>)channelDao.findChannel();
List
<
Channel
>
channelList
=
channelService
.
getAllChannels
();
//查询出所有的指标
List
<
Kpi
>
kpiList
=(
List
<
Kpi
>)
kpiDao
.
findAll
();
//查询出所有的业务
List
<
String
>
businessList
=
businessService
.
getAllBusinessIdAndBusinessName
();
//查询出所有的数据来源信息
List
<
DataSource
>
datasourceList
=
dataSourceDao
.
findDataSource
();
//查询出所有的运营质量规则
qualityRuleInfoList
=
qualityRuleInfoService
.
getQualityRuleInfoByLastMonth
();
Gson
gson
=
new
Gson
();
model
.
put
(
"provinceList"
,
provinceList
);
model
.
put
(
"channelList"
,
channelList
);
model
.
put
(
"kpiList"
,
kpiList
);
model
.
put
(
"businessList"
,
businessList
);
model
.
put
(
"datasourceList"
,
datasourceList
);
model
.
put
(
"qualityRuleInfoList"
,
gson
.
toJson
(
qualityRuleInfoList
));
model
.
put
(
"rulePageNum"
,
rulePageNum
);
cmszOperationLogService
.
createLog
(
"查询"
,
"质量规则运营"
,
"质量规则运营首页"
);
return
PageURLController
.
RuleOperation
;
}
//根据筛选项搜索
@RequestMapping
(
value
=
"/changeTable*"
,
method
=
RequestMethod
.
POST
)
@ResponseBody
public
void
changeTable
(
@RequestParam
(
value
=
"period"
)
String
period
,
// 时间
@RequestParam
(
value
=
"dataSource"
)
String
dataSource
,
// 数据来源
@RequestParam
(
value
=
"chnnal"
)
String
chnnal
,
//渠道
@RequestParam
(
value
=
"bussines"
)
String
bussines
,
//业务
@RequestParam
(
value
=
"province"
)
String
province
,
//省份
@RequestParam
(
value
=
"ifFilter"
)
String
ifFilter
,
//是否过滤
HttpServletResponse
response
)
throws
ParseException
,
UnsupportedEncodingException
{
SimpleDateFormat
sdf
=
new
SimpleDateFormat
(
"yyyy-MM-dd HH:mm:ss"
);
cmszOperationLogService
.
createLog
(
"查询"
,
"质量规则运营查询"
,
"质量规则运营页面查询"
);
List
<
QualityRuleInfo
>
qualityRuleInfoList
;
String
[]
time
=
period
.
split
(
"~"
);
String
[]
dataSourceS
=
dataSource
.
split
(
","
);
String
[]
chnnalS
=
chnnal
.
split
(
","
);
String
[]
bussinesS
=
bussines
.
split
(
","
);
String
[]
provinceS
=
province
.
split
(
","
);
String
[]
ifFilterS
=
province
.
split
(
","
);
Date
time1
=
sdf
.
parse
(
time
[
0
]);
Date
time2
=
sdf
.
parse
(
time
[
1
]);
List
<
Long
>
dataSourceList
=
changeStrToList
(
dataSourceS
);
List
<
Long
>
chnnalList
=
changeStrToList
(
chnnalS
);
List
<
Long
>
bussinesList
=
changeStrToList
(
bussinesS
);
List
<
Long
>
provinceList
=
changeStrToList
(
provinceS
);
List
<
Long
>
ifFilterList
=
changeStrToList
(
ifFilterS
);
qualityRuleInfoList
=
qualityRuleInfoService
.
getQualityRuleInfoBy
(
time1
,
time2
,
dataSourceList
,
chnnalList
,
bussinesList
,
provinceList
,
ifFilterList
);
Gson
gson
=
new
Gson
();
response
.
setContentType
(
"text/Xml;charset=gbk"
);
PrintWriter
out
=
null
;
try
{
out
=
response
.
getWriter
();
out
.
println
(
gson
.
toJson
(
qualityRuleInfoList
));
}
catch
(
IOException
e
)
{
// TODO Auto-generated catch block
e
.
printStackTrace
();
}
}
//将string数据类型转换成List<Long>类型
public
List
<
Long
>
changeStrToList
(
String
[]
str
){
List
<
Long
>
list
=
new
ArrayList
<
Long
>();
for
(
int
i
=
0
;
i
<
str
.
length
;
i
++){
list
.
add
(
Long
.
parseLong
(
str
[
i
]));
}
return
list
;
}
}
src/main/webapp/WEB-INF/tags/QualityRule_IfFilter.tag
0 → 100644
View file @
ea1d1e22
<%@tag pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<!-- 质量规则是否过滤 -->
<div id="ws" class="slide-menu-option">
<label>是否过滤</label>
<select class="slide-menu-select" id="ifFilter" name="ifFilter">
<option value="'1'" title="是"><a href="#">是</a></option>
<option value="'0'" title="否"><a href="#">否</a></option>
</select>
</div>
<script type="text/javascript">
//获取其被选中的value,若是0则代表不是关键配置,若是1则代表是关键配置
function getIfFilter(){
return $("#ifFilter").val();
}
function getIfFilterTitle(){
return $("#ifFilter").find("option:selected").attr("title");
}
function RelFilterRest() {
$("#ifFilter").val("1");
}
</script>
\ No newline at end of file
src/main/webapp/WEB-INF/views/AnalysisSupport/QualityRuleOperation.jsp
0 → 100644
View file @
ea1d1e22
<
%@
page
language=
"java"
pageEncoding=
"UTF-8"
%
>
<
%@
taglib
prefix=
"c"
uri=
"http://java.sun.com/jsp/jstl/core"
%
>
<
%@
taglib
prefix=
"tags"
tagdir=
"/WEB-INF/tags"
%
>
<
%@
taglib
prefix=
"shiro"
uri=
"http://shiro.apache.org/tags"
%
>
<c:set
var=
"ctx"
value=
"${pageContext.request.contextPath}"
/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html
lang=
"en"
>
<head>
<title>
全网监控智能分析平台
</title>
</head>
<body>
<div
id=
"sticky-wrap"
></div>
<div>
<div
class=
"container"
>
<ol
class=
"breadcrumb"
>
<li><a
href=
"${ctx}/index"
>
首页
</a></li>
<li>
数据质量核查
</li>
<li
class=
"active"
>
质量规则运营
</li>
</ol>
</div>
</div>
<div
id=
"main-container main-tab-container"
>
<div
id=
"content"
class=
"container"
>
<div
class=
"tab-bar-bt"
>
<ul
class=
"nav nav-tabs"
>
<li><a
href=
"${ctx}/AnalysisSupport/QualityRuleResult"
>
数据质量规则维护
</a></li>
<li
class=
"active"
><a
href=
"#home"
data-toggle=
"tab"
>
数据质量运营
</a></li>
<li><a
href=
"${ctx}/AnalysisSupport/FilterRuleResult"
>
过滤规则维护
</a></li>
</ul>
</div>
<div
class=
"section"
>
<div
class=
"tab-content"
>
<div
class=
"tab-pane fade in active"
id=
"home"
>
<div
class=
"row me-row"
>
<div
id=
"slidePushMenus2"
class=
"cbp-spmenu-push"
>
<div
class=
"slideMenu"
id=
"cbp-spmenu-s2"
style=
""
>
<div
class=
"form"
>
<tags:PeriodTag
/>
<tags:Public
_ProvinceTag
/>
<tags:GJFX
_datasource_channle_business
/>
<tags:QualityRule
_IfFilter
/>
<button
id=
"submit"
class=
"btn btn-primary"
onclick=
"operResultSubmit()"
>
提交
</button>
<button
id=
"disable"
class=
"btn btn-warning"
onclick=
"operResultReset()"
>
重置
</button>
</div>
</div>
<div
class=
"main col-xs-12"
>
<div
id=
"mainm2"
class=
"mainm"
></div>
<div
class=
"content clearfix"
>
<div
class=
"block clearfix"
>
<button
id=
"showLeftPush2"
class=
"menu-trigger btn btn-default"
onclick=
"toggleMenu('slidePushMenus2')"
>
<span
class=
"glyphicon glyphicon-list"
></span>
</button>
<div
class=
"slide-menu-tags"
>
<span
id=
"PeriodTag"
class=
"label label-info"
data-placement=
"bottom"
>
最近一个月
</span>
<span
id=
"ProvinceTag"
class=
"label label-info"
data-placement=
"bottom"
></span>
<span
id=
"DataSourceTag"
class=
"label label-info"
data-placement=
"bottom"
></span>
<span
id=
"ChannelTag3"
class=
"label label-info"
data-placement=
"bottom"
></span>
<span
id=
"BusinessTag"
class=
"label label-info"
data-placement=
"bottom"
></span>
<span
id=
"ifFilterTag"
class=
"label label-info"
data-placement=
"bottom"
></span>
</div>
<div
class=
"bt-list-import"
>
</div>
</div>
<div
class=
"row"
>
<div
class=
"col-xs-12"
>
<div
class=
"table-header"
>
质量规则运营结果
<shiro:hasAnyRoles
name=
"admin,dataAnalysis,businessAnalysis"
>
<div
id=
"time_div"
style=
"top: -6px;float: right;height: 0px;position: relative;"
>
</div>
</shiro:hasAnyRoles>
</div>
<table
id=
"ruleOperationTable"
class=
"table table-hover table-striped"
>
</table>
<input
type=
"hidden"
id=
"qualityRuleInfo"
name=
"qualityRuleInfo"
value=
'${qualityRuleInfoList}'
/>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<form
action=
"#"
method=
"get"
id=
"listForm"
></form>
</div>
</div>
</div>
</div>
<script
type=
"text/javascript"
src=
"${ctx}/static/js/ruleOperationDetailTable.js"
></script>
<script
type=
"text/javascript"
>
initDate
();
ruleOperationDetailTable
();
function
operResultSubmit
(){
var
period
=
getPeriodStr
();
var
dataSource
=
getStatsDataSourceCheckedValuesString
();
var
chnnal
=
getStatsChannelCheckedValuesString
();
var
bussines
=
getStatsBusinessCheckedValuesString
();
var
province
=
getProvinceCheckedValuesString
();
var
ifFilter
=
getIfFilter
();
if
(
dataSource
==
""
){
$
.
alert
(
"数据来源的选择不能为空"
);
}
else
if
(
chnnal
===
""
){
$
.
alert
(
"渠道的选择不能为空"
);
}
else
if
(
bussines
===
""
){
$
.
alert
(
"业务的选择不能为空"
);
}
else
if
(
province
===
""
){
$
.
alert
(
"省份的选择不能为空"
);
}
else
if
(
ifFilter
===
""
)
{
$
.
alert
(
"是否过滤的选择不能为空"
);
}
else
{
toggleMenu
(
'slidePushMenus'
);
//隐藏筛选项
//时间标签
$
(
'#PeriodTag'
).
text
(
"时间范围"
).
attr
(
'data-original-title'
,
getPeriodStr
()).
tooltip
();
//数据来源标签
$
(
'#DataSourceTag'
).
text
(
"数据来源"
).
append
(
$
(
"<span class='badge'></span>"
).
text
(
getStatsDataSourceCheckedValues
().
length
)).
attr
(
'data-original-title'
,
getStatsDataSourceCheckedTitles
()).
tooltip
();
//渠道标签
$
(
'#ChannelTag'
).
text
(
"渠道"
).
append
(
$
(
"<span class='badge'></span>"
).
text
(
getStatsChannelCheckedValues
().
length
)).
attr
(
'data-original-title'
,
getStatsChannelCheckedTitles
()).
tooltip
();
//业务标签
$
(
'#BusinessTag'
).
text
(
"业务"
).
append
(
$
(
"<span class='badge'></span>"
).
text
(
getStatsBusinessCheckedValues
().
length
)).
attr
(
'data-original-title'
,
getStatsBusinessCheckedTitlesString
()).
tooltip
();
//省份标签
$
(
'#ProvinceTag'
).
text
(
"省份"
).
append
(
$
(
"<span class='badge'></span>"
).
text
(
getProvinceCheckedValues
().
length
)).
attr
(
'data-original-title'
,
getProvinceCheckedTitles
()).
tooltip
();
//是否过滤
$
(
'#ifFilterTag'
).
text
(
"是否过滤"
).
attr
(
'data-original-title'
,
getIfFilterTitle
()).
tooltip
();
if
(
period
==
""
){
$
.
alert
(
"时间选择不能为空"
);
}
$
.
ajax
({
type
:
'GET'
,
contentType
:
'application/json'
,
url
:
"${ctx}/AnalysisSupport/QualityRuleOperation/changeTable?period="
+
period
+
"&province="
+
province
+
"&dataSource="
+
dataSource
+
"&chnnal="
+
chnnal
+
"&bussines="
+
bussines
+
"&ifFilter="
+
ifFilter
,
dataType
:
'text'
,
async
:
false
,
beforeSend
:
function
(
data
)
{
},
success
:
function
(
data
)
{
$
(
"#qualityRuleInfo"
).
val
(
data
);
ruleOperationDetailTable
();
ruleId
=
""
;
toggleMenu
(
'slidePushMenus2'
);
//隐藏筛选项
updateTag
(
true
);
}
});
}
}
function
operResultReset
(){
initDate
();
ProvinceReset
();
statsDataSourceReset
();
//三级联动重置
RelFilterRest
();
}
</script>
</body>
</html>
\ No newline at end of file
src/main/webapp/static/js/ruleOperationDetailTable.js
0 → 100644
View file @
ea1d1e22
//格式化日期
function
Format
(){
this
.
jsjava_class
=
"jsjava.text.Format"
;
}
function
DateFormat
(){
this
.
jsjava_class
=
"jsjava.text.DateFormat"
;
}
DateFormat
.
prototype
=
new
Format
();
DateFormat
.
prototype
.
constructor
=
DateFormat
;
DateFormat
.
zh_cn_month2
=
[
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
];
DateFormat
.
zh_cn_month3
=
[
"
\
u4e00
\
u6708"
,
"
\
u4e8c
\
u6708"
,
"
\
u4e09
\
u6708"
,
"
\
u56db
\
u6708"
,
"
\
u4e94
\
u6708"
,
"
\
u516d
\
u6708"
,
"
\
u4e03
\
u6708"
,
"
\
u516b
\
u6708"
,
"
\
u4e5d
\
u6708"
,
"
\
u5341
\
u6708"
,
"
\
u5341
\
u4e00
\
u6708"
,
"
\
u5341
\
u4e8c
\
u6708"
,];
DateFormat
.
zh_cn_month4
=
[
"
\
u4e00
\
u6708"
,
"
\
u4e8c
\
u6708"
,
"
\
u4e09
\
u6708"
,
"
\
u56db
\
u6708"
,
"
\
u4e94
\
u6708"
,
"
\
u516d
\
u6708"
,
"
\
u4e03
\
u6708"
,
"
\
u516b
\
u6708"
,
"
\
u4e5d
\
u6708"
,
"
\
u5341
\
u6708"
,
"
\
u5341
\
u4e00
\
u6708"
,
"
\
u5341
\
u4e8c
\
u6708"
,];
DateFormat
.
en_us_month4
=
[
"Janu"
,
"Febr"
,
"Marc"
,
"Apri"
,
"May"
,
"Juhn"
,
"July"
,
"Augu"
,
"Sept"
,
"Octo"
,
"Nove"
,
"Dece"
];
DateFormat
.
en_us_month3
=
[
"Jan"
,
"Feb"
,
"Mar"
,
"Apr"
,
"May"
,
"Juh"
,
"Jul"
,
"Aug"
,
"Sep"
,
"Oct"
,
"Nov"
,
"Dec"
];
DateFormat
.
en_us_month2
=
[
"01"
,
"02"
,
"03"
,
"04"
,
"05"
,
"06"
,
"07"
,
"08"
,
"09"
,
"10"
,
"11"
,
"12"
];
DateFormat
.
zh_cn_week
=
[
"
\
u661f
\
u671f
\
u65e5"
,
"
\
u661f
\
u671f
\
u4e00"
,
"
\
u661f
\
u671f
\
u4e8c"
,
"
\
u661f
\
u671f
\
u4e09"
,
"
\
u661f
\
u671f
\
u56db"
,
"
\
u661f
\
u671f
\
u4e94"
,
"
\
u661f
\
u671f
\
u516d"
];
DateFormat
.
zh_cn_am
=
"
\
u4e0b
\
u5348"
;
DateFormat
.
zh_cn_pm
=
"
\
u4e0a
\
u5348"
;
DateFormat
.
language
=
(
navigator
.
userLanguage
==
undefined
?
navigator
.
language
:
navigator
.
userLanguage
).
replace
(
"-"
,
"_"
).
toLowerCase
();
DateFormat
.
prototype
.
format
=
function
(
date
){
var
year4
=
date
.
getFullYear
();
var
year2
=
year4
.
toString
().
substring
(
2
);
var
pattern
=
this
.
pattern
;
pattern
=
pattern
.
replace
(
/yyyy/
,
year4
);
pattern
=
pattern
.
replace
(
/yy/
,
year2
);
var
month
=
date
.
getMonth
();
pattern
=
pattern
.
replace
(
/MMMM/
,
eval
(
"DateFormat."
+
DateFormat
.
language
+
"_month4[month]"
));
pattern
=
pattern
.
replace
(
/MMM/
,
eval
(
"DateFormat."
+
DateFormat
.
language
+
"_month3[month]"
));
pattern
=
pattern
.
replace
(
/MM/
,
eval
(
"DateFormat."
+
DateFormat
.
language
+
"_month2[month]"
));
var
dayOfMonth
=
date
.
getDate
();
var
dayOfMonth2
=
dayOfMonth
;
var
dayOfMonthLength
=
dayOfMonth
.
toString
().
length
;
if
(
dayOfMonthLength
==
1
){
dayOfMonth2
=
"0"
+
dayOfMonth
;
}
pattern
=
pattern
.
replace
(
/dd/
,
dayOfMonth2
);
pattern
=
pattern
.
replace
(
/d/
,
dayOfMonth
);
var
hours
=
date
.
getHours
();
var
hours2
=
hours
;
var
hoursLength
=
hours
.
toString
().
length
;
if
(
hoursLength
==
1
){
hours2
=
"0"
+
hours
;
}
pattern
=
pattern
.
replace
(
/HH/
,
hours2
);
pattern
=
pattern
.
replace
(
/H/
,
hours
);
var
minutes
=
date
.
getMinutes
();
var
minutes2
=
minutes
;
var
minutesLength
=
minutes
.
toString
().
length
;
if
(
minutesLength
==
1
){
minutes2
=
"0"
+
minutes
;
}
pattern
=
pattern
.
replace
(
/mm/
,
minutes2
);
pattern
=
pattern
.
replace
(
/m/
,
minutes
);
var
seconds
=
date
.
getSeconds
();
var
seconds2
=
seconds
;
var
secondsLength
=
seconds
.
toString
().
length
;
if
(
secondsLength
==
1
){
seconds2
=
"0"
+
seconds
;
}
pattern
=
pattern
.
replace
(
/ss/
,
seconds2
);
pattern
=
pattern
.
replace
(
/s/
,
seconds
);
var
milliSeconds
=
date
.
getMilliseconds
();
pattern
=
pattern
.
replace
(
/S+/
,
milliSeconds
);
var
day
=
date
.
getDay
();
// pattern=pattern.replace(/E+/,eval("DateFormat."+DateFormat.language+"_week[day]"));
if
(
hours
>
12
){
pattern
=
pattern
.
replace
(
/a+/
,
eval
(
"DateFormat."
+
DateFormat
.
language
+
"_am"
));
}
else
{
pattern
=
pattern
.
replace
(
/a+/
,
eval
(
"DateFormat."
+
DateFormat
.
language
+
"_pm"
));
}
var
kHours
=
hours
;
if
(
kHours
==
0
){
kHours
=
24
;
}
var
kHours2
=
kHours
;
var
kHoursLength
=
kHours
.
toString
().
length
;
if
(
kHoursLength
==
1
){
kHours2
=
"0"
+
kHours
;
}
pattern
=
pattern
.
replace
(
/kk/
,
kHours2
);
pattern
=
pattern
.
replace
(
/k/
,
kHours
);
var
KHours
=
hours
;
if
(
hours
>
11
){
KHours
=
hours
-
12
;
}
var
KHours2
=
KHours
;
var
KHoursLength
=
KHours
.
toString
().
length
;
if
(
KHoursLength
==
1
){
KHours2
=
"0"
+
KHours
;
}
pattern
=
pattern
.
replace
(
/KK/
,
KHours2
);
pattern
=
pattern
.
replace
(
/K/
,
KHours
);
var
hHours
=
KHours
;
if
(
hHours
==
0
){
hHours
=
12
;
}
var
hHours2
=
hHours
;
var
hHoursLength
=
hHours
.
toString
().
length
;
if
(
KHoursLength
==
1
){
hHours2
=
"0"
+
hHours
;
}
pattern
=
pattern
.
replace
(
/hh/
,
hHours2
);
pattern
=
pattern
.
replace
(
/h/
,
hHours
);
return
pattern
;
};
function
SimpleDateFormat
(){
this
.
jsjava_class
=
"jsjava.text.SimpleDateFormat"
;
}
SimpleDateFormat
.
prototype
=
new
DateFormat
();
SimpleDateFormat
.
prototype
.
constructor
=
SimpleDateFormat
;
SimpleDateFormat
.
prototype
.
applyPattern
=
function
(
pattern
){
this
.
pattern
=
pattern
;
};
var
df
=
new
SimpleDateFormat
();
df
.
applyPattern
(
"yyyy-MM-dd HH:mm:ss"
);
//
var
modelId
;
function
ruleOperationDetailTable
(){
jsonData
=
document
.
getElementById
(
'qualityRuleInfo'
).
value
;
var
header
=
new
Array
();
header
[
0
]
=
[
""
,
"<input type='radio' name='update'id='update' onclick='javascript:radioChoose(this);'/>"
,
"1%"
,
""
];
header
[
1
]
=
[
"质量规则ID"
,
"qualityRuleId"
,
"7%"
,
"15"
];
header
[
2
]
=
[
"省份"
,
"provinceName"
,
"7%"
,
"15"
];
header
[
3
]
=
[
"数据来源"
,
"dataSourceName"
,
"7%"
,
"15"
];
header
[
4
]
=
[
"渠道"
,
"channelName"
,
"7%"
,
"15"
];
header
[
5
]
=
[
"业务"
,
"businessName"
,
"7%"
,
"15"
];
header
[
6
]
=
[
"指标名称"
,
"kpiName"
,
"7%"
,
"15"
];
header
[
7
]
=
[
"指标CODE"
,
"kpiCode"
,
"7%"
,
"15"
];
header
[
8
]
=
[
"告警类型"
,
"warningType"
,
"7%"
,
"15"
];
header
[
9
]
=
[
"指标监控时间"
,
"kpiMonitorRunTime"
,
"7%"
,
"15"
];
header
[
10
]
=
[
"指标业务时间"
,
"businessTime"
,
"7%"
,
"15"
];
header
[
11
]
=
[
"是否过滤"
,
"ifFilter"
,
"7%"
,
""
];
window
.
pagging
=
new
table_pagging
({
limit
:
12
,
tableId
:
'ruleOperationTable'
,
header
:
header
});
pagging
.
pagging
(
jsonData
);
}
var
table_pagging
=
function
()
{
this
.
init
.
apply
(
this
,
arguments
);
}
table_pagging
.
prototype
=
{
init
:
function
(
s
)
{
// 从第几个数据开始获取,缺省状态下从0开始显示
if
(
s
.
start
)
{
this
.
start
=
parseInt
(
s
.
start
);
}
else
{
this
.
start
=
0
;
}
// limit是指从start开始一共要用几条数据,缺省状态下显示10条
if
(
s
.
limit
)
{
this
.
limit
=
parseInt
(
s
.
limit
);
}
else
{
this
.
limit
=
10
;
}
// cellStep表示每行要显示的行数.缺省状态下为1,一行一条记录.
if
(
s
.
cellStep
)
{
this
.
cellStep
=
parseInt
(
s
.
cellStep
);
}
else
{
this
.
cellStep
=
1
;
}
// 要执行的表的名字
if
(
s
.
tableId
)
{
this
.
tableObj
=
document
.
getElementById
(
s
.
tableId
);
}
else
{
alert
(
"missing table id~"
);
}
// 头部的样式编码
if
(
s
.
headTrClassName
)
{
this
.
headTrClassName
=
s
.
headTrClassName
;
}
else
{
this
.
headTrClassName
=
""
;
}
if
(
s
.
trClassName
)
{
this
.
trClassName
=
s
.
trClassName
;
}
else
{
this
.
trClassName
=
""
;
}
// 定义头部信息
if
(
this
.
checkHeadersIsArray
(
s
.
header
))
{
this
.
header
=
s
.
header
;
}
else
{
alert
(
"header is wrong~"
);
}
// 初始化头部
this
.
createTableHeader
();
},
cloumnModel
:
function
()
{
},
pagging
:
function
(
objectJson
)
{
this
.
objectlist
=
eval
(
'('
+
objectJson
+
')'
);
if
(
this
.
start
+
this
.
limit
>=
this
.
objectlist
.
length
)
{
this
.
end
=
this
.
objectlist
.
length
;
}
else
{
this
.
end
=
this
.
start
+
this
.
limit
;
}
this
.
clearSearchTable
();
this
.
createTableBodyTd
();
},
checkHeadersIsArray
:
function
(
header
)
{
if
(
!
(
header
instanceof
Array
))
{
return
false
;
}
for
(
var
i
=
0
;
i
<
header
.
length
;
i
++
)
{
if
(
!
(
header
[
i
]
instanceof
Array
)
||
header
[
i
].
length
<
4
)
{
return
false
;
}
}
return
true
;
},
// 清空表格数据
clearSearchTable
:
function
()
{
for
(
var
i
=
this
.
tableObj
.
rows
.
length
;
i
>
1
;
i
--
)
{
this
.
tableObj
.
deleteRow
(
i
-
1
);
}
},
// 创建头部
createTableHeader
:
function
()
{
var
tr
=
this
.
tableObj
.
insertRow
(
this
.
tableObj
.
rows
.
length
);
if
(
this
.
headTrClassName
)
{
tr
.
className
=
this
.
headTrClassName
;
}
var
rowLength
=
this
.
header
.
length
;
for
(
var
i
=
0
;
i
<
rowLength
;
i
++
)
{
var
td
=
tr
.
insertCell
(
i
);
td
.
innerHTML
=
this
.
header
[
i
][
0
];
if
(
this
.
header
[
i
][
2
])
{
td
.
width
=
this
.
header
[
i
][
2
];
}
}
},
// 创建table的数据区域
createTableBodyTd
:
function
()
{
this
.
clearSearchTable
();
if
(
this
.
start
>
this
.
objectlist
.
length
)
{
return
;
}
if
(
this
.
start
>
this
.
end
)
{
return
;
}
if
(
this
.
end
>
this
.
objectlist
.
length
)
{
this
.
end
=
this
.
objectlist
.
length
;
}
var
rowLength
=
this
.
header
.
length
;
// alert(rowLength);
for
(
var
i
=
this
.
start
;
i
<
this
.
end
;
i
++
)
{
var
tr
=
this
.
tableObj
.
insertRow
(
this
.
tableObj
.
rows
.
length
);
if
(
this
.
trClassName
)
{
tr
.
className
=
this
.
trClassName
;
}
for
(
var
j
=
0
;
j
<
this
.
cellStep
;
j
++
)
{
for
(
var
k
=
0
;
k
<
rowLength
;
k
++
)
{
var
td
=
tr
.
insertCell
(
rowLength
*
j
+
k
);
var
tdContext
=
" "
;
var
tdTitle
=
""
;
if
(
this
.
header
[
k
][
1
])
{
var
reg
=
/
\%\{([\d\w
.
]
+
)\}\%
/g
;
if
(
k
!=
0
)
{
if
(
result
=
reg
.
exec
(
this
.
header
[
k
][
1
]))
{
// var result = reg.exec(this.header[k][1]);
var
context
=
this
.
header
[
k
][
1
];
while
(
reg
.
lastIndex
!=
0
)
{
var
value
=
this
.
getData
(
this
.
objectlist
[
i
],
result
[
1
]);
context
=
context
.
replace
(
/
\%\{[\d\w
.
]
+
\}\%
/
,
value
);
result
=
reg
.
exec
(
this
.
header
[
k
][
1
]);
}
tdContext
=
context
;
}
else
{
tdContext
=
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
k
][
1
]);
if
(
tdContext
==
null
){
tdContext
=
" "
;
}
if
(
k
==
11
){
if
(
tdContext
==
"0"
){
tdContext
=
"已过滤"
;
}
else
if
(
tdContext
==
"1"
){
tdContext
=
"未过滤"
;
}
}
if
(
k
==
9
){
if
(
tdContext
!=
" "
){
tdContext
=
df
.
format
(
new
Date
(
tdContext
));
}
}
if
(
k
==
10
){
if
(
tdContext
!=
" "
){
tdContext
=
df
.
format
(
new
Date
(
tdContext
));
}
}
if
(
k
==
1
){
tdContext
=
"<a href='javascript:;' onclick='selectRule(
\"
"
+
this
.
getData
(
this
.
objectlist
[
i
],
"qualityRuleId"
)
+
"
\"
)'>"
+
this
.
getData
(
this
.
objectlist
[
i
],
this
.
header
[
k
][
1
])
+
"</a>"
;
}
}
}
else
{
tdContext
=
this
.
header
[
k
][
1
]
+
"<span style='display:none'>"
+
i
+
"</span>"
;
// tdContext=this.header[k][1];
}
}
else
{
tdContext
=
" "
;
}
if
(
tdContext
instanceof
Object
)
{
tdContext
=
this
.
formateDate
(
tdContext
);
}
if
(
!
tdTitle
)
{
tdTitle
=
tdContext
;
}
td
.
innerHTML
=
tdContext
;
// alert(tdContext+"----i:"+i+",j:"+j+",k:"+k);
}
i
=
i
+
j
;
if
(
i
>=
this
.
start
+
this
.
limit
)
{
break
;
}
}
if
(
i
>=
this
.
start
+
this
.
limit
)
{
break
;
}
}
this
.
createPageTr
();
},
// 从json获取数据,其中key如果带有.这个符号,说明需要获取的数据是多维数组(也可以看成对象)
getData
:
function
(
arrayObj
,
key
)
{
if
(
key
.
indexOf
(
"."
)
>
0
)
{
var
keys
=
key
.
split
(
"."
);
var
obj
;
for
(
var
c
=
0
;
c
<
keys
.
length
;
c
++
)
{
if
(
c
==
keys
.
length
-
1
)
{
return
obj
[
keys
[
c
]];
}
if
(
!
arrayObj
[
keys
[
c
]])
{
return
" "
}
else
{
obj
=
arrayObj
[
keys
[
c
]]
}
}
}
else
{
return
arrayObj
[
key
];
}
},
// 格式化Date数据
formateDate
:
function
(
dateObj
)
{
if
(
dateObj
.
month
)
{
return
parseInt
(
dateObj
.
month
)
+
1
+
"-"
+
dateObj
.
date
+
" "
+
dateObj
.
hours
+
":"
+
dateObj
.
minutes
+
":"
+
dateObj
.
seconds
;
}
else
{
return
dateObj
;
}
},
operator
:
function
(
_start
,
_end
)
{
this
.
start
=
_start
;
this
.
end
=
_end
;
this
.
createTableBodyTd
();
},
// 获取当前对象名
getObjectName
:
function
()
{
for
(
var
a
in
window
)
{
if
(
window
[
a
]
==
this
)
{
return
a
;
}
}
},
// 创建尾部,上一页,下一页,当前页之类信息
createPageTr
:
function
()
{
var
objectName
=
this
.
getObjectName
();
var
tr
=
this
.
tableObj
.
insertRow
(
this
.
tableObj
.
rows
.
length
);
td
=
tr
.
insertCell
(
0
);
td
.
colSpan
=
this
.
header
.
length
+
''
;
var
totalPage
=
Math
.
ceil
(
this
.
objectlist
.
length
/
this
.
limit
);
var
currentPage
=
Math
.
ceil
(
this
.
start
/
this
.
limit
);
var
tableName
=
objectName
+
"assrotCurrentIndexTable"
;
td
.
innerHTML
=
"<table id='"
+
tableName
+
"' width='100%'></table>"
;
var
tableObj
=
document
.
getElementById
(
tableName
);
var
tr
=
tableObj
.
insertRow
(
0
);
var
td1
=
tr
.
insertCell
(
0
);
td1
.
width
=
"15%"
;
td1
.
align
=
"center"
;
if
(
this
.
start
>=
this
.
limit
)
{
td1
.
innerHTML
=
"<a href='javascript:"
+
objectName
+
".operator(0,"
+
this
.
limit
+
")'>首页</a>"
;
}
else
{
td1
.
innerHTML
=
"<a>首页</a>"
;
}
var
td2
=
tr
.
insertCell
(
1
);
td2
.
width
=
"15%"
;
td2
.
align
=
"center"
;
if
(
this
.
start
>=
this
.
limit
)
{
td2
.
innerHTML
=
"<a href='javascript:"
+
objectName
+
".operator("
+
(
this
.
start
-
this
.
limit
)
+
","
+
this
.
start
+
")'>上一页</a>"
;
}
else
{
td2
.
innerHTML
=
"<a>上一页</a>"
;
}
var
td3
=
tr
.
insertCell
(
2
);
td3
.
width
=
"25%"
;
td3
.
align
=
"center"
;
// td3.innerHTML = "Page <input id='table_pagging_page_input_id'
// type='text' size='1' id='currentIndex' value='"+(currentPage+1)+"'
// >of "+totalPage;
td3
.
innerHTML
=
"<div class='col-sm-4'><input class=
\"
form-control
\"
type=
\"
text
\"
id=
\"
goPageNo
\"
value=
\"
"
+
(
currentPage
+
1
)
+
"
\"
size=
\"
3
\"
/></div><div class='col-sm-5'><input class=
\"
form-control
\"
type=
\"
button
\"
id=
\"
jumpButton
\"
value=
\"
跳转
\"
onclick=
\"
javascript:"
+
objectName
+
".jump2PageNum()
\"
/></div>"
;
var
td4
=
tr
.
insertCell
(
3
);
td4
.
width
=
"15%"
;
td4
.
align
=
"center"
;
if
(
this
.
end
>=
this
.
objectlist
.
length
)
{
td4
.
innerHTML
=
"<a>下一页<a>"
;
}
else
{
if
((
this
.
end
+
this
.
limit
)
>
this
.
objectlist
.
length
)
{
td4
.
innerHTML
=
"<a href='javascript:"
+
objectName
+
".operator("
+
this
.
end
+
","
+
this
.
objectlist
.
length
+
")'>下一页<a>"
;
}
else
{
td4
.
innerHTML
=
"<a href='javascript:"
+
objectName
+
".operator("
+
this
.
end
+
","
+
(
this
.
end
+
this
.
limit
)
+
")'>下一页<a>"
;
}
}
var
td5
=
tr
.
insertCell
(
4
);
td5
.
width
=
"15%"
;
td5
.
align
=
"center"
;
if
(
this
.
end
>=
this
.
objectlist
.
length
)
{
td5
.
innerHTML
=
"<a>末页</a>"
;
}
else
{
td5
.
innerHTML
=
"<a href='javascript:"
+
objectName
+
".operator("
+
this
.
limit
*
(
totalPage
-
1
)
+
","
+
this
.
objectlist
.
length
+
")'>末页</a>"
;
}
var
td6
=
tr
.
insertCell
(
5
);
td6
.
align
=
'right'
;
td6
.
width
=
"25%"
;
// td6.innerHTML =
// "显示第"+this.start+"到第"+this.end+"记录,共"+this.objectlist.length+"条记录";
td6
.
innerHTML
=
"页数:<span style='color:blue'>"
+
(
currentPage
+
1
)
+
"</span>/"
+
totalPage
;
},
// 点击跳转,未开发
jump2PageNum
:
function
()
{
var
re
=
/^
[
1-9
]
+
[
0-9
]
*]*$/
;
if
(
!
re
.
test
(
document
.
getElementById
(
'goPageNo'
).
value
))
{
alert
(
"请输入正整数"
);
}
else
{
if
(
parseInt
(
document
.
getElementById
(
'goPageNo'
).
value
)
>
Math
.
ceil
(
this
.
objectlist
.
length
/
this
.
limit
))
{
alert
(
"你输入的数值过大!"
);
}
else
{
this
.
operator
(
this
.
limit
*
(
parseInt
(
document
.
getElementById
(
'goPageNo'
).
value
)
-
1
),
(
this
.
limit
*
(
parseInt
(
document
.
getElementById
(
'goPageNo'
).
value
)
-
1
)
+
this
.
limit
));
}
}
},
test
:
function
()
{
alert
(
this
.
start
);
alert
(
this
.
step
);
alert
(
this
.
cellStep
);
alert
(
this
.
tablename
);
}
}
//查看准确性规则
function
selectRule
(
qualityRuleId
){
$
.
dialog
({
title
:
"准确性规则"
,
content
:
"<div id='ruleList'>"
+
"<div class='col-xs-12'><div class='panel panel-default'><div class='panel-heading'>规则参数列表</div><div class='panel-body'> <table class='table table-hover table-striped'> <thead> <tr> <th width=''>规则类型</th> <th width=''>范围最大值</th> <th width=''>范围最小值</th> <th width=''>重复考核粒度</th> <th width=''>重复考核开始时间</th> <th width=''>重复考核结束时间</th> <th width=''>重复是否连续</th> <th width=''>重复最大次数</th> <th width=''>数据是否累计</th> </tr> </thead> <tbody> </tbody> </table> </div> </div> </div>"
+
"</div>"
,
lock
:
true
,
width
:
800
,
initialize
:
function
(){
$
.
ajax
({
type
:
'GET'
,
contentType
:
'application/json'
,
url
:
"/AnalysisSupport/QualityRuleResult/findAccuracy?qualityRuleId="
+
qualityRuleId
,
dataType
:
'text'
,
beforeSend
:
function
(
data
)
{
},
success
:
function
(
data
)
{
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
data
[
i
]
==
'
\
"'
)
{
data
=
data
.
replace
(
'
\
"'
,
'
\'
'
);
}
}
data
=
eval
(
"("
+
data
+
")"
);
if
(
data
!=
null
&&
data
!=
""
)
{
var
ruleTbody
=
$
(
'#ruleList tbody'
);
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
)
{
if
(
data
[
i
].
ifRepeatedCheckSeries
==
"0"
){
data
[
i
].
ifRepeatedCheckSeries
=
"否"
;
}
else
if
(
data
[
i
].
ifRepeatedCheckSeries
==
"1"
)
{
data
[
i
].
ifRepeatedCheckSeries
=
"是"
;
}
if
(
data
[
i
].
ifRepeatedCheckSummation
==
"0"
){
data
[
i
].
ifRepeatedCheckSummation
=
"否"
;
}
else
if
(
data
[
i
].
ifRepeatedCheckSummation
==
"1"
){
data
[
i
].
ifRepeatedCheckSummation
=
"是"
;
}
if
(
data
[
i
].
repeatedCheckStartTime
!=
null
){
data
[
i
].
repeatedCheckStartTime
=
df
.
format
(
new
Date
(
data
[
i
].
repeatedCheckStartTime
));
}
if
(
data
[
i
].
repeatedCheckEndTime
!=
null
){
data
[
i
].
repeatedCheckEndTime
=
df
.
format
(
new
Date
(
data
[
i
].
repeatedCheckEndTime
));
}
if
(
data
[
i
].
scopeMaxValue
!=
null
){
data
[
i
].
scopeMaxValue
=
parseFloat
(
data
[
i
].
scopeMaxValue
);
}
if
(
data
[
i
].
scopeMinValue
!=
null
){
data
[
i
].
scopeMinValue
=
parseFloat
(
data
[
i
].
scopeMinValue
);
}
if
(
data
[
i
].
repeatedCheckGranularity
==
"day"
){
data
[
i
].
repeatedCheckGranularity
=
"日"
;
}
else
if
(
data
[
i
].
repeatedCheckGranularity
==
"mon"
){
data
[
i
].
repeatedCheckGranularity
=
"月"
;
}
ruleTbody
.
append
(
$
(
"<tr></tr>"
).
append
(
"<td>"
+
data
[
i
].
ruleType
+
"</td>"
)
.
append
(
"<td>"
+
(
data
[
i
].
scopeMaxValue
==
null
?
"无"
:
data
[
i
].
scopeMaxValue
)
+
"</td>"
)
.
append
(
"<td>"
+
(
data
[
i
].
scopeMinValue
==
null
?
"无"
:
data
[
i
].
scopeMinValue
)
+
"</td>"
)
.
append
(
"<td>"
+
(
data
[
i
].
repeatedCheckGranularity
==
null
?
"无"
:
data
[
i
].
repeatedCheckGranularity
)
+
"</td>"
)
.
append
(
"<td>"
+
(
data
[
i
].
repeatedCheckStartTime
==
null
?
"无"
:
data
[
i
].
repeatedCheckStartTime
)
+
"</td>"
)
.
append
(
"<td>"
+
(
data
[
i
].
repeatedCheckEndTime
==
null
?
"无"
:
data
[
i
].
repeatedCheckEndTime
)
+
"</td>"
)
.
append
(
"<td>"
+
(
data
[
i
].
ifRepeatedCheckSeries
==
null
?
"无"
:
data
[
i
].
ifRepeatedCheckSeries
)
+
"</td>"
)
.
append
(
"<td>"
+
(
data
[
i
].
repeatedCheckMaxTime
==
null
?
"无"
:
data
[
i
].
repeatedCheckMaxTime
)
+
"</td>"
)
.
append
(
"<td>"
+
(
data
[
i
].
ifRepeatedCheckSummation
==
null
?
"无"
:
data
[
i
].
ifRepeatedCheckSummation
)
+
"</td>"
));
}
}
}
});
}
});
}
\ No newline at end of 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