Пример #1
0
 public ActionResult UserSkill()
 {
     bizUserXSkill bus = new bizUserXSkill();
     bizUserSkill bs = new bizUserSkill();
     List<UserSkill> listSkill = BBSCache.Instance().ListSkill();
     List<UserXSkill> list = bus.ListByUser(UserID);
     ViewData["SkillList"] = list;
     return View(listSkill);
 }
Пример #2
0
 public ActionResult UserJiYujian(int id, FormCollection f)
 {
     bizUserSkill bs = new bizUserSkill();
     string result = bs.UseYujianShu(UserID, id);
     return Content(result);
 }
Пример #3
0
        /// <summary>
        /// 所有的技能列表
        /// </summary>
        /// <returns></returns>
        public List<UserSkill> ListSkill()
        {
            string SysName = CacheName.ListSkill.ToString();
            List<UserSkill> list = null;

            if (SysCache.Contains(SysName))
            {
                list = SysCache.Get(SysName) as List<UserSkill>;
            }

            if (list != null)
                return list;

            bizUserSkill bt = new bizUserSkill();
            list = bt.ListByLevel();
            SysCache.Add(SysName, list, new AbsoluteTime(DateTime.Now.AddHours(1)));
            return list;
        }
Пример #4
0
        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();
        }
Пример #5
0
 public ActionResult UserJiYujian(int id)
 {
     bizBBSMain bm = new bizBBSMain();
     bizUserSkill bus = new bizUserSkill();
     BBSMain model = bm.Get(id);
     UserSkill modelSkill = bus.Get(2);
     ViewData["ModelSkill"] = modelSkill;
     return View(model);
 }
Пример #6
0
 public ActionResult UserJiShidu(int id, FormCollection f)
 {
     bizUserSkill bs = new bizUserSkill();
     string result = bs.UseShiduShu(UserID, id, f["cardName"].ToString().ToLower());
     return Content(result);
 }
Пример #7
0
        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);
        }
Пример #8
0
        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);
        }
Пример #9
0
 public ActionResult UserJiQiqiu(int id)
 {
     bizBBSMain bm = new bizBBSMain();
     bizUserSkill bus = new bizUserSkill();
     BBSMain model = bm.Get(id);
     List<Card> listCard = BBSCache.Instance().ListCard();
     bizUserXCard buc = new bizUserXCard();
     UserSkill modelSkill = bus.Get(1);
     ViewData["ModelSkill"] = modelSkill;
     ViewData["CardList"] = listCard;
     ViewData["qiqiuNum"] = buc.GetCardNum(UserID, Enumerations.CardType.qiqiu.ToString());
     ViewData["bigqiqiuNum"] = buc.GetCardNum(UserID, Enumerations.CardType.bigqiqiu.ToString());
     return View(model);
 }
Пример #10
0
 public ActionResult UserAddMP(FormCollection f)
 {
     bizUserSkill bs = new bizUserSkill();
     string result = bs.UserAddMP(UserID, f["cardName"].ToString().ToLower());
     return Content(result);
 }