$(function(){setGridHeight()});function searchRecord(){var a=base_path+"sys/bookreview/listUnionReader.do";var b={};if(getValue("reviewdatebegdate")>0){b["limit[0].condition"]="reviewdate";b["limit[0].typeHandler"]="7";b["limit[0].value"]=getValue("reviewdatebegdate").replace(new RegExp("-","g"),"")}if(getValue("reviewdateenddate")>0){b["limit[1].condition"]="reviewdate";b["limit[1].typeHandler"]="5";b["limit[1].value"]=getValue("reviewdateenddate").replace(new RegExp("-","g"),"")}$("#datagrid-single").datagrid({url:a,queryParams:b,onLoadSuccess:function(c){},method:"post"})}function checkRecord(){var a=$("#datagrid-single").datagrid("getSelected");if(a){$.messager.confirm("提示消息","你确定要对选中的记录进行审核通过操作吗?",function(c){if(c){var b=base_path+"sys/bookreview/update.do";var d={};d.id=a.id;d.status="1";$.post(b,d,function(e){if(e.status=="0"){searchRecord()}else{openMessageDlg(e.message)}},"json")}})}else{openMessageDlg("请选择一条记录进行操作!")}}function deleteRecord(){var a=$("#datagrid-single").datagrid("getSelected");if(a){$.messager.confirm("提示消息","你确定要对选中的记录进行删除操作吗?",function(c){if(c){var b=base_path+"sys/bookreview/delete.do";var d={};d.id=a.id;$.post(b,d,function(e){if(e.status=="0"){searchRecord()}else{openMessageDlg(e.message)}},"json")}})}else{openMessageDlg("请选择一条记录进行操作!")}};