|
|
<!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>
|
|
|
<meta charset="UTF-8" />
|
|
|
<title>驰骋工作流</title>
|
|
|
<link href="../../Scripts/easyUI145/themes/color.css" rel="stylesheet" />
|
|
|
<link href="../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
|
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
|
<script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
|
|
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
|
|
|
|
<script src="../Admin.js"></script>
|
|
|
<!-- 自己的系统风格统一. -->
|
|
|
<link href="../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
|
|
|
<link href="../../Style/skin/css/Default.css" rel="stylesheet" />
|
|
|
<link href="../../Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
<!-- 引用通用的js文件. -->
|
|
|
<script type="text/javascript" src="../../Scripts/config.js"></script>
|
|
|
<script type="text/javascript" src="../../Comm/Gener.js"></script>
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
//页面启动函数.
|
|
|
$(function () {
|
|
|
|
|
|
$("#Msg").html("正在加载,请稍后......");
|
|
|
|
|
|
InitPage();
|
|
|
|
|
|
$("#Msg").html("");
|
|
|
});
|
|
|
//初始化数据.
|
|
|
function InitPage() {
|
|
|
|
|
|
var fk_node = GetQueryString("FK_Node");
|
|
|
var fk_flow = GetQueryString("FK_Flow");
|
|
|
|
|
|
//该流程所有的节点.
|
|
|
var nds = new Entities("BP.WF.Nodes");
|
|
|
nds.Retrieve("FK_Flow", fk_flow);
|
|
|
|
|
|
//获取可退回的节点.
|
|
|
var rnds = new Entities("BP.WF.Template.NodeCancels");
|
|
|
rnds.Retrieve("FK_Node", fk_node);
|
|
|
|
|
|
//当前节点.
|
|
|
var mynd = new Entity("BP.WF.Node", fk_node);
|
|
|
|
|
|
//调用公共类库的方法:执行批量主表赋值
|
|
|
GenerFullAllCtrlsVal(mynd);
|
|
|
|
|
|
//GenerBindDDL("DDL_BRole", ses, "IntKey", "Lab", data.BatchRole);
|
|
|
|
|
|
$("#titl").text(mynd.Name);
|
|
|
var rndsArr = [];
|
|
|
$.each(rnds, function (i, rnd) {
|
|
|
rndsArr.push(rnd.CancelTo);
|
|
|
});
|
|
|
|
|
|
|
|
|
for (var i = 0; i < nds.length; i++) {
|
|
|
|
|
|
nd = nds[i];
|
|
|
|
|
|
if (nd.NodeID == GetQueryString("FK_Node"))
|
|
|
continue;
|
|
|
|
|
|
var newRow = "";
|
|
|
newRow = "<tr style='width:100%'><td class=Idx style='width:10%'>" + i + "</td>";
|
|
|
newRow += "<td style='width:20%'>第" + nd.Step + "步</td>";
|
|
|
newRow += "<td style='width:20%'>第" + nd.NodeID + "步</td>";
|
|
|
|
|
|
if ($.inArray(nd.NodeID, rndsArr) > -1) {
|
|
|
newRow += "<td style='width:50%'>" + "<input id='CB_" + nd.NodeID + "' name='CB_" + nd.NodeID + "' type='checkbox' value='" + nd.Name + "' checked='checked' /><label for='CB_" + nd.NodeID + "' style='margin-bottom:-2px'>" + nd.Name + "</label></td>";
|
|
|
} else {
|
|
|
newRow += "<td style='width:50%'>" + "<input id='CB_" + nd.NodeID + "' name='CB_" + nd.NodeID + "' type='checkbox' value='" + nd.Name + "' /><label for='CB_" + nd.NodeID + "' style='margin-bottom:-2px'>" + nd.Name + "</label></td>";
|
|
|
}
|
|
|
newRow += "</tr>";
|
|
|
$("#table1 tr:last").after(newRow);
|
|
|
|
|
|
}
|
|
|
|
|
|
//$("#table1 tr:last").after(newBtn);
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
|
|
|
function Save() {
|
|
|
|
|
|
var checkBoxIDs = GenerCheckIDs(); //获得所有的 checkBox ID传入到后台去,用于解决checkbox控件,在没有被选择的时候,没有值的问题。
|
|
|
|
|
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrNode");
|
|
|
handler.AddPara("FK_Node", GetQueryString("FK_Node"));
|
|
|
handler.AddPara("CheckBoxIDs", checkBoxIDs);
|
|
|
handler.AddPara("FK_Flow", GetQueryString("FK_Flow"));
|
|
|
handler.AddFormData();
|
|
|
var data = handler.DoMethodReturnString("CanCancelNodes_Save");
|
|
|
|
|
|
if (data.indexOf('err@') >= 0) {
|
|
|
alert(data);
|
|
|
return;
|
|
|
}
|
|
|
alert(data);
|
|
|
Reload();
|
|
|
return;
|
|
|
}
|
|
|
</script>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="container-full">
|
|
|
<div class="attrnode-bar-header">
|
|
|
<span class="pull-right">
|
|
|
|
|
|
<button id="Btn_Save" name="Btn_Save" onclick="Save();">保存</button>
|
|
|
|
|
|
|
|
|
</span>
|
|
|
<strong>设置可撤销的节点</strong>
|
|
|
</div>
|
|
|
<form id="cc">
|
|
|
|
|
|
<fieldset>
|
|
|
|
|
|
<table width='100%' class="table" id="table1">
|
|
|
<tr>
|
|
|
</tr>
|
|
|
</table>
|
|
|
</fieldset>
|
|
|
|
|
|
<fieldset>
|
|
|
<legend id="help"></legend>
|
|
|
<ul>
|
|
|
<li>只有节点属性的撤销规则被设置成撤销制订的节点,此功能才有效。 </li>
|
|
|
<li>设置撤销的节点如果是当前节点下一步骤的节点,设置无意义,系统不做检查,撤销时才做检查。</li>
|
|
|
</ul>
|
|
|
</fieldset>
|
|
|
</form>
|
|
|
</div>
|
|
|
</body>
|
|
|
</html>
|