Пример #1
0
 public ActionResult gqResult1(int id)
 {
     ViewData["CurrMenu"] = "��ȭ����̨";
     bizGQuanMain bm = new bizGQuanMain();
     bizGQuanDe bd = new bizGQuanDe();
     bizUsers bu = new bizUsers();
     GQuanMain model = bm.Get(id);
     Users modelUser = bu.Get(model.UserID);
     List<GQuanDeDetail> list = bd.List(id);
     ViewData["modelMain"] = model;
     ViewData["modelUser"] = modelUser;
     return View(list);
 }
Пример #2
0
        public ActionResult gqPlay(FormCollection f)
        {
            bizGQuanDe gd = new bizGQuanDe();
            bizGQuanMain bm = new bizGQuanMain();
            GQuanMain model = bm.Get(int.Parse(f["id"]));

            string result=gd.GameDeal(int.Parse(f["id"]), UserID, byte.Parse(f["btype"]));
            return Content(result);
        }
Пример #3
0
 public ActionResult gqResult(int id)
 {
     ViewData["CurrMenu"] = "��ȭ����̨";
     bizGQuanMain bm = new bizGQuanMain();
     bizGQuanDe bd = new bizGQuanDe();
     bizUsers bu = new bizUsers();
     GQuanMain model = bm.Get(id);
     Users modelUser = bu.Get(model.UserID);
     ViewData["ID"] = id;
     ViewData["modelMain"] = model;
     ViewData["modelUser"] = modelUser;
     return View();
 }
Пример #4
0
 public ActionResult gqAdd2(int id, FormCollection f)
 {
     bizGQuanDe bd = new bizGQuanDe();
     bizGQuanMain bg = new bizGQuanMain();
     bizUsers bu = new bizUsers();
     GQuanMain model = bg.Get(id);
     int num = int.Parse(f["num"]);
     string str = "";
     for (int i = 1; i <= num; i++)
     {
         str += f["ju" + i]+"";
     }
     str = str.Trim();
     if (str.Length != model.Num)
     {
         TempData["Msg"] = "���õľ�������ȷ";
         return RedirectToAction("gqAdd2", new { id = id });
     }
     string result = bg.Add(UserID, num, model.JinbiNum, model.Pwd, str);
     if (result != "")
     {
         TempData["Msg"] = result;
         return RedirectToAction("gqAdd2", new { id = id });
     }
     else
         return RedirectToAction("gqIndex");
 }