Exemple #1
0
        public void AddPlayCount(FlashGame model)
        {
            SysCache.Clear();

            model.Attach();
            model.PlayCount += 1;

            dal.Update(model);
        }
Exemple #2
0
 public int Add(FlashGame model)
 {
     SysCache.Clear();
     return dal.Add(model);
 }
Exemple #3
0
 public static int Add(FlashGame model)
 {
     return bizFlashGame.Instance().Add(model);
 }
Exemple #4
0
 public static void AddPlayCount(FlashGame model)
 {
     bizFlashGame.Instance().AddPlayCount(model);
 }
Exemple #5
0
        public ActionResult GameSuccess()
        {
            string gameName = Request["gameName"];
            string ftid = Request["ftid"];
            string GameRemark = Request["GameRemark"];
            string SmallImageUrl = Request["SmallImageUrl"];
            string BigImageUrl = Request["BigImageUrl"];
            string GameUrl = Request["GameUrl"];
            string GameWidth = Request["GameWidth"];
            string GameHight = Request["GameHight"];
            string initFrame = Request["initFrame"];
            string startFrame = Request["startFrame"];
            string overType = Request["overType"];
            string overFrame = Request["overFrame"];
            string overAttr = Request["overAttr"];
            string score = Request["score"];
            string noPreload = Request["noPreload"];
            string bgColor = Request["bgColor"];
            string res = Request["res"];
            string startFlag = Request["startFlag"];
            string IsAsc = Request["IsAsc"];
            string IsRecommend = Request["IsRecommend"];

            FlashGame model = new FlashGame();
            model.bgColor = bgColor;
            model.BigImageUrl = BigImageUrl;
            model.ftid = MainFunc.GetInteger(ftid);
            model.GameHight = MainFunc.GetInteger(GameHight);
            model.GameName = gameName;
            model.GameRemark = GameRemark;
            model.GameUrl = GameUrl;
            model.GameWidth = MainFunc.GetInteger(GameWidth);
            model.initFrame = initFrame;
            model.IsAsc = (byte)MainFunc.GetInteger(IsAsc);
            model.IsRecommend = (byte)MainFunc.GetInteger(IsRecommend);
            model.noPreload = noPreload;
            model.overAttr = overAttr;
            model.overFrame = overFrame;
            model.overType = overType;
            model.res = res;
            model.score = score;
            model.SmallImageUrl = SmallImageUrl;
            model.startFlag = startFlag;
            model.startFrame = startFrame;

            int fid = GameFacade.Add(model);

            GameWorldRecord r = new GameWorldRecord();
            r.fid = fid;
            r.PoAwards = 100000;
            r.UserId = 1000;
            r.UserName = "******";
            r.WorldRecord = MainFunc.GetDecimal(Request["WorldRecord"]);

            GameWorldRecordFacade.AddModel(r);

            return RedirectToAction("GameAdd", "PlayGame");
        }