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

333 lines
15 KiB

<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<QMAPP.Web.Models.DefaultModel>" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<meta http-equiv="Expires" content="0" />
<meta http-equiv="Cache-Control" content="no-cache" />
<meta http-equiv="Pragma" content="no-cache" />
<%--弹出即时通知提示窗口链接样式 --%>
<style type="text/css">
.Noitcelink {text-align:left;font-size:12px;font-family:"宋体";color:blue}
#NoitcHref a:link{text-align:left;font-size:12px;font-family:"宋体";color:blue}
#NoitcHref a:hover{text-align:left;font-size:12px;font-family:"宋体";color:blue}
#MoreNotice a:link{text-align:right;font-size:12px;font-family:"宋体";color:blue}
#MoreNotice a:hover{text-align:right;font-size:12px;font-family:"宋体";color:blue}
</style>
<script type="text/javascript">
<!--
javascript: window.history.forward(1);
//-->
</script>
<script type="text/javascript">
//禁止刷新,回退
//处理键盘事件 禁止后退键(Backspace)密码或单行、多行文本框除外
function keyHandler(e) {
//回车=》tab
if (event.keyCode == 13) {
if (event.srcElement.tagName == 'TEXTAREA') {
return;
}
if (event.srcElement.submitFnc) {
if (event.srcElement.submitFnc != "") {
eval(event.srcElement.submitFnc);
return;
}
}
event.keyCode = 9;
} else {
var ev = e || window.event; //获取event对象
var obj = ev.target || ev.srcElement; //获取事件源
var t = obj.type || obj.getAttribute('type'); //获取事件源类型
//获取作为判断条件的事件类型
var vReadOnly = obj.getAttribute('readonly');
var vEnabled = obj.getAttribute('enabled');
//处理null值情况
vReadOnly = (vReadOnly == null || vReadOnly == "") ? false : true;
vEnabled = (vEnabled == null || vEnabled == "") ? true : vEnabled;
//当敲Backspace键时,事件源类型为密码或单行、多行文本的,
//并且readonly属性为true或enabled属性为false的,则退格键失效
var flag1 = (ev.keyCode == 8 && (t == "password" || t == "text" || t == "textarea") && (vReadOnly == true || vEnabled != true)) ? true : false;
//当敲Backspace键时,事件源类型非密码或单行、多行文本的,则退格键失效
var flag2 = (ev.keyCode == 8 && t != "password" && t != "text" && t != "textarea") ? true : false;
//判断
if (flag2) {
return false;
}
if (flag1) {
return false;
}
}
}
//禁止后退键 作用于IE、Chrome
document.onkeydown = keyHandler;
</script>
<title>长春富维江森Audi B9 IP条码追踪系统</title>
<meta name="description" content="overview &amp; stats" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
<!-- 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" />
<link rel="stylesheet" href="../../Scripts/bootstrap-ace/css/ace-skins.min.css" />
<link rel="stylesheet" href="../../Scripts/bootstrap-ace/css/ace-rtl.min.css" />
<!-- 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>
<!--easyui+jquery-->
<link rel="stylesheet" type="text/css" href="../../Scripts/jquery.easyui/themes/default/easyui.css"/>
<script type="text/javascript" src="../../Scripts/jquery.1.11.0.min.js"></script>
<script type="text/javascript" src="../../Scripts/jquery.easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../Scripts/Common-zh-CN.js"></script>
</head>
<body class="no-skin" style="overflow: hidden">
<!-- #section:basics/navbar.layout -->
<div id="navbar" class="navbar navbar-default" style="background-image: url(/Content/default/head1.jpg);">
<script type="text/javascript">
try { ace.settings.check('navbar', 'fixed') } catch (e) { }
</script>
<div class="navbar-container" id="navbar-container">
<div class="navbar-header pull-left">
<!-- #section:basics/navbar.layout.brand -->
<table>
<tr>
<td align=left>
<img width="145px" height="51px" alt="" src="../../Content/default/logo.png"
style="margin: 2px 20px 2px 30px; " /> </td>
<td align=left nowrap=nowrap>
<span style="font-weight: bold; font-size: 24pt; font-family: 宋体; color: #16537a;">长春富维江森Audi B9 IP条码追踪系统</span>
</td>
</tr>
</table>
<!-- /section:basics/navbar.layout.brand -->
<!-- #section:basics/navbar.toggle -->
<!-- /section:basics/navbar.toggle -->
</div>
<!-- #section:basics/navbar.dropdown -->
<div id="divNotice" style="margin-top: 18px" class="navbar-buttons navbar-header pull-right" role="navigation">
<ul class="nav ace-nav">
<!--获取未读通知-->
<%=ViewData["unReadNoticeStr"]%>
<!--获取未读通知-->
<!-- 导航栏中 用户信息 -->
<!-- #section:basics/navbar.user_menu -->
<li class="light-blue"><a data-toggle="dropdown" href="#" class="dropdown-toggle">
<span class="user-info"><small>欢迎您</small><%=Model.UserDes %></span><i
class="ace-icon fa fa-caret-down"> </i></a>
<ul class="user-menu dropdown-menu-right dropdown-menu dropdown-yellow dropdown-caret dropdown-close">
<li><a href="#" onclick="PersnalSet();"><i class="ace-icon fa fa-cog"></i>个性设置</a></li>
<li><a href="#" onclick="SetPwd();"><i class="ace-icon fa fa-user"></i>修改密码</a></li>
<li class="divider"></li>
<li><a href="/Home/Logout"><i class="ace-icon fa fa-power-off"></i>注销</a></li>
</ul>
</li>
</ul>
</div>
<!-- /section:basics/navbar.dropdown -->
</div>
<!-- /.navbar-container -->
</div>
<!-- /section:basics/navbar.layout -->
<div class="main-container" id="main-container">
<script type="text/javascript">
try { ace.settings.check('main-container', 'fixed') } catch (e) { }
</script>
<!-- #section:basics/sidebar -->
<div id="sidebar" class="sidebar responsive">
<script type="text/javascript">
try { ace.settings.check('sidebar', 'fixed') } catch (e) { }
</script>
<!-- /.sidebar-shortcuts -->
<ul class="nav nav-list">
<li class=""><a id="menuSUP" href="/Home/Default?SystemID=Main"><i class="menu-icon fa fa-cog"></i>
<span style="font-size: 14px;font-family: 宋体, Arial" class="menu-text">管理中心</span></a><b class="arrow"></b></li>
<li class=""><a id="A1" href="/Home/Default?SystemID=MainData"><i class="menu-icon fa fa-cog"></i>
<span style="font-size: 14px;font-family: 宋体, Arial" class="menu-text">主数据管理</span></a><b class="arrow"></b></li>
<li class=""><a id="A2" href="/Home/Default?SystemID=FJC"><i class="menu-icon fa fa-cog"></i>
<span style="font-size: 14px;font-family: 宋体, Arial" class="menu-text">富维江森</span></a><b class="arrow"></b></li>
</ul>
<script type="text/javascript">
$(document).ready(function () {
$("#menuSUP").attr("href", "/Home/Default");
$("#menuMTZ").attr("href", "/Home/Default?systemID=MTZ");
})
</script>
<!-- /.nav-list -->
<!-- #section:basics/sidebar.layout.minimize -->
</div>
<!-- /section:basics/sidebar -->
<div class="main-content" style="height:100%">
<div id="subSys">
<iframe id="ifrmWork" frameborder=0 scrolling=yes width=100% height=100% src="/AppDesktop/Main"></iframe>
</div>
</div>
<!-- /.main-content -->
<a href="#" id="btn-scroll-up" class="btn-scroll-up btn btn-sm btn-inverse"><i class="ace-icon fa fa-angle-double-up icon-only bigger-110">
</i></a>
</div>
<div id="appWindow1" class="easyui-window" closed="true" modal="true" title="My Window" style="padding: 2px; width:300px; height:500px; background: #E9F1FF; overflow: hidden;">
<iframe id="appWindow1_Frm" width=100% height="100%" frameborder="0"></iframe>
</div>
<script type="text/javascript">
//加载时适应浏览器高度
$(document).ready(function () {
//模块尺寸
$('#subSys').css('height', $(window).height() - 85);
$('#subSys iframe').css('height', $(window).height() - 66);
//加载即时通知弹出窗口
GetNotice();
})
//获取公告
function GetNotice() {
$.ajax({
type: "POST",
url: "/Notice/GetNotReadInstantNotice",
dataType: "json",
data: {},
success: function (data) {
if (data != null && data.length>0) {
ShowNotice(data);
}
}
});
}
//显示公告窗口
function ShowNotice(data) {
var showStr = "";
for (var i = 0; i < data.length; i++) {
var USETIME = new Date(parseInt(data[i]['USETIME'].replace("/Date(", "").replace(")/", ""), 10));
var year = USETIME.getFullYear();
var month = USETIME.getMonth() + 1;
var day = USETIME.getDate();
var USETIME = year + "-" + month + "-" + day;
showStr = showStr + "<tr height='20px'><td id='NoitcHref' align = 'left' width = '100%'><a href = '#' onclick = 'ClickNotice(&quot;" + data[i]['NOTICEID'] + "&quot;)'><u>" + data[i]['NOTICETITLE'] + "&nbsp;[" + USETIME + "]<u/></a></td></tr>";
}
//消息显示
$.messager.show({
title: '公告消息',
width: 300,
height: 200,
msg: "<table width = '100%'>" + showStr + "<tr><td id='MoreNotice' align='right' ><a href = '#' onclick = 'MoreNotice()'><u>更多</u></a></td></tr></table>",
timeout: 600000,
showType: 'slide'
});
}
//个性设置
function PersnalSet() {
openAppWindow1('个性设置', '/Persnal/PersnalInfoSet', '360', '240');
}
//查看公告
function ClickNotice(id) {
openAppWindow1('查看', '/Notice/ViewNotice?noticeID=' + id, '800', '500');
}
//主页
function Home() {
document.getElementById("ifrmWork").src = "/AppDesktop/Main";
}
//所有公告
function MoreNotice() {
document.getElementById("ifrmWork").src = "/Notice/NoticeMessList";
}
//设置密码
function SetPwd() {
openAppWindow1('用户信息', "/User/SetPassword", '360', '240');
}
//注销
function Logout() {
window.location.href = "/Home/Logout";
}
function loginFR() {
var username = "admin";
var password = "qm";
jQuery.ajax({
url: "http://192.168.3.141:37799/WebReport/ReportServer?op=fs_load&cmd=sso", //FineBI平台登录验证地址
dataType: "jsonp", //跨域采用jsonp方式
data: { "username": username, "password": password }, //将用户名密码值发送过去
jsonp: "callback",
timeout: 5000, //超时时间(单位:毫秒)
success: function (data) {
if (data.status === "success") {//验证成功
//f.submit(); //页面跳转到指定页面
//window.location.href = "http://192.168.3.141:37799/WebReport/ReportServer?op=fbi";
document.getElementById("ifrmWork").src = "http://192.168.3.141:37799/WebReport/ReportServer?op=fbi";
} else if (data.status === "fail") {
alert("用户名密码错误!!!"); //验证失败(用户名或密码错误)
}
},
error: function () {
alert("超时或服务器其他错误!!!"); // 验证失败(超时或服务器其他错误)
}
});
}
</script>
</body>
</html>