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
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>
|
|
<title></title>
|
|
<link href="../../Scripts/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
|
|
<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="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
<!-- 自己的系统风格统一. -->
|
|
<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" />
|
|
<style type="text/css">
|
|
th, td {
|
|
text-align: center;
|
|
}
|
|
</style>
|
|
<script type="text/javascript">
|
|
var frmID;
|
|
var fk_flow;
|
|
var fk_Node;
|
|
$(function () {
|
|
|
|
frmID = GetQueryString("FK_MapData");
|
|
fk_flow = GetQueryString("FK_Flow");
|
|
fk_Node = GetQueryString("FK_Node");
|
|
|
|
var ens = new Entities("BP.Sys.FrmAttachments");
|
|
ens.Retrieve("FK_MapData", frmID);
|
|
|
|
var html = "";
|
|
|
|
for (var i = 0; i < ens.length; i++) {
|
|
|
|
|
|
var en = ens[i];
|
|
|
|
if (en.FK_Node != 0)
|
|
continue;
|
|
|
|
html += "<tr >";
|
|
html += "<td>" + en.MyPK + "</td>";
|
|
html += "<td>" + en.Name + "</td>";
|
|
|
|
if (en.UploadType == 0)
|
|
html += "<td>单附件</td>";
|
|
if (en.UploadType == 1)
|
|
html += "<td>多附件</td>";
|
|
if (en.UploadType == 2)
|
|
html += "<td>指定附件</td>";
|
|
|
|
html += "<td>";
|
|
|
|
html += "<a href=\"javascript:EditFJYuanShi('" + frmID + "','" + en.NoOfObj + "')\" >[原始属性]</a>";
|
|
html += "<a href=\"javascript:EditFJ('" + fk_Node + "','" + frmID + "','" + en.NoOfObj + "')\" >[编辑]</a>";
|
|
html += "<a href=\"javascript:DeleteFJ('" + fk_Node + "','" + frmID + "','" + en.NoOfObj + "')\" >[删除]</a>";
|
|
|
|
html += "</td>";
|
|
html += "</tr>";
|
|
}
|
|
$("#Table1 tr:last").after(html);
|
|
});
|
|
|
|
//编辑附件的原始属性.
|
|
function EditFJYuanShi(fk_mapdata, ath) {
|
|
var pk = fk_mapdata + '_' + ath;
|
|
var url = '../../Comm/En.htm?EnName=BP.Sys.FrmUI.FrmAttachmentExt&PK=' + pk;
|
|
WinOpen(url);
|
|
}
|
|
|
|
//编辑附件在该节点权限.
|
|
function EditFJ(fk_node, fk_mapdata, ath) {
|
|
var mypk = fk_mapdata + '_' + ath + '_' + fk_node;
|
|
var en = new Entity("BP.Sys.FrmUI.FrmAttachmentExt");
|
|
en.SetPKVal(mypk);
|
|
if (en.IsExits() == false) {
|
|
en.SetPKVal(fk_mapdata + '_' + ath);
|
|
en.RetrieveFromDBSources(); //查询
|
|
|
|
en.SetPKVal(mypk);
|
|
en.FK_Node = fk_node;
|
|
en.MyPK = mypk;
|
|
en.Insert();
|
|
}
|
|
Reload();
|
|
var url = '../../Comm/En.htm?EnName=BP.Sys.FrmUI.FrmAttachmentExt&FK_MapData=' + fk_mapdata + '&PK=' + mypk + '&FK_Node=' + fk_node;
|
|
WinOpen(url);
|
|
}
|
|
|
|
//删除附件的权限控制.
|
|
function DeleteFJ(fk_node, fk_mapdata, ath) {
|
|
|
|
if (confirm('您确定要删除该控件在当前节点的权限控制吗?') == false)
|
|
return;
|
|
var mypk = fk_mapdata + '_' + ath + '_' + fk_node;
|
|
var en = new Entity("BP.Sys.FrmUI.FrmAttachmentExt");
|
|
en.MyPK = mypk;
|
|
en.Delete();
|
|
alert("删除成功!");
|
|
Reload();
|
|
}
|
|
|
|
</script>
|
|
</head>
|
|
<body onkeypress="Esc();">
|
|
<div class="container-full">
|
|
<div class="attrnode-bar-header">
|
|
<strong> 节点-表单-多附件权限</strong>
|
|
</div>
|
|
<table id="Table1" class="table tableizer-table table-striped table-bordered table-hover table-condensed">
|
|
|
|
<tr>
|
|
<td>编号</td>
|
|
<td>名称</td>
|
|
<td>附件类型</td>
|
|
<td>操作</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
</html>
|