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.

102 lines
3.4 KiB
Plaintext

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>编辑表单</title>
<link href="../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" />
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<link href="../../Scripts/bootstrap/css/bootstrap.css" rel="stylesheet" />
<script type="text/javascript" src="../../Comm/JScript.js"></script>
<script type="text/javascript"
src="../../Scripts/bootstrap/js/jquery.min.js"></script>
<script type="text/javascript"
src="../../Scripts/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="../../Scripts/QueryString.js"></script>
<script type="text/javascript" src="../../Scripts/config.js"></script>
<script type="text/javascript" src="../../Comm/Gener.js"></script>
<script src="../Admin.js"></script>
<base target="_self" />
<style>
#Btn_New {
background-image: url(../../Img/Btn/New.png) !important;
}
#Btn_Help {
background-image: url(../../Img/Btn/Help.png) !important;
}
</style>
<script type="text/javascript">
//页面启动函数.
$(function () {
$("#Msg").html("<img src=../../Img/loading.gif />&nbsp;正在加载,请稍后......");
InitPage();
$("#Msg").html("");
});
//初始化数据.
function InitPage() {
//var handler = new HttpHandler("BP.WF.HttpHandler.WF");
//handler.AddUrlData();
//handler.DoMethodReturnJSON("MyMethondName")
var flowNo = GetQueryString("FK_Flow");
var nds = new Entities("BP.WF.Template.NodeSimples", flowNo);
nds.Retrieve("FK_Flow", flowNo);
var html = "";
html += "<table class='table table-bordered table-hover table-condensed' style='width:100%;'>";
html += "<caption><img style='vertical-align:middle' src='../../Img/Event.png' />调整数据</caption>";
html += "<tr>";
html += "<th>节点ID</th>";
html += "<th>名称</th>";
html += "<th>编辑</th>";
html += "</tr>";
for (var i = 0; i < nds.length; i++) {
var item = nds[i];
html += "<tr>";
html += "<td>" + item.NodeID + "</td>";
html += "<td>" + item.Name + "</td>";
html += "<td><a class='btn btn-default btn-xs' href='javaScript:void(0)' onclick='changeOrOpenTab(\""
+ item.Name + "\",\"" + item.NodeID + "\")'>编辑</a></td>";
html += "</tr>";
}
html += "</table>";
$("#docs").html(html);
}
function changeOrOpenTab(flowName, NodeID) {
var url = "AdminFrm.htm?WorkID=" + GetQueryString("WorkID");
url += "&FK_Flow=" + GetQueryString("FK_Flow");
url += "&FK_Node=" + NodeID;
window.open(url);
return;
}
</script>
<style type="text/css">
caption {
text-align: left;
font-family: 'Microsoft YaHei';
font-weight: bolder;
border-bottom: none;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div id="docs"></div>
<div style="position:relative;" id="Msg"></div>
</body>
</html>