You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
120 lines
4.2 KiB
120 lines
4.2 KiB
<%@ page import="com.sinosoft.lis.pubfun.GlobalInput" %>
|
|
<%@ page import="com.sinosoft.utility.XssUtil" %>
|
|
<%@ page import="java.sql.SQLOutput" %>
|
|
<%@ page language="java" contentType="text/html; charset=utf-8" isELIgnored="false" pageEncoding="utf-8"%>
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
|
<head>
|
|
<title>EasyScan</title>
|
|
<script src="../common/javascript/jquery-1.7.2.js"></script>
|
|
<script src="../common/javascript/datainteraction.js"></script>
|
|
<script src="../common/javascript/i18n/jquery.i18n.js"></script>
|
|
<script src="../common/javascript/i18n/jquery.i18n.messagestore.js"></script>
|
|
<script src="../common/javascript/i18n/i18n.js"></script>
|
|
<%--样色表,需要后台调整颜色#8CAAE7; --%>
|
|
<style type="text/css">
|
|
body
|
|
{
|
|
margin: 0px;
|
|
padding: 0px;
|
|
border: 1px solid #8CAAE7;
|
|
clear: none;
|
|
font-size:12px;
|
|
}
|
|
a:visited,a{color:blue;}
|
|
</style>
|
|
<%
|
|
|
|
// en 英文
|
|
// zh-hans 简体中文
|
|
// zh-hant 繁体中文
|
|
// GlobalInput tG1 = (GlobalInput)session.getAttribute("GI");
|
|
GlobalInput tG1 = (GlobalInput)session.getAttribute("GI");
|
|
|
|
String clientUrl = request.getRequestURL().toString();
|
|
clientUrl = clientUrl.substring(0,clientUrl.indexOf("easyscan/"));
|
|
//生产环境使用grouplis.xxxx.com 之类的域名,并且配置了https访问,但是经过负载后,到了系统,获取到的协议是http,所以这里做一下特殊处理,这不是好的方法,但是也是无奈之举
|
|
if(clientUrl.contains("grouplis")){
|
|
clientUrl = clientUrl.replace("http","https");
|
|
}
|
|
// clientUrl = "https://grouplis.fz.com/";
|
|
// String clientUrl = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+request.getContextPath()+"/";
|
|
%>
|
|
|
|
</head>
|
|
|
|
<body onload="getOpenId();">
|
|
<a href="" id='openA'></a>
|
|
<div id="installInfo" style="display:none">
|
|
|
|
<h1 data-i18n="LIS-00001">您的扫描客户端未安装或未正确配置。</h1>
|
|
|
|
|
|
<%-- <a data-i18n="LIS-20111" href="" onclick="javascript:i18nAlert('管理员尚未配置下载地址,请通知管理员进行配置', 'LIS-01269');return false;">如果您未安装,请安装。安装完毕后请参照配置手册对浏览器进行正确配置。</a>--%>
|
|
<input class=cssButton type=button id="showQuotationBtn" value="下载EasyScan安装包" onclick="downPackdge();">
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|
|
|
|
|
|
<%--调用方法样本,需要根据实际情况修改传入参数--%>
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
function downPackdge() {
|
|
|
|
window.location = encodeURI("../API/grp_common/jsp/download/APIDOWNLOAD?FilePath=EasyScan/EasyScanV5.0.0.10(2019-01-28)_v12.exe&FileName=EasyScanV5.exe" )
|
|
}
|
|
|
|
function getOpenId() {
|
|
|
|
|
|
var clientUrl = "<%=XssUtil.escapeJavaScript(clientUrl)%>";
|
|
var language = "<%=XssUtil.escapeJavaScript(tG1.language())%>";
|
|
var manageCom = "<%=XssUtil.escapeJavaScript(tG1.ManageCom)%>";
|
|
var userCode = "<%=XssUtil.escapeJavaScript(tG1.Operator)%>";
|
|
|
|
|
|
var postData = new PostData();
|
|
postData.setVersion2();
|
|
postData.setModuleName("easyscan");
|
|
postData.setTheRestUrl("/easyscan/EasyContainer/");
|
|
postData.setAction("INIT");
|
|
postData.put("clientUrl",clientUrl);
|
|
postData.put("language",language);
|
|
postData.put("manageCom",manageCom);
|
|
postData.put("userCode",userCode);
|
|
postData.put("module","0");
|
|
postData.submit(postData, init);
|
|
}
|
|
|
|
function init(flagStr, content, result){
|
|
if (flagStr !== "Succ") {
|
|
// alert("错误原因 : " + content);
|
|
i18nAlert("错误原因:{0}", "LIS-20100", ex.message);
|
|
}
|
|
// alert(result.openId);
|
|
$('#openA').attr('href',result.openId);
|
|
var win = document.getElementById("openA");
|
|
win.click();
|
|
window.opener = null;
|
|
window.open('', '_self');
|
|
setTimeout("showError()",5000);
|
|
window.opener = null;
|
|
window.open('', '_self');
|
|
setTimeout(
|
|
"window.opener=null;window.open('','_self'); window.close();",
|
|
45000);
|
|
}
|
|
|
|
function showError(){
|
|
document.getElementById("openA").style.display="none";
|
|
document.getElementById("installInfo").style.display="";
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|