var initflag;var initJson;var checkedItems=[];$(function(){initJson=[{code:"page_sysid",key:"sysid",condition:"type",value:vType,linkage:[{code:"page_template",key:"template",condition:"sysid",callfun:"templateApp"}]},{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",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,libcode",key:"libcode",condition:"code",value:vLibcode},{code:"page_pertype",key:"pertype"},{code:"acqstatus",key:"acqstatus"},{code:"operid",key:"operid"},{code:"frequency",key:"frequency",fmt:"entity"},{code:"ordertype",key:"perordertype"}];_myPage.prototype.getLoadData(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)}})});_myPage.prototype.getLoadSuccess=function(a,b){mystorage.set("per_init_data",a);getPageConfig("page_type",_setConfig.prototype.callSet,"per");_fmtGridDataRows=a;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("您还没有选中任何数据!")}}$.messager.confirm("提示消息","您确定要执行当前操作吗?",function(d){if(d){onHnadlerSvaeBntScreen(null,true);$.post(a,c,function(e){onHnadlerSvaeBntScreen(null,false);console.log(e);if(e.status=="0"){searchOrderBib();openMessageDlg(e.message+"共处理"+e.rows[0]+"条数据")}else{openMessageDlg(e.message)}},"json")}})}function ischeckItem(){for(var a=0;a0&&getValue("keyword").length>0){a[""+getValue("perindex")+""]=getValue("keyword")}return a}_setConfig.prototype.otherAPP=function(a){if(a.orderyear){$(".orderyear").html(a.orderyear)}};bibController.prototype.set=function(){$("#pageconfig_setpara_dlg").dialog({onLoad:function(){perParamContorller.prototype.init();$(".check_batchno").hide();$(".bind_batchno").hide();$(".print-content-list").hide()}}).dialog("open")};