예제 #1
0
        public string DeleteInfo1(string id)
        {
            if (Session[Util.ProjectConfig.ADMINUSER] == null)
            {
                return("");
            }

            Betaccountmax bet = BetaccountmaxManager.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(BetaccountmaxManager.DeleteBetaccountmaxByPK(id).ToString());
        }
 ///<summary>
 ///修改方法,返回Boolean类型,为true表示操作成功,否则操作失败
 ///生成时间:2011-3-25 15:00:07
 ///</summary>
 public Boolean UpdateBetaccountmax(Betaccountmax betaccountmax)
 {
     MySqlParameter[] param = new MySqlParameter[] {
         new MySqlParameter("?casino", betaccountmax.Casino),
         new MySqlParameter("?userid", betaccountmax.Userid),
         new MySqlParameter("?password", betaccountmax.Password),
         new MySqlParameter("?agent", betaccountmax.Agent),
         new MySqlParameter("?loginname", betaccountmax.Loginname),
         new MySqlParameter("?betcount", betaccountmax.Betcount),
         new MySqlParameter("?websitePossess", betaccountmax.WebsitePossess),
         new MySqlParameter("?selfPossess", betaccountmax.SelfPossess),
         new MySqlParameter("?commission", betaccountmax.Commission),
         new MySqlParameter("?multiple", betaccountmax.Multiple),
         new MySqlParameter("?group1", betaccountmax.Group1),
         new MySqlParameter("?address", betaccountmax.Address),
         new MySqlParameter("?address2", betaccountmax.Address2),
         new MySqlParameter("?enable", betaccountmax.Enable),
         new MySqlParameter("?credit", betaccountmax.Credit),
         new MySqlParameter("?zemo", betaccountmax.Zemo),
         new MySqlParameter("?isquzhi", betaccountmax.Isquzhi),
         new MySqlParameter("?cookie", betaccountmax.Cookie),
         new MySqlParameter("?time", betaccountmax.Time),
         new MySqlParameter("?islogin", betaccountmax.Islogin),
         new MySqlParameter("?operator", betaccountmax.Operator),
         new MySqlParameter("?operatortime", betaccountmax.Operatortime),
         new MySqlParameter("?operatorip", betaccountmax.Operatorip),
         new MySqlParameter("?id", betaccountmax.Id)
     };
     return(MySqlHelper2.ExecuteNonQuery(SQL_UPDATE, param) > 0);
 }
예제 #3
0
 ///<sumary>
 ///修改信息
 ///时间:2011-3-25 15:00:32
 ///</sumary>
 public static Boolean UpdateBetaccountmax(Betaccountmax betaccountmax)
 {
     try
     {
         return(betaccountmaxService.UpdateBetaccountmax(betaccountmax));
     }
     catch (Exception ex)
     {
         //可以记录到异常日志
         return(false);
     }
 }
예제 #4
0
        public string InsertInfo1(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    = BetaccountmaxManager.getCount(userid);

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

            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;
            return(BetaccountmaxManager.AddBetaccountmax(bet).ToString());
        }
예제 #5
0
        public string UpdateInfo1(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("");
            }

            admin.PageBase page = new admin.PageBase();
            DateTime       time = DateTime.Now;
            /** 修改之前的信息插入修改日志表 **/
            Betaccountmax bet1 = BetaccountmaxManager.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);
            /** 插入完毕 **/

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

            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       = page.CurrentManager.ManagerId;
            bet.Operatorip     = ip;
            bet.Operatortime   = time;
            return(BetaccountmaxManager.UpdateBetaccountmax(bet).ToString());
        }