1039 lines
40 KiB
Plaintext
1039 lines
40 KiB
Plaintext
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Main.aspx.cs" Inherits="Main" %>
|
||
|
||
<!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>
|
||
<%=System.Configuration.ConfigurationManager.AppSettings["SYSTitle"]%></title>
|
||
<meta http-equiv="cache-control" content="no-cache, must-revalidate" />
|
||
<meta http-equiv="expires" content="0" />
|
||
<meta http-equiv="X-UA-Compatible" content="edge" />
|
||
<link rel="Stylesheet" type="text/css" href="../Controls/ExtJS/resources/css/ext-all.css" charset="gb2312" />
|
||
<link href="../Controls/ExtJS/resources/css/xtheme-slate.css" rel="stylesheet" />
|
||
<link href="../Controls/ExtJS/Css/menu.css" rel="stylesheet" type="text/css" />
|
||
<link href="../Controls/ExtJS/Css/layui.css" rel="stylesheet" type="text/css" />
|
||
<link href="../Controls/AzureCalendar/Theme/Default/main.css" rel="stylesheet" type="text/css" />
|
||
<script type="text/javascript" src="../Controls/ExtJS/adapter/ext/ext-base.js"></script>
|
||
<script type="text/javascript" src="../Controls/ExtJS/layui.js"></script>
|
||
<script type="text/javascript" src="../Controls/ExtJS/ext-all.js"></script>
|
||
<script src="../JS/jquery-1.3.2.min.js" type="text/javascript"></script>
|
||
<script type="text/javascript" src="../Controls/js/bottom.js"></script>
|
||
<script type="text/javascript" src="../Controls/js/rightKeyTabPanel.js"></script>
|
||
<script src="../Controls/js/centerGrid.js" type="text/javascript"></script>
|
||
<script src="../Controls/ext-ux/statusbar/StatusBar.js" type="text/javascript"></script>
|
||
<script src="../Controls/js/Changepwd.js" type="text/javascript"></script>
|
||
<script src="../Controls/js/JsHelper.js" type="text/javascript"></script>
|
||
<script src="../JS/jquery.timers-1.2.js" type="text/javascript"></script>
|
||
<script src="https://libs.baidu.com/jquery/2.0.0/jquery.min.js" type="text/javascript" charset="utf-8"></script>
|
||
|
||
<style type="text/css">
|
||
.ltop {
|
||
/*background: rgba(46,60,70,0.8);*/
|
||
}
|
||
|
||
.ltop .layui-nav {
|
||
background: transparent;
|
||
}
|
||
|
||
.lflex {
|
||
display: flex;
|
||
line-height: 80px;
|
||
font-family: "microsoft yahei";
|
||
justify-content: space-between;
|
||
align-items: center;
|
||
}
|
||
|
||
.limg {
|
||
margin: 0 10px;
|
||
}
|
||
|
||
.layui-nav-item img {
|
||
width: 16px;
|
||
margin-right: 10px;
|
||
}
|
||
|
||
.limg img {
|
||
width: 42px;
|
||
position: relative;
|
||
top: 7px;
|
||
}
|
||
|
||
.llogo {
|
||
color: #FFFFFF;
|
||
font-size: 25px;
|
||
font-weight: 600;
|
||
line-height: 60px;
|
||
/*text-shadow: 2px 2px 2px #000000;*/
|
||
letter-spacing: 3px;
|
||
}
|
||
|
||
.ll {
|
||
display: flex;
|
||
}
|
||
|
||
.layui-nav-tree {
|
||
width: 100%;
|
||
}
|
||
|
||
.x-panel-body p {
|
||
margin: 5px;
|
||
}
|
||
|
||
.x-column-layout-ct .x-panel {
|
||
margin-bottom: 5px;
|
||
}
|
||
|
||
.x-column-layout-ct .x-panel-dd-spacer {
|
||
margin-bottom: 5px;
|
||
}
|
||
|
||
.settings {
|
||
background-image: url(../shared/icons/fam/folder_wrench.png) !important;
|
||
}
|
||
|
||
.nav {
|
||
background-image: url(../shared/icons/fam/folder_go.png) !important;
|
||
}
|
||
|
||
.panel_icon {
|
||
background-image: url(../Controls/images/first.gif);
|
||
}
|
||
|
||
.my_icon {
|
||
background-image: url(../Controls/images/plugin.gif);
|
||
}
|
||
|
||
.x-tree-node div.menu-node {
|
||
background: #eee url(cmp-bg.gif) repeat-x;
|
||
margin-top: 1px;
|
||
border-top: 1px solid #ddd;
|
||
border-bottom: 1px solid #ccc;
|
||
padding-top: 2px;
|
||
padding-bottom: 1px;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.menu-node .x-tree-node-icon {
|
||
}
|
||
|
||
.menu-node2 {
|
||
border: 1px solid #fff;
|
||
background-image: url(../Content/icons/bullet_green.png);
|
||
background-repeat: no-repeat;
|
||
padding-right: 20px;
|
||
background-position: 1px 1px;
|
||
}
|
||
|
||
.no-node-icon {
|
||
display: none;
|
||
}
|
||
|
||
.menu-node2 .x-tree-ec-icon {
|
||
}
|
||
|
||
.error {
|
||
background-image: url(../Content/icons/exclamation.gif);
|
||
}
|
||
|
||
.information {
|
||
background-image: url(../Content/icons/calendar_view_month.png) !important;
|
||
}
|
||
|
||
.ztip {
|
||
height: 20px;
|
||
line-height: 20px; /* 数值与height相同,使数字垂直居中 */
|
||
text-align: center; /* 使数字水平居中*/
|
||
background-color: red;
|
||
color: white;
|
||
font-size: 12px;
|
||
font-weight: 700;
|
||
border-radius: 50%; /*使正方形变圆形,矩形变椭圆形 */
|
||
padding: 0px 2px;
|
||
}
|
||
</style>
|
||
<style type="text/css">
|
||
.x-panel-header {
|
||
font-size: 14px;
|
||
padding: 8px 3px;
|
||
}
|
||
|
||
.x-tree-node-el {
|
||
font-size: 13px;
|
||
margin-bottom: 1px;
|
||
padding: 5px 3px;
|
||
color: #fafafa;
|
||
height: 20px;
|
||
/*border: 1px solid #abc;*/
|
||
/*background-image: url(../Controls/ExtJS/resources/images/slate/panel//white-top-bottom.gif);*/
|
||
}
|
||
|
||
|
||
.x-tree-node .x-tree-selected {
|
||
background-color: rgba(62, 72, 84, 0.3);
|
||
}
|
||
|
||
#panel_north .x-panel-body {
|
||
background: url(../Controls/ExtJS/img/bj.jpg);
|
||
}
|
||
|
||
.main-head {
|
||
vertical-align: middle;
|
||
background: rgba(48,62,72,0.5);
|
||
height: 100%;
|
||
padding: 5px;
|
||
}
|
||
|
||
.main-head-right {
|
||
float: right;
|
||
margin-right: 30px;
|
||
padding-top: 40px;
|
||
font-size: 16px;
|
||
vertical-align: middle;
|
||
color: #ddd;
|
||
}
|
||
|
||
.main-head-img {
|
||
width: 20px;
|
||
height: 20px;
|
||
padding-left: 6px;
|
||
vertical-align: middle;
|
||
}
|
||
|
||
#ext-gen29 {
|
||
/*color: #dadada;
|
||
background-color: rgba(62, 72, 84, 0.3);*/
|
||
}
|
||
|
||
#panleCenter .x-tab-panel-header {
|
||
/*background: url(../Controls/ExtJS/img/bj.jpg);*/
|
||
background-position-y: -80px;
|
||
background-position-x: -180px;
|
||
padding-bottom: 0;
|
||
height: 0
|
||
}
|
||
|
||
.layui-tab-title {
|
||
/*background: url(../Controls/ExtJS/img/bj.jpg);*/
|
||
background-position-y: -80px;
|
||
background-position-x: -180px;
|
||
}
|
||
|
||
.layui-this {
|
||
color: #f00 !important
|
||
}
|
||
|
||
.layui-tab-title li {
|
||
background: rgba(255,255,255,0.8);
|
||
border: 0;
|
||
color: #000;
|
||
font-weight: bold;
|
||
}
|
||
|
||
.layui-tab-title li .layui-tab-close {
|
||
color: #000
|
||
}
|
||
|
||
.layui-tab {
|
||
margin: 0
|
||
}
|
||
|
||
#panleCenter div {
|
||
border: 0
|
||
}
|
||
|
||
#panleCenter .x-tab-strip-top .x-tab-right {
|
||
background: transparent;
|
||
}
|
||
|
||
#panleCenter .x-tab-strip-top .x-tab-left {
|
||
background: transparent;
|
||
}
|
||
|
||
#panleCenter .x-tab-strip-top .x-tab-strip-inner {
|
||
background: transparent;
|
||
}
|
||
|
||
#panleCenter .x-tab-strip-wrap {
|
||
background: rgba(255,255,255,0.5);
|
||
}
|
||
|
||
#panleCenter .x-tab-strip x-tab-strip-top .ltop {
|
||
background: rgba(46,60,70,0.8);
|
||
}
|
||
|
||
#panleCenter .panel_icon {
|
||
background: transparent;
|
||
}
|
||
|
||
#panleCenter .x-tab-strip-active {
|
||
background: rgba(0,0,0,0.5);
|
||
}
|
||
|
||
#panleCenter ul.x-tab-strip-top {
|
||
background: transparent;
|
||
padding: 2px;
|
||
}
|
||
|
||
#panleCenter .x-tab-strip .x-tab-with-icon span.x-tab-strip-text {
|
||
padding: 0 15px;
|
||
line-height: 30px;
|
||
}
|
||
|
||
#panleCenter .x-tab-strip-top .x-tab-left {
|
||
padding-right: 0
|
||
}
|
||
|
||
#panleCenter .x-tab-strip-top .x-tab-right {
|
||
padding-left: 0
|
||
}
|
||
|
||
#panleCenter .x-tab-strip-text {
|
||
padding: 0 15px;
|
||
line-height: 30px;
|
||
font-weight: bold;
|
||
font-family: 'Microsoft YaHei'
|
||
}
|
||
|
||
.layui-nav-tree .layui-nav-child dd.layui-this, .layui-nav-tree .layui-nav-child dd.layui-this a, .layui-nav-tree .layui-this, .layui-nav-tree .layui-this > a, .layui-nav-tree .layui-this > a:hover {
|
||
background: #0b89e2 !important
|
||
}
|
||
|
||
#panWestMenu div {
|
||
border: 0
|
||
}
|
||
|
||
#panWestMenu .x-panel-body {
|
||
overflow: auto;
|
||
/*background: #0c578c;*/
|
||
background: url(../Controls/ExtJS/img/left-bg.png);
|
||
}
|
||
|
||
#panWestMenu .layui-nav {
|
||
/*background: #0c578c*/
|
||
background: #105ca2
|
||
}
|
||
|
||
#panWestMenu .layui-nav-tree .layui-nav-bar {
|
||
background-color: #0b89e2
|
||
}
|
||
|
||
#panWestMenu .layui-nav-tree .layui-nav-item a:hover {
|
||
background-color: #0b89e2
|
||
}
|
||
|
||
#iframeMain {
|
||
height: 100%;
|
||
}
|
||
|
||
.layui-tab {
|
||
height: 100%
|
||
}
|
||
|
||
.layui-tab-content {
|
||
height: calc(100% - 41px);
|
||
padding: 0;
|
||
}
|
||
|
||
.layui-tab-item {
|
||
height: 100%;
|
||
font-size: 12px;
|
||
}
|
||
|
||
.layui-tab-title {
|
||
opacity: 0.8
|
||
}
|
||
|
||
.layui-nav-child .layui-this {
|
||
background: #0b89e2 !important
|
||
}
|
||
|
||
.layui-nav-child .layui-this a {
|
||
background: transparent !important
|
||
}
|
||
|
||
.layui-nav-child { /*max-height: 270px;*/
|
||
overflow: auto;
|
||
}
|
||
|
||
.layui-nav-itemed {
|
||
}
|
||
|
||
#uuul {
|
||
font-size: 12px;
|
||
}
|
||
|
||
.site-demo-active {
|
||
cursor: pointer
|
||
}
|
||
|
||
.erji {
|
||
max-height: 1000px !important;
|
||
}
|
||
|
||
.item2 {
|
||
padding-left: 20px;
|
||
box-sizing: border-box;
|
||
}
|
||
|
||
.layui-nav-bar {
|
||
display: none;
|
||
}
|
||
|
||
.layui-nav-itemed > .layui-nav-child {
|
||
background: transparent !important
|
||
}
|
||
|
||
.layui-nav-item .layui-nav-item {
|
||
padding-left: 10px;
|
||
box-sizing: border-box;
|
||
}
|
||
</style>
|
||
</head>
|
||
|
||
<body>
|
||
|
||
<div>
|
||
<script type="text/javascript">
|
||
|
||
function BuildTree() {
|
||
//上面
|
||
var panel_north = new Ext.Panel
|
||
({
|
||
id: "panel_north", region: "north",
|
||
title: "",
|
||
border: false,
|
||
html: '<div class="ltop"><div class="lflex"><div class="ll"><div class="limg"><img src="../Controls/ExtJS/img/guohui.png" ></div><div class="llogo">新医路智慧综合体检平台</div><ul class="layui-nav"><li class="layui-nav-item"></li></ul></div><div class="ll"><ul class="layui-nav"><li class="layui-nav-item" style="margin-right: 20px;"><dl class="layui-nav-child"><dd><a href="javascript:;">修改信息</a></dd><dd><a href="javascript:;">安全管理</a></dd><dd><a href="javascript:;">退了</a></dd></dl></li><li class="layui-nav-item"><%=department%>-<%=truename%> </li><li class="layui-nav-item" onclick="hclick(4)"><img src="../Controls/ExtJS/img/exit.png" style="cursor:pointer;"></li></ul></div></div></div>',
|
||
height: 60
|
||
});
|
||
|
||
//中间
|
||
var tabpanel = new Ext.TabPanel
|
||
({
|
||
activeTab: 0, autoWidth: true, autoScroll: true, border: true, frame: true, id: "TabPanelID", enableTabScroll: true,
|
||
items:
|
||
[
|
||
{
|
||
//html: '<div class="layui-tab" lay-filter="demo" lay-allowclose="true"><ul class="layui-tab-title"><li class="layui-this" lay-id="程序首页">程序首页</li></ul> <div class="layui-tab-content"><div class="layui-tab-item layui-show"><div style="width:570px;margin:200px auto;text-align:center;font-size:30px;line-height:30px;"><span style="float:left;">欢迎使用新医路智慧综合体检平台</span></div></div></div></div>'
|
||
//html: '<div class="layui-tab" lay-filter="demo" lay-allowclose="true"><ul class="layui-tab-title"><li class="layui-this" lay-id="程序首页">程序首页</li></ul> <div class="layui-tab-content"><div class="layui-tab-item layui-show"><iframe id="iframeMain" src="../Controls/ExtJS/danye.aspx" style="width: 100%; height: 100%; border: none; outline: none;";></iframe></div></div></div>'
|
||
html: '<div class="layui-tab" lay-filter="demo" lay-allowclose="true"><ul class="layui-tab-title"><li class="layui-this" lay-id="程序首页">程序首页</li></ul> <div class="layui-tab-content"><div class="layui-tab-item layui-show"><iframe id="iframeMain" src="/dccdc/home/main" style="width: 100%; height: 100%; border: none; outline: none;";></iframe></div></div></div>'
|
||
}
|
||
]
|
||
});
|
||
|
||
var panel_center = new Ext.Panel
|
||
({
|
||
id: 'panleCenter', frame: false, border: false,
|
||
region: 'center',
|
||
split: true,
|
||
items: [tabpanel],
|
||
layout: 'fit'
|
||
|
||
});
|
||
var panel_south = new Ext.Panel
|
||
({
|
||
id: "panel_south", region: "south",
|
||
title: "",
|
||
border: false,
|
||
html: '<div style="width:400px;margin:0px auto;text-align:center;font-size:14px;line-height:30px;"><span style="float:left;">技术支持:山东新医路信息科技有限公司 0531-69900398</span></div>',
|
||
height: 30
|
||
});
|
||
|
||
var a = <%=treejson%>
|
||
|
||
console.log(a);
|
||
|
||
var li = "";
|
||
|
||
for (var i = 0; i < a.length; i++) {
|
||
if (a[i].parent == 0) {
|
||
if (a[i].image == "") {
|
||
a[i].image = "/Controls/images/menus/gongcheng.png";
|
||
}
|
||
var l = "<li class=\"layui-nav-item\"><a href=\"javascript:;\"><img src=" +
|
||
a[i].image +
|
||
" >" +
|
||
a[i].name +
|
||
"</a><dl class=\"layui-nav-child\" id=\"s" +
|
||
a[i].id +
|
||
"\"></dl></li>";
|
||
li = li + l;
|
||
}
|
||
}
|
||
|
||
//左面
|
||
var panel_west = new Ext.Panel
|
||
({
|
||
id: 'panWestMenu',
|
||
region: 'west',
|
||
|
||
width: 220,
|
||
|
||
margins: '0 0 0 0',
|
||
|
||
// html: `<ul class="layui-nav layui-nav-tree" id="nava" lay-filter="test" lay-shrink="all">
|
||
// <li class="layui-nav-item layui-nav-itemed"><a class="site-demo-active" data-type="tabAdd" data-name="程序首页" data-src="http://www.baidu.com" data-id="程序首页" ><img src="../Controls/ExtJS/img/index.png" >程序首页</a > </li>`+html+`</ul>`,
|
||
html: '<ul class="layui-nav layui-nav-tree" lay-filter="test" id="uuul" lay-shrink="all">' + li + '</ul>'
|
||
});
|
||
|
||
//2级
|
||
|
||
var viewport = new Ext.Viewport
|
||
({
|
||
id: 'vpMain',
|
||
layout: 'border',
|
||
items:
|
||
[
|
||
panel_north,
|
||
panel_center,
|
||
panel_west,
|
||
panel_south
|
||
]
|
||
});
|
||
//加载左面的数据
|
||
//var loadPanelWest = function (init) {
|
||
// Ext.Ajax.request
|
||
// ({
|
||
// url: 'Main.aspx?method=GetData',
|
||
// success: function (response, options) {
|
||
|
||
// try {
|
||
// var panWestMenu = Ext.getCmp("panWestMenu");
|
||
// if (panWestMenu) {
|
||
// var children = panWestMenu.findByType('panel');
|
||
// if (children) {
|
||
// for (var i = 0, len = children.length; i < len; i++) {
|
||
// panWestMenu.remove(children[i], true);
|
||
// }
|
||
// }
|
||
// }
|
||
|
||
// var menusArray = Ext.util.JSON.decode(response.responseText);
|
||
// console.log(menusArray);
|
||
// for (var j = 0; j < menusArray.length; j++) {
|
||
// var mp = CreateMenuPanel(menusArray[j].TypeTitle, menusArray[j].TypeID, menusArray[j].icon, menusArray[j].iconCls);
|
||
// panWestMenu.add(mp);
|
||
// }
|
||
// panWestMenu.doLayout();
|
||
// }
|
||
// catch (e) {
|
||
|
||
// }
|
||
// }
|
||
// });
|
||
//};
|
||
|
||
//loadPanelWest("load");
|
||
|
||
//for (var i = 0; i < sss.length; i++) {
|
||
// $("#s" + sss[i].parent + "").append('<dd><a class="site-demo-active" data-type="tabAdd" data-name="' + sss[i].name + '" data-src="' + sss[i].url + '" data-id="' + sss[i].name + '"><img src="' + sss[i].image + '" >' + sss[i].name + '</a></dd>');
|
||
|
||
//}
|
||
//2级
|
||
for (var m = 0; m < a.length; m++) {
|
||
if (a[m].parent != 0 && a[m].hasson == 'True') {
|
||
var bo = "<li class=\"layui-nav-item item2\"><a href=\"javascript:;\">" +
|
||
a[m].name +
|
||
"</a><dl class=\"layui-nav-child erji\"><ul class=\"layui-nav layui-nav-tree\" lay-filter=\"test\" id=\"s" +
|
||
a[m].id +
|
||
"\"> </ul></dl></li>";
|
||
$("#s" + a[m].parent).append(bo);
|
||
}
|
||
}
|
||
|
||
//<a class="site-demo-active" data-type="tabAdd" data-name="` + a[n].name + `" data-src="` + a[n].url + `" data-id="` + a[n].name + `"><img src="` + a[n].image + `" >` + a[n].name + `</a>
|
||
|
||
//2级增加子类
|
||
for (var i = 0; i < a.length; i++) {
|
||
var li = "";
|
||
|
||
if (a[i].parent != 0 && a[i].hasson == 'False') {
|
||
var l = "";
|
||
if (a[i].name == "我的工作流") {
|
||
l =
|
||
"<li class=\"layui-nav-item\"><a onclick=\"tiaozhuanaaa('" + a[i].url +"?uid=<%=guid%>')\" target=\"_blank\" class=\"site-demo-active\" ><img src=\"" +
|
||
a[i].image +
|
||
"\" >" +
|
||
a[i].name +
|
||
"</a></li>";
|
||
}
|
||
else if (a[i].name == "我的网盘" || a[i].name == "我的邮箱") {
|
||
l =
|
||
"<li class=\"layui-nav-item\"><a class=\"site-demo-active\" data-type=\"tabAdd\" data-name=\"" +
|
||
a[i].name +
|
||
"\" data-src=\"" +
|
||
a[i].url +
|
||
encodeURI("?userid=<%=userid2%>&truename=<%=truename%>") +
|
||
"\" data-id=\"" +
|
||
a[i].name +
|
||
"\"><img src=\"" +
|
||
a[i].image +
|
||
"\" >" +
|
||
a[i].name +
|
||
"</a></li>";
|
||
}
|
||
else {
|
||
l =
|
||
"<li class=\"layui-nav-item\"><a class=\"site-demo-active\" data-type=\"tabAdd\" data-name=\"" +
|
||
a[i].name +
|
||
"\" data-src=\"" +
|
||
a[i].url +
|
||
"\" data-id=\"" +
|
||
a[i].name +
|
||
"\"><img src=\"" +
|
||
a[i].image +
|
||
"\" >" +
|
||
a[i].name +
|
||
"</a></li>";
|
||
}
|
||
li = li + l;
|
||
}
|
||
|
||
$("#s" + a[i].parent).append(li);
|
||
}
|
||
|
||
//3级
|
||
//for (var n = 0; n < a.length; n++) {
|
||
// //如果是3类
|
||
// if (a[n].parent != 0 && a[n].hasson == 'False') {
|
||
// var dd = '<dd><a class="site-demo-active" data-type="tabAdd" data-name="' + a[n].name + '" data-src="' + a[n].url + '" data-id="' + a[n].name + '"><img src="' + a[n].image + '" >' + a[n].name + '</a></dd>'
|
||
// $("#s" + a[n].parent).append(dd)
|
||
// }
|
||
//}
|
||
|
||
//创建单个treePanel
|
||
var CreateMenuPanel = function (title, TypeID, icons, iconcls) {
|
||
return new Ext.Panel
|
||
({
|
||
title: title, layout: 'fit', border: false, iconCls: iconcls,
|
||
items:
|
||
[{
|
||
xtype: 'treepanel', singleExpand: true, animate: true, autoScroll: true, containerScroll: true,
|
||
border: false, layout: 'fit', rootVisible: false, autoHeight: false, lines: false, iconCls: icons, spilt: true, // 美化界面
|
||
width: 180, height: 370, enableDD: false, dropConfig: { appendOnly: true },
|
||
loader: new Ext.tree.TreeLoader({ dataUrl: "Main.aspx" }),
|
||
root: new Ext.tree.AsyncTreeNode
|
||
({
|
||
id: TypeID,
|
||
text: title,
|
||
draggable: false,
|
||
scope: this,
|
||
scripts: true,
|
||
expanded: true
|
||
|
||
})
|
||
, listeners: {
|
||
"click": function (node, e) {
|
||
if (node.text == "省市区维护") {
|
||
window.open(node.attributes.action);
|
||
return;
|
||
}
|
||
<%-- if (node.text == "我的工作流") {
|
||
window.open(node.attributes.action + "?uid=<%=guid%>");
|
||
return;
|
||
}
|
||
if (node.text == "我的网盘" || node.text == "我的邮箱") {
|
||
window.open(node.attributes.action + encodeURI("?userid=<%=userid2%>&truename=<%=truename%>"));
|
||
return;
|
||
}--%>
|
||
|
||
if (node.attributes.action == "") {
|
||
//Ext.Msg.alert("提示消息","不可以对根节点执行右键操作!");
|
||
return;
|
||
}
|
||
var _Id = node.attributes.id;
|
||
var _TypeID = node.attributes.TypeID;
|
||
var _TypeTitle = node.attributes.TypeTitle;
|
||
var _TypeEName = node.attributes.TypeEName;
|
||
var action;
|
||
if (node.text == "公文流转") {
|
||
action = node.attributes.action + "?uid=<%=guid%>";
|
||
}
|
||
else if (node.text == "我的网盘" || node.text == "我的邮箱") {
|
||
action = node.attributes.action +
|
||
encodeURI("?userid=<%=userid2%>&truename=<%=truename%>");
|
||
}
|
||
else {
|
||
action = node.attributes.action;
|
||
}
|
||
|
||
|
||
var tabs = Ext.getCmp("TabPanelID");
|
||
var title = _TypeTitle;
|
||
for (var i = 0; i < tabs.items.length; i++) {
|
||
if (tabs.items.items[i].title == title) {
|
||
//Ext.Msg.alert("消息","该菜单项[ " + node.attributes.text + " ]已经存在Tab里面!");
|
||
tabs.activate(tabs.items.items[i]);
|
||
return;
|
||
}
|
||
}
|
||
var pnl = new BuildGridView(_Id, title, action).gridView;
|
||
tabs.add(pnl);
|
||
tabs.activate(pnl);
|
||
}
|
||
}
|
||
}]
|
||
});
|
||
};
|
||
}
|
||
|
||
//今日日程提醒窗口
|
||
Ext.ux.ToastWindowMgr = { positions: [] };
|
||
|
||
Ext.ux.ToastWindow = Ext.extend(Ext.Window, {
|
||
|
||
initComponent: function () {
|
||
Ext.apply(this, {
|
||
iconCls: this.iconCls || 'information',
|
||
width: 400,
|
||
height: 280,
|
||
autoScroll: true,
|
||
autoDestroy: true,
|
||
plain: false
|
||
});
|
||
this.task = new Ext.util.DelayedTask(this.hide, this);
|
||
Ext.ux.ToastWindow.superclass.initComponent.call(this);
|
||
},
|
||
|
||
setMessage: function (msg) {
|
||
this.body.update(msg);
|
||
},
|
||
|
||
setTitle: function (title, iconCls) {
|
||
Ext.ux.ToastWindow.superclass.setTitle.call(this, title, iconCls || this.iconCls);
|
||
},
|
||
|
||
onRender: function (ct, position) {
|
||
Ext.ux.ToastWindow.superclass.onRender.call(this, ct, position);
|
||
},
|
||
|
||
onDestroy: function () {
|
||
Ext.ux.ToastWindowMgr.positions.remove(this.pos);
|
||
Ext.ux.ToastWindow.superclass.onDestroy.call(this);
|
||
},
|
||
|
||
afterShow: function () {
|
||
Ext.ux.ToastWindow.superclass.afterShow.call(this);
|
||
this.on('move', function () {
|
||
Ext.ux.ToastWindowMgr.positions.remove(this.pos);
|
||
this.task.cancel();
|
||
}, this);
|
||
this.task.delay(10000);
|
||
},
|
||
|
||
animShow: function () {
|
||
this.pos = 0;
|
||
while (Ext.ux.ToastWindowMgr.positions.indexOf(this.pos) > -1)
|
||
this.pos++;
|
||
Ext.ux.ToastWindowMgr.positions.push(this.pos);
|
||
this.setSize(400, 280);
|
||
this.el.alignTo(document, "br-br", [-20, -20 - ((this.getSize().height + 10) * this.pos)]);
|
||
this.el.slideIn('b', {
|
||
duration: 1,
|
||
callback: this.afterShow,
|
||
scope: this
|
||
});
|
||
},
|
||
|
||
animHide: function () {
|
||
Ext.ux.ToastWindowMgr.positions.remove(this.pos);
|
||
this.el.ghost("b", {
|
||
duration: 1,
|
||
remove: true,
|
||
scope: this,
|
||
callback: this.destroy
|
||
});
|
||
}
|
||
});
|
||
|
||
////给 iframe 一个属性
|
||
//$("#iframe").createAttribute("allow");
|
||
//$("#iframe").allow = "microphone;camera";
|
||
|
||
|
||
//$('iframe').attr({ 'allow': 'microphone;camera' });
|
||
|
||
//test.attributes('')
|
||
//var obj = document.createAttribute("allow");
|
||
//obj.nodeValue = 'microphone;camera';
|
||
//test.attributes.setNamedItem(obj);
|
||
|
||
</script>
|
||
|
||
<script type="text/javascript">
|
||
|
||
//top.layer
|
||
layui.use(['layer'], function () {
|
||
|
||
// 操作对象
|
||
var layer = layui.layer;
|
||
})
|
||
|
||
var tabpanels;
|
||
|
||
var Txtime = 0.0;
|
||
|
||
var ttime;
|
||
|
||
var aa;
|
||
|
||
var coun = 1;
|
||
|
||
var exttoast;
|
||
//2023-11-16 xulu 注释掉异地检测
|
||
//$(document).ready(function () { window.setInterval("timelyFun()", 9000) });
|
||
|
||
function tiaozhuanaaa(e) {
|
||
window.open(e);
|
||
}
|
||
|
||
//console.log($("#uuul").html())
|
||
//layui use 开始
|
||
layui.use('element', function (e) {
|
||
var $ = layui.jquery;
|
||
var element = layui.element;
|
||
|
||
//触发事件
|
||
var active = {
|
||
tabAdd: function (e) {
|
||
var exist = $("li[lay-id='" + e[0].dataset.id + "']").length;
|
||
if (exist < 1) {
|
||
element.tabAdd('demo', {
|
||
title: e[0].dataset.name,
|
||
content: '<iframe id="iframeMain" src="' + e[0].dataset.src + '" style="width: 100%; height: 100%; border: none; outline: none;";></iframe>',
|
||
id: e[0].dataset.id
|
||
})
|
||
//增加ctrl+click 关闭页签
|
||
$($("li[lay-id='" + e[0].dataset.id + "']")[0]).click(
|
||
function (e) {
|
||
if (e.button == 0 && e.ctrlKey) {
|
||
$($(this).context).children('.layui-tab-close').trigger('click');
|
||
}
|
||
}
|
||
);
|
||
|
||
element.tabChange('demo', e[0].dataset.id);
|
||
} else {
|
||
element.tabChange('demo', e[0].dataset.id);
|
||
}
|
||
}
|
||
};
|
||
//首页增加ctrl+click关闭页签
|
||
$(".layui-tab li").click(
|
||
function (e) {
|
||
if (e.button == 0 && e.ctrlKey) {
|
||
$($(this).context).children('.layui-tab-close').trigger('click');
|
||
}
|
||
}
|
||
);
|
||
|
||
$('.site-demo-active').on('click', function () {
|
||
var othis = $(this), type = othis.data('type');
|
||
active[type] ? active[type].call(this, othis) : '';
|
||
});
|
||
|
||
//let w = this
|
||
//$(window).keydown(function (evt) {
|
||
// var code = evt.keyCode ? evt.keyCode : evt.which;
|
||
// console.log(code);
|
||
// if (code == 17) {
|
||
// w.ctrldown = true;
|
||
// }
|
||
//});
|
||
//$(window).keyup(function (evt) {
|
||
// var code = evt.keyCode ? evt.keyCode : evt.which;
|
||
// console.log(code);
|
||
// if (code == 17) {
|
||
// w.ctrldown = false;
|
||
// }
|
||
//});
|
||
|
||
|
||
});
|
||
//layui use结束
|
||
|
||
//console.log($("#uuul").html())
|
||
|
||
function SendTX() {
|
||
return;
|
||
if (coun >= 0) {
|
||
var num = Math.random();
|
||
|
||
exttoast = new Ext.ux.ToastWindow({
|
||
title: '今日提醒',
|
||
html: "<iframe scrolling='true' width='100%' height='100%' frameborder='0' src='SmsShow.aspx?rad=\" + num + \"'></iframe>",
|
||
iconCls: 'information'
|
||
})
|
||
exttoast.show(document);
|
||
}
|
||
}
|
||
|
||
function closeExtToastWindow() {
|
||
exttoast.destroy();
|
||
}
|
||
|
||
function sendRequest() {
|
||
$.ajax({
|
||
type: "POST",
|
||
url: "OnlineCount.aspx?Online=on",
|
||
async: false,
|
||
success: function (mes) {
|
||
if (mes != "null") {
|
||
$("#spnOnLineUserCount").html(mes.toString().split(',')[0]);
|
||
$("#mailcount").html(mes.toString().split(',')[1]);
|
||
coun = mes.toString().split(',')[1];
|
||
ttime = mes.toString().split(',')[2];
|
||
|
||
var iftix = mes.toString().split(',')[3];
|
||
var t;
|
||
if (iftix == '否') {
|
||
$(document).stopTime('C');
|
||
} else {
|
||
if (parseFloat(ttime) != parseFloat(Txtime)) {
|
||
|
||
$(document).stopTime('C');
|
||
$(document).everyTime(parseFloat(ttime), 'C', function () { SendTX(); });
|
||
|
||
Txtime = ttime;
|
||
}
|
||
}
|
||
} else {
|
||
alert("帐号过期,请重新登陆!");
|
||
location.href = "../Default.aspx";
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
function ready() {
|
||
BuildBottomPanel();
|
||
BuildTree();
|
||
RightKeyTabPanel();
|
||
tabpanels = Ext.getCmp("TabPanelID");
|
||
sendRequest();
|
||
SendTX();
|
||
|
||
$(document).everyTime(61100, 'A', function (i) { sendRequest(); });
|
||
/*$(document).everyTime(61100, function (i) { sendRequest(); }, 0);*/
|
||
}
|
||
|
||
function timelyFun() {
|
||
$.ajax({
|
||
type: "POST",
|
||
url: "online2.aspx",
|
||
async: false,
|
||
success: function (mes) {
|
||
if (mes == "0") {
|
||
alert("异地登录!");
|
||
location.href = "../Default.aspx?tjlogout=ok";
|
||
}
|
||
}
|
||
});
|
||
}
|
||
|
||
function sett() {
|
||
$(document).everyTime(parseFloat(ttime), 'C', function () { SendTX(); });
|
||
}
|
||
|
||
document.onready = ready();
|
||
|
||
function hclick(type) {
|
||
switch (type) {
|
||
case 1:
|
||
var tabs = tabpanels;
|
||
for (var i = 0; i < tabs.items.length; i++) {
|
||
if (tabs.items.items[i].title == "系统组件") {
|
||
tabs.activate(tabs.items.items[i]);
|
||
return;
|
||
}
|
||
}
|
||
tabs.add({
|
||
title: '系统组件',
|
||
id: "PanelArticleViewID_102",
|
||
html: "<iframe scrolling='true' width='100%' height='100%' frameborder='0' src='About.aspx'></iframe>",
|
||
closable: true
|
||
});
|
||
tabs.activate('PanelArticleViewID_102');
|
||
break;
|
||
case 2:
|
||
var tabs = tabpanels;
|
||
for (var i = 0; i < tabs.items.length; i++) {
|
||
if (tabs.items.items[i].title == "内部邮件") {
|
||
tabs.activate(tabs.items.items[i]);
|
||
return;
|
||
}
|
||
}
|
||
tabs.add({
|
||
title: '内部邮件',
|
||
id: "PanelArticleViewID_01",
|
||
html: "<iframe scrolling='true' width='100%' height='100%' frameborder='0' src='../LanEmail/LanEmailShou.aspx'></iframe>",
|
||
closable: true
|
||
});
|
||
tabs.activate('PanelArticleViewID_01');
|
||
break;
|
||
case 3:
|
||
var tabs = tabpanels;
|
||
for (var i = 0; i < tabs.items.length; i++) {
|
||
if (tabs.items.items[i].title == "修改密码") {
|
||
tabs.activate(tabs.items.items[i]);
|
||
return;
|
||
}
|
||
}
|
||
tabs.add({
|
||
title: '修改密码',
|
||
id: "PanelArticleViewID_04",
|
||
html: "<iframe scrolling='true' width='100%' height='100%' frameborder='0' src='../Personal/ChangPwd.aspx'></iframe>",
|
||
closable: true
|
||
});
|
||
tabs.activate('PanelArticleViewID_04');
|
||
break;
|
||
case 4:
|
||
JsHelper.Confirm("确定要注销当前用户并回到登录页吗?", function (btn) {
|
||
if (btn == 'yes') {
|
||
$.ajax({
|
||
url: '../dccdc/Home/logout',
|
||
success: function (d) {
|
||
window.location.href = '../Default.aspx';
|
||
},
|
||
});
|
||
//window.location.href = '../Default.aspx';
|
||
}
|
||
});
|
||
break;
|
||
}
|
||
}
|
||
|
||
//function open(e) {
|
||
//console.log($(this).attr("href"))
|
||
//e.preventDefault();
|
||
//$("#iframeMain").attr("src", $(this).attr("href"));
|
||
//}
|
||
|
||
function gnclick(type, title, url) {
|
||
var id = "PanelArticleViewID_001" + type;
|
||
var tabs = tabpanels;
|
||
for (var i = 0; i < tabs.items.length; i++) {
|
||
if (tabs.items.items[i].title == "title") {
|
||
tabs.activate(tabs.items.items[i]);
|
||
return;
|
||
}
|
||
}
|
||
tabs.add({
|
||
title: title,
|
||
id: id,
|
||
html: "<iframe scrolling='true' width='100%' height='100%' frameborder='0' src='" + url + "'></iframe>",
|
||
closable: true
|
||
});
|
||
tabs.activate(id);
|
||
}
|
||
|
||
|
||
</script>
|
||
</div>
|
||
</body>
|
||
|
||
</html>
|
||
|