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.

107 lines
3.5 KiB
Plaintext

11 months ago
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>样式模版管理</title>
<script src="../../../Scripts/jquery-1.11.0.min.js"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Scripts/config.js" type="text/javascript"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../Comm/Gener.js" type="text/javascript"></script>
<link href="../../CSS/FoolFrmBody.css" rel="stylesheet" />
<link href="../../CSS/Toolbar.css" rel="stylesheet" />
<script type="text/javascript">
//获得集合.
var ens = null;
var en = null;
$(function () {
var hander = new HttpHandler("BP.WF.HttpHandler.WF_Admin_FoolFormDesigner_StyletDfine");
ens = hander.DoMethodReturnJSON("Template_Init");
var html = "<table>";
html += "<tr>";
html += "<th>#</th>";
html += "<th>名称</th>";
html += "<th>应用</th>";
html += "<th>删除</th>";
html += "</tr>";
for (var i = 0; i < ens.length; i++) {
var en = ens[i];
html += "<tr>";
html += "<td>" + i + "</td>";
html += "<td>" + en.Name + "</td>";
html += "<td><a href='App('" + en.No + "')'>应用</a></td>";
html += "<td><a href='Delete('" + en.No + "')'>删除</a></td>";
html += "</tr>";
}
html += "</table>";
$("#docs").html(html);
});
function Back() {
var url = "Default.htm?FK_MapData=" + GetQueryString("FrmID");
url += "&FrmID=" + GetQueryString("FrmID");
url += "&FK_Flow=" + GetQueryString("FK_Flow");
url += "&FK_Node=" + GetQueryString("FK_Node");
SetHref(url);
}
function BackToDesigner() {
var url = "../Designer.htm?FK_MapData=" + GetQueryString("FrmID");
url += "&FrmID=" + GetQueryString("FrmID");
url += "&FK_Flow=" + GetQueryString("FK_Flow");
url += "&FK_Node=" + GetQueryString("FK_Node");
SetHref(url);
}
///执行应用.
function App(val) {
var hander = new HttpHandler("BP.WF.HttpHandler.WF_Admin_FoolFormDesigner_StyletDfine");
hander.AddPara("Name", val);
var data = hander.DoMethodReturnString("Template_App");
if (data.indexOf('err@') == 0) {
alert(data);
return;
}
}
function Delete(val) {
if (window.confirm('您确认要执行删除吗?') == false)
return;
var hander = new HttpHandler("BP.WF.HttpHandler.WF_Admin_FoolFormDesigner_StyletDfine");
hander.AddPara("Name", val);
var data = hander.DoMethodReturnString("Template_Delete");
if (data.indexOf('err@') == 0) {
alert(data);
return;
}
Reload();
}
function LoadTemplate() {
var url = "Template.htm?FK_MapData=" + GetQueryString("FrmID");
url += "&FrmID=" + GetQueryString("FrmID");
url += "&FK_Flow=" + GetQueryString("FK_Flow");
url += "&FK_Node=" + GetQueryString("FK_Node");
SetHref(url);
}
</script>
</head>
<body>
<div id="docs"></div>
</body>
</html>