$(function(){setGridHeight()});function searchRecord(){var a=base_path+"sys/bookmark/list.do";var b={};if(getValue("regdatebegdate")>0){b["limit[0].condition"]="regdate";b["limit[0].typeHandler"]="7";b["limit[0].value"]=getValue("regdatebegdate").replace(new RegExp("-","g"),"")}if(getValue("regdateenddate")>0){b["limit[1].condition"]="regdate";b["limit[1].typeHandler"]="5";b["limit[1].value"]=getValue("regdateenddate").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/bookmark/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/bookmark/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("请选择一条记录进行操作!")}};