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.

74 lines
3.4 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>高级人员查询</title>
<script src="Scripts/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="Scripts/config.js" type="text/javascript"></script>
<script src="Scripts/QueryString.js" type="text/javascript"></script>
<script src="Comm/Gener.js" type="text/javascript"></script>
<link href="Scripts/layui/layui/css/layui.css" rel="stylesheet" />
<link href="Style/skin/css/style.css" rel="stylesheet" type="text/css" />
<link href="Style/skin/css/animate.css" rel="stylesheet" type="text/css" />
<link href="Style/skin/font/iconfont.css" rel="stylesheet" type="text/css" />
<script src="Scripts/layui/layui/layui.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
//初始化数据
var webUser = new WebUser();
var flows = new Entities("BP.WF.Template.FlowExts");
flows.RetrieveCond("AdvEmps", "like", "%" + webUser.No + ",%");
if (flows.length == 0) {
$(".gray-bg").html("<span style='color:red;font-weight:bold;font-size:20px;margin:20px'>没有查询的权限</span>");
return;
}
var _html = "";
$.each(flows, function (idx, flow) {
if (idx == 0)
_html += "<li class='layui-menu-item-checked'>";
else
_html += "<li>";
_html += "<div class='layui-menu-body-title'>";
_html += '<a href="javaScript:void(0);" onclick="ChangeFlowNo(\'' + flow.No + '\')"><span>' + flow.Name + '</span></a>';
_html += "</div>";
_html += "</li>";
})
$("#FlowUL").html(_html);
$("#context").attr("src", basePath +"/WF/Comm/Search.htm?EnsName=BP.WF.Data.GenerWorkFlowExts&FK_Flow=" + flows[0].No);
});
function ChangeFlowNo(flowNo) {
$("#context").attr("src", basePath +"/WF/Comm/Search.htm?EnsName=BP.WF.Data.GenerWorkFlowExts&FK_Flow=" + flowNo);
}
</script>
</head>
<body class="gray-bg">
<div class="layui-row" style="height:100%">
<!-- 流程 -->
<div class="layui-col-sm12 layui-col-md4 layui-col-lg3" style="height:100%;padding:10px 0px 15px 15px;margin-right:-15px">
<div class="layui-card" style="height:100%">
<div class="layui-card-body" style="overflow-y: auto; height: 100%" >
<ul class="layui-menu layui-menu-lg">
<li class="layui-menu-item-group" lay-options="{type: 'group', isAllowSpread: true}">
<div class="layui-menu-body-title">
查询流程
</div>
<hr>
<ul id="FlowUL">
</ul>
</li>
</ul>
</div>
</div>
</div>
<!-- 内容主体区域 -->
<div class="layui-col-sm12 layui-col-md8 layui-col-lg9" style="height:100%">
<iframe id="context" scrolling="auto" frameborder="0" src="" name="mainS"
style="width: 100%; height: 100%;"></iframe>
</div>
</div>
</body>
</html>