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.
229 lines
8.7 KiB
Plaintext
229 lines
8.7 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>绑定列表</title>
|
|
<!--link href="../../Comm/Style/Table0.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/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/Gener.js" type="text/javascript"></script>
|
|
<script language="JavaScript" 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>
|
|
<link href="../../Style/skin/css/Default.css" rel="stylesheet" />
|
|
<link href="../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
|
|
<link href="../../Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
<script language="javascript" type="text/javascript">
|
|
|
|
var fk_flow = GetQueryString('FK_Flow');
|
|
var fk_node = GetQueryString('FK_Node');
|
|
|
|
//页面启动函数.
|
|
$(function () {
|
|
|
|
$("#Msg").html("<img src=../../Img/loading.gif /> 正在加载,请稍后......");
|
|
|
|
InitPage();
|
|
|
|
$("#Msg").html("");
|
|
});
|
|
|
|
//初始化数据.
|
|
function InitPage() {
|
|
|
|
var fk_flow = GetQueryString("FK_Flow");
|
|
var fk_node = GetQueryString("FK_Node");
|
|
|
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_Sln");
|
|
handler.AddUrlData();
|
|
var data = handler.DoMethodReturnString("BindFrms_Init");
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
alert(data);
|
|
return;
|
|
}
|
|
|
|
data = JSON.parse(data);
|
|
|
|
//增加处理.
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
var newRow = "";
|
|
|
|
var frmNode = data[i];
|
|
|
|
var mypk = data[i].MyPK;
|
|
var frmID = data[i].FK_Frm;
|
|
|
|
newRow = "<tr ><td class=Idx>" + i + "</td>";
|
|
newRow += "<td>" + frmNode.FK_Frm + "</td>";
|
|
|
|
newRow += "<td><a href=\"javascript:Edit('" + mypk + "')\"><img src='../Img/Frm.png' />" + frmNode.FK_FrmText + "</a></td>";
|
|
|
|
//@0=始终启用@1=有数据时启用@2=有参数时启用@3=按表单的字段表达式@4=按SQL表达式@5=不启用@6=按岗位@7=按部门.
|
|
|
|
if (frmNode.FrmEnableRole == 5)
|
|
newRow += "<td>不启用</td>";
|
|
else if (frmNode.FrmEnableRole == 1)
|
|
newRow += "<td>有数据时启用</td>";
|
|
else if (frmNode.FrmEnableRole == 2)
|
|
newRow += "<td>有参数时启用</td>";
|
|
else if (frmNode.FrmEnableRole == 3)
|
|
newRow += "<td>按表单的字段表达式</td>";
|
|
else if (frmNode.FrmEnableRole == 4)
|
|
newRow += "<td>按SQL表达式</td>";
|
|
else if (frmNode.FrmEnableRole == 6)
|
|
newRow += "<td>按岗位</td>";
|
|
else if (frmNode.FrmEnableRole == 7)
|
|
newRow += "<td>按部门</td>";
|
|
else if (frmNode.FrmEnableRole == 0)
|
|
newRow += "<td>始终启用</td>";
|
|
else
|
|
newRow += "<td>" + frmNode.FrmEnableRole + "</td>";
|
|
|
|
newRow += "<td>" + frmNode.FrmSlnText + "</td>";
|
|
newRow += "<td>" + frmNode.WhoIsPKText + "</td>";
|
|
|
|
newRow += "<td><a href=\"javascript:DoOrder('" + mypk + "','Up')\">上移</a></td>";
|
|
newRow += "<td><a href=\"javascript:DoOrder('" + mypk + "','Down')\">下移</a></td>";
|
|
|
|
|
|
if (frmID == 'ND' + fk_node) {
|
|
|
|
//检查一下给表单类型赋值了没有,不然会引起错误.
|
|
var mapdata = new Entity("BP.Sys.MapData", frmID);
|
|
var frmType = mapdata.FrmType;
|
|
if (frmID == 0 || frmID == 1) {
|
|
|
|
} else {
|
|
|
|
}
|
|
|
|
//if (mapdata.FrmType!
|
|
newRow += "<td> -- </td>";
|
|
}
|
|
else
|
|
newRow += "<td><a href=\"javascript:Delete('" + mypk + "')\"><img src='../../Img/Btn/Delete.gif' />删除</a></td>";
|
|
|
|
newRow += "<td><a href=\"javascript:Designer('" + mypk + "','" + frmNode.FK_Frm + "')\">设计表单</a></td>";
|
|
|
|
//newRow += "<td><a href=\"javascript:WinField('" + data[i].FK_Frm + "','" + fk_node + "','" + fk_flow + "')\">字段</a> <a href=\"javascript:WinFJ('" + data[i].FK_Frm + "','" + fk_node + "','" + fk_flow + "')\">附件</a> <a href=\"javascript:WinDtl('" + data[i].FK_Frm + "','" + fk_node + "','" + fk_flow + "')\">明细表</a></td>";
|
|
newRow += "</tr>";
|
|
|
|
$("#Table1 tr:last").after(newRow);
|
|
}
|
|
}
|
|
|
|
//顺序.
|
|
function DoOrder(no, type) {
|
|
|
|
var frmNode = new Entity("BP.WF.Template.FrmNode", no);
|
|
|
|
if (type == "Up")
|
|
frmNode.DoMethodReturnString("DoUp");
|
|
else
|
|
frmNode.DoMethodReturnString("DoDown");
|
|
|
|
Reload();
|
|
}
|
|
|
|
//删除.
|
|
function Delete(no) {
|
|
|
|
if (window.confirm('您确定要删除吗?') == false)
|
|
return;
|
|
|
|
var frmNode = new Entity("BP.WF.Template.FrmNode", no);
|
|
frmNode.Delete();
|
|
|
|
Reload();
|
|
}
|
|
|
|
//设计表单.
|
|
function Designer(mypk, fk_mapData) {
|
|
|
|
var mapdata = new Entity("BP.Sys.MapData", fk_mapData);
|
|
var url = "";
|
|
|
|
//自由表单.
|
|
if (mapdata.FrmType == 1) {
|
|
url = "../CCFormDesigner/FormDesigner.htm?FK_MapData=" + fk_mapData + "&FK_Node=" + GetQueryString("FK_Node") + "&FK_Flow=" + fk_flow + "&IsFirst=1";
|
|
}
|
|
|
|
//开发者表单.
|
|
if (mapdata.FrmType == 8) {
|
|
url = "../DevelopDesigner/Designer.htm?FrmID=" + fk_mapData + "&FK_MapData=" + fk_mapData + "&FK_Node=" + GetQueryString("FK_Node") + "&FK_Flow=" + fk_flow + "&IsFirst=1";
|
|
}
|
|
|
|
if (url == "")
|
|
url = "../FoolFormDesigner/Designer.htm?FK_MapData=" + fk_mapData + "&FK_Node=" + GetQueryString("FK_Node") + "&FK_Flow=" + fk_flow + "&IsFirst=1";
|
|
|
|
WinOpen(url);
|
|
//alert(fk_mapData);
|
|
|
|
}
|
|
|
|
function Edit(mypk) {
|
|
|
|
var url = '../../Comm/En.htm?EnName=BP.WF.Template.FrmNodeExt&MyPK=' + mypk;
|
|
//获取屏幕的长宽
|
|
var W = document.body.clientWidth - 80;
|
|
var H = document.body.clientHeight - 40;
|
|
OpenEasyUiDialog(url, "eudlgframe", '编辑', W, H, "icon-edit", true, null, null, null, function () {
|
|
Reload();
|
|
});
|
|
}
|
|
function ToBindFrms() {
|
|
var url = "BindFrmsDtl.htm?FK_Node=" + fk_node + '&FK_Flow=' + fk_flow + '&DoType=SelectedFrm';
|
|
SetHref(url);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body class="easyui-layout">
|
|
<div class="container-full" style=" padding-top:10px;">
|
|
<div data-options="region:'center'">
|
|
<table id="Table1" class="table table-hover table-bordered">
|
|
<tr class="GroupTitle">
|
|
<td colspan="10">
|
|
绑定的表单列表 - <a href="javascript:void(0)" onclick="ToBindFrms()">绑定表单</a>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th>
|
|
序
|
|
</th>
|
|
<th>
|
|
表单编号
|
|
</th>
|
|
<th>
|
|
名称
|
|
</th>
|
|
<th>
|
|
启用规则
|
|
</th>
|
|
<th>
|
|
权限控制方案
|
|
</th>
|
|
<th>
|
|
谁是主键?
|
|
</th>
|
|
<th>
|
|
上移
|
|
</th>
|
|
<th> 下移</th>
|
|
<th>删除 </th>
|
|
<th>设计</th>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div id="Msg">
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|