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.

127 lines
4.6 KiB
Plaintext

<!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 http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>字段权限</title>
<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 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>
<!-- 自己的系统风格统一. -->
<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" />
<script src="../../Scripts/easyUI/jquery-1.8.0.min.js" type="text/javascript"></script>
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<base target="_self" />
<script type="text/javascript">
//初始化页面函数.....
$(function () {
var frmID = GetQueryString("FK_MapData");
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("Fields_Init");
if (data.indexOf('err@') == 0) {
$("#Msg").html("<font color=red>加载失败:<br>" + data + "</font> .");
return;
}
//转json.
data = JSON.parse(data);
var sys_mapattr = data["Sys_MapAttr"];
var wf_Conds = data["WF_Conds"];
//增加处理.
for (var i = 0; i < wf_Conds.length; i++) {
var cond = wf_Conds[i];
var newRow = "";
newRow = "<tr >";
newRow += "<td class=Idx>" + i + "</td>";
newRow += "<td>" + cond.AttrKey + "</td>";
newRow += "<td>" + cond.AttrName + "</td>";
newRow += "<td>" + cond.FK_Operator + "</td>";
newRow += "<td>" + cond.OperatorValue + "</td>";
newRow += "<td>" + cond.OperatorValueT + "</td>";
if (cond.CondOrAnd == 0)
newRow += "<td> AND </td>";
else
newRow += "<td> OR </td>";
newRow += "<td>";
newRow += "<a href=\"javascript:Delete('" + cond.MyPK + "')\"><img src='../Img/Btn/Delete.gif' border=0 />删除</a>";
newRow += "</td>";
newRow += "</tr>";
$("#Table1 tr:last").after(newRow);
}
});
//执行保存..
function Save(saveType) {
var frmID = GetQueryString("FK_MapData");
var fk_flow = GetQueryString("FK_Flow");
var fk_Node = GetQueryString("FK_Node");
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_Sln");
handler.AddUrlData();
handler.AddPara("FK_MapData", frmID);
var data = handler.DoMethodReturnString("Fields_Save");
if (data.indexOf('err@') == 0) {
$("#Msg").html("<font color=red>" + data + "</font>");
return;
}
if (data.indexOf('url@') == 0) {
var url = data.replace('url@', '');
SetHref(url);
return;
}
Reload();
}
</script>
</head>
<body onkeypress="Esc();">
<div class="container-full">
<div class="attrnode-bar-header">
<strong> 节点-表单-字段权限</strong>
</div>
<form id="cc">
<table id="Table1" style="width:90%;">
<tr>
<th>字段</th>
<th>名称</th>
<th>类型</th>
<th>可见?</th>
<th>可用?</th>
<th>是否是签名?</th>
<th>默认值</th>
<th>检查必填?</th>
<th>正则表达式</th>
<th>写入流程数据表?</th>
</tr>
</table>
</form>
<center><div id="Msg" /></center>
</div>
</body>
</html>