Esempio n. 1
0
        /// <summary>
        /// 最近为开始的轮次
        /// </summary>
        /// <returns></returns>
        public static GrabHammerAction GetNoStartHammerAction()
        {
            bizGrabHammerAction biz = new bizGrabHammerAction();

            GrabHammerAction model = biz.GetNoStartHammerAction();

            if (model == null)
            {
                return null;
            }

            return model;
        }
Esempio n. 2
0
        public static bool AddUserHammer(string userName, int HammerCount,string remark)
        {
            bizUsers biz = new bizUsers();

            Users model = biz.Get(userName);

            if (model == null)
            {
                return false;
            }

            bizGrabHammerAction biz1 = new bizGrabHammerAction();
            DataSet ds = biz1.AddHammer(model.UserID, HammerCount, remark);

            if (MainFunc.IsDataSetNoNull(ds))
            {
                if (MainFunc.GetInteger(ds.Tables[0].Rows[0][0]) == 0)
                {
                    return true;
                }
            }

            return false;
        }
Esempio n. 3
0
 public static void UpdateHammerAction(GrabHammerAction model)
 {
     bizGrabHammerAction biz = new bizGrabHammerAction();
     biz.UpdateHammerAction(model);
 }
Esempio n. 4
0
        /// <summary>
        /// 得到现在开始的轮次
        /// </summary>
        /// <returns></returns>
        public static GrabHammerAction GetStartHammerAction()
        {
            bizGrabHammerAction biz = new bizGrabHammerAction();

            return biz.GetStartHammerAction();
        }
Esempio n. 5
0
 public static DataSet GetGlabHammer(int userid, int sid, string ip)
 {
     bizGrabHammerAction biz = new bizGrabHammerAction();
     return biz.GetGlabHammer(userid, sid, ip);
 }
Esempio n. 6
0
 /// <summary>
 /// 当天登录获得
 /// </summary>
 /// <param name="userid"></param>
 /// <returns></returns>
 public static DataSet GetExChangeHammer(int userid)
 {
     bizGrabHammerAction biz = new bizGrabHammerAction();
     return biz.GetExChangeHammer(userid);
 }
Esempio n. 7
0
 /// <summary>
 /// 清理抢锤子时间
 /// </summary>
 /// <param name="userid"></param>
 public static void ClearGrabHammer()
 {
     bizGrabHammerAction biz = new bizGrabHammerAction();
     biz.ClearGrabHammer();
 }