public Boolean DoAddGame() { if (Session[Keys.SESSION_ADMIN_INFO] == null) { return(false); } else { Master master = Session[Keys.SESSION_ADMIN_INFO] as Master; if (rcm.GetRoleCompetence(master.RoleId, 11232)) { Games g = new Games(); g.Id = int.Parse(Request["GameId"]); g.GameNo = Request["GameNo"]; g.Name = Request["GameName"]; g.tjqf = int.Parse(Request["tjqf"]); g.GameProperty = Request["GameLx"] + "|" + Request["GameTz"] + "|" + Request["GameCzlx"] + "|" + Request["GameHm"] + "|" + Request["GameSfms"]; g.Is_Red = Request["IsRed"] == "on" ? 1 : 0; g.Is_Hot = Request["IsHot"] == "on" ? 1 : 0; g.Is_Lock = Request["IsLock"] == "on" ? 1 : 0; g.Sort_Id = int.Parse(Request["SortId"]); g.GameMoneyScale = int.Parse(Request["GameMoneyScale"]); g.GameMoneyName = Request["GameMoneyName"]; g.GameCom = Request["GameCom"]; g.GameBBS = Request["GameBBS"]; g.NewHand = Request["NewHand"]; g.Pic1 = Request["Pic1"]; g.Pic2 = Request["Pic2"]; g.Pic3 = Request["Pic3"]; g.Pic4 = Request["Pic4"]; g.GameListImg = Request["GameListImg"]; g.IndexTjImg = Request["IndexTjImg"]; g.IndexHbImg = Request["IndexHbImg"]; g.IndexHdImg = Request["IndexHdImg"]; g.game_url_hd = Request["game_url_hd"]; g.game_url_xzq = Request["game_url_xzq"]; g.GameDesc = Request["GameDesc"]; return(gm.AddGame(g)); } else { return(false); } } }