You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
207 lines
7.5 KiB
Plaintext
207 lines
7.5 KiB
Plaintext
<!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>消息推送 </title>
|
|
|
|
<link href="../Scripts/easyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
|
<link href="../Scripts/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
|
|
|
|
<link href="../Style/skin/css/Default.css" rel="stylesheet" />
|
|
<link href="../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
|
|
<link href="../Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
<script type="text/javascript" src="../Scripts/bootstrap/js/jquery.min.js"></script>
|
|
<script src="../Scripts/QueryString.js" type="text/javascript"></script>
|
|
<script type="text/javascript" src="../Scripts/config.js"></script>
|
|
<script type="text/javascript" src="../Comm/Gener.js"></script>
|
|
<base target="_self" />
|
|
<!--script src="../Admin.js"></script-->
|
|
<style>
|
|
.cs-help {
|
|
border: 1px solid #f1f1f1;
|
|
}
|
|
|
|
.cs-help ul, .Powercenter-add-list {
|
|
margin: 0px;
|
|
}
|
|
|
|
.cs-help li, .Powercenter-add-list li {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.cs-help li a {
|
|
padding: 3px 10px;
|
|
display: block;
|
|
text-decoration: none
|
|
}
|
|
|
|
.cs-help li a:hover {
|
|
background: #14c241;
|
|
color: #FFF;
|
|
}
|
|
|
|
.Powercenter-add-list {
|
|
padding: 0px 0px;
|
|
border: 1px solid #cecece;
|
|
border-radius: 5px;
|
|
}
|
|
|
|
.Powercenter-add-list a {
|
|
padding: 3px 10px 3px 10px;
|
|
color: #666;
|
|
display: block
|
|
}
|
|
|
|
.Powercenter-add-list a:hover {
|
|
background: #009688;
|
|
color: #fff;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
function Esc() {
|
|
if (event.keyCode == 27)
|
|
window.close();
|
|
return true;
|
|
}
|
|
|
|
/*隐藏与显示.*/
|
|
function ShowHidden(ctrlID) {
|
|
|
|
var ctrl = document.getElementById(ctrlID);
|
|
if (ctrl.style.display == "block") {
|
|
ctrl.style.display = 'none';
|
|
} else {
|
|
ctrl.style.display = 'block';
|
|
}
|
|
}
|
|
</script>
|
|
<script type="text/javascript" language="javascript">
|
|
//页面启动函数.
|
|
$(function () {
|
|
|
|
// CtrlObj = Menu & CtrlPKVal=Dict_KJET_001 & CtrlGroup=Menu
|
|
|
|
var ctrlPKVal = GetQueryString("CtrlPKVal");
|
|
var ctrlObj = GetQueryString("CtrlObj");
|
|
|
|
//定义的集合.
|
|
var ens = new Entities("BP.CCFast.CCMenu.PowerCenters");
|
|
ens.Retrieve("CtrlObj", ctrlObj, "CtrlPKVal", ctrlPKVal);
|
|
|
|
for (var i = 0; i < ens.length; i++) {
|
|
|
|
/*var emailCheck = "";
|
|
var ccmsg = ""
|
|
var sms = "";
|
|
var dingding = "";
|
|
var weixin = "";
|
|
var tm = "";*/
|
|
|
|
var en = ens[i];
|
|
|
|
var newRow = "";
|
|
newRow += "<tr ><td class=Idx>" + (i + 1) + "</td>";
|
|
|
|
newRow += "<td >" + en.CtrlModel + "</td>";
|
|
newRow += "<td >" + en.IDNames + "</td>";
|
|
newRow += "<td><a href=\"javascript:Delete('" + en.MyPK + "')\" class='cc-btn-tab'><i class='iconfont icon-guanbi'></i>删除</a>";
|
|
newRow += "</td>";
|
|
newRow += "</tr>";
|
|
|
|
$("#Table1 tr:last").after(newRow);
|
|
}
|
|
|
|
});
|
|
|
|
function ClearCash() {
|
|
//清楚缓存.
|
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_GPM");
|
|
handler.AddUrlData();
|
|
handler.DoMethodReturnString("PowerCenter_DoClearCash");
|
|
}
|
|
function Delete(myPK) {
|
|
|
|
if (window.confirm('您确定要删除吗?') == false)
|
|
return;
|
|
var en = new Entity("BP.CCFast.CCMenu.PowerCenter");
|
|
en.MyPK = myPK;
|
|
en.Delete();
|
|
|
|
//删除缓存.
|
|
ClearCash();
|
|
|
|
//刷新.
|
|
Reload();
|
|
}
|
|
|
|
//执行.
|
|
function DoIt(model, Ids, IDNames, isurl) {
|
|
console.log(isurl)
|
|
if (isurl == 0) {
|
|
var en = new Entity("BP.CCFast.CCMenu.PowerCenter");
|
|
en.CopyURL();
|
|
en.CtrlModel = model;
|
|
en.IDs = Ids;
|
|
en.IDNames = IDNames;
|
|
en.Insert();
|
|
Reload();
|
|
return;
|
|
} else {
|
|
var url = "./PowerCenter/" + model + ".htm";
|
|
url += "?CtrlObj=" + GetQueryString("CtrlObj") + "&CtrlPKVal=" + GetQueryString("CtrlPKVal") + "&CtrlGroup=" + GetQueryString("CtrlGroup");
|
|
SetHref(url);
|
|
}
|
|
}
|
|
function Help() {
|
|
var url = "http://doc.ccbpm.cn";
|
|
window.open(url);
|
|
}
|
|
|
|
</script>
|
|
|
|
</head>
|
|
<body onkeypress="Esc();">
|
|
<div class="container-full">
|
|
<div class="attrnode-bar-header">
|
|
<span class="pull-right">
|
|
<div style="right:30px; position:absolute; z-index:100; ">
|
|
<fieldset style="border: 0px;">
|
|
<button type="button" value="新建消息" id="Btn_New" onclick="ShowHidden('state')" class="cc-btn-tab btn-new">新建权限</button>
|
|
<div id="state" style="height:auto; position:absolute; z-index:10;background-color:white; display: none;left:5px;">
|
|
<ul class="Powercenter-add-list">
|
|
<li><a href="javascript:DoIt('Anyone','1','所有人','0');">所有人</a> </li>
|
|
<li><a href="javascript:DoIt('Adminer','2','管理员','0');">管理员</a> </li>
|
|
<li><a href="javascript:DoIt('AdminerAndAmin2','3','管理员、二级管理员','0');">管理员、二级管理员</a> </li>
|
|
<li><a href="javascript:DoIt('Stations','4','按照岗位计算','1');">按照岗位计算</a> </li>
|
|
<li><a href="javascript:DoIt('Depts','5','按照部门计算','1');">按照部门计算</a> </li>
|
|
<li><a href="javascript:DoIt('Emps','6','按指定的人员计算','1');">按指定的人员计算</a> </li>
|
|
<li><a href="javascript:DoIt('Teams','7','按照权限组计算','1');">按照权限组计算</a> </li>
|
|
<li><a href="javascript:DoIt('SQL','8','按照SQL计算','1');">按照SQL计算</a> </li>
|
|
|
|
</ul>
|
|
</div>
|
|
<button id="Btn_Help" type="button" value="帮助" onclick="Help()" class="cc-btn-tab btn-hlep">帮助</button>
|
|
</fieldset>
|
|
</div>
|
|
</span>
|
|
<strong>权限列表</strong>
|
|
|
|
</div>
|
|
|
|
<div style="position:relative;top:10px; margin: 8px">
|
|
<table id="Table1" class="table table-bordered">
|
|
|
|
|
|
<tr>
|
|
<th> # </th>
|
|
<th> 控制模式</th>
|
|
<th> 控制内容 </th>
|
|
<th width="100"> 操作</th>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|