var vType=1;var vArea;var vBibid;$(function(){setTabsGridGird();var a=[{key:"libcode",condition:"code",value:vLibcode}];commonSetParaInit(null,"record",null,a);$("#barcode").textbox("textbox").focus().select();enterEvent("barcode",searchHoldRecord);$(".easyui-panel").panel("resize")});function onCloseMessageFun(){$("#barcode").textbox("textbox").focus().select()}function searchHoldRecord(){var a=base_path+"hld/holding/getHoldingWithBib.do";var b={};if(getValue("barcode").length==0){return openMessageDlg("条码号不能为空")}b.barcode=getValue("barcode");$.post(a,b,function(c){if(c.status=="0"){var d=c.rows[0];setJsonData(null,d);vBibid=d.bibid;getReserveDataGridList(d.bibid)}else{openMessageDlg(c.message)}},"json")}function setTabsGridGird(){var a=$(window).height();var b=a-(324);$(".datagrid-div").css("height",b+"px");$("#tabsGrid").tabs("resize")}function lowerReserveRecord(){var a=$("#reserveDataGridList").datagrid("getSelected");$.messager.confirm("提示消息","您确定要对此条预借信息,进行下架处理吗?",function(c){if(c){var b=base_path+"cir/reserve/allocateReserve.do";var d={};d.barcode=getValue("barcode");$.post(b,d,function(e){if(e.status=="0"){openMessageDlg(e.message);getReserveDataGridList(vBibid)}else{openMessageDlg(e.message)}},"json")}})}function getReserveDataGridList(c){if(c>0){deleteGridData("reserveDataGridList");var a=base_path+"cir/reserve/unionPage.do";var b={};b.bibid=c;b.restype="1";$("#reserveDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(d){},method:"post"})}else{deleteGridData("reserveDataGridList")}}function setPara(){};