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": "通用功能", "Icon": "icon-note" }, { "No": "B", "Name": "实体单据", "Icon": "icon-note" }, { "No": "C", "Name": "字典表", "Icon": "icon-note" }, { "No": "D", "Name": "OA应用", "Icon": "icon-note" } ]; return json; } function GetDBDtl() { var json = [ { "No": MenuModel.SelfUrl, "Name": "自定义URL菜单", "GroupNo": "A", "Url": "SelfUrl.htm", "Icon": "icon-note" }, { "No": MenuModel.StandAloneFlow, "Name": "创建独立运行的流程", "GroupNo": "A", "Url": "StandAloneFlow.htm", "Icon": "icon-note" }, { "No": "RptWhite", "Name": "信息窗/大屏(白色风格)", "GroupNo": "A", "Url": "RptWhite.htm", "Icon": "icon-note" }, { "No": "RptBlue", "Name": "信息窗/大屏(蓝色风格)", "GroupNo": "A", "Url": "RptBlue.htm", "Icon": "icon-note" }, { "No": "Tabs", "Name": "Tabs页面容器", "GroupNo": "A", "Url": "Tabs.htm", "Icon": "icon-note" }, { "No": "Rpt3D", "Name": "3维报表", "GroupNo": "A", "Url": "Rpt3D.htm", "Icon": "icon-note" }, /*{ "No": MenuModel.FlowUrl, "Name": "内置流程菜单", "GroupNo": "A", "Url": "FlowUrl.htm", "Icon": "icon-note" },*/ /*{ "No": MenuModel.Func, "Name": "独立功能(方法)页", "GroupNo": "A", "Url": "Func.htm", "Icon": "icon-note" },*/ { "No": MenuModel.Dict, "Name": "创建实体", "GroupNo": "B", "Url": "Dict.htm", "Icon": "icon-note" }, { "No": "DBList", "Name": "数据源实体", "GroupNo": "B", "Url": "DBList.htm", "Icon": "icon-note" }, /* { "No": "DictQRCode", "Name": "表单填报二维码", "GroupNo": "B", "Url": "DictQRCode.htm" },*/ { "No": MenuModel.DictCopy, "Name": "复制实体", "GroupNo": "B", "Url": "DictCopy.htm", "Icon": "icon-note" }, { "No": MenuModel.Bill, "Name": "创建单据(beta)", "GroupNo": "B", "Url": "Bill.htm", "Icon": "icon-note" }, { "No": MenuModel.DictRef, "Name": "引入实体", "GroupNo": "B", "Url": "DictRef.htm", "Icon": "icon-note" }, /* { "No": MenuModel.BillRef, "Name": "引入单据", "GroupNo": "B", "Url": "BillRef.htm" },*/ { "No": MenuModel.DictTable, "Name": "创建字典表", "GroupNo": "C", "Url": "DictTable.htm", "Icon": "icon-note" }, { "No": "Task", "Name": "任务", "GroupNo": "D", "Url": "Task.htm", "Icon": "icon-note" }, { "No": "Info", "Name": "信息发布", "GroupNo": "D", "Url": "Info.htm", "Icon": "icon-note" }, { "No": "Calendar", "Name": "日历日程", "GroupNo": "D", "Url": "Calendar.htm", "Icon": "icon-note" }, { "No": "Notepad", "Name": "记事本", "GroupNo": "D", "Url": "Notepad.htm", "Icon": "icon-note" }, { "No": "KnowledgeManagement", "Name": "知识库", "GroupNo": "D", "Url": "KnowledgeManagement.htm", "Icon": "icon-note" }, { "No": "WorkRec", "Name": "工作日志", "GroupNo": "D", "Url": "WorkRec.htm", "Icon": "icon-note" } /* { "No": MenuModel.DictTableSpecNo, "Name": "引入字典表", "GroupNo": "C", "Url": "DictTableSpecNo.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?ModuleNo=" + GetQueryString("ModuleNo"); OpenEasyUiDialogExt(url, '高级设置', 600, 400, false); } function HelpOnline() { var url = "http://doc.ccbpm.cn"; window.open(url); } function changeOption() { var flowNo = GetQueryString("ModuleNo"); if (flowNo == null) flowNo = '001'; 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 + "?ModuleNo=" + flowNo); } 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'); }); });