天津投入产出系统后端
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.
 
 
 
 
 
 

578 lines
25 KiB

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<QMAPP.Entity.Sys.LoginInfo>" %>
<!doctype html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>富维安道拓成都数字化工厂</title>
<%-- <noscript>
&lt;meta http-equiv="Refresh" content="0;登录到 系统需要启用 JavaScript。当前 Web 浏览器不支持 JavaScript
或阻止了脚本。&lt;br /&gt;&lt;br /&gt;若要查看你的浏览器是否支持 JavaScript 或允许使用脚本,请查看浏览器联机帮助。
</noscript>--%>
<!-- bootstrap & fontawesome -->
<link rel="stylesheet" href="../../Scripts/bootstrap-ace/css/bootstrap.min.css" />
<link rel="stylesheet" href="../../Scripts/bootstrap-ace/css/font-awesome.min.css" />
<!-- page specific plugin styles -->
<!-- text fonts -->
<link rel="stylesheet" href="../../Scripts/bootstrap-ace/css/ace-fonts.css" />
<!-- ace styles -->
<link rel="stylesheet" href="../../Scripts/bootstrap-ace/css/ace.min.css" />
<!--[if lte IE 9]>
<link rel="stylesheet" href="../../Content/plugin/bootstrap-ace/css/ace-part2.min.css" />
<![endif]-->
<link rel="stylesheet" href="../../Scripts/bootstrap-ace/css/ace-skins.min.css" />
<link rel="stylesheet" href="../../Scripts/bootstrap-ace/css/ace-rtl.min.css" />
<!--[if lte IE 9]>
<link rel="stylesheet" href="../../Content/plugin/bootstrap-ace/css/ace-ie.min.css" />
<![endif]-->
<!-- inline styles related to this page -->
<!-- ace settings handler -->
<script src="../../Scripts/bootstrap-ace/js/ace-extra.min.js"></script>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lte IE 8]>
<script src="../../Content/plugin/bootstrap-ace/js/html5shiv.js"></script>
<script src="../../Content/plugin/bootstrap-ace/js/respond.min.js"></script>
<![endif]-->
<!-- basic scripts -->
<!--[if !IE]> -->
<script type="text/javascript" src="../../Scripts/jquery.1.11.0.min.js"></script>
<script type="text/javascript">
window.jQuery || document.write("<script src='../../Scripts/bootstrap-ace/js/jquery.min.js'>" + "<" + "/script>");
</script>
<!-- <![endif]-->
<!--[if IE]>
<script type="text/javascript">
window.jQuery || document.write("<script src='../../Scripts/bootstrap-ace/js/jquery1x.min.js'>"+"<"+"/script>");
</script>
<![endif]-->
<script type="text/javascript">
if ('ontouchstart' in document.documentElement) document.write("<script src='../../Scripts/bootstrap-ace/js/jquery.mobile.custom.min.js'>" + "<" + "/script>");
</script>
<script src="../../Scripts/bootstrap-ace/js/bootstrap.min.js"></script>
<!-- page specific plugin scripts -->
<!--[if lte IE 8]>
<script src="../../Scripts/bootstrap-ace/js/excanvas.min.js"></script>
<![endif]-->
<script src="../../Scripts/jquery.cookie.js"></script>
<style type="text/css">
h1
{
font-family: 黑体, Helvetica, Sans-Serif;
margin: 0px 20px;
font-size: 44px;
font-weight: bolder;
color: #16537a;
}
h2
{
font-family: Arial, Helvetica, Sans-Serif;
margin: 10px 20px;
font-size: 26px;
font-weight: bolder;
color: #16537a;
}
</style>
<script type="text/javascript">
function langSelChanage() {
var theForm = document.forms[0];
if (theForm && (!theForm.onsubmit || (theForm.onsubmit() != false))) {
theForm.action = "/Home/ChangeLang";
theForm.submit();
}
}
//初始化记住的用户信息
$(function ($) {
if ($.cookie('login_saved_rem') == "true") {
$("#LoginUserID").val($.cookie('login_saved_name'));
$("#PassWord").val($.cookie('login_saved_pwd'));
$("#ckRemberMe").attr("checked", "checked");
}
if ($.cookie('selLang') != null && $.cookie('selLang') != "")
$("#selLang").val($.cookie('selLang'));
});
function doLogin() {
if ($("#ckRemberMe").prop("checked")) {
$.cookie('login_saved_name', $("#LoginUserID").val(), { expires: 999 });
$.cookie('login_saved_pwd', $("#PassWord").val(), { expires: 999 });
$.cookie('login_saved_lan', '', { expires: 999 });
$.cookie('login_saved_rem', $("#ckRemberMe").prop("checked"), { expires: 999 });
} else {
$.cookie('login_saved_name', "");
$.cookie('login_saved_pwd', "");
$.cookie('login_saved_lan', "");
$.cookie('login_saved_rem', "");
}
//Defalut 页面记录当前登录的系统,
//$.cookie('login_sys', '', { expires: 7 });
if ($("#LoginUserID").val() == "") {
document.getElementById("LoginUserID").focus();
alert("用户名不能为空!");
return false;
}
if ($("#LoginUserID").val() == "") {
document.getElementById("PassWord").focus();
alert("密码不能为空!");
return false;
}
$.cookie('selLang', $("#selLang").val(), { expires: 999 });
var theForm = document.forms[0];
theForm.action = "/Home/Login";
theForm.submit();
return true;
}
document.onkeydown = function (event) {
var e = event || window.event || arguments.callee.caller.arguments[0];
if (e && e.keyCode == 13) {
loginSubmit();
}
if (e && e.keyCode == 27) {
reset11();
}
};
$(document).ready(function () {
//所有输入框,焦点离开后小写转大写
$.each($("input[id=Text1]"), function (i, n) {
$(this).bind("blur", function () {
$(this).val($(this).val().toUpperCase());
});
});
});
</script>
</head>
<body class="login-layout" style="background-color: #fff;">
<div style="text-align: center; font-size: 35px; margin-top: 30px; padding-top: 20px;">
<%-- <img alt="" height="172" src="../../Content/login/images/<%=ViewData["loginmap"] %>"
style="position: absolute; z-index: auto; top: 20px; left: 30px;"
width="294" />--%>
<h1>
富维安道拓成都数字化工厂</h1>
<h2>
Adient CHENGDU Digital factory</h2>
<div id="printDiv" style="display: none;">
<span style="font-weight: bold; font-size: 20px; font-family: 宋体; color: #FF0000;">您未安装客户端打印控件,请进行<a
id="A1" href="../../Scripts/Lodop/install_lodop32.exe"><span style="color: #FF0000;
text-decoration: underline;">安装</span></a>。</span></div>
</div>
<div style="height: 360px; background-image: url(../../Content/login/images/Back.jpg);
background-repeat: no-repeat; background-position: center;">
<div style="margin: auto; margin-top: 60px; padding-top: 20px; width: 350px;">
<div>
<div id="login-box" class="login-box visible widget-box no-border">
<div class="widget-body">
<div class="widget-main">
<h4 class="header blue lighter bigger">
<i class="ace-icon fa fa-coffee green"></i>请输入您的登录信息
</h4>
<div class="space-6">
</div>
<%using (Html.BeginForm())
{%>
<fieldset>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="text" id="LoginUserID" name="LoginUserID" value="ADMIN" class="form-control"
style="ime-mode: disabled;" placeholder="请输入用户名或域账户" />
<i class="ace-icon fa fa-user"></i></span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input class="form-control" id="PassWord" name="PassWord" type="password" value="qm" />
<i class="ace-icon fa fa-lock"></i></span>
</label>
<%--<label class="block clearfix">
<span class="block input-icon input-icon-right">
<select name="selLang" id="selLang" style="font-size: 15px;">
<option selected="selected" value="zh-CN">中文</option>
<option value="en">英文</option>
</select>
</span>
</label>--%>
<div class="space">
</div>
<div class="clearfix">
<label class="inline">
<input type="checkbox" id="ckRemberMe" />
<span class="lbl">记住登录信息</span>
</label>
<button type="button" onclick="doLogin()" class="width-35 pull-right btn btn-sm btn-primary">
<i class="ace-icon fa fa-key"></i><span class="bigger-110">登录</span>
</button>
</div>
<div class="space-4">
</div>
</fieldset>
<%} %>
<%-- <div class="social-or-login center">
<span class="bigger-110">Or Login Using</span>
</div>
<div class="space-6">
</div>
<div class="social-login center">
<a class="btn btn-primary"><i class="ace-icon fa fa-facebook"></i></a><a class="btn btn-info">
<i class="ace-icon fa fa-twitter"></i></a><a class="btn btn-danger"><i class="ace-icon fa fa-google-plus">
</i></a>
</div>--%>
</div>
<!-- /.widget-main -->
<div class="toolbar clearfix">
<div>
<%--<a href="#" data-target="#forgot-box" class="forgot-password-link"><i class="ace-icon fa fa-arrow-left">
</i>忘记密码</a>--%>
</div>
<%-- <div>
<a href="#" data-target="#signup-box" class="user-signup-link">I want to register <i
class="ace-icon fa fa-arrow-right"></i></a>
</div>--%>
</div>
</div>
<!-- /.widget-body -->
</div>
<!-- /.login-box -->
<div id="forgot-box" class="forgot-box widget-box no-border">
<div class="widget-body">
<div class="widget-main">
<h4 class="header red lighter bigger">
<i class="ace-icon fa fa-key"></i>找回密码
</h4>
<div class="space-6">
</div>
<p>
请输入您的邮箱
</p>
<form>
<fieldset>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="email" class="form-control" placeholder="Email" />
<i class="ace-icon fa fa-envelope"></i></span>
</label>
<div class="clearfix">
<button type="button" class="width-35 pull-right btn btn-sm btn-danger">
<i class="ace-icon fa fa-lightbulb-o"></i><span class="bigger-110">发送</span>
</button>
</div>
</fieldset>
</form>
</div>
<!-- /.widget-main -->
<div class="toolbar center">
<a href="#" data-target="#login-box" class="back-to-login-link">返回 <i class="ace-icon fa fa-arrow-right">
</i></a>
</div>
</div>
<!-- /.widget-body -->
</div>
<!-- /.forgot-box -->
<div id="signup-box" class="signup-box widget-box no-border">
<div class="widget-body">
<div class="widget-main">
<h4 class="header green lighter bigger">
<i class="ace-icon fa fa-users blue"></i>New User Registration
</h4>
<div class="space-6">
</div>
<p>
Enter your details to begin:
</p>
<form>
<fieldset>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="email" class="form-control" placeholder="Email" />
<i class="ace-icon fa fa-envelope"></i></span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="text" class="form-control" placeholder="Username" />
<i class="ace-icon fa fa-user"></i></span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="password" class="form-control" placeholder="Password" />
<i class="ace-icon fa fa-lock"></i></span>
</label>
<label class="block clearfix">
<span class="block input-icon input-icon-right">
<input type="password" class="form-control" placeholder="Repeat password" />
<i class="ace-icon fa fa-retweet"></i></span>
</label>
<label class="block">
<input type="checkbox" class="ace" />
<span class="lbl">I accept the <a href="#">User Agreement</a> </span>
</label>
<div class="space-24">
</div>
<div class="clearfix">
<button type="reset" class="width-30 pull-left btn btn-sm">
<i class="ace-icon fa fa-refresh"></i><span class="bigger-110">Reset</span>
</button>
<button type="button" class="width-65 pull-right btn btn-sm btn-success">
<span class="bigger-110">Register</span> <i class="ace-icon fa fa-arrow-right icon-on-right">
</i>
</button>
</div>
</fieldset>
</form>
</div>
<div class="toolbar center">
<a href="#" data-target="#login-box" class="back-to-login-link"><i class="ace-icon fa fa-arrow-left">
</i>Back to login </a>
</div>
</div>
<!-- /.widget-body -->
</div>
<!-- /.signup-box -->
</div>
</div>
</div>
<div style="width: 98%; bottom: 10px; text-align: center;">
<%if (Request.Browser.Type != null)
{%>
<div>
<br />
联系人: 电话: 版本号:
<br />
您正在使用的浏览器是:<%=Request.Browser.Type%></div>
<%} %>
Copyright © QMHT
</div>
<object id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width="0"
height="0">
<embed id="LODOP_EM" type="application/x-print-lodop" width="0" height="0"></embed>
</object>
<!-- inline scripts related to this page -->
<script type="text/javascript">
jQuery(function ($) {
$(document).on('click', '.toolbar a[data-target]', function (e) {
e.preventDefault();
var target = $(this).data('target');
$('.widget-box.visible').removeClass('visible'); //hide others
$(target).addClass('visible'); //show target
});
});
//you don't need this, just used for changing background
jQuery(function ($) {
$('#btn-login-dark').on('click', function (e) {
$('body').attr('class', 'login-layout');
$('#id-text2').attr('class', 'white');
$('#id-company-text').attr('class', 'blue');
e.preventDefault();
});
$('#btn-login-light').on('click', function (e) {
$('body').attr('class', 'login-layout light-login');
$('#id-text2').attr('class', 'grey');
$('#id-company-text').attr('class', 'blue');
e.preventDefault();
});
$('#btn-login-blur').on('click', function (e) {
$('body').attr('class', 'login-layout blur-login');
$('#id-text2').attr('class', 'white');
$('#id-company-text').attr('class', 'light-blue');
e.preventDefault();
});
});
</script>
<script>
var BrowserDetect = {
init: function () {
this.browser = this.searchString(this.dataBrowser) || "An unknown browser";
this.version = this.searchVersion(navigator.userAgent)
|| this.searchVersion(navigator.appVersion)
|| "an unknown version";
this.OS = this.searchString(this.dataOS) || "an unknown OS";
},
searchString: function (data) {
for (var i = 0; i < data.length; i++) {
var dataString = data[i].string;
var dataProp = data[i].prop;
this.versionSearchString = data[i].versionSearch || data[i].identity;
if (dataString) {
if (dataString.indexOf(data[i].subString) != -1)
return data[i].identity;
}
else if (dataProp)
return data[i].identity;
}
},
searchVersion: function (dataString) {
var index = dataString.indexOf(this.versionSearchString);
if (index == -1) return;
return parseFloat(dataString.substring(index + this.versionSearchString.length + 1));
},
dataBrowser: [
{
string: navigator.userAgent,
subString: "Chrome",
identity: "Chrome"
},
{ string: navigator.userAgent,
subString: "OmniWeb",
versionSearch: "OmniWeb/",
identity: "OmniWeb"
},
{
string: navigator.vendor,
subString: "Apple",
identity: "Safari",
versionSearch: "Version"
},
{
prop: window.opera,
identity: "Opera",
versionSearch: "Version"
},
{
string: navigator.vendor,
subString: "iCab",
identity: "iCab"
},
{
string: navigator.vendor,
subString: "KDE",
identity: "Konqueror"
},
{
string: navigator.userAgent,
subString: "Firefox",
identity: "Firefox"
},
{
string: navigator.vendor,
subString: "Camino",
identity: "Camino"
},
{ // for newer Netscapes (6+)
string: navigator.userAgent,
subString: "Netscape",
identity: "Netscape"
},
{
string: navigator.userAgent,
subString: "MSIE",
identity: "Explorer",
versionSearch: "MSIE"
},
{
string: navigator.userAgent,
subString: "Gecko",
identity: "Mozilla",
versionSearch: "rv"
},
{ // for older Netscapes (4-)
string: navigator.userAgent,
subString: "Mozilla",
identity: "Netscape",
versionSearch: "Mozilla"
}
],
dataOS: [
{
string: navigator.platform,
subString: "Win",
identity: "Windows"
},
{
string: navigator.platform,
subString: "Mac",
identity: "Mac"
},
{
string: navigator.userAgent,
subString: "iPhone",
identity: "iPhone/iPod"
},
{
string: navigator.platform,
subString: "Linux",
identity: "Linux"
}
]
};
BrowserDetect.init();
//检测是否可以使用该系统
function checkCanuse() {
var browserTip = "您的浏览器是:";
browserTip += BrowserDetect.browser
browserTip += " 版本号:" + BrowserDetect.version; //获取版本号
if (BrowserDetect.version < 7) {
alert(browserTip + "\n太旧了!请升级您的浏览器为IE8 或更高的版本")
//$("#tip").html(browserTip);
return false;
}
return true;
}
</script>
<script language="javascript" type="text/javascript">
//消息输出
var message = "<%=ViewData["Message"] %>";
if (message != null && message != "") {
alert(message);
}
//登录
function loginSubmit() {
if (document.getElementById("LoginUserID").value == "") {
MSI("提示", "用户名不能为空!");
return false;
}
if (document.getElementById("PassWord").value == "") {
MSI("提示", "密码不能为空!");
return false;
}
var thisForm = document.getElementsByTagName("form")[0];
thisForm.submit();
return true;
}
//判断打印控件是否安装
$(function () {
/*
try {
var LODOP;
if (navigator.appVersion.indexOf("MSIE") >= 0) {
LODOP = document.getElementById('LODOP_OB');
}
else {
LODOP = document.getElementById('LODOP_EM');
}
if ((LODOP != null) && (typeof (LODOP.VERSION) != "undefined")) {
document.getElementById("printDiv").style.display = "none";
}
var v = LODOP.VERSION;
if(LODOP.VERSION==null)
{
document.getElementById("printDiv").style.display = "block";
}
} catch (err) {
document.getElementById("printDiv").style.display = "block";
if (navigator.userAgent.indexOf('Win64') >= 0) {
document.getElementById("printinstall").href = "../../Scripts/Lodop/install_lodop64.exe";
}
}
*/
});
</script>
</body>
</html>