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