var totalFld=",copies,price,totalprice,orderprice,ordertotalprice,volumes,yearprice,issuenum,notifycount,renewnum,";var sortTypeComBoxData=[{code:"asc",name:"升序"},{code:"desc",name:"降序"}];var isShowComBoxData=[{code:"1",name:"是"},{code:"0",name:"否"}];var alignTypeComBoxData=[{code:"left",name:"向左对齐"},{code:"center",name:"居中"},{code:"right",name:"向右对齐"}];var fontSizeComBoxData=[{code:"12",name:"小字体"},{code:"14",name:"中号字体"},{code:"16",name:"大字体"}];$.extend($.fn.propertygrid.defaults.columns[0][1],{formatter:function(c,b,d){if(b.name=="字体大小"){for(var a=0;a'+d+""},data:fieldComBoxData,onChange:function(g,d){if(g!=undefined&&g!=d&&eidtorGridIndex!=undefined){var h=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"code"});if(h.target){for(var e=0;e0){setValue("acceptFormatDesignIndex",d)}}});$("#acceptFormatDesignIndex").combobox({data:b.rows,valueField:"keycode",textField:"name",panelHeight:"auto",onChange:function(d,c){if(d!=undefined&&d!=c&&d.length>0){bindAcceptFormatDesignDataByKeyCode(d);setValue("formatdesign_index",d)}}});if(a){setValue("formatdesign_index",a)}}function bindAcceptFormatDesignDataByKeyCode(a){var b=base_path+"lib/design/get.do";var c={};c.pk=a;$.post(b,c,function(d){if(d.status=="0"){var e=d.rows[0];setDataToPageElement(e)}else{openMessageDlg(d.message)}},"json")}function setDataToPageElement(e){var f=JSON.parse(e.paramjson);setJsonData("formatdesign_",e);eidtorGridObject.datagrid("loadData",f.grid);var d=jsonPropertyGridData.rows;for(var c=0;c0){c=base_path+"lib/design/update.do"}$.post(c,b,function(g){if(g.status=="0"){bindPageFormatDesignDataGridList(g.rows[0].keycode);openMessageDlg(g.message,5000)}else{openMessageDlg(g.message)}},"json")}function specialHandling(a){if("E_READERFINELIST"==jsonFormatDesign.code){var c=false;var b=false;for(var d=0;d1){return openMessageDlg("已设置此字段,重复字段会导致输出报错!")}}}function onCheckEditorRow(a,b){if(b.total){$("#pageFormatDesignGrid").datagrid("checkRow",a);return false}else{$("#pageFormatDesignGrid").datagrid("uncheckRow",a);return false}};