var selectEditBibId=0;var selectCenterBibId=0;var initJson;var tabGrid_title="(采编)";var noEditBibGridByCode=false;vPageNameFlag="回溯建库";$(function(){initJson=[{code:"page_sysid",key:"sysid",condition:"type",value:vType,linkage:[{code:"page_template",key:"template",condition:"sysid"}]},{code:"page_ctrlno",key:"ctrlno",condition:"libcode",value:vLibcode},{code:"page_z3950",key:"z3950",condition:"libcode",value:vLibcode},{code:"page_editmodel",key:"editmodel"},{code:"page_finsources",key:"finsources"},{code:"page_mediatype",key:"mediatype"},{code:"page_binding",key:"binding"},{code:"page_docsources",key:"docsources"},{code:"page_ncy,orderbib_ncy",key:"ncy"},{code:"page_bookseller",key:"bookseller",condition:"libcode",value:vLibcode},{code:"page_location",key:"location",condition:"libcode",value:vLibcode},{code:"page_doctype",key:"doctype",condition:"libcode",value:vLibcode},{code:"libcodeSelect",key:"libcode",condition:"code",value:vLibcode},{code:"page_pertype",key:"pertype"},{code:"operid",key:"operid"},];$("#acqDataGridList").datagrid("showColumn","status");_comGridObj.prototype.events()});var _comGridObj=function(){};_comGridObj.prototype.clear=function(){selectEditBibId=0;selectCenterBibId=0;clearGridData("editBibGrid,acqDataGridList,holdDataGridList");$("#tabsGrid").tabs("select",0)};_comGridObj.prototype.events=function(){$("#acqDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode,onSelect:_acqGridObj.prototype.select});$("#tabsGrid").tabs({onSelect:_tabsGridObj.prototype.select});$("#holdDataGridList").datagrid({rowStyler:rowStylerIsUpdateByLibcode})};var _acqGridObj=function(){};_acqGridObj.prototype.select=function(a,b){if(!isUpdateByLibcode(b.libcode)){_linkbuttonObj.prototype.status(true)}else{_linkbuttonObj.prototype.status(false)}_comGridObj.prototype.loadData(b.id,"hold");_detailData.prototype.set(b.id)};var _tabsGridObj=function(){};_tabsGridObj.prototype.select=function(b,a){if(a==1){$("#deleteHoldRecord").show()}else{$("#deleteHoldRecord").hide()}if(a==2){$("#z3950DownLoadToAddEditGrid").show()}else{$("#z3950DownLoadToAddEditGrid").hide()}if(a==3){$("#rfidDownLoadToAddEditGrid").show()}else{$("#rfidDownLoadToAddEditGrid").hide()}};_tabsGridObj.prototype.setTitle=function(a,b,c){};