MigrationCompleted.jsp 11.7 KB
<%@ 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">&nbsp;&nbsp;迁移完成,请按照以下步骤对系统进行测试</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;">&nbsp;&nbsp;实时日志</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>