var initflag;var initJson;var checkedItems=[];$(function(){initflag="page_,";initJson=[{key:"sysid",condition:"type",value:"1"},{key:"ctrlno",condition:"libcode",value:vLibcode},{key:"z3950",condition:"libcode",value:vLibcode},{key:"bookseller",condition:"libcode",value:vLibcode},{key:"location",condition:"libcode",value:vLibcode},{key:"doctype",condition:"libcode",value:vLibcode},{key:"libcode",condition:"code",value:vLibcode}];commonSetParaInit(initflag,null,"all",initJson);$("#orderDataGridList").datagrid({idField:"id",onCheck:function(b,a){addcheckItem()},onUncheck:function(b,a){removeSingleItem(b,a)},onCheckAll:function(a){addcheckItem()},onUncheckAll:function(a){removeAllItem(a)}});getPageConfig("page_type",callSetParaResult);initShowPageInfo()});function initShowPageInfo(){$(".bind_batchno").hide();$(".check_batchno").hide();$("#config-tabs").tabs("select",1);var a=$(window).height();var b=a-86;$(".order-bacth-box").css("height",b+"px");$("#tabsGrid").tabs("resize")}function orderBacthRecord(b){var a=base_path+"per/order/renewSelective.do";if(b=="1"){a=base_path+"per/order/renewAll.do"}var c=getParamData();if(b=="2"){c.ordertype="2"}if(b!="1"){c.ids=checkedItems.join(",");if(!c.ids){return openMessageDlg("您还没有选中任何数据!")}}onHnadlerSvaeBntScreen(null,true);$.post(a,c,function(d){onHnadlerSvaeBntScreen(null,false);console.log(d);if(d.status=="0"){serachOrderBib();openMessageDlg(d.message+"共处理"+d.rows[0]+"条数据")}else{openMessageDlg(d.message)}},"json")}function ischeckItem(){for(var a=0;a0&&getValue("keyword").length>0){b[""+getValue("perindex")+""]=getValue("keyword")}$("#orderDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){},method:"post"})}function getParamData(){var a={};a.orderyear=getValue("page_orderyear");if(getValue("perindex").length>0&&getValue("keyword").length>0){a[""+getValue("perindex")+""]=getValue("keyword")}return a}function callSetParaResult(c){if(c.status=="0"){var b=c.rows[0];var a=JSON.parse(b.paramjson);if(a.sysid){setJsonData("page_",a);$(".orderyear").html(a.orderyear)}}else{openMessageDlg("请您先点点击设置按钮,设置相关参数!")}}function setPerPara(){$("#pageconfig_setpara_dlg").dialog("open")};