MigrationCompleted.jsp
11.7 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
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
<%@ page language="java" contentType="text/html; charset=UTF-8" %>
<%@ page import="java.io.File" %>
<%@ page import="weaver.general.GCONST" %>
<%@ page import="weaver.upgradetool.dbupgrade.upgrade.PropUtil" %>
<%@ page import="com.alibaba.fastjson.JSONObject" %>
<%@ page import="weaver.upgradetool.dbupgrade.upgrade.ToolUtil" %>
<%@ page import="java.util.LinkedHashMap" %>
<%@ page import="weaver.upgradetool.dbupgrade.upgrade.DBUpgradeProcess" %>
<%@ include file="/system/upgradetoe9/DBUpgradeInit.jsp"%>
<html>
<%
DBUpgradeProcess.updateMainStatus(mainsequence,ToolUtil.EXECUTE_STATUS_FIN);
%>
<script type="text/javascript" src="/system/upgradetoe9/js/jquery-1.8.3.min_wev8.js"></script>
<link rel="stylesheet" href="/system/upgradetoe9/css/seachBody_wev8.css" type="text/css" />
<link type="text/css" rel="stylesheet" href="/system/upgradetoe9/css/dialog.css" />
<script type="text/javascript" src="/system/upgradetoe9/js/dialog.js"></script>
<head>
<title> E-cology迁移程序</title>
<style>
TABLE {
FONT-SIZE: 9pt;
FONT-FAMILY: Verdana;
}
BODY {
FONT-SIZE: 9pt;
MARGIN: 0px;
FONT-FAMILY: Verdana;
LIST-STYLE-TYPE: circle;
}
input,select,textarea{
/*border:#e7e7e7 1px solid;*/
vertical-align:middle;
}
input,select{
line-height:24px;
height:24px;
}
table input{
border: 1px solid #ccc!important;
border-radius: 3px;/* !*css3属性IE不支持*!*/
padding: 6px 0px 5px 10px;
}
.progressbar{
width: 98%;
/* margin-left: 10%;*/
border-radius: 7px;
border: 1px solid #008000;
float: left;
-webkit-box-shadow: 3px 3px 3px #ADADAD;
-moz-box-shadow: 3px 3px 3px #ADADAD;
box-shadow: 3px 3px 3px #ADADAD;
}
.btn-primary{
height: 25%;
text-decoration:none;
background:#337AB7;
color:#f2f2f2;
padding: 0 20px 0 20px;
font-size:14px;
font-family: 微软雅黑,宋体,Arial,Helvetica,Verdana,sans-serif;
/*font-weight:bold;*/
border-radius:5px;
-webkit-transition:all linear 0.10s;
-moz-transition:all linear 0.10s;
transition:all linear 0.10s;
}
.btn-primary:hover{
background:#286090;
}
.btn-success{
height: 25%;
text-decoration:none;
background:#5CB85C;
color:#f2f2f2;
padding: 0 20px 0 20px;
font-size:14px;
font-family: 微软雅黑,宋体,Arial,Helvetica,Verdana,sans-serif;
/*font-weight:bold;*/
border-radius:5px;
}
.btn-success:hover{
background:#b8b1b6;
}
.btn-success-disabled:hover{
background:#5CB85C;
}
.btn-success-disabled{
height: 25%;
text-decoration:none;
background: #b8b1b6;
color:#f2f2f2;
padding: 0 20px 0 20px;
font-size:14px;
font-family: 微软雅黑,宋体,Arial,Helvetica,Verdana,sans-serif;
/*font-weight:bold;*/
border-radius:5px;
}
.e8_btn_disabled{
border:0px;cursor:pointer;
padding-left:0;
padding-left:10px;
padding-right:10px;
height:30px;
line-height:30px;
background-color:#959595;
color:white;
width:auto;
}
.e8_btn_submit{
border:0px;cursor:pointer;
padding-left:0;
padding-left:10px;
padding-right:10px;
height:30px;
line-height:30px;
background-color:#558ED5;
color:white;
width:auto;
}
.e8_btn_submit_hover{
background-color:#0170C1 !important;
color:white;
}
.header{
height: 30px;
background-color: #868686;
}
.header td p{
font-weight: bolder;
color: black;
font-size: 20px;
}
.redtext{
color: #D35026;
font-size: 20px;
}
.ullist{
list-style: decimal;
}
.listyle1{
color: #6c6c6c;
font-size: 15px;
}
.ullist1{
list-style: none;
line-height: 25px;
padding-left:10px!important;
padding-top:10px!important;
color: black;
font-size: 15px;
}
.toolmessage {
padding-left:10px!important;
font-size:medium;
font-weight:bold;
}
</style>
</head>
<%
String titlename = "";
%>
<jsp:include page="/system/upgradetoe9/CommonTabHead.jsp?step=8">
<jsp:param name="mouldID" value="upgrade"/>
<jsp:param name="navName" value="数据库迁移工具"/>
</jsp:include>
<table id="topTitle" cellpadding="0" cellspacing="0">
<tr>
<td></td>
<td class="rightSearchSpan" style="text-align:right; width:500px!important">
<button style="margin-right:10px;" id="get_report" type="button" name="next" onclick="getReport()" class="e8_btn_submit">获取迁移报告</button>
<button style="margin-right:10px;" id="init_btn" type="button" name="next" onclick="initUpgrade()" class="e8_btn_submit">重新迁移</button>
<button style="margin-right:10px;" id="get_report" type="button" name="next" onclick="shieldTool()" class="e8_btn_submit">屏蔽工具</button>
</td>
</tr>
</table>
<body style="height:100%;width:100%;">
<iframe name="downiframe" id="downiframe" src="" style="display:none" ></iframe>
<div style="width:20%;height:100%;float:left;background:#fcfcfc;">
<jsp:include page="MigrationStep.jsp"></jsp:include>
</div>
<div style="width:80%;height:100%;float:right">
<table style="width:98%;height: auto;padding-left:1%;padding-top:1%" cellspacing="0" cellpadding="0" class="showtable" >
<tr class="header">
<td>
<div style="font-size:18px;height:40px;line-height:40px;background-color:#f8f8f8;"><img style="height:40px;line-height:40px;float:left" src="./images/sysadmin_doc_wev8.png"></img><span style="height:40px;line-height:40px;float:left"> 迁移完成,请按照以下步骤对系统进行测试</span></div>
<div id="processcontent" style="width:50%;text-align:left;background-color:white;float:left">
</div>
<div id="consolediv" style="width:50%;height:80%;float:right;margin:0 auto;display:none">
<div style="margin-top:1%;">
<span style="display:inline-block;width: 100%">
<span style="height:30px;line-height:30px;background-color:#1A57A0;color:white;display:inline-block;font-size:18px;width:100%;border-top-left-radius:8px;border-top-right-radius:8px;"> 实时日志</span>
</span>
<textarea id="logarea1" style="width: 100%;height: 100%;padding: 10px 0 0 10px;background-color: white;color: black;display:block"></textarea>
</div>
</div>
</td>
</tr>
<tr>
<td>
<ul class="ullist1">
<li style="font-size: medium;font-weight: bold">请手动重启服务,重启好系统后,按序进行如下的检查任务:</li>
</ul>
</td>
</tr>
<tr>
<td>
<ul class="ullist1">
<li>任务1:测试是否可以正常登录系统</li>
<li>任务2:请到后端应用中心--升级中心--文件检测与维护--配置文件信息维护中检查配置项状态</li>
<li>任务3:检查迁移后的系统的门户菜单(前端、后端)是否正常(部分菜单需要重新配置)</li>
<li>任务4:测试门户、流程、人力资源、知识模块功能是否正常</li>
<li>任务5:检查附件、html模板是否迁移成功</li>
</ul>
<br>
<div class="toolmessage">
说明:<br>
1、 如果重新进行数据库迁移升级,请点击“重新迁移”。<br>
2、由于此工具对数据库存在大量的操作,请在确认迁移完成(测试基本功能无异常)后屏蔽此工具,<br>
屏蔽之后此工具升级功能将不再能访问,如果想重用此工具,请重新打上工具包(报表、迁移数据初始化处理仍可以使用)。
</div>
</td>
</tr>
</table>
</div>
</body>
<script type="text/javascript">
function initMig() {
$.ajax({
dataType:'json',
type:'post',
url:'InitDatabaseOperation.jsp',
data:{
"method":"InitDatabase",
"myname":"weaver@ecology2E9"
},
success:function(data){
if(data.error=='error5'){
$.DialogByZ.Alert({Title: "提示", Content: "密码错误",BtnL:"确定"});
return;
} else if(data.error=='success'){
$.DialogByZ.Alert({Title: "提示", Content: "数据迁移初始化成功,3秒后自动跳转第一步",BtnL:"确定"});
setTimeout(function(){
window.parent.location.reload();
},3000)
return;
}
},
error:function () {
clearIntarvals();//清空定时器
$.DialogByZ.Alert({Title: "提示", Content: "InitDatabaseOperation异常",BtnL:"确定"});
}
});
}
function getReport() {
$.ajax({
dataType:'json',
type:'post',
url:'ReportDoExcel.jsp',
data:{
"laststatus":"last"
},
success:function(){
document.getElementById("downiframe").src = "/filesystem/allSystemrepot.zip";
}
});
// var url = "ReportDoExcel.jsp";
// var form = $("<form></form>").attr("action", url).attr("method", "post");
// form.appendTo('body').submit().remove();
}
function initUpgrade() {
$.DialogByZ.Confirm({Title: "确认信息", Content: "请确认初始化工具,重新迁移",FunL:initMig});
}
//屏蔽工具
function shieldTool() {
$.DialogByZ.Confirm({Title: "确认信息", Content: "请确认是否屏蔽工具",FunL:shieldTool2});
}
function shieldTool2() {
$.ajax({
dataType:'json',
type:'post',
url:'InitDatabaseOperation.jsp',
data:{
"method":"shieldtool",
"myname":"weaver@ecology2E9"
},
success:function(data){
if(data.error=='error5'){
$.DialogByZ.Alert({Title: "提示", Content: "密码错误",BtnL:"确定"});
return;
} else if(data.error=='success'){
setTimeout(function(){
window.parent.location.reload();
},1000)
return;
}
},
error:function () {
clearIntarvals();//清空定时器
$.DialogByZ.Alert({Title: "提示", Content: "InitDatabaseOperation异常",BtnL:"确定"});
}
});
}
</script>
</html>