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.

144 lines
5.8 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>
<script src="../../Scripts/jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../Scripts/config.js" type="text/javascript"></script>
<script src="../../Comm/Gener.js" type="text/javascript"></script>
<script src="../Guide/Guide.js" type="text/javascript"></script>
<script src="../../Scripts/layui/layui/layui.js" type="text/javascript"></script>
<script src="../../Scripts/layui/LayuiDialog.js" type="text/javascript"></script>
<link href="../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<link href="../../Scripts/layui/layui/css/layui.css" rel="stylesheet" />
<style id="theme-data"></style>
<style type="text/css">
a, body {
color: #1e9fff;
}
</style>
<script type="text/javascript" language="javascript">
//页面启动函数.
$(function () {
var flowNo = GetQueryString("FK_Flow");
var nds = new Entities("BP.WF.Nodes");
nds.Retrieve("FK_Flow", flowNo, "Step");
nds = nds.TurnToArry();
$.each(nds, function (i, nd) {
nd.Idx = i + 1;
nd.NodeName = nd.NodeID + "-" + nd.Name;
var nodeID = nd.NodeID;
var startNodeID = parseInt(parseInt(nd.FK_Flow) + "01");
if (nodeID == startNodeID)
nd.Accepter = "发起权限";
else
nd.Accepter = "设置接收人";
});
layui.use(['table', 'util'], function () {
var table = layui.table
, laydate = layui.laydate;
//节点列表显示
var vtable = table.render({
elem: '#docs',
id: 'docs',
data: nds,
title: '数据表',
limit: Number.MAX_VALUE,
cellMinWidth: 120,
size: 'lg',
page: false,
cols: [[
{ field: 'Idx', title: '序号', minWidth: 5 }
, { field: 'NodeID', title: '节点ID', minWidth: 40 }
, { field: 'Name', title: '节点名称', minWidth: 140 }
, {
field: 'Accepter', title: '设置接收人', minWidth: 80,
templet: function (row) {
return "<a href=\"javascript:GotoSln('" + row.NodeID + "')\">" + row.Name + "</a>"
}
}
, { field: 'Oper', title: '操作' }
]]
});
});
});
function GotoSln(nodeID) {
var url = "../AttrNode/AccepterRole/Default.htm?FK_Node=" + nodeID;
OpenLayuiDialog(url, "接受人规则", window.innerWidth * 0.9);
}
</script>
</head>
<body>
<div class="layui-header" style="text-align: center;box-shadow: 0 1px 2px 0 rgba(0,0,0,.05);background-color:white;height:48px">
<div class="layui-btn-container" style="padding-top:10px">
<button type="button" class="layui-btn layui-toolbar layui-btn-sm" data-type="MapDataEdit" onclick="Frm()">
<i class="layui-icon">&#xe65a;</i>上一步:设置表单
</button>
<button type="button" class="layui-btn layui-toolbar layui-btn-sm" data-type="MapDataEdit" onclick="Help()">
<i class="layui-icon">&#xe607;</i>帮助
</button>
<button type="button" class="layui-btn layui-toolbar layui-btn-sm" data-type="MapDataEdit" onclick="FlowCheck()">
<i class="layui-icon">&#xe6b2;</i>检查设置
</button>
<button type="button" class="layui-btn layui-toolbar layui-btn-sm" data-type="MapDataEdit" onclick="TestingContainer()()">
<i class="layui-icon">&#xe65b;</i>下一步:测试运行
</button>
</div>
</div>
<div class="layui-container">
<table class="layui-table" lay-filter="docs" id="docs" style="width:70%"></table>
</div>
<div id="Guide">
</div>
<script>
$(function () {
if (CustomerNo != "" && CustomerNo != null) {
var html = "\n .layui-btn{\n background-color:'#5053f1';\n}\n .layui-laypage .layui-laypage-curr .layui-laypage-em{\n background-color:::'#5053f1';\n}";
html += "\n .layui-laypage input:focus,.layui-laypage select:focus{\n border-color:::'#5053f1' !important\n}";
html += "\n .layui-form-select dl dd.layui-this{\n background-color:::'#5053f1' !important;\n}";
}
var theme = DealText(localStorage.getItem("themeColorInfo"));
if (theme == null || theme == undefined || theme == "")
return;
theme = JSON.parse(theme);
var styleScope = document.getElementById("theme-data")
var html = "\n .layui-btn{\n background-color:" + theme.selectedMenu + ";\n}\n .layui-laypage .layui-laypage-curr .layui-laypage-em{\n background-color:" + theme.selectedMenu + ";\n}";
html += "\n .layui-laypage input:focus,.layui-laypage select:focus{\n border-color:" + theme.selectedMenu + " !important\n}";
html += "\n .layui-form-select dl dd.layui-this{\n background-color:" + theme.selectedMenu + " !important;\n}";
styleScope.innerHTML = DealText(html);
})
</script>
</body>
</html>