Esempio n. 1
0
        public ActionResult CureTask(int pageIndex = 1)
        {
            if (Session["CheckFeed"] == null || !(bool)Session["CheckCure"])
            {
                Response.Write("<script>history.go(0);</script>");
                return View("Error");
            }

            string check = Request.Form["Check"];
            if (check != null)
            {
                int searchItem = int.Parse(Request.Form["SearchItem"]);
                return RedirectToAction("SearchTask", new { check, searchItem, pageIndex });
            }
            var task = new Task();
            PagedList<Task> taskPagerList = task.GetTaskPagedList(TaskTypeId, pageIndex, PageSize);

            if (Request.IsAjaxRequest())
            {
                return PartialView("UCJqTaskList", taskPagerList);
            }

            ViewData["Search"] = new ListService().GetInfoSearchList();
            return View(taskPagerList);
        }
 public ActionResult SearchTask(string check, int searchItem, int pageIndex)
 {
     PagedList<Task> taskPagerList = new Task().GetTaskPagedList(TaskTypeId, pageIndex, PageSize, check,
                                                                 searchItem);
     return PartialView("UCJqTaskList", taskPagerList);
 }