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.

150 lines
6.2 KiB
Plaintext

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<!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/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="../../../Scripts/easyUI/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="../../../Scripts/bootstrap/js/jquery.min.js"></script>
<script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
<script type="text/javascript" src="../../../Scripts/config.js"></script>
<script type="text/javascript" src="../../../Comm/Gener.js"></script>
<base target="_self" />
<script type="text/javascript">
//页面启动函数.
$(function () {
var en = new Entity("BP.Sys.MapExt");
en.FK_MapData = GetQueryString("FK_MapData");
en.ExtType = "BindFunction";
en.AttrOfOper = GetQueryString("KeyOfEn");
en.Tag = GetQueryString("FK_Event");
en.MyPK = en.ExtType + "_" + en.FK_MapData + "_" + en.AttrOfOper + "_" + en.Tag;
var i = en.RetrieveFromDBSources();
$("#Btn_Save").attr("value", "保存:" + GetQueryString("FK_Event") + "事件");
GenerFullAllCtrlsVal(en);
//设置按钮是否可以用?
if (i == 0)
$("#Btn_Delete").attr("disabled", true);
else
$("#Btn_Delete").removeAttr("disabled");
$("#table1").attr("title", en.Tag + " - 事件");
});
function Delete() {
if (window.confirm('您确定要删除吗?') == false)
return;
var en = new Entity("BP.Sys.MapExt");
en.FK_MapData = GetQueryString("FK_MapData");
en.ExtType = "BindFunction";
en.AttrOfOper = GetQueryString("KeyOfEn");
en.Tag = GetQueryString("FK_Event");
en.MyPK = en.ExtType + "_" + en.FK_MapData + "_" + en.AttrOfOper + "_" + en.Tag;
en.Delete();
alert("删除成功.");
Reload();
}
function Save() {
var en = new Entity("BP.Sys.MapExt");
en.CopyURL();
en.CopyForm();
en.FK_MapData = GetQueryString("FK_MapData");
en.ExtType = "BindFunction";
en.AttrOfOper = GetQueryString("KeyOfEn");
en.Tag = GetQueryString("FK_Event");
if (en.Tag1 == "") {
alert("函数名不能为空.");
return;
}
en.MyPK = en.ExtType + "_" + en.FK_MapData + "_" + en.AttrOfOper + "_" + en.Tag;
var i = en.Save();
alert("保存成功...");
BackTo();
//Reload();
}
function BackTo() {
var FK_MapData = GetQueryString("FK_MapData");
var AttrOfOper = GetQueryString("KeyOfEn");
SetHref("BindFunction.htm?FK_MapData=" + FK_MapData + "&KeyOfEn=" + AttrOfOper + "&t=" + Math.random() );
}
</script>
</head>
<body>
<div class="container-full">
<div class="attrnode-bar-header">
<span class="pull-right">
<input type="button" value="Save" id="Btn_Save" class="cc-btn-tab" onclick="Save();" />
<input type="button" value="删除" id="Btn_Delete" class="cc-btn-tab" name="Btn_Delete" onclick="Delete();" />
<input type="button" value="返回" id="Back" class="cc-btn-tab" name="Back" onclick="BackTo();" />
</span>
<strong> 事件</strong>
</div>
<form method="post" id="form1">
<table id="table1" name="table1" class="table">
<tr>
<td>函数名称 </td>
<td>
<input type="text" id="TB_Doc" name="TB_Doc" style="width:99%" />
</td>
<td>比如: MyFunc() </td>
</tr>
<tr>
<td>备注 </td>
<td>
<input type="text" id="TB_Tag1" name="TB_Tag1" style="width:99%" />
</td>
<td>对该函数的说明</td>
</tr>
</table>
<div class="cs-content-box">
<fieldset>
<legend> 帮助</legend>
<ul>
<li>1.您可以自定义一个函数,然后把函数名称设置到文本框里。</li>
<li>2. 该函数可以写入到 \DataUser\JSLibData\FrmID_Self.js 里面 </li>
<li>3. 如果该函数是一个通用的函数可以写入到CCFormRef.js </li>
</ul>
<legend>函数方法载体</legend>
<ul>
<li>如果是公共的方法,请写入到:\DataUser\JSLabData\CCFormRef.js</li>
<li>如果是个性化的方法,请写入到:\DataUser\JSLabData\<b><font color=red>@FrmID</font></b>_Self.js @FrmID 是当前表单的ID. </li>
<li><b>以上两个js文件在系统会自动装载到表单里面去.</b></li>
<li>在这个方法里面您可以使用JQuery的语法操作其他的字段.</li>
<li>比如:根据请假天数从,到两个日期字段计算请假天数. 请参考:<font color="red">\DataUser\JSLabData\DemoGenerFunctions.js</font>里面的方法. </li>
<li>编写脚本的时候对于文本框可以使用$("#TB_QingJiaRiQiCong") 获取文本框对象. </li>
<li>下拉框$("#DDL_QingJiaLeiXing").val() 获取对象</li>
<li>Boolean类型的数据通过$("#CB_HunFou")来获取对象.</li>
<li>Radionbutton类型的数据通过$("#RB_QingJiaLeiXing") 来获取对象.</li>
</ul>
</fieldset>
</div>
</form>
</div>
</body>
</html>