///<summary>
 ///修改方法,返回Boolean类型,为true表示操作成功,否则操作失败
 ///生成时间:2011-5-5 21:16:16
 ///</summary>
 public Boolean UpdateBetaccount(Betaccount betaccount)
 {
     MySqlParameter[] param = new MySqlParameter[] {
         new MySqlParameter("?casino", betaccount.Casino),
         new MySqlParameter("?userid", betaccount.Userid),
         new MySqlParameter("?password", betaccount.Password),
         new MySqlParameter("?agent", betaccount.Agent),
         new MySqlParameter("?websitePossess", betaccount.WebsitePossess),
         new MySqlParameter("?selfPossess", betaccount.SelfPossess),
         new MySqlParameter("?commission", betaccount.Commission),
         new MySqlParameter("?multiple", betaccount.Multiple),
         new MySqlParameter("?group1", betaccount.Group1),
         new MySqlParameter("?address", betaccount.Address),
         new MySqlParameter("?address2", betaccount.Address2),
         new MySqlParameter("?enable", betaccount.Enable),
         new MySqlParameter("?zemo", betaccount.Zemo),
         new MySqlParameter("?isquzhi", betaccount.Isquzhi),
         new MySqlParameter("?cookie", betaccount.Cookie),
         new MySqlParameter("?time", betaccount.Time),
         new MySqlParameter("?operator", betaccount.Operator),
         new MySqlParameter("?operatortime", betaccount.Operatortime),
         new MySqlParameter("?operatorip", betaccount.Operatorip),
         new MySqlParameter("?id", betaccount.Id),
         new MySqlParameter("?anothername", betaccount.Anothername)
     };
     return(MySqlHelper.ExecuteNonQuery(SQL_UPDATE, param) > 0);
 }
예제 #2
0
        public string UpdateInfo(string id, string casino, string userid, string password, string agent, string websitepossess, string selfpossess, string commission,
                                 string multiple, string zemo, string group, string address, string address2, string cookie, string isquzhi, string enable, string ip)
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return("");
            }

            DateTime time = DateTime.Now;
            /** 修改之前的信息插入修改日志表 **/
            Betaccount    bet1   = BetaccountManager.GetBetaccountByID(int.Parse(id))[0];
            Betaccountlog betlog = new Betaccountlog();

            betlog.Casino         = bet1.Casino;
            betlog.Userid         = bet1.Userid;
            betlog.Password       = bet1.Password;
            betlog.Agent          = bet1.Agent;
            betlog.WebsitePossess = bet1.WebsitePossess;
            betlog.SelfPossess    = bet1.SelfPossess;
            betlog.Commission     = bet1.Commission;
            betlog.Multiple       = bet1.Multiple;
            betlog.Zemo           = bet1.Zemo;
            betlog.Group1         = bet1.Group1;
            betlog.Address        = bet1.Address;
            betlog.Address2       = bet1.Address2;
            betlog.Cookie         = bet1.Cookie;
            betlog.Isquzhi        = bet1.Isquzhi;
            betlog.Enable         = bet1.Enable;
            betlog.Time           = bet1.Time;
            betlog.Operator       = bet1.Operator;
            betlog.Operatorip     = bet1.Operatorip;
            betlog.Operatortime   = bet1.Operatortime;
            BetaccountlogManager.AddBetaccountlog(betlog);
            /** 插入完毕 **/

            /** 修改信息 **/
            Betaccount bet = new Betaccount();

            bet.Id             = int.Parse(id);
            bet.Casino         = int.Parse(casino);
            bet.Userid         = userid;
            bet.Password       = password;
            bet.Agent          = agent;
            bet.WebsitePossess = decimal.Parse(websitepossess);
            bet.SelfPossess    = decimal.Parse(selfpossess);
            bet.Commission     = decimal.Parse(commission);
            bet.Multiple       = decimal.Parse(multiple);
            bet.Zemo           = zemo;
            bet.Group1         = int.Parse(group);
            bet.Address        = address;
            bet.Address2       = address2;
            bet.Cookie         = cookie;
            bet.Isquzhi        = byte.Parse(isquzhi);
            bet.Enable         = byte.Parse(enable);
            bet.Time           = time;
            bet.Operator       = "admin";
            bet.Operatorip     = ip;
            bet.Operatortime   = time;
            return(BetaccountManager.UpdateBetaccount(bet).ToString());
        }
예제 #3
0
        public string DeleteInfo(string id)
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return("");
            }

            Betaccount bet = BetaccountManager.GetBetaccountByID(int.Parse(id))[0];

            //DateTime time = DateTime.Now;
            Betaccountcopy bet1 = new Betaccountcopy();

            bet1.Casino         = bet.Casino;
            bet1.Userid         = bet.Userid;
            bet1.Password       = bet.Password;
            bet1.Agent          = bet.Agent;
            bet1.WebsitePossess = bet.WebsitePossess;
            bet1.SelfPossess    = bet.SelfPossess;
            bet1.Commission     = bet.Commission;
            bet1.Multiple       = bet.Multiple;
            bet1.Zemo           = bet.Zemo;
            bet1.Group1         = bet.Group1;
            bet1.Address        = bet.Address;
            bet1.Address2       = bet.Address2;
            bet1.Cookie         = bet.Cookie;
            bet1.Isquzhi        = bet.Isquzhi;
            bet1.Enable         = bet.Enable;
            bet1.Time           = bet.Time;
            bet1.Operator       = bet.Operator;
            bet1.Operatorip     = bet.Operatorip;
            bet1.Operatortime   = bet.Operatortime;
            BetaccountcopyManager.AddBetaccountcopy(bet1);
            return(BetaccountManager.DeleteBetaccountByPK(id).ToString());
        }
 ///<sumary>
 ///修改信息
 ///时间:2010-9-12 14:30:59
 ///</sumary>
 public static Boolean UpdateBetaccount(Betaccount betaccount)
 {
     try
     {
         return betaccountService.UpdateBetaccount(betaccount);
     }
     catch (Exception ex)
     {
         //可以记录到异常日志
         return false;
     }
 }
예제 #5
0
        public string InsertInfo(string aname, string casino, string userid, string password, string agent, string websitepossess, string selfpossess, string commission,
                                 string multiple, string zemo, string group, string address, string address2, string cookie, string isquzhi, string enable, string ip)
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return("");
            }

            admin.PageBase page = new admin.PageBase();
            DateTime       time = DateTime.Now;
            string         i    = BetaccountManager.getCount(userid);

            if (i != "0")
            {
                return("-1");
            }
            Betaccount bet = new Betaccount();

            bet.Casino         = int.Parse(casino);
            bet.Userid         = userid;
            bet.Password       = password;
            bet.Agent          = agent;
            bet.WebsitePossess = decimal.Parse(websitepossess);
            bet.SelfPossess    = decimal.Parse(selfpossess);
            bet.Commission     = decimal.Parse(commission);
            bet.Multiple       = decimal.Parse(multiple);
            bet.Zemo           = zemo;
            bet.Group1         = int.Parse(group);
            bet.Address        = address;
            bet.Address2       = address2;
            bet.Cookie         = cookie;
            bet.Isquzhi        = byte.Parse(isquzhi);
            bet.Enable         = byte.Parse(enable);
            bet.Time           = time;
            bet.Operator       = page.CurrentManager.ManagerId;
            bet.Operatorip     = ip;
            bet.Operatortime   = time;
            bet.Anothername    = aname;
            return(BetaccountManager.AddBetaccount(bet).ToString());
        }