var vLibcode=undefined;$(function(){setHoldGird();vLibcode=mystorage.get("libcode");var a=[{key:"location"},{key:"libcode"},{key:"doctype"},{key:"sysid",condition:"type",value:0}];_myPage.prototype.initData(a)});function setHoldGird(){var a=$(window).height();var b=a-(80);$(".datagrid-div").css("height",b+"px");$("#holdDataGridList").datagrid("resize")}function serachSendData(){var a=a;var b=base_path+"hld/holding/listSendHoldingWithBib.do";deleteGridData("holdDataGridList");var c={};c=getConditionByPage();c.rows=30;c.page=1;$("#holdDataGridList").datagrid({url:b,queryParams:c,onLoadSuccess:function(d){},method:"post"})}function getConditionByPage(){var a={};if(getValue("begkeyword").length==0&&getValue("endkeyword").length==0){return openMessageDlg("检索键值值至少有一项不能为空")}if(getValue("begkeyword").length>0){a["limit[0].condition"]=getValue("index");a["limit[0].typeHandler"]="7";a["limit[0].value"]=getValue("begkeyword")}if(getValue("endkeyword").length>0){a["limit[1].condition"]=getValue("index");a["limit[1].typeHandler"]="5";a["limit[1].value"]=getValue("endkeyword")}a["limit[2].condition"]="lib_bibliography.sysid";a["limit[2].value"]=getValue("sysid");return a}function onHandlerSendData(){var a=base_path+"hld/holding/listSendHoldingWithBib.do";var b={};b=getConditionByPage();$.post(a,b,function(c){if(c.status=="0"){if(c.total>0){openConfirmDlg("根据查询条件一共找到了["+c.total+"]条数据,您确定要执行审校批交送操作吗?",null,onHandlerSendDataResult,null)}}else{openMessageDlg(c.message)}},"json")}function onHandlerSendDataResult(){var b={};var a=base_path+"hld/holding/updateSendHoldingByBibWithAcqCheck.do";b=getConditionByPage();b.senddate=getCurDateYMD();$.post(a,b,function(c){if(c.status=="0"){openMessageDlg(c.message)}else{openMessageDlg(c.message)}},"json")};