Beispiel #1
0
    protected void CreateUserClick(object sender, EventArgs e)
    {
        string username = string.Empty, nickname = string.Empty, pwd = string.Empty, idcard = string.Empty, realname = string.Empty;

        username = CommonManager.Web.RequestForm("u", "");

        BLL.Member member = new BLL.Member();
        if (member.ExistName(username))
        {
            this.ErrorLabel.Text = "该用户名已经存在!";
            return;
        }

        nickname = Server.HtmlDecode(CommonManager.Web.RequestForm("n", "").Replace(",", "''"));
        if (member.ExistNick(nickname))
        {
            this.ErrorLabel.Text = "该昵称已经存在!";
            return;
        }
        pwd = CommonManager.Web.RequestForm("pwd", "");

        idcard   = CommonManager.Web.RequestForm("idcard", "");
        realname = CommonManager.Web.RequestForm("realname", "");

        int dbLogoId = member.SetLogoID(1, 1);

        int userId = member.Add_UserInfo(username, nickname, string.Empty, 1, dbLogoId, pwd, pwd, idcard, string.Empty, string.Empty, Utility.Common.RequestIP, string.Empty, realname);

        if (userId > 0)
        {
            this.ErrorLabel.ForeColor = System.Drawing.Color.Green;
            this.ErrorLabel.Text      = "用户创建成功!";
        }
        else
        {
            this.ErrorLabel.Text = "抱歉,创建失败,可能是服务器繁忙,请稍后再试!!";
        }
    }
Beispiel #2
0
    protected void CreateUserClick(object sender, EventArgs e)
    {
        string username = string.Empty, nickname = string.Empty, pwd = string.Empty,idcard=string.Empty,realname=string.Empty;
        username = CommonManager.Web.RequestForm("u", "");

        BLL.Member member = new BLL.Member();
        if (member.ExistName(username))
        {
            this.ErrorLabel.Text = "该用户名已经存在!";
            return;
        }

        nickname =Server.HtmlDecode(CommonManager.Web.RequestForm("n", "").Replace(",","''"));
        if (member.ExistNick(nickname))
        {
            this.ErrorLabel.Text = "该昵称已经存在!";
            return;
        }
        pwd = CommonManager.Web.RequestForm("pwd", "");

        idcard = CommonManager.Web.RequestForm("idcard", "");
        realname = CommonManager.Web.RequestForm("realname", "");

        int dbLogoId = member.SetLogoID(1, 1);

        int userId = member.Add_UserInfo(username, nickname, string.Empty, 1, dbLogoId, pwd, pwd, idcard, string.Empty, string.Empty, Utility.Common.RequestIP, string.Empty, realname);
        if( userId > 0 )
        {
            this.ErrorLabel.ForeColor=System.Drawing.Color.Green;
            this.ErrorLabel.Text = "用户创建成功!";
        }
        else
        {
            this.ErrorLabel.Text = "抱歉,创建失败,可能是服务器繁忙,请稍后再试!!";

        }
    }
Beispiel #3
0
        protected void btnSubmit_ServerClick(object sender, EventArgs e)
        {
            string validcode = Common.GetStringOfForm("validcode");
            if (ValidCode.CurrentCode != validcode)
            {
                Label1.Text = "��ܰ��ʾ����֤������������������룡";
                Label1.Visible = true;
                return;
            }

            string username = Common.FilterString(Common.GetStringOfForm("username"));
            //�dzƿ��������κ��ַ�������Ҫ��������HTML���룬��ֹ����ľ��ű��ַ���������"'"Ϊ"''"������SQLע��ʽ����
            string nickname = Server.HtmlEncode(Common.GetStringOfForm("nickname").Replace("'", "''"));
            string sex = Common.FilterString(Common.GetStringOfForm("sex"));
            string pwd = Common.FilterString(Common.GetStringOfForm("pwd"));//Common.FilterString( Common.GetStringOfForm( "hidPwd" ) );//
            string ejpwd ="";//Common.FilterString( Common.GetStringOfForm( "hidPwd2" ) );//
            string email ="";
            string mobile = Common.FilterString(Common.GetStringOfForm("mobile"));//�绰���浽TUserInfo���PhoneNum��
            string promoter = Common.FilterString(Common.GetStringOfForm("promoter"));
            string logoid = Common.FilterString(Common.GetStringOfForm("logoid"));
            string idcard = Common.FilterString(Common.GetStringOfForm("idcard"));
            string signDsc = Server.HtmlEncode(Common.GetStringOfForm("sign").Replace("'", "''"));
            string qqnum = "";
            string realname ="";
            if (string.IsNullOrEmpty(sex) || !CommonManager.String.IsInteger(sex))
                sex = "1";

            if (string.IsNullOrEmpty(logoid) || !CommonManager.String.IsInteger(logoid))
                logoid = "1";

            //������ע��ʱѡ��ְҵ�͵���
            //string occu = CommonManager.Web.RequestForm( "txtOccuPation", "" );
            //string prov = CommonManager.Web.RequestForm( "hidProvince", "" );
            //string city = CommonManager.Web.RequestForm( "hidCity", "" );
            //string address = Server.HtmlEncode( CommonManager.Web.RequestForm( "txtAddress", "" ) );
            //�����������Ϊ�գ��Ͱ�����Ϊ��¼����
            if (ejpwd.Trim().Length == 0)
            {
                ejpwd = pwd;
            }

            BLL.Member member = new BLL.Member();
            int dbLogoId = member.SetLogoID(int.Parse(sex), int.Parse(logoid));
            /*
            string userId = Utility.SqlHelper.GetMaxID("UserID", "TUsers").ToString();

            //1.����TUsers��

            member.Add2TUsers( userId, username, nickname, pwd, ejpwd, int.Parse( sex ), dbLogoId );

            //2.����TUserInfo��
            int walletMoney = BLL.Config.GoldCountOfReg();
            BLL.Promotion promo = new BLL.Promotion();
            bool isTg = false;
            if( promoter.Trim().Length > 0 )
            {
                if( member.ExistName( promoter ) && promo.ExistTGUser( promoter ) )
                {
                    isTg = true;
                    walletMoney += BLL.Config.GoldCountOfRegTG();
                }
            }*/

            #region �����ж��Ƿ��������������ڼ�
            /*
            bool isaction = false;
            if (RookiePresentConfig.Config.IsEnable)
            {
            if (RookiePresentConfig.Config.BeginDate <= DateTime.Now && RookiePresentConfig.Config.EndDate >= DateTime.Now)
            {
                isaction = true;
                //walletMoney += RookiePresentConfig.Config.Money;
                //���͵���
                if (RookiePresentConfig.Config.PropPresent.Rows.Count > 0)
                {
                    string select = "select Count(PropID) from TPropDefine where PropID=@PropID;";
                    string sql = "insert into TUserProp (UserID,PropID,HoldCount) values ({0},{1},{2});";
                    StringBuilder sqlCollection = new StringBuilder();
                    foreach (DataRow row in RookiePresentConfig.Config.PropPresent.Rows)
                    {
                        int tmpcount = DbSession.Default.FromSql(select).AddInputParameter("@PropID", DbType.Int32, row["PropID"]).ToScalar<int>();
                        if (tmpcount <= 0)
                            continue;
                        sqlCollection.AppendFormat(sql, userId, row["PropID"].ToString(), row["Amount"].ToString());
                    }
                    if (sqlCollection.ToString().Length > 0)
                    {
                        DbSession.Default.FromSql(sqlCollection.ToString()).Execute();
                    }
                }
            }
            else
            {
                isaction = false;
                RookiePresentConfig.Config.IsEnable = false;
                RookiePresentConfig.Save(RookiePresentConfig.Config);
            }
            }*/
            #endregion

            /*member.Add2TUserInfo(userId, walletMoney, Common.RequestIP);
            //�޸�Ϊ���·�����
            //member.Add2TUserInfo( userId, walletMoney, Common.RequestIP, occu, prov, city, address, mobile );

            //3.����Web_Users��
            member.Add2Web_Users(userId, email, mobile, Common.RequestIP, idcard);
            //member.Add2Web_Users( userId, email, "", Common.RequestIP );

            //4.�����ƹ���־��Ϣ
            if( isTg )
            {
            promo.AddLog( promoter, userId );
            }
            */
            string agencyName = UiCommon.StringConfig.GetAgencyNameByTwoDname(); //��ȡ������ȡ�������˺�
            int userId =Convert.ToInt32(member.Add_UserInfo(username, nickname, promoter, int.Parse(sex), dbLogoId, pwd, ejpwd, idcard, mobile, email, Common.RequestIP, qqnum, realname,agencyName,signDsc)["UserID"]);
            if (userId > 0)
            {
                //5.�����û���Ϣ
                UiCommon.UserLoginInfo.SetInfo(userId.ToString(), username);

                //�����û���½��Ϣ
                new BLL.Member().UpdateLastLogin(username, Utility.Common.RequestIP);

                //6.��¼��ǰ�ͻ������ϵ�ע��ʱ�䵽cookies
                BCSTCache.Default.Save<CookiesCache>("RegDateTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));

                //Limit.outMsgBox("��ܰ��ʾ��\\n\\n��Աע��ɹ���", "bzwp://regsucceed?username="******"", true);

                //Response.Write("<script language=javascript>window.alert('" + Message + "');" + str + "</script>");

                string ieEvent = "bzwp://regsucceed?username="******"&userid=" + userId;
                Response.Write("<script language=javascript>window.location.href='" + ieEvent + "';</script>");
            }
            else
            {
                Label1.Text = "��Ǹ��ע��ʧ�ܣ������Ƿ�������æ�����Ժ����ԣ�";
                return;
            }
            /*
            if (isaction)
            {
                Response.Write("<script language=javascript>alert('�����ǻ�ڼ䣬�����ϵͳ���͸����ĵ��ߣ�\\r\\n�쵽��Ϸ�ĵ�������ȥ�������ǵĵ��߰ɣ�');window.location.href='" + ieEvent + "';</script>");
            }
            else
            {
                Response.Write("<script language=javascript>window.location.href='" + ieEvent + "';</script>");
            }
            */
        }
Beispiel #4
0
        protected void btnSubmit_ServerClick(object sender, EventArgs e)
        {
            string validcode = Common.GetStringOfForm("validcode");
            if (ValidCode.CurrentCode != validcode)
            {
                /*Label1.Text = "��ܰ��ʾ����֤������������������룡";
                Label1.Visible = true;*/
                CommonManager.Web.RegJs(this, "alert('��ܰ��ʾ����֤������������������룡');location.href=location.href;", true);
                return;
            }

            string username = Common.FilterString(Common.GetStringOfForm("username"));
            //�dzƿ��������κ��ַ�������Ҫ��������HTML���룬��ֹ����ľ��ű��ַ���������"'"Ϊ"''"������SQLע��ʽ����
            string nickname = Server.HtmlEncode(Common.GetStringOfForm("nickname").Replace("'", "''"));
            string sex = Common.FilterString(Common.GetStringOfForm("sex"));
            string pwd = Common.FilterString(Common.GetStringOfForm("pwd"));//Common.FilterString(Common.GetStringOfForm("pwd"));
            string ejpwd = Common.FilterString(Common.GetStringOfForm("ejpwd"));//Common.FilterString(Common.GetStringOfForm("ejpwd"));
            string email = Common.FilterString(Common.GetStringOfForm("email"));
            string mobile = Common.FilterString(Common.GetStringOfForm("mobile"));//�绰���浽TUserInfo���PhoneNum��
            string promoter = Common.FilterString(Common.GetStringOfForm("promoter"));
            string logoid = Common.FilterString(Common.GetStringOfForm("hidLogoID"));
            string idcard = Common.FilterString(Common.GetStringOfForm("idcard"));
            string qqNum = Common.FilterString(Common.GetStringOfForm("qqnum"));
            string realname = Common.FilterString(Common.GetStringOfForm("realname"));
            if (string.IsNullOrEmpty(sex) || !CommonManager.String.IsInteger(sex))
            {
                sex = "1";
            }
            if (string.IsNullOrEmpty(logoid) || !CommonManager.String.IsInteger(logoid))
            {
                logoid = "1";
            }

            //������ע��ʱѡ��ְҵ�͵���
            //string occu = CommonManager.Web.RequestForm( "txtOccuPation", "" );
            //string prov = CommonManager.Web.RequestForm( "hidProvince", "" );
            //string city = CommonManager.Web.RequestForm( "hidCity", "" );
            //string address = Server.HtmlEncode( CommonManager.Web.RequestForm( "txtAddress", "" ) );
            //�����������Ϊ�գ��Ͱ�����Ϊ��¼����
            if (ejpwd.Trim().Length == 0)
            {
                ejpwd = pwd;
            }
            BLL.Member member = new BLL.Member();
            int dbLogoId = member.SetLogoID(int.Parse(sex), int.Parse(logoid));

            #region �����ж��Ƿ��������������ڼ�
            /*
            bool isaction = false;
            if (RookiePresentConfig.Config.IsEnable)
            {
            if (RookiePresentConfig.Config.BeginDate <= DateTime.Now && RookiePresentConfig.Config.EndDate >= DateTime.Now)
            {
                isaction = true;
                //walletMoney += RookiePresentConfig.Config.Money;
                //���͵���
                if (RookiePresentConfig.Config.PropPresent.Rows.Count > 0)
                {
                    string select = "select Count(PropID) from TPropDefine where PropID=@PropID;";
                    string sql = "insert into TUserProp (UserID,PropID,HoldCount) values ({0},{1},{2});";
                    StringBuilder sqlCollection = new StringBuilder();
                    foreach (DataRow row in RookiePresentConfig.Config.PropPresent.Rows)
                    {
                        int tmpcount = DbSession.Default.FromSql(select).AddInputParameter("@PropID", DbType.Int32, row["PropID"]).ToScalar<int>();
                        if (tmpcount <= 0)
                            continue;
                        sqlCollection.AppendFormat(sql, userId, row["PropID"].ToString(), row["Amount"].ToString());
                    }
                    if (sqlCollection.ToString().Length > 0)
                    {
                        DbSession.Default.FromSql(sqlCollection.ToString()).Execute();
                    }
                }
            }
            else
            {
                isaction = false;
                RookiePresentConfig.Config.IsEnable = false;
                RookiePresentConfig.Save(RookiePresentConfig.Config);
            }
            }*/
            #endregion

            //2012-12-16 ������������ȡ������ID�����������ڴ����������޸���
            string agencyName = UiCommon.StringConfig.GetAgencyNameByTwoDname(); //��ȡ������ȡ�������˺�

            int userId = Convert.ToInt32(member.Add_UserInfo(username, nickname, promoter, int.Parse(sex), dbLogoId, pwd, ejpwd, idcard, mobile, email, Common.RequestIP, qqNum, realname, agencyName)["UserID"]);
            if (userId > 0)
            {
                //5.�����û���Ϣ
                UiCommon.UserLoginInfo.SetInfo(userId.ToString(), username);

                //�����û���½��Ϣ
                new BLL.Member().UpdateLastLogin(username, Utility.Common.RequestIP);

                //6.��¼��ǰ�ͻ������ϵ�ע��ʱ�䵽cookies
                BCSTCache.Default.Save<CookiesCache>("RegDateTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
                Response.Redirect("/Manage/Default.aspx");
            }
            //else if (userId == -3)
            //{
            //    CommonManager.Web.RegJs(this, "alert('��Ǹ��ע��ʧ�ܣ���IP����ע������������');location.href=location.href;", true);
            //}
            //else if (userId == -4)
            //{
            //    CommonManager.Web.RegJs(this, "alert('��Ǹ��ע��ʧ�ܣ������֤���Ѵﵽע��������ƣ�');location.href=location.href;", true);
            //}
            else
            {
                CommonManager.Web.RegJs(this, "alert('��Ǹ��ע��ʧ�ܣ������Ƿ�������æ�����Ժ����ԣ�');location.href=location.href;", true);
            }
        }
Beispiel #5
0
        protected void btnSubmit_ServerClick(object sender, EventArgs e)
        {
            string validcode = Common.GetStringOfForm("validcode");

            if (ValidCode.CurrentCode != validcode)
            {
                /*Label1.Text = "温馨提示:验证码输入错误,请重新输入!";
                 * Label1.Visible = true;*/
                CommonManager.Web.RegJs(this, "alert('温馨提示:验证码输入错误,请重新输入!');location.href=location.href;", true);
                return;
            }

            string username = Common.FilterString(Common.GetStringOfForm("username"));
            //昵称可以输入任何字符,所以要对它进行HTML编码,防止恶意木马脚本字符串;过滤"'"为"''",避免SQL注入式攻击
            string nickname = Server.HtmlEncode(Common.GetStringOfForm("nickname").Replace("'", "''"));
            string sex      = Common.FilterString(Common.GetStringOfForm("sex"));
            string pwd      = Common.FilterString(Common.GetStringOfForm("pwd"));    //Common.FilterString(Common.GetStringOfForm("pwd"));
            string ejpwd    = Common.FilterString(Common.GetStringOfForm("ejpwd"));  //Common.FilterString(Common.GetStringOfForm("ejpwd"));
            string email    = Common.FilterString(Common.GetStringOfForm("email"));
            string mobile   = Common.FilterString(Common.GetStringOfForm("mobile")); //电话保存到TUserInfo表的PhoneNum列
            string promoter = Common.FilterString(Common.GetStringOfForm("promoter"));
            string logoid   = Common.FilterString(Common.GetStringOfForm("hidLogoID"));
            string idcard   = Common.FilterString(Common.GetStringOfForm("idcard"));
            string qqNum    = Common.FilterString(Common.GetStringOfForm("qqnum"));
            string realname = Common.FilterString(Common.GetStringOfForm("realname"));

            if (string.IsNullOrEmpty(sex) || !CommonManager.String.IsInteger(sex))
            {
                sex = "1";
            }
            if (string.IsNullOrEmpty(logoid) || !CommonManager.String.IsInteger(logoid))
            {
                logoid = "1";
            }

            //新增:注册时选择职业和地区
            //string occu = CommonManager.Web.RequestForm( "txtOccuPation", "" );
            //string prov = CommonManager.Web.RequestForm( "hidProvince", "" );
            //string city = CommonManager.Web.RequestForm( "hidCity", "" );
            //string address = Server.HtmlEncode( CommonManager.Web.RequestForm( "txtAddress", "" ) );
            //如果银行密码为空,就把它设为登录密码
            if (ejpwd.Trim().Length == 0)
            {
                ejpwd = pwd;
            }
            BLL.Member member   = new BLL.Member();
            int        dbLogoId = member.SetLogoID(int.Parse(sex), int.Parse(logoid));

            #region 增加判断是否在新手送礼包活动期间

            /*
             * bool isaction = false;
             * if (RookiePresentConfig.Config.IsEnable)
             * {
             * if (RookiePresentConfig.Config.BeginDate <= DateTime.Now && RookiePresentConfig.Config.EndDate >= DateTime.Now)
             * {
             *  isaction = true;
             *  //walletMoney += RookiePresentConfig.Config.Money;
             *  //赠送道具
             *  if (RookiePresentConfig.Config.PropPresent.Rows.Count > 0)
             *  {
             *      string select = "select Count(PropID) from TPropDefine where PropID=@PropID;";
             *      string sql = "insert into TUserProp (UserID,PropID,HoldCount) values ({0},{1},{2});";
             *      StringBuilder sqlCollection = new StringBuilder();
             *      foreach (DataRow row in RookiePresentConfig.Config.PropPresent.Rows)
             *      {
             *          int tmpcount = DbSession.Default.FromSql(select).AddInputParameter("@PropID", DbType.Int32, row["PropID"]).ToScalar<int>();
             *          if (tmpcount <= 0)
             *              continue;
             *          sqlCollection.AppendFormat(sql, userId, row["PropID"].ToString(), row["Amount"].ToString());
             *      }
             *      if (sqlCollection.ToString().Length > 0)
             *      {
             *          DbSession.Default.FromSql(sqlCollection.ToString()).Execute();
             *      }
             *  }
             * }
             * else
             * {
             *  isaction = false;
             *  RookiePresentConfig.Config.IsEnable = false;
             *  RookiePresentConfig.Save(RookiePresentConfig.Config);
             * }
             * }*/
            #endregion



            //2012-12-16 根据域名来获取代理商ID,域名设置在代理商资料修改中
            string agencyName = UiCommon.StringConfig.GetAgencyNameByTwoDname(); //获取域名获取代理商账号



            int userId = Convert.ToInt32(member.Add_UserInfo(username, nickname, promoter, int.Parse(sex), dbLogoId, pwd, ejpwd, idcard, mobile, email, Common.RequestIP, qqNum, realname, agencyName)["UserID"]);
            if (userId > 0)
            {
                //5.保存用户信息
                UiCommon.UserLoginInfo.SetInfo(userId.ToString(), username);

                //更新用户登陆信息
                new BLL.Member().UpdateLastLogin(username, Utility.Common.RequestIP);

                //6.记录当前客户机器上的注册时间到cookies
                BCSTCache.Default.Save <CookiesCache>("RegDateTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
                Response.Redirect("/Manage/Default.aspx");
            }
            //else if (userId == -3)
            //{
            //    CommonManager.Web.RegJs(this, "alert('抱歉,注册失败,此IP今天注册人数已满!');location.href=location.href;", true);
            //}
            //else if (userId == -4)
            //{
            //    CommonManager.Web.RegJs(this, "alert('抱歉,注册失败,此身份证号已达到注册次数限制!');location.href=location.href;", true);
            //}
            else
            {
                CommonManager.Web.RegJs(this, "alert('抱歉,注册失败,可能是服务器繁忙,请稍后再试!');location.href=location.href;", true);
            }
        }
Beispiel #6
0
        protected void btnSubmit_ServerClick(object sender, EventArgs e)
        {
            string validcode = Common.GetStringOfForm("validcode");

            if (ValidCode.CurrentCode != validcode)
            {
                Label1.Text    = "温馨提示:验证码输入错误,请重新输入!";
                Label1.Visible = true;
                return;
            }

            string username = Common.FilterString(Common.GetStringOfForm("username"));
            //昵称可以输入任何字符,所以要对它进行HTML编码,防止恶意木马脚本字符串;过滤"'"为"''",避免SQL注入式攻击
            string nickname = Server.HtmlEncode(Common.GetStringOfForm("nickname").Replace("'", "''"));
            string sex      = Common.FilterString(Common.GetStringOfForm("sex"));
            string pwd      = Common.FilterString(Common.GetStringOfForm("pwd"));    //Common.FilterString( Common.GetStringOfForm( "hidPwd" ) );//
            string ejpwd    = "";                                                    //Common.FilterString( Common.GetStringOfForm( "hidPwd2" ) );//
            string email    = "";
            string mobile   = Common.FilterString(Common.GetStringOfForm("mobile")); //电话保存到TUserInfo表的PhoneNum列
            string promoter = Common.FilterString(Common.GetStringOfForm("promoter"));
            string logoid   = Common.FilterString(Common.GetStringOfForm("logoid"));
            string idcard   = Common.FilterString(Common.GetStringOfForm("idcard"));
            string signDsc  = Server.HtmlEncode(Common.GetStringOfForm("sign").Replace("'", "''"));
            string qqnum    = "";
            string realname = "";

            if (string.IsNullOrEmpty(sex) || !CommonManager.String.IsInteger(sex))
            {
                sex = "1";
            }

            if (string.IsNullOrEmpty(logoid) || !CommonManager.String.IsInteger(logoid))
            {
                logoid = "1";
            }

            //新增:注册时选择职业和地区
            //string occu = CommonManager.Web.RequestForm( "txtOccuPation", "" );
            //string prov = CommonManager.Web.RequestForm( "hidProvince", "" );
            //string city = CommonManager.Web.RequestForm( "hidCity", "" );
            //string address = Server.HtmlEncode( CommonManager.Web.RequestForm( "txtAddress", "" ) );
            //如果银行密码为空,就把它设为登录密码
            if (ejpwd.Trim().Length == 0)
            {
                ejpwd = pwd;
            }

            BLL.Member member   = new BLL.Member();
            int        dbLogoId = member.SetLogoID(int.Parse(sex), int.Parse(logoid));

            /*
             * string userId = Utility.SqlHelper.GetMaxID("UserID", "TUsers").ToString();
             *
             * //1.插入TUsers表
             *
             * member.Add2TUsers( userId, username, nickname, pwd, ejpwd, int.Parse( sex ), dbLogoId );
             *
             * //2.插入TUserInfo表
             * int walletMoney = BLL.Config.GoldCountOfReg();
             * BLL.Promotion promo = new BLL.Promotion();
             * bool isTg = false;
             * if( promoter.Trim().Length > 0 )
             * {
             *  if( member.ExistName( promoter ) && promo.ExistTGUser( promoter ) )
             *  {
             *      isTg = true;
             *      walletMoney += BLL.Config.GoldCountOfRegTG();
             *  }
             * }*/

            #region 增加判断是否在新手送礼包活动期间

            /*
             * bool isaction = false;
             * if (RookiePresentConfig.Config.IsEnable)
             * {
             * if (RookiePresentConfig.Config.BeginDate <= DateTime.Now && RookiePresentConfig.Config.EndDate >= DateTime.Now)
             * {
             *  isaction = true;
             *  //walletMoney += RookiePresentConfig.Config.Money;
             *  //赠送道具
             *  if (RookiePresentConfig.Config.PropPresent.Rows.Count > 0)
             *  {
             *      string select = "select Count(PropID) from TPropDefine where PropID=@PropID;";
             *      string sql = "insert into TUserProp (UserID,PropID,HoldCount) values ({0},{1},{2});";
             *      StringBuilder sqlCollection = new StringBuilder();
             *      foreach (DataRow row in RookiePresentConfig.Config.PropPresent.Rows)
             *      {
             *          int tmpcount = DbSession.Default.FromSql(select).AddInputParameter("@PropID", DbType.Int32, row["PropID"]).ToScalar<int>();
             *          if (tmpcount <= 0)
             *              continue;
             *          sqlCollection.AppendFormat(sql, userId, row["PropID"].ToString(), row["Amount"].ToString());
             *      }
             *      if (sqlCollection.ToString().Length > 0)
             *      {
             *          DbSession.Default.FromSql(sqlCollection.ToString()).Execute();
             *      }
             *  }
             * }
             * else
             * {
             *  isaction = false;
             *  RookiePresentConfig.Config.IsEnable = false;
             *  RookiePresentConfig.Save(RookiePresentConfig.Config);
             * }
             * }*/
            #endregion

            /*member.Add2TUserInfo(userId, walletMoney, Common.RequestIP);
             *  //修改为如下方法:
             *  //member.Add2TUserInfo( userId, walletMoney, Common.RequestIP, occu, prov, city, address, mobile );
             *
             *  //3.插入Web_Users表
             *  member.Add2Web_Users(userId, email, mobile, Common.RequestIP, idcard);
             *  //member.Add2Web_Users( userId, email, "", Common.RequestIP );
             *
             *  //4.插入推广日志信息
             *  if( isTg )
             *  {
             *          promo.AddLog( promoter, userId );
             *  }
             */
            string agencyName = UiCommon.StringConfig.GetAgencyNameByTwoDname();             //获取域名获取代理商账号
            int    userId     = Convert.ToInt32(member.Add_UserInfo(username, nickname, promoter, int.Parse(sex), dbLogoId, pwd, ejpwd, idcard, mobile, email, Common.RequestIP, qqnum, realname, agencyName, signDsc)["UserID"]);
            if (userId > 0)
            {
                //5.保存用户信息
                UiCommon.UserLoginInfo.SetInfo(userId.ToString(), username);


                //更新用户登陆信息
                new BLL.Member().UpdateLastLogin(username, Utility.Common.RequestIP);

                //6.记录当前客户机器上的注册时间到cookies
                BCSTCache.Default.Save <CookiesCache>("RegDateTime", DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));


                //Limit.outMsgBox("温馨提示:\\n\\n会员注册成功!", "bzwp://regsucceed?username="******"", true);


                //Response.Write("<script language=javascript>window.alert('" + Message + "');" + str + "</script>");

                string ieEvent = "bzwp://regsucceed?username="******"&userid=" + userId;
                Response.Write("<script language=javascript>window.location.href='" + ieEvent + "';</script>");
            }
            else
            {
                Label1.Text = "抱歉,注册失败,可能是服务器繁忙,请稍后再试!";
                return;
            }

            /*
             * if (isaction)
             * {
             *  Response.Write("<script language=javascript>alert('现在是活动期间,您获得系统赠送给您的道具!\\r\\n快到游戏的道具箱中去体验我们的道具吧!');window.location.href='" + ieEvent + "';</script>");
             * }
             * else
             * {
             *  Response.Write("<script language=javascript>window.location.href='" + ieEvent + "';</script>");
             * }
             */
        }