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.
122 lines
4.5 KiB
Plaintext
122 lines
4.5 KiB
Plaintext
11 months ago
|
<!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="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
||
|
<script src="../../../Scripts/jquery-1.7.2.min.js" type="text/javascript"></script>
|
||
|
<script src="../../../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></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>
|
||
|
<script src="DDLBar.js" type="text/javascript"></script>
|
||
|
<script src="../../CCFlowEnum.js" type="text/javascript"></script>
|
||
|
<script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
|
||
|
<script type="text/javascript">
|
||
|
var webUser = new WebUser();
|
||
|
//初始化页面
|
||
|
$(function () {
|
||
|
if (webUser.CCBPMRunModel == 2)
|
||
|
$("#isShow").hide();
|
||
|
InitBar(SelectorModel.Emp);
|
||
|
var ens = new Entities("BP.WF.Template.NodeEmps");
|
||
|
ens.Retrieve("FK_Node", GetQueryString("FK_Node"));
|
||
|
|
||
|
|
||
|
var html = "<ul>";
|
||
|
if (ens.length == 0)
|
||
|
html += "<li>未设置人员</li>";
|
||
|
var idx = 0;
|
||
|
for (var i = 0; i < ens.length; i++) {
|
||
|
var en = ens[i];
|
||
|
html += "<li>" + en.FK_EmpText + "</li>";
|
||
|
}
|
||
|
html += "</ul>";
|
||
|
document.getElementById("emp").innerHTML = html;
|
||
|
|
||
|
});
|
||
|
|
||
|
//弹出新窗体
|
||
|
function OpenDialog(type) {
|
||
|
|
||
|
var url = "../../../Comm/RefFunc/BranchesAndLeaf.htm?EnName=BP.WF.Template.NodeSheet&Dot2DotEnsName=BP.WF.Template.NodeEmps&Dot2DotEnName=BP.WF.Template.NodeEmp&AttrOfOneInMM=FK_Node&AttrOfMInMM=FK_Emp&EnsOfM=BP.Port.Emps&DefaultGroupAttrKey=FK_Dept";
|
||
|
var nodeID = GetQueryString("FK_Node");
|
||
|
url += '&NodeID=' + nodeID + '&PKVal=' + nodeID + "&M=" + Math.random();
|
||
|
var rootNo = 0;
|
||
|
|
||
|
if (type == 0) {
|
||
|
if (webUser.CCBPMRunModel != 0)
|
||
|
rootNo = webUser.OrgNo;
|
||
|
url += "&RootNo=" + rootNo;
|
||
|
}
|
||
|
if (type == 1) {
|
||
|
if (webUser.CCBPMRunModel == 2)
|
||
|
rootNo = webUser.OrgNo;
|
||
|
if (webUser.CCBPMRunModel == 1) {
|
||
|
var orgs = new Entities("BP.WF.Port.Admin2Group.Orgs");
|
||
|
orgs.RetrieveCond("No", "=", "ParentNo");
|
||
|
if (orgs.length != 0) {
|
||
|
rootNo = orgs[0].No;
|
||
|
}
|
||
|
|
||
|
}
|
||
|
|
||
|
|
||
|
url += "&RootNo=" + rootNo;
|
||
|
}
|
||
|
OpenEasyUiDialogExt(url, '设置人员', 800, 500, true);
|
||
|
|
||
|
}
|
||
|
function Save() {
|
||
|
var nodeID = GetQueryString("FK_Node");
|
||
|
var node = new Entity("BP.WF.Template.Selector", nodeID);
|
||
|
node.SelectorModel = SelectorModel.Emp;
|
||
|
node.Update();
|
||
|
|
||
|
|
||
|
var node = new Entity("BP.WF.Template.NodeExt", nodeID);
|
||
|
node.DeliveryWay = 4 ;
|
||
|
node.Update();
|
||
|
|
||
|
alert("保存成功.");
|
||
|
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
|
||
|
<body>
|
||
|
<div id="bar"> </div>
|
||
|
|
||
|
<fieldset>
|
||
|
<legend>设置</legend>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<a href="javascript:void(0)" onclick="OpenDialog(0)">设置/更改本组织处理人</a>
|
||
|
</li>
|
||
|
<li id="isShow">
|
||
|
<a href="javascript:void(0)" onclick="OpenDialog(1)">设置/更改集团处理人</a>
|
||
|
</li>
|
||
|
<li>说明:绑定的所有的人员,都是可以选择的范围.</li>
|
||
|
</ul>
|
||
|
</fieldset>
|
||
|
|
||
|
<fieldset>
|
||
|
<legend>设置绑定的人员</legend>
|
||
|
<div id="emp"> </div>
|
||
|
</fieldset>
|
||
|
|
||
|
<fieldset>
|
||
|
<legend id="help">帮助</legend>
|
||
|
<ul>
|
||
|
<li>可以设置一个或者多个人员.</li>
|
||
|
<li>每个人员都是上一个节点可以选择的人员范围.</li>
|
||
|
</ul>
|
||
|
<img src="2.Emp.png" style="width:50%" class="HelpImg" />
|
||
|
</fieldset>
|
||
|
|
||
|
|
||
|
|
||
|
</body>
|
||
|
</html>
|