public ActionResult DeleteRows(JArray selectedRows, JArray FileManageGrid_fields, string fileName, int FileManageGrid_pageIndex, int FileManageGrid_pageSize) { var ids = new List <int>(); foreach (var id in selectedRows) { ids.Add(Convert.ToInt32(id)); } var isSuccess = FileBLL.Delete(ids.ToArray()); if (isSuccess) { ShowNotify("数据删除成功!"); } else { ShowNotify("数据删除失败!"); } var grid1 = UIHelper.Grid("FileManageGrid"); var recordCount = 0; var data = FileBLL.GetList(fileName, FileManageGrid_pageIndex + 1, FileManageGrid_pageSize, out recordCount); grid1.RecordCount(recordCount); grid1.DataSource(data, FileManageGrid_fields); return(UIHelper.Result()); }