/// <summary> /// 后台反馈分布视图 /// </summary> /// <returns></returns> public ActionResult BackFeedbackPartial(int?pageindex, int?IsDealwith) { List <FeedbackTable> list = list = FeedbackBll.SelectAllFeedback().Where(p => IsDealwith == null || p.IsDealwith == (IsDealwith ?? 0)).OrderBy(p => p.IsDealwith).ToList(); if (list != null && list.Count() > 0) { Session["fkcount"] = list.Count(); } else { Session["fkcount"] = 0; } ViewBag.pageindex = pageindex ?? 1; ViewBag.IsDealwith = IsDealwith ?? 2; Session["fkpagecount"] = Math.Ceiling(list.Count() / 10.0); Session["allfk"] = list.Skip(((pageindex ?? 1) - 1) * 10).Take(10).ToList(); return(PartialView("BackFeedbackPartial")); }
/// <summary> /// 后台反馈界面 /// </summary> /// <returns></returns> public ActionResult BackFeedbackIndex() { Session["li_1"] = 3; Session["li_2"] = 0; //查询所有反馈 List <FeedbackTable> list = FeedbackBll.SelectAllFeedback().OrderBy(p => p.IsDealwith).ToList(); if (list != null && list.Count() > 0) { Session["fkcount"] = list.Count(); } else { Session["fkcount"] = 0; } ViewBag.IsDealwith = 2; Session["fkpagecount"] = Math.Ceiling(list.Count() / 10.0); Session["allfk"] = list.Take(10).ToList(); return(View()); }