public ActionResult UserReportDeal(int id) { bizUserReports b = new bizUserReports(); UserReports model=b.Get(id); if (model.Status != 0) { return RedirectToAction("UserReports"); } ViewData["ID"] = id; return View(model); }
public ActionResult UserReportDeal(FormCollection f) { bizUserReports b = new bizUserReports(); UserReports model = b.Get(int.Parse(f["ID"])); model.Attach(); model.Status = byte.Parse(f["Status"]); model.AdminRe = f["AdminRe"].Trim(); model.ReTime = DateTime.Now; model.Detach(); b.Update(model); return RedirectToAction("UserReports"); }
public ActionResult TousuRe(int id,FormCollection f) { if (!UserCommon.CheckBBSAdminRight(AdminType)) return RedirectToAction("Tousu"); if (f["AdminRe"].Trim() == "") { TempData["Msg"] = "�ظ�����Ϊ��"; return RedirectToAction("TousuRe", new { id = id }); } bizUserReports bup = new bizUserReports(); bup.Deal(id, UserID, UserName, f["AdminRe"].Trim(), byte.Parse(f["jiangli"])); TempData["Msg"] = "�ظ��ɹ��ύ"; return RedirectToAction("Tousu"); }
public ActionResult TousuRe(int id) { if (!UserCommon.CheckBBSAdminRight(AdminType)) return RedirectToAction("Tousu"); bizUserReports bup = new bizUserReports(); UserReports model = bup.Get(id); ViewData["AdminRe"] = ""; if (model.AdminID != null) { if(model.AdminID!=UserID) return RedirectToAction("Tousu"); ViewData["AdminRe"] = model.AdminRe; } return View(model); }
public ActionResult TousuDelete(int id) { if (UserCommon.CheckBBSHighAdminRight(AdminType) == false) return RedirectToAction("Tousu"); bizUserReports bup = new bizUserReports(); bup.Delete(id); return RedirectToAction("Tousu"); }
public ActionResult Tousu(FormCollection f) { int userID = UserID; if (f["Remark"].Trim()=="") { TempData["Msg"] = "Ͷ����������Ϊ��"; return RedirectToAction("Tousu"); } if (f["yzCode"] != System.Web.HttpContext.Current.Session["code"].ToString()) { TempData["Msg"] = "��֤�벻��ȷ"; TempData["Remark"] = f["Remark"]; return RedirectToAction("Tousu"); } if ((new bizUserForbid()).GetByUserID(userID) != null) { TempData["Msg"] = "�����ڽ����ڼ䣬��Ͷ�ߡ�"; return RedirectToAction("Tousu"); } bizUserReports br = new bizUserReports(); UserReports model = new UserReports(); model.UserID = userID; model.UserName = UserName; model.Remark = f["Remark"].Trim(); br.Add(model); TempData["Msg"] = "���Ͷ���Ѿ��ɹ��ύ�����ǻ������ĺ�ʱ���ڴ����"; ViewData["Remark"] = ""; return RedirectToAction("Tousu"); }
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); }