var alignTypeComBoxData=[{code:"left",name:"向左对齐"},{code:"center",name:"居中"},{code:"right",name:"向右对齐"}];var fontSizeComBoxData=[{code:"12",name:"小字体"},{code:"14",name:"中号字体"},{code:"16",name:"大字体"}];var fontWeightComBoxData=[{code:"900",name:"4"},{code:"600",name:"3"},{code:"300",name:"2"},{code:"100",name:"1"}];var sortTypeComBoxData=[{code:"asc",name:"升序"},{code:"desc",name:"降序"}];var jsonFormatDesign={code:"E_BIBLABEL"+vType,title:"输出书标格式设计",table:"lib_bibliography left join lib_holdings on bibid=lib_bibliography.id",gridtitle:"设置要输出的字段",othertitle:"基本参数设置",perviewtitle:"书标数据预览列表",width:"900",height:"700",top:80,left:180,tableArr:[{name:"lib_holdings"}]};var fieldComBoxData=[{field:"lib_holdings.id",code:"id",name:"馆藏记录号"},{field:"lib_holdings.callno",code:"callno",name:"索书号"},{field:"lib_holdings.barcode",code:"barcode",name:"条码号"}];if(vType=="1"){fieldComBoxData.push({field:"lib_holdings.volumeinfo",code:"volumeinfo",name:"卷册信息"})}if(vType=="2"){fieldComBoxData=[{field:"lib_per_allocation.volinfo",code:"volinfo",name:"卷册信息"},{field:"lib_per_allocation.barcode",code:"barcode",name:"条码号"},{field:"lib_per_check.shelfno",code:"shelfno",name:"架位号"}]}var jsonGridColumns=[{field:"field",title:"字段名称",width:"12%",formatter:onShowExportJosnComBoxData,editor:{type:"combobox",options:{valueField:"field",textField:"name",panelHeight:"auto",required:true,data:fieldComBoxData,onChange:function(c,a){if(c!=undefined&&c!=a&&eidtorGridIndex!=undefined){var d=eidtorGridObject.datagrid("getEditor",{index:eidtorGridIndex,field:"code"});if(d.target){for(var b=0;b";h+='
  • ";h+="";$("#perviewSetParamData").html(h)}function onBookMarkFlie(){var a=getValue("acceptFormatDesignIndex");if(a.length==0){return openMessageDlg("请选择书标的格式")}$("#bookMarkDlg").window("open")}function onResetAcceptFormatDesignPage(){$(".msg-box-upload").panel("resize");$(".acceptTextTip").show();$(".acceptTextTip").html("请选择要补打书标的txt文件,一行一个条码");$("#showPerviewOrgMarcData").html("")}function uploadSuccessHandler(a,b){if(b.status==0){datafilename=b.rows[0]}else{openMessageDlg(b.message)}}function onPerviewData(c){$("#showPerviewOrgMarcData").html("");if(datafilename){var a={};a.filename=datafilename;var b=base_path+"com/webuploader/perviewTextData.do";$.post(b,a,function(d){if(d.status=="0"){setDataToPageShowPerview(d)}else{if(d.status=="9003"){openMessageDlg(d.message)}else{openMessageDlg(d.message)}}},"json")}else{openMessageDlg("请检查您是否已上传文件")}}function setDataToPageShowPerview(d){var c=d.rows;if(c.length>0){var b="";for(var a=0;a"+(a+1)+","+c[a]+""}$("#showPerviewOrgMarcData").html(b)}}function onStartBookMark(){var a={};var b=getValue("acceptFormatDesignIndex");a.keycode=b;a.filename=datafilename;a.supplementbookmarkflag="bookmark";openPostWindow("exportlabelresult.jsp",a)}function onBookMarkSection(){var a={};var b=getValue("acceptFormatDesignIndex");if(b.length==0){return openMessageDlg("请选择书标的格式")}if(getValue("export_beg_keyword").length==0&&getValue("export_end_keyword").length==0){return openMessageDlg("起始键值和终止键值不能为空!")}a.keycode=b;a.begkey=getValue("export_beg_keyword");a.endkey=getValue("export_end_keyword");a.barcodeintervalflag="section";openPostWindow("exportlabelresult.jsp",a)};