var renderGridView=function(){};renderGridView.prototype.grid=function(){renderGridView.prototype.acqGrid()};renderGridView.prototype.initGrid=function(c,b){var a=$("#"+c.id);if(!a.attr("class")){a.datagrid({iconCls:"e-icon fa fa-table",title:"",singleSelect:true,fit:true,fitColumns:true,pagination:true,striped:true,columns:[b]})}};var renderControllerView=function(){};renderControllerView.prototype.bibindex=function(c,b){var d={key:"bibindex"};var a=base_path+"par/common/getInitData.do";$.post(a,d,function(h){var g=h.rows;var f=[];if(vType!="1"){for(var e=0;e0){initBibIndexSortFld()}};function initBibIndexSortFld(c,b){var d={key:"bibindex"};var a=base_path+"par/common/getInitData.do";$.post(a,d,function(h){var g=h.rows;if(!c){var f=[];for(var e=0;e0){initBibIndexSortFld("perindex");$("#bibindex").combobox({onChange:function(f,e){if(f=="ORDERNO"||f=="UNIFIEDNO"){setValue("bibindexSortFld",f);setValue("bibindexSortType","asc")}}})}};renderControllerView.prototype.addSearchCondtion=function(){if($("#titlehandler").length>0){var a=[{code:"0",name:"精确匹配"},{code:"1",name:"前方一致"},{code:"12",name:"模糊检索"}];$("#titlehandler").combobox({data:a,valueField:"code",textField:"name",panelHeight:"auto",onLoadSuccess:function(){$(this).combobox("select","1")}});$("#authorhandler").combobox({data:a,valueField:"code",textField:"name",panelHeight:"auto",onLoadSuccess:function(){$(this).combobox("select","1")}});var a=$("#bibindex").combobox("getData");$("#bibindextitle").combobox({data:a,valueField:"code",textField:"name",panelHeight:"200px",onLoadSuccess:function(){$(this).combobox("select","TITLE")}});$("#bibindexauthor").combobox({data:a,valueField:"code",textField:"name",panelHeight:"200px",onLoadSuccess:function(){$(this).combobox("select","AUTHOR")}})}if($("#bibdatehandler").length>0){$(".bibdate-13").hide();var a=[{code:"1",name:"前方一致"},{code:"13",name:"范围匹配"}];$("#bibdatehandler").combobox({data:a,valueField:"code",textField:"name",panelHeight:"auto",onChange:function(c,b){if(c=="13"){$(".bibdate-1").hide();$(".bibdate-13").show();setValue("bibdatekey","")}else{$(".bibdate-13").hide();$(".bibdate-1").show();setValue("bibdatekey7","");setValue("bibdatekey5","")}},onLoadSuccess:function(){$(this).combobox("select","1")}})}if($("#bibophandler").length>0){var a=[{code:"0",name:"精确匹配"},{code:"1",name:"前方一致"},{code:"12",name:"模糊检索"}];$("#bibophandler").combobox({data:a,valueField:"code",textField:"name",panelHeight:"auto",onLoadSuccess:function(){$(this).combobox("select","1")}});$("#titledoctype").combobox({data:_fmtGridDataRows.rows[0].doctype,valueField:"code",textField:"name",panelHeight:"200px",groupField:"group",loadFilter:function(b){var c={};c.code="";c.name="不限文献类型";b.splice(0,0,c);return b},onLoadSuccess:function(){$(this).combobox("select","")}});$("#titlecurloc").combobox({data:_fmtGridDataRows.rows[0].location,valueField:"code",textField:"name",panelHeight:"200px",groupField:"group",loadFilter:function(b){var c={};c.code="";c.name="不限馆藏地点";b.splice(0,0,c);return b},onLoadSuccess:function(){$(this).combobox("select","")}})}};renderControllerView.prototype.autobar=function(b){if($("#page_autobar").length>0){var c={};c.libcode=vLibcode;c.orderBy=" libcode desc ";var a=base_path+"par/autobar/page.do";$.post(a,c,function(d){var e="auto";if(d.rows.length>10){e="200px"}$("#page_autobar").combobox({data:d.rows,valueField:"code",textField:"name",panelHeight:e,loadFilter:function(f){var g={};g.code="";g.name="不限";f.splice(0,0,g);return f},onLoadSuccess:function(){$(this).combobox("select","")}});if($("#page_assetno").length>0){$("#page_assetno").combobox({data:d.rows,valueField:"code",textField:"name",panelHeight:e,onLoadSuccess:function(){$(this).combobox("select","")}})}if(b){b()}},"json")}};renderControllerView.prototype.batchno=function(b){if($("#orderbatchno").length>0){var c={type:"0",page:"1",rows:"500"};if(vType=="1"){c={type:"2",page:"1",rows:"500"}}if(b){c.libcode=b}c.orderBy=" libcode desc ";c.status="0";var a=base_path+"par/batchno/page.do";$.post(a,c,function(k){var h=[];for(var f=0;f10){l="200px"}$("#orderbatchno").combobox({data:h,valueField:"code",textField:"name",panelHeight:l,groupField:"group",loadFilter:function(i){var j={};j.code="";j.name="不限订购批号";i.splice(0,0,j);return i},onLoadSuccess:function(){$(this).combobox("select","")}})},"json")}};renderControllerView.prototype.batchNoByParam=function(d,c,b){if(_fmtGridDataRows){var e={type:c,page:"1",rows:"500"};e.orderBy=" libcode desc ";e.status="0";var a=base_path+"par/batchno/page.do";$.post(a,e,function(m){var l=[];for(var h=0;h0){var b={};b.orderBy=" libcode desc ";b.libcode=vLibcode;var a=base_path+"acq/fine/page.do";$.post(a,b,function(c){var d="auto";if(c.rows.length>10){d="200px"}$("#page_billno").combobox({data:c.rows,valueField:"billno",textField:"billno",panelHeight:d,loadFilter:function(e){var f={};f.billno="";f.billno="不限";e.splice(0,0,f);return e},onLoadSuccess:function(){$(this).combobox("select","")}})},"json")}};