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.
92 lines
2.5 KiB
Plaintext
92 lines
2.5 KiB
Plaintext
11 months ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<title>流程目录</title>
|
||
|
|
||
|
<script type="text/javascript" src="../../WF/Scripts/bootstrap/js/jquery.min.js"></script>
|
||
|
<script type="text/javascript" src="../../WF/Scripts/bootstrap/js/bootstrap.min.js"></script>
|
||
|
<script src="../../WF/Scripts/QueryString.js" type="text/javascript"></script>
|
||
|
<script src="../../WF/Scripts/config.js" type="text/javascript"></script>
|
||
|
<script src="../../WF/Comm/Gener.js" type="text/javascript"></script>
|
||
|
<base target="_self" />
|
||
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
||
|
<script language="javascript" type="text/javascript">
|
||
|
|
||
|
//页面启动函数.
|
||
|
$(function () {
|
||
|
|
||
|
$("#Msg").html("正在加载,请稍后......");
|
||
|
|
||
|
var sorts = new Entities("BP.Cloud.Template.FlowSorts");
|
||
|
sorts.RetrieveAll();
|
||
|
|
||
|
//alert(sorts.length);
|
||
|
|
||
|
var flows = new Entities("BP.Cloud.Template.Flows");
|
||
|
flows.RetrieveAll();
|
||
|
|
||
|
var html = "<table style='width:100%;'>";
|
||
|
|
||
|
|
||
|
//增加处理.
|
||
|
for (var i = 0; i < sorts.length; i++) {
|
||
|
|
||
|
var sort = sorts[i];
|
||
|
|
||
|
if (sort.ParentNo == 100)
|
||
|
continue;
|
||
|
|
||
|
|
||
|
html += "<tr >";
|
||
|
html += "<th>" + sort.Name + "</th>";
|
||
|
html += "</tr>";
|
||
|
|
||
|
html += "<tr>";
|
||
|
html += "<td>";
|
||
|
|
||
|
html += "<table style='width:100%'>";
|
||
|
html += "<tr>";
|
||
|
html += "<td>";
|
||
|
for (var idx = 0; idx < flows.length; idx++) {
|
||
|
|
||
|
var flow = flows[idx];
|
||
|
if (flow.FK_FlowSort != sort.No)
|
||
|
continue;
|
||
|
|
||
|
html += "<td>" + flow.Name + "</td>";
|
||
|
}
|
||
|
html += "</td>";
|
||
|
html += "</tr>";
|
||
|
html += "</table>";
|
||
|
|
||
|
|
||
|
|
||
|
html += "</td>";
|
||
|
html += "</tr>";
|
||
|
|
||
|
}
|
||
|
|
||
|
html += "</table>";
|
||
|
$("#docs").html(html);
|
||
|
|
||
|
});
|
||
|
|
||
|
function NewFlow() {
|
||
|
var url = "./NewFlow/Default.htm";
|
||
|
window.location.href = filterXSS(url);
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h3>
|
||
|
<img src="../../WF/Img/Home.gif"> 流程目录 <a href="javascript:NewFlow();">+创建流程</a>
|
||
|
</h3>
|
||
|
|
||
|
<div id="docs"></div>
|
||
|
|
||
|
<table style="width:100%;" id="Table1">
|
||
|
</table>
|
||
|
|
||
|
</body>
|
||
|
</html>
|