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.

105 lines
4.1 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="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
<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 src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
<script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Scripts/config.js" type="text/javascript"></script>
<script src="../../../Comm/JScript.js" type="text/javascript"></script>
<script src="../../../Scripts/CommonUnite.js" type="text/javascript"></script>
<script src="../../../Scripts/EasyUIUtility.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Comm/Gener.js" type="text/javascript"></script>
<script src="DDLBar.js" type="text/javascript"></script>
<script src="../../CCFlowEnum.js" type="text/javascript"></script>
<script type="text/javascript">
var nodeFrmID = "";
$(function () {
var html = "<table style='width:98%' >";
html += "<caption><a href='javascript:NewFrm()'>新建表单</a></caption>";
html += "<tr>";
html += "<th>序号</th>";
html += "<th>类别</th>";
html += "<th>表单ID</th>";
html += "<th>名称</th>";
html += "<th>存储表</th>";
html += "<th>创建组织</th>";
html += "<th>操作</th>";
html += "</tr>";
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_AttrNode_FrmSln");
handler.AddPara("NodeID", GetQueryString("NodeID"));
var data = handler.DoMethodReturnString("RefOneFrmTreeFrms_Init");
if (data.indexOf('err@') == 0) {
alert(data);
return;
}
data = JSON.parse(data);
if (data.length == 0) {
var html2 = "没有可供选择的表单。";
$("#info").html(html2);
return;
}
for (var i = 0; i < data.length; i++) {
var en = data[i];
if (en.No == 'Temp0')
continue;
html += "<tr >";
html += "<td>" + i + "</td>";
html += "<td>" + en.SortName + "</td>";
html += "<td>" + en.No + "</td>";
html += "<td>" + en.Name + "</td>";
html += "<td>" + en.PTable + "</td>";
if (en.OrgName == null || en.OrgName == undefined || en.OrgName == "")
html += "<td>—</td>";
else
html += "<td>" + en.OrgName+ "</td>";
html += "<td><a href=\"javascript:Save('" + en.No + "')\">绑定</a></td>";
html += "</tr>";
}
html += "</table>";
$("#frms").html(html);
});
function Save(selectFrm) {
if (window.confirm('您确定要绑定:' + selectFrm + "吗?") == false)
return;
//选择的表单.
if (selectFrm == undefined || selectFrm == null) {
alert('请选择一个表单');
return;
}
$("#TB_Frm",window.parent.document).val(selectFrm);
//parent.location.reload();
parent.doCloseDialog.call();
// parent.$("#MyFrm").html(frmNode.FK_Frm + ":" +selectName );
// $(".panel-tool-close").click();
return;
}
</script>
</head>
<body>
<div id="table">
<div id="frms"></div>
<div id="info"></div>
</div>
</body>
</html>