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.
113 lines
4.0 KiB
Plaintext
113 lines
4.0 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>
|
|
<script language="JavaScript" src="../../Comm/JScript.js" type="text/javascript" ></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 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>
|
|
<base target="_self" />
|
|
<link href="../../Comm/Style/Table0.css" rel="stylesheet" type="text/css" />
|
|
<script language="javascript" type="text/javascript" >
|
|
|
|
//页面启动函数.
|
|
$(function () {
|
|
|
|
$("#Msg").html("<img src=../../Img/loading.gif /> 正在加载,请稍后......");
|
|
|
|
InitPage();
|
|
|
|
$("#Msg").html("");
|
|
});
|
|
|
|
//初始化数据.
|
|
function InitPage() {
|
|
|
|
// var fk_mapData = GetQueryString("FK_MapData");
|
|
|
|
//初始化表格.
|
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_CCFormDesigner");
|
|
var data = handler.DoMethodReturnString("Tables_Init");
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
alert(data);
|
|
return;
|
|
}
|
|
|
|
data = JSON.parse(data);
|
|
|
|
//增加处理.
|
|
for (var i = 0; i < data.length; i++) {
|
|
|
|
var newRow = "";
|
|
|
|
newRow = "<tr ><td class=Idx>" + i + "</td>";
|
|
newRow += "<td>" + data[i].FK_SFDBSrcText + "</td>";
|
|
newRow += "<td>" + data[i].No + "</td>";
|
|
|
|
newRow += "<td>" + data[i].Name + "</td>";
|
|
newRow += "<td>" + data[i].CodeStructText + "</td>";
|
|
newRow += "<td><a href='TableRef.htm?FK_SFTable=" + data[i].No + "'>" + data[i].RefNum + "</a></td>";
|
|
|
|
newRow += "<td>";
|
|
newRow += "<a href=\"javascript:Edit('" + data[i].No + "')\"><img src='../../Img/Btn/Edit.gif' border=0 />编辑</a>";
|
|
newRow += "<a href=\"javascript:Delete('" + data[i].No + "')\"><img src='../../Img/Btn/Delete.gif' border=0 />删除</a>";
|
|
newRow += "</td>";
|
|
|
|
newRow += "</tr>";
|
|
|
|
$("#Table1 tr:last").after(newRow);
|
|
}
|
|
}
|
|
|
|
function Delete(no) {
|
|
|
|
if (window.confirm('您确定要删除吗?') == false)
|
|
return;
|
|
|
|
//删除.
|
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_CCFormDesigner");
|
|
handler.AddPara("No", no);
|
|
var data = handler.DoMethodReturnString("Tables_Delete");
|
|
|
|
$("#Msg").html(data);
|
|
|
|
if (data.indexOf('err@') == 0) {
|
|
alert(data);
|
|
return;
|
|
}
|
|
|
|
alert(data);
|
|
Reload();
|
|
|
|
}
|
|
|
|
function Edit(no) {
|
|
var url = '../../Comm/En.htm?EnName=BP.Sys.FrmUI.SFTable&No=' + no;
|
|
var b = window.showModalDialog(url, 'ass', 'dialogHeight: 400px; dialogWidth: 500px;center: yes; help: no');
|
|
Reload();
|
|
}
|
|
</script>
|
|
</head>
|
|
<body onkeypress="Esc()" >
|
|
|
|
<table class="easyui-layout" style="width: 100%;" id="Table1" >
|
|
<caption>外键列表 </caption>
|
|
<tr>
|
|
<th width="3%">序 </th>
|
|
<th> 数据源 </th>
|
|
<th> 表名 </th>
|
|
<th> 中文名</th>
|
|
<th> 数据结构</th>
|
|
<th> 查看引用 </th>
|
|
<th> 操作</th>
|
|
</tr>
|
|
</table>
|
|
|
|
<div id="Msg"></div>
|
|
|
|
</body>
|
|
</html>
|