function InitBar(optionKey) { var html = ""; // html += " "; // html += " "; html += "  选择脚本类型:"; html += ""; /* html += ""; html += ""; html += "";*/ html += ""; //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": "执行SQL模式", "GroupNo": "A", "Url": "0.SQL.htm" }, { "No": 1, "Name": "执行javascript脚本", "GroupNo": "A", "Url": "1.JS.htm" }, { "No": 2, "Name": "执行Url", "GroupNo": "A", "Url": "2.Url.htm" }, { "No": 3, "Name": "执行后台方法", "GroupNo": "A", "Url": "3.DTS.htm" } ]; return json; } 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"; } function Paras() { var url = "MethodParas.htm?No=" + GetQueryString("No"); SetHref(url); // OpenEasyUiDialogExt(url, '参数', 600, 400, false); } function FrmAttrs() { var no = GetQueryString("No"); var en = new Entity("BP.CCBill.Template.MethodFunc", no); var url = "Attrs.htm?No=" + GetQueryString("No") + "&FrmID=" + en.FrmID; window.open(url); // SetHref(url); // OpenEasyUiDialogExt(url, '参数', 600, 400, false); } function HelpOnline() { var url = "http://doc.ccbpm.cn"; window.open(url); } function changeOption() { var flowNo = GetQueryString("No"); 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 + "?No=" + flowNo); } function ToMethodParas() { SetHref("MethodParas.htm?No=" + GetQueryString("No")); } //打开窗体. function OpenEasyUiDialogExt(url, title, w, h, isReload) { OpenEasyUiDialog(url, "eudlgframe", title, w, h, "icon-property", true, null, null, null, function () { if (isReload == true) { Reload(); } }); } $(function () { jQuery.getScript(basePath + "/WF/Admin/Admin.js") .done(function () { /* 耶,没有问题,这里可以干点什么 */ // alert('ok'); }) .fail(function () { /* 靠,马上执行挽救操作 */ //alert('err'); }); });