$(function(){setGridHeight()});function searchTNRecord(){deleteGridData("recommendDataGridList");var a=base_path+"acq/recommend/pageUnion.do";var b={};b.catacode=getValue("catacode");b.acqstatus=getValue("acqstatus");if(getValue("begrecdate")>0){b["limit[0].condition"]="recdate";b["limit[0].value"]=getValue("begrecdate");b["limit[0].typeHandler"]="7"}if(getValue("endrecdate")>0){b["limit[1].condition"]="recdate";b["limit[1].value"]=getValue("endrecdate");b["limit[1].typeHandler"]="5"}$("#recommendDataGridList").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){console.log(c)},method:"post"})}function noComdRecord(){var d=$("#recommendDataGridList").datagrid("getSelected");if(!d){return openMessageDlg("请先选择一条征订书目,进行订购")}var b=$("#note").textbox("getText");var a=base_path+"acq/recommend/update.do";var c={};c.id=d.id;c.recstatus="4";c.note=b;$.post(a,c,function(e){if(e.status=="0"){openMessageDlg(e.message,5000);searchTNRecord()}else{openMessageDlg(e.message)}},"json")}function setGridHeight(){var a=$(window).height();var b=40;var c=a-130;$(".datagrid-div").css("height",c+"px");$("#recommendDataGridList").datagrid("resize");$(".easyui-panel").panel("resize")};