BatchInspectionDoing.jsp
8.69 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
<!DOCTYPE html>
<html>
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="weaver.templetecheck.filecheck.NonStandardFiles" %>
<%@ include file="/systeminfo/init_wev8.jsp" %>
<%@ taglib uri="/WEB-INF/weaver.tld" prefix="wea"%>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,Chrome=1"/>
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<title>正在执行</title>
<%--<script type="text/javascript" src="/js/jquery/jquery_wev8.js"></script>--%>
<%--<LINK rel="stylesheet" type="text/css" href="/css/Weaver_wev8.css">--%>
<link rel="stylesheet" href="/wui/theme/ecology8/jquery/js/zDialog_e8_wev8.css" type="text/css"/>
<script language="javascript" src="/wui/theme/ecology8/jquery/js/zDialog_wev8.js"></script>
<script language="javascript" src="/wui/theme/ecology8/jquery/js/zDrag_wev8.js"></script>
<LINK href="/css/Weaver_wev8.css" type=text/css rel=STYLESHEET>
<link rel="stylesheet" href="/wui/theme/ecology8/weaveredittable/css/WeaverEditTable_wev8.css">
<script src="/wui/theme/ecology8/weaveredittable/js/WeaverEditTable_wev8.js"></script>
<link href="/js/checkbox/jquery.tzCheckbox_wev8.css" type=text/css rel=STYLESHEET>
<script type="text/javascript" src="/js/ecology8/jNice/jNice/jquery.jNice_wev8.js"></script>
</head>
<%
int userid = user.getUID();
if(userid!=1) {
response.sendRedirect("/notice/noright.jsp");
return;
}
%>
<style type="text/css">
*{
margin:0 auto;
padding:0;
}
body{
}
.ulliststep4{
list-style: none;
background-color: #f9f9f9;
}
.headerstep4{
height: 30px;
background-color: #f8f8f8;
}
.headerstep4 td p{
/*font-weight: bolder;*/
color: black;
font-size: 15px;
}
.ulliststep4{
list-style: none;
line-height: 30px;
color: black;
/*font-weight: bolder;*/
font-size: 15px;
}
.md1{
float: none;
}
#messagediv {
width:100%;
/*border-radius:10px;*/
/*border:1px solid;*/
margin-top:2%;
padding:1%;
/*background-color:#FFFFCC*/
}
</style>
<BODY style="width:100%;height:100%;position:relative;overflow: hidden">
<iframe name="downiframe" id="downiframe" src="" style="display:none" ></iframe>
<div class="md1" style="width: 100%;">
<%--<p class="litext">1.初始化配置文件</p>--%>
<table style="width: 100%;height:100%; overflow: hidden;background-color: #f9f9f9;" cellspacing="0" cellpadding="0" >
<tr>
<td>
<ul class="ulliststep4" id="initfilelist" style="height:170px; overflow:hidden;padding: 0px;margin: 0px">
<li style="width: 60%;float: left;padding: 3px;height: 35px;margin-left: 3%"><div><span style="height: 30px;width: 30px;float: left" id="img1"><img src="/templetecheck/image/doing.gif" style="height:30px;line-height:25px; float: left;padding: 2px;"></span><span style="margin-left: 10px;height:30px;line-height:30px;font-size:14px; float: left">任务一:检测流程模板</span></div></li>
<li style="width: 60%;float: left;padding: 3px;height: 35px;margin-left: 3%"><div><span style="height: 30px;width: 30px;float: left" id="img2"></span><span style="margin-left: 10px;height:30px;line-height:30px;font-size:14px; float: left">任务二:检测移动建模模板</span></div></li>
<li style="width: 60%;float: left;padding: 3px;height: 35px;margin-left: 3%"><div><span style="height: 30px;width: 30px;float: left" id="img3"></span><span style="margin-left: 10px;height:30px;line-height:30px;font-size:14px; float: left">任务三:检测表单建模模板</span></div></li>
<li style="width: 60%;float: left;padding: 3px;height: 35px;margin-left: 3%"><div><span style="height: 30px;width: 30px;float: left" id="img4"></span><span style="margin-left: 10px;height:30px;line-height:30px;font-size:14px; float: left">任务四:检测自定义开发功能</span></div></li>
</ul>
</td>
</tr>
<tr>
<td>
<div id="messagediv" style="overflow: hidden;height: 230px;">
<span style="color:red">
<b>注意:</b><br>
1.文件批量检测过程中不允许关闭窗口,否则将停止检测<br>
2.文件检测完毕将自动下载文件报告并关闭窗口<br>
<a id="a1" href="/system/upgradetoe9/report/templetecheckReport_all.zip" download='批量文件检测报告'></a>
</span>
</div>
</td>
</tr>
</table>
</div>
</BODY>
<script type="text/javascript">
var detailProcessInterval;
var logintervaltime = 1000;
var dialog = parent.getDialog(window);
$(document).ready(function(){
matchrule();
// shouCheckDoing();
// setPosition();
});
//初始化定时器
function initIntervals() {
var intervaltime = 100;
detailProcessInterval = setInterval('getCheckInfo()',intervaltime);
}
//清空定时器
function clearIntarvals() {
clearInterval(detailProcessInterval);
}
function getCheckInfo(){
$.ajax({
url:'BatchInspectionOperation.jsp',
dataType:'json',
type:'post',
data:{
'operation':'getexecuteinfo'
},
success:function(data){
clearIntarvals()
var step=data.step;
var str1="<img src=\"/templetecheck/image/doing.gif\" style=\"height:30px;line-height:25px; float: left;padding: 2px;\">";
var str2="<img src=\"/templetecheck/image/ok.png\" style=\"height:30px;line-height:25px; float: left;padding: 2px;\">";
if(step==1){
$("#img1").html(str1);
$("#img2").html("");
$("#img3").html("");
$("#img4").html("");
initIntervals();//初始化定时器
}else if(step==2){
$("#img1").html(str2);
$("#img2").html(str1);
$("#img3").html("");
$("#img4").html("");
initIntervals();//初始化定时器
}else if(step==3){
$("#img1").html(str2);
$("#img2").html(str2);
$("#img3").html(str1);
$("#img4").html("");
initIntervals();//初始化定时器
}else if(step==4){
$("#img1").html(str2);
$("#img2").html(str2);
$("#img3").html(str2);
$("#img4").html(str1);
initIntervals();//初始化定时器
}else if(step==5){
$("#img1").html(str2);
$("#img2").html(str2);
$("#img3").html(str2);
$("#img4").html(str2);
initIntervals();//初始化定时器
}else if(step==6){
$("#img1").html(str2);
$("#img2").html(str2);
$("#img3").html(str2);
$("#img4").html(str2);
//执行获取文件报告的操作、
document.getElementById("a1").click();
// downDoc2();
setTimeout('getCheckInfo11()',100);
}
}
});
}
function getCheckInfo11(){
$.ajax({
url: 'BatchInspectionOperation.jsp',
dataType: 'json',
type: 'post',
data: {
'operation': 'getexecuteinfo'
},
success: function (data) {
dialog.close();
}
});
}
//开始进行规则检测
function matchrule(){
$.ajax({
url:'BatchInspectionOperation.jsp',
dataType:'json',
type:'post',
data:{
'operation':'startcheckrule'
},
success:function(){
initIntervals();
}
});
}
function closedialog(){
// $.ajax({
// url:'BatchInspectionOperation.jsp',
// dataType:'json',
// type:'post',
// data:{
// 'operation':'stopcheckrule'
// },
// success:function(){
// clearIntarvals();
// dialog.close();
// }
// });
}
function downDoc2() {//执行文件下载,文件实际的路径的名字,文件下载的名字
// document.getElementById("downiframe").src = "/templetecheck/filecheck/ReportDownload.jsp?en_name=allfilereport&cn_name="+encodeURIComponent("批量文件检测报告");
document.getElementById("downiframe").src = "/system/upgradetoe9/report/templetecheckReport_all.zip?en_name=templetecheckReport_all&cn_name="+encodeURIComponent("批量文件检测报告");
}
</script>
</html>