function InitBar(optionKey) { var html = "菜单类型:"; html += ""; html += "                "; document.getElementById("bar").innerHTML = html; $("#changBar option[value='" + optionKey + "']").attr("selected", "selected"); } function GetDBGroup() { var json = [ { "No": "A", "Name": "系统" }, { "No": "B", "Name": "自定义" } ]; return json; } function GetDBDtl() { var json = [ { "No": "SelfUrl", "Name": "自定义Url", "GroupNo": "A", "Url": "SelfUrl.htm" }, { "No": "Menu", "Name": "从本系统中选择菜单(未完成)", "GroupNo": "A", "Url": "Menu.htm" } ]; return json; } function Close() { window.close(); window.Close(); window.closed(); } function Back() { var url = "../Menus.htm"; SetHref(url); } function Adv() { var url = "Adv.htm?MenuNo=" + GetQueryString("MenuNo"); OpenEasyUiDialogExt(url, '高级设置', 600, 400, false); } function HelpOnline() { var url = "http://doc.ccbpm.cn"; window.open(url); } function changeOption() { var pageID = GetQueryString("MenuNo"); if (pageID == null) pageID = GetQueryString("PageID"); var obj = document.getElementById("changBar"); var sele = obj.options; var index = obj.selectedIndex; var optionKey = optionKey = sele[index].value; var url = GetUrl(optionKey); SetHref(url + "?MenuNo=" + pageID + "&PageID=" + pageID); } function GetUrl(optionKey) { var json = GetDBDtl(); for (var i = 0; i < json.length; i++) { var en = json[i]; if (en.No === optionKey) return en.Url; } alert(optionKey); return "0.QiangBan.htm"; } function SaveAndClose() { Save(); window.close(); } $(function () { jQuery.getScript(basePath + "/WF/Admin/Admin.js") .done(function () { /* 耶,没有问题,这里可以干点什么 */ // alert('ok'); }) .fail(function () { /* 靠,马上执行挽救操作 */ //alert('err'); }); });