$(function () { loadScript(basePath + "/WF/Admin/Admin.js"); }); var nodeID = GetQueryString("FK_Node"); if (nodeID == undefined || nodeID == 0) nodeID = GetQueryString("NodeID"); var frmID = GetQueryString("FrmID"); if (frmID == null || frmID == undefined || frmID == "") frmID = GetQueryString("FK_MapData"); function InitBar(optionKey) { var html = "模板文件格式:"; html += ""; html += ""; document.getElementById("bar").innerHTML = html; $("#changBar option[value='" + optionKey + "']").attr("selected", "selected"); } function GetDBGroup() { var json = [ { "No": "0", "Name": "RTF模板","Url":"0.Rtf.htm"}, { "No": "1", "Name": "VSTOForWord模板", "Url": "1.VSTOForWord.htm" }, { "No": "2", "Name": "VSTOForExcel模板", "Url": "2.VSTOForExcel.htm" }, { "No": "3", "Name": "WPS模板", "Url": "3.Wps.htm" }, ]; return json; } function HelpOnline() { var url = "http://doc.ccbpm.cn"; 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_Node=" + nodeID+"&NodeID="+nodeID+"&FrmID="+frmID+"&FK_MapData="+frmID); } function GetUrl(optionKey) { var json = GetDBGroup(); for (var i = 0; i < json.length; i++) { var en = json[i]; if (en.No == optionKey) return en.Url; } return "0.Rtf.htm"; } //处理显示模板列表的数据 function SetTableList() { var ens = new Entities("BP.WF.Template.Frm.FrmPrintTemplates"); ens.Retrieve("FrmID", frmID); var fk_FrmPrintTemplate = GetQueryString("FK_FrmPrintTemplate"); var currBill = null; //增加处理. for (var i = 0; i < ens.length; i++) { var en = ens[i]; if (fk_FrmPrintTemplate == en.No) { currBill = en; } var newRow = ""; newRow = "