function InitBar(optionKey) { var html = "发起前置导航:"; html += ""; html += ""; // html += ""; // html += ""; if (optionKey != StartGuideWay.None) html += ""; html += ""; document.getElementById("bar").innerHTML = html; $("#changBar option[value='" + optionKey + "']").attr("selected", "selected"); } function Adv() { var url = "Adv.htm?FK_Flow=" + GetQueryString("FK_Flow"); OpenEasyUiDialogExt(url, '高级设置', 600, 400, false); } function HelpOnline() { var url = "http://doc.ccbpm.cn"; window.open(url); } function changeOption() { var flowNo = GetQueryString("FK_Flow"); 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 + "?FK_Flow=" + flowNo); } function GetUrl(optionKey) { switch (parseInt(optionKey)) { case StartGuideWay.None: url = "0.None.htm"; break; case StartGuideWay.BySQLOne: url = "1.BySQLOne.htm"; break; case StartGuideWay.SubFlowGuide: url = "2.SubFlowGuide.htm"; break; case StartGuideWay.BySQLMulti: url = "6.BySQLMulti.htm"; break; case StartGuideWay.BySelfUrl: url = "7.BySelfUrl.htm"; break; case StartGuideWay.ByFrms: url = "8.ByFrms.htm"; break; case StartGuideWay.ByParentFlowModel: url = "9.ByParentFlowModel.htm"; break; case StartGuideWay.ByChildFlowModel: url = "10.ByChildFlowModel.htm"; break; default: url = "0.None.htm"; break; } return url; } function CheckFlow(flowNo) { var flow = new Entity('BP.WF.Flow', flowNo); flow.DoMethodReturnString("DoCheck"); //重置密码:不带参数的方法. } 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'); }); });