function InitBar(optionKey) { var html = "小范围单选:"; html += ""; html += ""; html += ""; document.getElementById("bar").innerHTML = html; $("#changBar option[value='" + optionKey + "']").attr("selected", "selected"); } function GetDBGroup() { var json = [ { "No": "A", "Name": "基本设置" }, ]; return json; } function GetDBDtl() { var json = [ { "No": 0, "Name": "无,不设置", "GroupNo": "A", "Url": "0.None.htm" }, { "No": 1, "Name": "按文本输入的值", "GroupNo": "A", "Url": "1.ByInputText.htm" }, { "No": 2, "Name": "按照枚举值", "GroupNo": "A", "Url": "2.ByEnum.htm" }, { "No": 3, "Name": "按照系统外键表计算", "GroupNo": "A", "Url": "3.BySysKey.htm" }, { "No": 4, "Name": "按照SQL计算", "GroupNo": "A", "Url": "4.BySQL.htm" } ]; return json; } function HelpOnline() { var url = "http://ccbpm.mydoc.io"; window.open(url); } function changeOption() { 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 + "?FK_MapData=" + GetQueryString("FK_MapData") + "&KeyOfEn=" +GetQueryString("KeyOfEn")); } //高级设置. function AdvSetting() { var url = "Adv.htm?FK_MapData=" + GetQueryString("FK_MapData") + "&KeyOfEn=" + GetQueryString("KeyOfEn"); OpenEasyUiDialogExt(url, "高级设置", 400, 180, false); } 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; } return "0.None.htm"; }