var jsonFormatDesign={code:"S_BGHLDCLASSCOUNT",width:"900",height:"600",top:80,left:180,tableArr:[]};var fieldComBoxData=[{field:"count(distinct lib_holdings.bibid)",name:"种数"},{field:"count(0)",name:"册数"},{field:"sum(nvl(lib_holdings.price,0.0))",name:"流通册价",format:"%.2f"}];var initJson=[{code:"lib_holdings.callno",name:"索书号"},{code:"lib_bibliography.classno",name:"分类号"},{code:"lib_bibliography.language",name:"语种"},{code:"lib_holdings.doctype",name:"文献类型"},{code:"lib_holdings.mediatype",name:"载体类型"},{code:"lib_holdings.bindtype",name:"装帧标识"},{code:"lib_holdings.libcode",name:"馆藏所属馆"},{code:"lib_holdings.curlibcode",name:"馆藏所在馆"},{code:"lib_holdings.curlocation",name:"所在馆藏地点",key:"location",condition:"libcode",value:vLibcode},{code:"lib_holdings.location",name:"所属馆藏地点",key:"location",condition:"libcode",value:vLibcode},];var countFormatDesignFieldComBoxData;$(function(){checkIdSelect();jsonFormatDesign.table="lib_holdings left join lib_bibliography on (bibid=lib_bibliography.id)";initSrceenAndJson();var d=[{key:"sysid"},{code:"status",key:"hldstatus"}];commonSetParaInit(null,"export_record",null,d);if($("#locprop").length>0){var c="";var b=base_path+"par/comcodename/list.do";var a=0;var e={};e["limit["+a+"].condition"]="type";e["limit["+a+"].typeHandler"]="0";e["limit["+a+"].value"]="3";$.post(b,e,function(g){var f=g.rows;$("#locprop").combobox({data:g.rows,valueField:"id",groupField:"group",textField:"name",panelHeight:"auto",loadFilter:function(h){var i={};i.id="";i.name="无";h.splice(0,0,i);return h},});initLoactionAtrr()},"json")}});function initLoactionAtrr(){var c="";var b=base_path+"par/location/list.do";var a=0;var d={};d["limit["+a+"].condition"]="libcode";d["limit["+a+"].typeHandler"]="3";d["limit["+a+"].value"]=getLibLimitForNoLimitLib();$.post(b,d,function(f){var e=f.rows;$("#curlocation").datagrid("loadData",e);$("#location").datagrid("loadData",e)},"json")}function checkIdSelect(){var b={type:"1",page:"1",rows:"500",status:"0"};if(vLibcode){b.libcode=vLibcode}b.orderBy=" code desc ";var a=base_path+"par/batchno/page.do";$.post(a,b,function(c){$("#checkid").datagrid("loadData",c.rows)},"json")}function getJsonAddOtherCondtion(k,f){var e=getValue("batchno");if(e){k.batchno=e;k.batchnoTypeHandler=getValue("comHandlerType");k.batchnocondtionIndex=f;f++}var b=getValue("export_beg_batchno");if(b){k.export_beg_batchno=b;k.batchnoBegTypeHandler="7";k.batchnoBegcondtionIndex=f;f++}var g=getValue("export_end_batchno");if(g){k.export_end_batchno=g;k.batchnoEndTypeHandler="5";k.batchnoEndcondtionIndex=f;f++}var d=getValue("qkbatchno");if(d){k.qkbatchno=d;k.batchnoTypeHandler=getValue("comHandlerType");k.qkbatchnocondtionIndex=f;f++}var i=getValue("export_beg_qkbatchno");if(i){k.export_beg_qkbatchno=i;k.batchnoBegTypeHandler="7";k.batchnoBegcondtionIndex=f;f++}var c=getValue("export_end_qkbatchno");if(c){k.export_end_qkbatchno=c;k.batchnoEndTypeHandler="5";k.batchnoEndcondtionIndex=f;f++}var a=getValue("comparelib");if(a=="1"){k["limit["+f+"].condition"]="lib_holdings.id";k["limit["+f+"].typeHandler"]="3";k["limit["+f+"].value"]="(select id from lib_holdings where libcode<>curlibcode)";f++}var j=getValue("compareloc");if(j=="1"){k["limit["+f+"].condition"]="lib_holdings.id";k["limit["+f+"].typeHandler"]="3";k["limit["+f+"].value"]="(select id from lib_holdings where location<>curlocation)";f++}var h=getValue("counttype");if(h=="0"){k["limit["+f+"].condition"]="lib_holdings.curlibcode";k["limit["+f+"].typeHandler"]="9";k["limit["+f+"].value"]=vLibcode;f++;k["limit["+f+"].condition"]="lib_holdings.libcode";k["limit["+f+"].typeHandler"]="0";k["limit["+f+"].value"]=vLibcode;f++}else{k["limit["+f+"].condition"]="lib_holdings.curlibcode";k["limit["+f+"].typeHandler"]="9";k["limit["+f+"].value"]=vLibcode+","+vLowerlibcode;f++;k["limit["+f+"].condition"]="lib_holdings.libcode";k["limit["+f+"].typeHandler"]="3";k["limit["+f+"].value"]=vLibcode+","+vLowerlibcode;f++}return k};