var vType=1;var vArea;var vBibid;$(function(){setTabsGridGird();var a=[{key:"libcode",condition:"code",value:vLibcode}];commonSetParaInit(null,"record",null,a);$(".easyui-panel").panel("resize")});function onCloseMessageFun(){$("#barcode").textbox("textbox").focus().select()}function setTabsGridGird(){var a=$(window).height();var b=a-(50);$(".datagrid-div").css("height",b+"px");$("#reserveDataGridList").datagrid("resize")}function lowerReserveRecord(){var a=$("#reserveDataGridList").datagrid("getSelected");if(!a){return openMessageDlg("请先选择一条预借信息,进行操作")}$.messager.confirm("提示消息","您确定要对此条预借信息,进行下架处理吗?",function(c){if(c){var b=base_path+"cir/reserve/update.do";var d={};d.id=a.id;d.resstatus="2";$.post(b,d,function(e){if(e.status=="0"){openMessageDlg(e.message);searchReserveRecord()}else{openMessageDlg(e.message)}},"json")}})}function searchReserveRecord(){deleteGridData("reserveDataGridList");var a=base_path+"cir/reserve/unionPage.do";var b={};b.restype="1";b.resstatus="0";b.orderBy=" resdate desc ";$("#reserveDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){},method:"post"})}function setPara(){};