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.

140 lines
5.6 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>
<link href="../../../WF/Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
<link href="../../../WF/Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
<link href="../../../WF/../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
<script src="../../../WF/Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
<script src="../../../WF/Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
<script src="../../../WF/Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../WF/Scripts/config.js" type="text/javascript"></script>
<script src="../../../WF/Scripts/QueryString.js" type="text/javascript"></script>
<script src="../../../WF/Comm/Gener.js" type="text/javascript"></script>
<script src="DDLBar.js" type="text/javascript"></script>
<link href="../../../WF/Style/skin/adminfont/iconfont.css" rel="stylesheet" />
<link href="../../../WF/Style/skin/css/Default.css" rel="stylesheet" />
<script src="../EnumLab.js"></script>
<script type="text/javascript">
var winDocModel = "SelfUrl";
$(function () {
var menuNo = GetQueryString("MenuNo");
InitBar(winDocModel);
});
function Save() {
$("#Msg").html("正在创建,请稍后......");
var name = document.getElementById("TB_Name").value;
if (name == "" || name == null) {
$("#Msg").html("名称不能为空...");
return;
}
var url = document.getElementById("TB_Url").value;
if (url == "" || url == null) {
$("#Msg").html("名称不能为空...");
return;
}
var no = document.getElementById("TB_No").value;
if (no == "" || no == null) {
$("#Msg").html("编号不能为空...");
return;
}
var flowNo = GetQueryString("FlowNo");
var en = new Entity("BP.WF.Template.FlowTab");
en.Name = name;
en.Mark = "self";
en.Tip = "请填下相关说明";
en.FK_Flow = flowNo;
en.MyPK = flowNo + "_" + no;
en.UrlExt = url;
en.IsEnable = 1;
en.Icon = "icon-drop";
en.Idx = 0;
en.Insert();
SetHref("../../../WF/Comm/En.htm?EnName=BP.CCFast.CCMenu.TabDtl&No=" + en.No);
}
function GenerPinYin() {
//是否是全拼.
var isQuanPin = 0;
if (document.getElementById("RB_PinYinModel_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);
return;
}
</script>
</head>
<body>
<form id="CCForm">
<div id="bar">
</div>
<fieldset>
<legend>创建标签页 </legend>
<!--<ul>
<li> 标题</li>
<li><input type="text" id="TB_Name" value="我的菜单1" placeholder="不能为空" /> </li>
<li> Url</li>
<li><input type="text" id="TB_Url" value="http://ccfast.cc" placeholder="不能为空" /> </li>
<li> <div id="Msg"></div> </li>
</ul>
<legend>说明</legend>
<ul>
<li> 数据可以包含变量@WebUser.No </li>
<li>创建后,就可以编辑熟悉与权限控制。</li>
<li><img src="Html.png" class="HelpImg" /> </li>
</ul>-->
<table style="width: 80%;border: white;">
<tr>
<td>标题</td>
<td>
<input type="text" id="TB_Name" name="TB_Name" placeholder="不能为空" onblur="GenerPinYin()" />
</td>
<td>
<input id="RB_PinYinModel_0" type="radio" name="RB_PinYinModel" value="0" checked="checked" onclick="GenerPinYin()" /><label for="RB_PinYinModel_0" onclick="GenerPinYin()">全拼</label>
<input id="RB_PinYinModel_1" type="radio" name="RB_PinYinModel" value="1" onclick="GenerPinYin()" /><label for="RB_PinYinModel_1" onclick="GenerPinYin()">简拼</label>
</td>
</tr>
<tr>
<td>编号</td>
<td><input type="text" id="TB_No" name="TB_No" placeholder="不能为空" /></td>
</tr>
<tr>
<td>功能链接</td>
<td><input type="text" id="TB_Url" value="http://ccfast.cc" placeholder="不能为空" /></td>
</tr>
<tr>
<div id="Msg"></div>
</tr>
</table>
</fieldset>
</form>
</body>
</html>