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.
136 lines
5.1 KiB
Plaintext
136 lines
5.1 KiB
Plaintext
11 months ago
|
<!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="../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
|
||
|
<link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
|
||
|
<script src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
|
||
|
<script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></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>
|
||
|
<script src="DDLBar.js" type="text/javascript"></script>
|
||
|
<script src="../../EnumLab.js"></script>
|
||
|
<script src="../../../Admin/Admin.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(function () {
|
||
|
|
||
|
// InitBar(0);
|
||
|
InitBar(MethodModel.Func);
|
||
|
|
||
|
});
|
||
|
|
||
|
function Save() {
|
||
|
|
||
|
$("#Msg").html("正在创建,请稍后......");
|
||
|
|
||
|
var name = $("#TB_Name").val();
|
||
|
var id = $("#TB_No").val();
|
||
|
if (name == undefined || name == null || name == "") {
|
||
|
alert("请输入方法名称.");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
var en = new Entity("BP.CCBill.Template.Method");
|
||
|
en.FrmID = GetQueryString("FrmID");
|
||
|
en.GroupID = GetQueryString("GroupID");
|
||
|
|
||
|
en.MethodID = id;
|
||
|
en.Name = name;
|
||
|
en.MethodModel = MethodModel.Func; //设置为链接按钮.
|
||
|
|
||
|
en.RefMethodType = 1;
|
||
|
|
||
|
//是否可以选择.
|
||
|
// en.IsCanBatch = $("#CB_IsCanBatch").val();
|
||
|
|
||
|
en.Icon = "icon-energy";
|
||
|
//en.Icon = "icon-control-play";
|
||
|
en.Insert();
|
||
|
|
||
|
var url = "../MethodDoc/Default.htm?EnName=BP.CCBill.Template.MethodFunc&No=" + en.No;
|
||
|
// var url = "../../../Comm/En.htm?EnName=BP.CCBill.Template.MethodFunc&No=" + en.No;
|
||
|
|
||
|
SetHref(url);
|
||
|
}
|
||
|
|
||
|
function GenerPinYin() {
|
||
|
|
||
|
//是否是全拼.
|
||
|
var isQuanPin = 0;
|
||
|
if (document.getElementById("RB_ZZMM_0").checked == true)
|
||
|
isQuanPin = 1;
|
||
|
|
||
|
// var name = $('#TB_Nam').val();
|
||
|
var name = document.getElementById("TB_Name").value;
|
||
|
if (name == "")
|
||
|
return;
|
||
|
|
||
|
var handler = new HttpHandler("BP.WF.HttpHandler.WF_Admin_CCFormDesigner");
|
||
|
handler.AddPara("IsQuanPin", isQuanPin);
|
||
|
handler.AddPara("TB_Name", encodeURIComponent(name));
|
||
|
var data = handler.DoMethodReturnString("NewFrmGuide_GenerPinYin");
|
||
|
|
||
|
$("#Msg").html("");
|
||
|
|
||
|
if (data.indexOf('err@') >= 0) {
|
||
|
$("#Msg").html("<font color=red>" + data + "</font>");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
$('#TB_No').val(data);
|
||
|
}
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="bar">
|
||
|
</div>
|
||
|
|
||
|
<fieldset>
|
||
|
<legend> 方法 </legend>
|
||
|
|
||
|
<table>
|
||
|
<tr>
|
||
|
<td>标签:比如(注销) </td>
|
||
|
<td> <input type="text" value="" id="TB_Name" name="TB_Name" onblur="GenerPinYin()" /></td>
|
||
|
<td>方法ID </td>
|
||
|
<td>
|
||
|
<input type="text" value="" id="TB_No" name="TB_No" />
|
||
|
<!--<input type="text" id="TB_No_Org" name="TB_No_Org" style="width: 100%;" hidden=hidden />-->
|
||
|
</td>
|
||
|
<td>
|
||
|
<input id="RB_ZZMM_0" type="radio" name="RB_ZZMM" value="0" checked="true" onclick="GenerPinYin()" /><label for="RB_ZZMM_0" onclick="GenerPinYin()">全拼</label>
|
||
|
<input id="RB_ZZMM_1" type="radio" name="RB_ZZMM" value="1" onclick="GenerPinYin()" /><label for="RB_ZZMM_1" onclick="GenerPinYin()">简拼</label>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<!--<tr>
|
||
|
<td> <label><input type="checkbox" id="CB_IsCanBatch" value="1" /> 是否可以批处理?</label> </td>
|
||
|
<td colspan="4"> 如果可以批处理,就可显示在查询组件上。 </td>
|
||
|
</tr>-->
|
||
|
</table>
|
||
|
|
||
|
<legend> 帮助 </legend>
|
||
|
<ul>
|
||
|
<li> 对一个实体记录,执行相关的操作。</li>
|
||
|
<li> 执行一段SQL, Javascript, Url, 类。</li>
|
||
|
|
||
|
</ul>
|
||
|
|
||
|
<legend> 无参数的方法效果 </legend>
|
||
|
<ul>
|
||
|
<li> <img src="Func1.png" class="HelpImg" style="width:80%;" /> </li>
|
||
|
</ul>
|
||
|
<legend> 有参数的方法效果 </legend>
|
||
|
<ul>
|
||
|
<li> <img src="Func.png" class="HelpImg" style="width:80%;" /> </li>
|
||
|
</ul>
|
||
|
</fieldset>
|
||
|
|
||
|
<div id="Msg"></div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|