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.

141 lines
6.2 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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 src="../../../Scripts/vue.js" type="text/javascript"></script>
<!-- 自己的系统风格统一. -->
<link href="../../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
<link href="../../../Style/skin/css/Default.css" rel="stylesheet" />
<!-- 自己的系统风格统一end -->
<script type="text/javascript">
$(function () {
InitBar(DeliveryWay.ByDeptLeader);
var nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Node", nodeID);
var flowNo = node.FK_Flow; // GetQueryString("FK_Flow");
//设置选择的Model.
$("input[name='SF'][value='" + node.GetPara("ShenFenModel") + "']").prop("checked", true);
//绑定节点s
var nodes = new Entities("BP.WF.Nodes");
nodes.Retrieve("FK_Flow", flowNo);
GenerBindDDL("DDL_Nodes", nodes, "NodeID", "Name", node.GetPara("ShenFenVal"));
//绑定字段s
var flowID = parseInt(flowNo);
var nodes = new Entities("BP.Sys.MapAttrs");
if (node.FormType ==11)
nodes.Retrieve("FK_MapData", node.NodeFrmID );
else
nodes.Retrieve("FK_MapData", "ND" + flowID + "Rpt");
GenerBindDDL("DDL_Fields", nodes, "KeyOfEn", "Name", node.GetPara("ShenFenVal"));
});
</script>
</head>
<body>
<div id="App">
<div id="bar"> </div>
<fieldset>
<legend>人员身份规则</legend>
<ul>
<li style="list-style:none">
<input type="radio" value="0" id="SF_0" name="SF" checked="checked" /> <label style="font-weight:bolder" for="SF_0"> 当前人员的身份(默认)</label>
<ol class="olText">
<li>说明:就是上一步发送作为当前节点的人员身份。 </li>
</ol>
<input type="radio" value="1" id="SF_1" name="SF" /> <label style="font-weight:bolder" for="SF_1"> 指定节点的人员身份</label>
<ol class="olText">
<li> 说明:指定节点发送人的作为当前节点的人员身份。 </li>
<li>请选择节点:<select id="DDL_Nodes"></select></li>
</ol>
<input type="radio" value="2" id="SF_2" name="SF" /> <label style="font-weight:bolder" for="SF_2"> 按表单字段作为人员身份(该字段里存储的是账号)</label>
<ol class="olText">
<li> 说明:指定表单字段作为人员编号作为当前节点的人员身份,比如:我替别人请假,请假人字段作为人员身份。 </li>
<li>请选择字段:<select id="DDL_Fields"></select></li>
</ol>
</li>
</ul>
</fieldset>
<fieldset>
<legend >什么是人员身份?</legend>
<ul>
<li> 就是按照那个人员来计算当前节点的接受人规则,默认是谁操作的按照谁的身份计算。 </li>
<li> 比如:我要请假,找部门负责人,就按照当前操作员的身份计算。 </li>
<li> 有的环境下并不是按照当前人员计算。 </li>
<li> 比如:我要为别人请假,找部门负责人,要按照指定的字段(该字段就是被请假人员的账号)作为人员身份。 </li>
</ul>
</fieldset>
<fieldset>
<legend >说明</legend>
<ul>
<li> 上一个节点发送人的直属领导,处理该工作。 </li>
<li> 部门负责人信息,存储到表 Port_Dept 字段Leader 中. </li>
<li> 注意:Leader 字段是登录人员的帐号,不是人员名称,如果没有此列系统就报错。 </li>
<li> <font color="red">说明:</font>如果当前部门没有负责人,就向上一级部门去找负责人,如果在没有,就提示错误。 </li>
</ul>
</fieldset>
</div>
<script type="text/javascript">
var Baseinfo = new Vue({
el: '#App',
data: {
deliverWay: DeliveryWay.ByDeptLeader,
nodeId: GetQueryString("FK_Node")
},
created() {
InitBar(this.deliverWay);
}
});
function Save() {
var nodeID = GetQueryString("FK_Node");
var node = new Entity("BP.WF.Template.NodeExt", nodeID);
node.DeliveryWay = DeliveryWay.ByDeptLeader;
//设置身份方式.
var sf =$("input[name='SF']:checked").val();
node.SetPara("ShenFenModel", sf);
//如果按照指定的节点.
if (sf == 1) {
node.SetPara("ShenFenVal", $("#DDL_Nodes").val());
}
//如果按照字段.
if (sf == 2) {
node.SetPara("ShenFenVal", $("#DDL_Fields").val());
}
node.Update();
}
</script>
</body>
</html>