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.
139 lines
5.0 KiB
Plaintext
139 lines
5.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>
|
|
<meta charset="UTF-8"/>
|
|
<title>节点-事件</title>
|
|
<link href="../../Scripts/easyUI/themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
|
<link href="../../Scripts/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
|
|
<script src="../../Scripts/easyUI/jquery-1.8.0.min.js" type="text/javascript"></script>
|
|
<script src="../../Scripts/easyUI/jquery.easyui.min.js" type="text/javascript"></script>
|
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
|
|
<script language="JavaScript" src="../../Comm/JScript.js" type="text/javascript" ></script>
|
|
<script type="text/javascript" src="../../Scripts/bootstrap/js/jquery.min.js"></script>
|
|
<script src="../../Scripts/QueryString.js" type="text/javascript"></script>
|
|
<link href="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
|
|
|
<!-- 引用通用的js文件. -->
|
|
<script type="text/javascript" src="../../Scripts/config.js"></script>
|
|
<script type="text/javascript" src="../../Comm/Gener.js"></script>
|
|
|
|
|
|
<script type="text/javascript">
|
|
//页面启动函数.
|
|
$(function () {
|
|
|
|
$("#Msg").html("正在加载,请稍后......");
|
|
|
|
//初始化groupID.
|
|
var frmID = GetQueryString("FK_MapData");
|
|
|
|
var ens = new Entities("BP.Sys.FrmEvents");
|
|
ens.Retrieve("FK_MapData", frmID);
|
|
|
|
//修改表单事件数量
|
|
var mapData = new Entity("BP.Sys.MapData", frmID)
|
|
mapData.SetPara("FrmEventsNum", ens.length);
|
|
mapData.Update();
|
|
|
|
var html = "<table style='width:98%;'>";
|
|
html += "<caption><img src='../../Img/Event.png' />表单事件 </caption>";
|
|
html += "<tr>";
|
|
html += "<th>序</th>";
|
|
html += "<th>事件标记</th>";
|
|
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 class=Idx>" + (i+1)+ "</td>";
|
|
html += "<td>" + en.FK_Event + "</td>";
|
|
html += "<td>" + GetActionTypeName(en.FK_Event) + "</td>";
|
|
html += "<td>" + GetDoType(en.EventDoType) + "</td>";
|
|
html += "<td>" + en.DoDoc + "</td>";
|
|
html += "<td><a href=\"javascript:Delete('" + en.MyPK + "')\"><img src='../../Img/Btn/Delete.gif' border=0 />删除</a></td>";
|
|
html += "</tr>";
|
|
}
|
|
html += "</table>";
|
|
|
|
$("#Msg").html(html);
|
|
});
|
|
|
|
function New() {
|
|
var url = "ActionDtl.htm?FK_MapData=" + GetQueryString("FK_MapData");
|
|
SetHref(url);
|
|
}
|
|
|
|
function Delete(mypk) {
|
|
|
|
if (confirm('您确定要删除吗?') == false)
|
|
return;
|
|
|
|
var en = new Entity("BP.Sys.FrmEvent", mypk);
|
|
en.Delete();
|
|
Reload();
|
|
return;
|
|
}
|
|
function GetActionTypeName(type) {
|
|
//事件类型.
|
|
var eventLists = [
|
|
{ No: "FrmLoadBefore", Name: "节点表单载入前" },
|
|
{ No: "FrmLoadAfter", Name: "节点表单载入后" },
|
|
{ No: "SaveBefore", Name: "当表单保存前" },
|
|
{ No: "SaveAfter", Name: "当表单保存后" }
|
|
]
|
|
|
|
for (var i = 0; i < eventLists.length; i++) {
|
|
var en = eventLists[i];
|
|
if (en.No == type)
|
|
return en.Name;
|
|
}
|
|
return "xxxx";
|
|
}
|
|
|
|
function GetDoType(doType) {
|
|
|
|
var cfg = "@0=禁用@1=执行存储过程@2=执行SQL语句@3=执行URL@4=WebServices(未完成)@5=执行ddl文件的类与方法@6=EventBase类@7=业务单元";
|
|
|
|
var cfgs = cfg.split('@');
|
|
|
|
for (var i = 0; i < cfgs.length; i++) {
|
|
var vss = cfgs[i];
|
|
if (vss.indexOf('=') == -1)
|
|
continue;
|
|
var vals = vss.split('=');
|
|
if (vals[0] == doType)
|
|
return vals[1];
|
|
}
|
|
return doType + 'ss';
|
|
}
|
|
function Help() {
|
|
var url = "http://doc.ccbpm.cn";
|
|
window.open(url);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body >
|
|
<form id="cc">
|
|
<div style="right:30px; position:absolute; z-index:100; top:-6px ">
|
|
<fieldset style="border: 0px;">
|
|
<input type=button value="+新建事件" onclick="javascript:New()" />
|
|
<input type=button value="什么是事件?" onclick="javascript:Help()" />
|
|
</fieldset>
|
|
</div>
|
|
<div style="position:relative;" id="Msg"></div>
|
|
|
|
<br />
|
|
|
|
|
|
|
|
</form>
|
|
</body>
|
|
</html>
|