Ejemplo n.º 1
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());
        }
Ejemplo n.º 2
0
 ///<summary>
 ///修改方法,返回Boolean类型,为true表示操作成功,否则操作失败
 ///生成时间:2010-9-12 14:33:48
 ///</summary>
 public Boolean UpdateBetaccountlog(Betaccountlog betaccountlog)
 {
     MySqlParameter[] param = new MySqlParameter[] {
         new MySqlParameter("?casino", betaccountlog.Casino),
         new MySqlParameter("?userid", betaccountlog.Userid),
         new MySqlParameter("?password", betaccountlog.Password),
         new MySqlParameter("?agent", betaccountlog.Agent),
         new MySqlParameter("?websitePossess", betaccountlog.WebsitePossess),
         new MySqlParameter("?selfPossess", betaccountlog.SelfPossess),
         new MySqlParameter("?commission", betaccountlog.Commission),
         new MySqlParameter("?multiple", betaccountlog.Multiple),
         new MySqlParameter("?group1", betaccountlog.Group1),
         new MySqlParameter("?address", betaccountlog.Address),
         new MySqlParameter("?address2", betaccountlog.Address2),
         new MySqlParameter("?enable", betaccountlog.Enable),
         new MySqlParameter("?zemo", betaccountlog.Zemo),
         new MySqlParameter("?isquzhi", betaccountlog.Isquzhi),
         new MySqlParameter("?cookie", betaccountlog.Cookie),
         new MySqlParameter("?time", betaccountlog.Time),
         new MySqlParameter("?operator", betaccountlog.Operator),
         new MySqlParameter("?operatortime", betaccountlog.Operatortime),
         new MySqlParameter("?operatorip", betaccountlog.Operatorip),
         new MySqlParameter("?id", betaccountlog.Id)
     };
     return(MySqlHelper2.ExecuteNonQuery(SQL_UPDATE, param) > 0);
 }
Ejemplo n.º 3
0
 ///<sumary>
 ///修改信息
 ///时间:2010-9-12 14:34:24
 ///</sumary>
 public static Boolean UpdateBetaccountlog(Betaccountlog betaccountlog)
 {
     try
     {
         return(betaccountlogService.UpdateBetaccountlog(betaccountlog));
     }
     catch (Exception ex)
     {
         //可以记录到异常日志
         return(false);
     }
 }