function InitBar(optionKey) { var html = "框架预制功能:"; html += ""; html += ""; html += ""; document.getElementById("bar").innerHTML = html; $("#changBar option[value='" + optionKey + "']").attr("selected", "selected"); } function HelpOnline() { var url = "http://ccform.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 + "?MyPK=" + GetQueryString("MyPK")); } function GetUrl(popModel) { switch (popModel) { case "Self": case "0": case 0: url = "0.Self.htm"; break; case "Map": case "1": case 1: url = "1.Map.htm"; break; case "FlowTable": //流程表. case "2": case 2: url = "2.FlowTable.htm"; break; case "FlowChart": case "3": //流程轨迹图. case 3: url = "3.FlowChart.htm"; break; case "FlowJobSchedule": //工作进度图. case "4": case 4: url = "4.FlowJobSchedule.htm"; break; case "FlowGanttChart": //甘特图. case "5": case 5: url = "5.FlowGanttChart.htm"; break; default: url = "0.Self.htm"; break; } return url; } function SaveAndClose() { Save(); window.close(); } //打开窗体. 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'); }); });