public string CheckAdd(int userID,string title, string content, byte isNiming, byte chenmo) { if (title.Trim() == "") return "标题不能为空"; if (content == "") return "内容不能为空"; bizUserXCard b=new bizUserXCard(); List<UserXCard> listCard = b.ListByUser(userID); int nimingCard=0; int bigNimingCard = 0; int chenmoCard = 0; nimingCard = b.GetCardNum(listCard, "niming"); bigNimingCard = b.GetCardNum(listCard, "bigniming"); chenmoCard = b.GetCardNum(listCard, "chenmo"); if (isNiming == 1) { if (nimingCard == 0) return "你没有匿名卡"; } if (isNiming == 2) { if (bigNimingCard == 0) return "你没有超级匿名卡"; } if (chenmo == 1) { if (chenmoCard == 0) return "你没有沉默卡"; } return ""; }
public string CheckAdd(int userID, string content, byte isNiming) { if (content == "") return "内容不能为空"; bizUserXCard b = new bizUserXCard(); List<UserXCard> listCard = b.ListByUser(userID); int nimingCard = 0; int bigNimingCard = 0; nimingCard = b.GetCardNum(listCard, "niming"); bigNimingCard = b.GetCardNum(listCard, "bigniming"); if (isNiming == 1) { if (nimingCard == 0) return "你没有匿名卡"; } if (isNiming == 2) { if (bigNimingCard == 0) return "你没有超级匿名卡"; } return ""; }
public ActionResult SelfBuyCard() { ViewData["CurrMenu"] = "�����̵�"; if (TempData["Msg"] == null) TempData["Msg"] = ""; List<Card> list = (new bizCard()).List(); bizUserXCard uc = new bizUserXCard(); List<UserXCard> ucList = uc.ListByUser(UserID); ViewData["UCList"] = ucList; return View(list); }
public ActionResult UserInfo() { if (UserCommon.CheckBBSHighAdminRight(AdminType) == false) return Redirect("/adminlogin"); string userName = Request.QueryString["username"].ToString(); bizUsers u = new bizUsers(); Users model=u.Get(userName); ViewData["cardList"] = (new bizCard()).List(); bizUserXCard uc = new bizUserXCard(); List<UserXCard> ucList = uc.ListByUser(model.UserID); ViewData["UCList"] = ucList; return View(model); }
public ActionResult UserJiXianxing(int id) { int bbsDeID = int.Parse(Request.QueryString["deID"].ToString()); bizBBSMain bm = new bizBBSMain(); bizBBSDE bd = new bizBBSDE(); bizUserSkill bus = new bizUserSkill(); //BBSMain model = bm.Get(id); UserSkill modelSkill = bus.Get(6); List<Card> listCard = BBSCache.Instance().ListCard(); bizUserXCard buc = new bizUserXCard(); List<UserXCard> list = buc.ListByUser(UserID); ViewData["ModelSkill"] = modelSkill; ViewData["CardList"] = listCard; ViewData["UserCard"] = list; ViewData["ID"] = id; ViewData["deID"] = bbsDeID; if (bbsDeID == 0) { BBSMain modelMain = bm.Get(id); ViewData["IsNiming"] = modelMain.IsNiming; } else { BBSDE modelDe = bd.Get(id, bbsDeID); ViewData["IsNiming"] = modelDe.IsNiming; } return View(); }
public ActionResult UserJiShidu(int id) { bizUsers bu = new bizUsers(); Users model = bu.Get(id); bizUserSkill bus = new bizUserSkill(); UserSkill modelSkill = bus.Get(7); List<Card> listCard = BBSCache.Instance().ListCard(); bizUserXCard buc = new bizUserXCard(); List<UserXCard> list = buc.ListByUser(UserID); ViewData["ModelSkill"] = modelSkill; ViewData["CardList"] = listCard; ViewData["UserCard"] = list; return View(model); }
public ActionResult UserJiRanse(int id) { bizBBSMain bm = new bizBBSMain(); bizUserSkill bus = new bizUserSkill(); BBSMain model = bm.Get(id); UserSkill modelSkill = bus.Get(5); List<Card> listCard = BBSCache.Instance().ListCard(); bizUserXCard buc = new bizUserXCard(); List<UserXCard> list = buc.ListByUser(UserID); ViewData["ModelSkill"] = modelSkill; ViewData["CardList"] = listCard; ViewData["UserCard"] = list; return View(model); }
public ActionResult UserJiJiedu() { bizCard c = new bizCard(); bizUserXCard uc = new bizUserXCard(); List<Card> listCard = BBSCache.Instance().ListCard(); bizUserXCard buc = new bizUserXCard(); List<UserXCard> list = buc.ListByUser(UserID); ViewData["CardList"] = listCard; ViewData["UserCard"] = list; return View(); }
public ActionResult UseCard(int id) { bizBBSMain bm = new bizBBSMain(); bizCard c = new bizCard(); bizUserXCard uc = new bizUserXCard(); BBSMain model = bm.Get(id); List<Card> listCard = BBSCache.Instance().ListCard(); bizUserXCard buc = new bizUserXCard(); List<UserXCard> list = buc.ListByUser(UserID); ViewData["CardList"] = listCard; ViewData["UserCard"] = list; ViewData["bbsMainID"] = id; return View(model); }