protected override ActionResult DoTask(string data) { string delStrIds = Request.QueryString["id"]; string pageNoStr = Request.QueryString["PageN"]; int pageNo = 0; if (!int.TryParse(pageNoStr, out pageNo)) pageNo = 0; string[] delStrIdCol = delStrIds.Split(','); List<int> delIds = new List<int>(); foreach (string delStrId in delStrIdCol) { string tmpDelIdStr = (delStrId ?? string.Empty).Trim(); if (string.IsNullOrEmpty(tmpDelIdStr)) continue; else { int tmpDelId = 0; if (int.TryParse(tmpDelIdStr, out tmpDelId)) delIds.Add(tmpDelId); else continue; } } HistoryCollection collection = new HistoryCollection(); collection.DeleteByHistoryIds(delIds.ToArray()); collection.PageSize = 10; string condition = PageHistoryTaskUtility.CurrentExpVal(); collection.FillByCondition(condition); if (pageNo > collection.PageCount) pageNo = collection.PageCount; collection.AbsolutePage = pageNo; collection.IsReturnDataTable = true; collection.FillByCondition(condition); ActionResult result = new ActionResult(); StringBuilder response = new StringBuilder(); response.Append(ActionTaskUtility.ReturnClientDataArray(collection.GetFillDataTable())); response.Append(string.Format("TmpStr={0};", collection.PageCount)); result.IsSuccess = true; result.ResponseData = response.ToString(); return result; }