Beispiel #1
0
 public ActionResult Tousu()
 {
     string url = Request.QueryString["url"] == null ? "" : Request.QueryString["url"].ToString();
     string lou = Request.QueryString["lou"] == null ? "" : Request.QueryString["lou"].ToString();
     string username = Request.QueryString["username"] == null ? "" : Request.QueryString["username"].ToString();
     string types = Request.QueryString["types"] == null ? "" : Request.QueryString["types"].ToString();
     int userID = types == "" ? 0 : UserID ;
     if (TempData["Remark"]==null)
         TempData["Remark"] = "Ͷ�����ӣ�" + url + "\nͶ��¥�㣺"+ lou +"\nͶ���û���"+ username +"\nͶ��ԭ��";
     //TempData["Msg"] = "";
     int count;
     int pageSize = 10;
     int page = Request.QueryString["page"] == null ? 1 : int.Parse(Request.QueryString["page"].ToString());
     bizUserReports bur = new bizUserReports();
     List<UserReports> list = bur.List(userID,pageSize, page - 1, out count);
     ViewData["PageList"] = Page.GetPageList("/bbs/Tousu.html?types="+types, count, pageSize, page,true);
     ViewData["AdminType"] = AdminType;
     return View(list);
 }