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.
147 lines
5.6 KiB
Plaintext
147 lines
5.6 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="../../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>
|
||
|
|
||
|
<link href="../../Style/skin/adminfont/iconfont.css" rel="stylesheet" />
|
||
|
<link href="../../Style/skin/css/Default.css" rel="stylesheet" />
|
||
|
<script src="../EnumLab.js"></script>
|
||
|
<script type="text/javascript">
|
||
|
$(function () {
|
||
|
|
||
|
InitBar(MenuModel.DictTable);
|
||
|
var html = "";
|
||
|
|
||
|
});
|
||
|
|
||
|
function Save() {
|
||
|
|
||
|
var dict = new Entity("BP.Sys.SFTable");
|
||
|
var webUser = new WebUser();
|
||
|
dict.CopyForm();
|
||
|
|
||
|
if (dict.No == "" || dict.Name == "") {
|
||
|
alert("err@名称与编号不能为空.");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
dict.No = $("#TB_No").val();
|
||
|
if (dict.IsExits() == true) {
|
||
|
alert("编号已经存在[" + dict.No + "]请使用其他的编号.");
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
//var sfType = GetQueryString("SFType");
|
||
|
dict.SrcType = 7; //通用的字典表.
|
||
|
dict.Insert();
|
||
|
|
||
|
//更新节点表单类型.
|
||
|
var moduleNo = GetQueryString("ModuleNo");
|
||
|
var en = new Entity("BP.CCFast.CCMenu.Menu");
|
||
|
en.ModuleNo = moduleNo;
|
||
|
en.Name = dict.Name;
|
||
|
en.UrlExt = dict.No;
|
||
|
en.MenuModel = MenuModel.DictTable; //字典表.
|
||
|
en.Insert();
|
||
|
|
||
|
alert("创建成功,您可以在在菜单里执行高级编辑与授权.");
|
||
|
// SetHref( "Default.htm");
|
||
|
//window.location.href = "../SFTableEditData.htm?FK_SFTable=" + en.No + "&QueryType=Dict";
|
||
|
SetHref("../../Comm/En.htm?EnName=BP.CCFast.CCMenu.Menu&No=" + en.No);
|
||
|
}
|
||
|
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.Cloud.HttpHandler.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;
|
||
|
}
|
||
|
var webUser = new WebUser();
|
||
|
|
||
|
$('#TB_No').val(data);
|
||
|
// $('#TB_PTable').val(key);
|
||
|
// $('#TB_No_Org').val(keyOrg);
|
||
|
// $('#TB_PTable_Org').val(keyOrg);
|
||
|
return;
|
||
|
}
|
||
|
</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" placeholder="比如:科目、客户类型、片区" onblur="GenerPinYin()" /></td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td>编号 </td>
|
||
|
<td>
|
||
|
<input type="text" value="" id="TB_No" />
|
||
|
<input type="text" id="TB_No_Org" name="TB_No_Org" style="width: 100%;" hidden=hidden />
|
||
|
</td>
|
||
|
</tr>
|
||
|
|
||
|
<tr>
|
||
|
<td> </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> 类型 </td>
|
||
|
<td>
|
||
|
<select id="DDL_CodeStruct">
|
||
|
<option value="0" selected="selected">具有编号,名称的字典. 比如:科目、客户类型.</option>
|
||
|
<option value="1">具有编号,名称、父级编号字典. 比如:客户目录、部门.</option>
|
||
|
</select>
|
||
|
</td>
|
||
|
</tr>
|
||
|
</table>
|
||
|
|
||
|
<div id="Msg"></div>
|
||
|
<input type="button" id="Btn_Save" value="创建字典" onclick="Save();" />
|
||
|
</fieldset>
|
||
|
|
||
|
<fieldset>
|
||
|
<legend id="help">效果</legend>
|
||
|
<ul>
|
||
|
<li>
|
||
|
<img src="DictTable.png" id="xxx" class="HelpImg" />
|
||
|
</li>
|
||
|
|
||
|
</ul>
|
||
|
</fieldset>
|
||
|
</body>
|
||
|
</html>
|