Example #1
0
        protected void BindInfo()
        {
            BLL.Member member = new BLL.Member();
            DataRow    dr     = member.GetInfo(UserLoginInfo.UserID);

            if (dr == null)
            {
                return;
            }

            NickName = dr["NickName"].ToString();
            Sex      = Convert.ToInt32(dr["Sex"]);
            LogoID   = Convert.ToInt32(dr["LogoID"]);
            LogoID   = member.GetLogoID(Sex, LogoID);
            if (LogoID > BLL.Member.LogoId_Const2)
            {
                int childDirName = Convert.ToInt32(UserLoginInfo.UserID) / 1000;
                CustImgDir = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UserLoginInfo.UserID + ".png";
            }
            Email = dr["Email"].ToString();

            Phone = dr["Phone"].ToString();

            qqNum      = dr["qqnum"].ToString();
            OccuPation = dr["OccuPation"].ToString();
            address    = dr["AdrZone"].ToString();
            province   = dr["AdrProvince"].ToString();
            city       = dr["AdrCity"].ToString();
        }
Example #2
0
        public void BindInfo()
        {
            BindCardType();
            BindQuestion();

            BLL.Member member = new BLL.Member();
            DataRow    dr     = member.GetInfo(UserLoginInfo.UserID);

            if (dr == null)
            {
                return;
            }
            string dbCardType = dr["ZJ_Type"].ToString();

            txtCardNo.Text  = dr["ZJ_Number"].ToString();
            txtCardNo2.Text = txtCardNo.Text;
            string dbQuestion = dr["Pwd_ques"].ToString();

            txtAnwer.Text = dr["Pwd_anw"].ToString();
            string cardNo = dr["ZJ_Number"].ToString().Trim();

            //因为界面上的证件类型、号码、提示问题、答案都是不能为
            //空的,所以,如果证件号码有内容,则其它都有内容,就把这几个输入项隐藏
            if (!string.IsNullOrEmpty(dbQuestion))
            {
                Hidden();
            }


            for (int i = 0; i < ddlCardType.Items.Count; i++)
            {
                if (ddlCardType.Items[i].Value.ToLower() == dbCardType.Trim().ToLower())
                {
                    ddlCardType.SelectedIndex = i;
                    break;
                }
            }

            for (int i = 0; i < ddlQuestion.Items.Count; i++)
            {
                if (ddlQuestion.Items[i].Value.ToLower() == dbQuestion.Trim().ToLower())
                {
                    ddlQuestion.SelectedIndex = i;
                    break;
                }
            }
        }
Example #3
0
        protected void Page_Load( object sender, EventArgs e )
        {
            SeoSetting(SeoConfig.Config.DefaultSeo);
            if( !string.IsNullOrEmpty( un ) )
            {
                BLL.Member member = new BLL.Member();
                //InfoRow = member.GetInfoByName( un );
                InfoRow = member.GetInfo( un );

                int LogoID = (int)InfoRow["LogoID"];
                int Sex = Convert.ToInt32( InfoRow["Sex"] );
                LogoID = member.GetLogoID( Sex, LogoID );
                int UserId = Convert.ToInt32( InfoRow["UserID"] );
                if( LogoID >= BLL.Member.LogoId_Const1 && LogoID <= BLL.Member.LogoId_Const2 )//ϵͳĬ��ͷ�� 1<=LogoID<=255
                {
                    if( int.Parse( InfoRow["Sex"].ToString() ) == 1 )
                    {
                        UserHeader = "/Image/Users/b_" + LogoID + ".png";
                    }
                    else
                    {
                        UserHeader = "/Image/Users/g_" + LogoID + ".png";
                    }
                }
                else if( LogoID >= BLL.Member.LogoId_Const3 && LogoID <= BLL.Member.LogoId_Const4 ) //�ϴ����Զ���ͷ�� 256<=LogoID<=512  0x100   0x200
                {
                    int childDirName = Convert.ToInt32( UserId ) / 1000;
                    UserHeader = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UserId + ".png";
                }
                else if( LogoID > BLL.Member.LogoId_Const4 ) //�ϴ����Զ���ͷ�� LogoID>512  ����˻��й���ʱ����Զ���ͷ��
                {
                    int childDirName = Convert.ToInt32( UserId ) / 1000;
                    UserHeader = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UserId + ".png";
                }
            }
        }
Example #4
0
        protected void Page_Load(object sender, EventArgs e)
        {
            SeoSetting(SeoConfig.Config.DefaultSeo);
            if (!string.IsNullOrEmpty(un))
            {
                BLL.Member member = new BLL.Member();
                //InfoRow = member.GetInfoByName( un );
                InfoRow = member.GetInfo(un);

                int LogoID = (int)InfoRow["LogoID"];
                int Sex    = Convert.ToInt32(InfoRow["Sex"]);
                LogoID = member.GetLogoID(Sex, LogoID);
                int UserId = Convert.ToInt32(InfoRow["UserID"]);
                if (LogoID >= BLL.Member.LogoId_Const1 && LogoID <= BLL.Member.LogoId_Const2)                 //系统默认头像 1<=LogoID<=255
                {
                    if (int.Parse(InfoRow["Sex"].ToString()) == 1)
                    {
                        UserHeader = "/Image/Users/b_" + LogoID + ".png";
                    }
                    else
                    {
                        UserHeader = "/Image/Users/g_" + LogoID + ".png";
                    }
                }
                else if (LogoID >= BLL.Member.LogoId_Const3 && LogoID <= BLL.Member.LogoId_Const4)                  //上传的自定义头像 256<=LogoID<=512  0x100   0x200
                {
                    int childDirName = Convert.ToInt32(UserId) / 1000;
                    UserHeader = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UserId + ".png";
                }
                else if (LogoID > BLL.Member.LogoId_Const4)                  //上传的自定义头像 LogoID>512  需审核或有过期时间的自定义头像
                {
                    int childDirName = Convert.ToInt32(UserId) / 1000;
                    UserHeader = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UserId + ".png";
                }
            }
        }
Example #5
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL.Member member = new BLL.Member();
            DataRow dr = member.GetInfo(UserLoginInfo.UserID);
            if (dr == null)
            {
                return;
            }

            NickName = dr["NickName"].ToString();
            Sex = Convert.ToInt32(dr["Sex"]);

            LogoID = Convert.ToInt32(dr["LogoID"]);

                LogoID = member.GetLogoID(Sex, LogoID);

            BankMoney = dr["BankMoney"].ToString();

            Email = dr["Email"].ToString();
            //��ȡ���Ǯ����ұ����ж�Ǯ���汾
            if (UiCommon.StringConfig.BankVersion == "2")
            {
                WalletMoney = member.GetWalletMoney(UiCommon.UserLoginInfo.UserID).ToString();
            }
            else
            {
                WalletMoney = dr["WalletMoney"].ToString();
            }
            AllMoney = (Convert.ToInt64(BankMoney) + Convert.ToInt64(WalletMoney)).ToString();
            OnLineTimeCount = member.ConverTimeToDHMS(member.GetOnLineTimeSum(UserLoginInfo.UserID));
            //PlayTimeCount = member.ConverTimeToDHMS(member.GetPlayTimeSum(UserLoginInfo.UserID));
            PlayTimeCount = member.ConverTimeToDHMS(member.GetAllPlayTimeByUserID(UserLoginInfo.UserID));
            AllLoginCount = dr["AllLoginTime"].ToString();
               // string str = dr["RegisterTM"].ToString();

            RegisterTM = Convert.ToDateTime(dr["RegisterTM"].ToString()).ToString("yyyy-MM-dd HH:mm:ss");
            LastLoginTM = Convert.ToDateTime(dr["LastLoginTM"]).ToString("yyyy-MM-dd HH:mm:ss");
            UserFasci = dr["Fascination"].ToString();
            Phone = dr["Phone"].ToString();
            RealName = dr["RealName"].ToString();
            Lotteries = dr["Lotteries"].ToString();
            //ZhiYe = dr["OccuPation"].ToString();
            //Address = dr["AdrProvince"].ToString() + dr["AdrCity"].ToString() + dr["AdrZone"].ToString();

            //Paiming

            //VipTime--------------
            VipTime = dr["VipTime2"].ToString();
            DateTime dtNow = DateTime.Now;
            if (Convert.ToDateTime(VipTime) > dtNow)
            {
                VipTime = Convert.ToDateTime(VipTime).ToString("yyyy-MM-dd");
            }
            else
            {
                DateTime dtInit = new DateTime(1970, 01, 01, 08, 00, 00);
                if (Convert.ToDateTime(VipTime) > dtInit)
                {
                    VipTime = "<a href=\"/Manage/VipApply.aspx\" class=\"red\">����VIP�Ѿ����ڣ���������</a>";
                }
                else
                {
                    VipTime = "<a href=\"/Manage/VipApply.aspx\" class=\"red\">��������VIP����������</a>";
                }
            }

            //UserHeadImg-------------
            //if (LogoID >= 1 && LogoID <= 255)//ϵͳĬ��ͷ�� 1<=LogoID<=255
            if (LogoID >= BLL.Member.LogoId_Const1 && LogoID <= BLL.Member.LogoId_Const2)
            {
                if (Sex == 1)
                {
                    UserHeadImg = "/Image/Users/b_" + LogoID + ".png";
                }
                else
                {
                    UserHeadImg = "/Image/Users/g_" + LogoID + ".png";
                }
            }
            else if (LogoID >= BLL.Member.LogoId_Const3 && LogoID <= BLL.Member.LogoId_Const4) //�ϴ����Զ���ͷ�� 256<=LogoID<=512
            {
                int childDirName = Convert.ToInt32(UiCommon.UserLoginInfo.UserID) / 1000;
                UserHeadImg = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UiCommon.UserLoginInfo.UserID + ".png";
            }
            else if (LogoID > BLL.Member.LogoId_Const4) //�ϴ����Զ���ͷ�� LogoID>512  ����˻��й���ʱ����Զ���ͷ��
            {
                int childDirName = Convert.ToInt32(UiCommon.UserLoginInfo.UserID) / 1000;
                UserHeadImg = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UiCommon.UserLoginInfo.UserID + ".png";
            }

            GameTimeCount = member.ConverTimeToDHMS(GetPlayTimeCount(UserLoginInfo.UserID));
        }
Example #6
0
        public void BindInfo()
        {
            BindCardType();
            BindQuestion();

            BLL.Member member = new BLL.Member();
            DataRow dr = member.GetInfo(UserLoginInfo.UserID);
            if (dr == null)
            {
                return;
            }
            string dbCardType = dr["ZJ_Type"].ToString();
               txtCardNo.Text = dr["ZJ_Number"].ToString();
            txtCardNo2.Text = txtCardNo.Text;
            string dbQuestion = dr["Pwd_ques"].ToString();
            txtAnwer.Text = dr["Pwd_anw"].ToString();
            string cardNo = dr["ZJ_Number"].ToString().Trim();
            //��Ϊ�����ϵ�֤�����͡����롢��ʾ���⡢�𰸶��Dz���Ϊ
            //�յģ����ԣ����֤�����������ݣ��������������ݣ��Ͱ��⼸������������
            if (!string.IsNullOrEmpty(dbQuestion))
            {
                Hidden();
            }

            for (int i = 0; i < ddlCardType.Items.Count; i++)
            {
                if (ddlCardType.Items[i].Value.ToLower() == dbCardType.Trim().ToLower())
                {
                    ddlCardType.SelectedIndex = i;
                    break;
                }
            }

            for (int i = 0; i < ddlQuestion.Items.Count; i++)
            {
                if (ddlQuestion.Items[i].Value.ToLower() == dbQuestion.Trim().ToLower())
                {
                    ddlQuestion.SelectedIndex = i;
                    break;
                }
            }
        }
Example #7
0
        protected void BindInfo()
        {
            BLL.Member member = new BLL.Member();
            DataRow dr = member.GetInfo(UserLoginInfo.UserID);
            if (dr == null)
            {
                return;
            }

            NickName = dr["NickName"].ToString();
            Sex = Convert.ToInt32(dr["Sex"]);
            LogoID = Convert.ToInt32(dr["LogoID"]);
            LogoID = member.GetLogoID(Sex, LogoID);
            if (LogoID > BLL.Member.LogoId_Const2)
            {
                int childDirName = Convert.ToInt32(UserLoginInfo.UserID) / 1000;
                CustImgDir = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UserLoginInfo.UserID + ".png";
            }
            Email = dr["Email"].ToString();

            Phone = dr["Phone"].ToString();

            qqNum = dr["qqnum"].ToString();
            OccuPation = dr["OccuPation"].ToString();
            address = dr["AdrZone"].ToString();
            province = dr["AdrProvince"].ToString();
            city = dr["AdrCity"].ToString();
        }
Example #8
0
        protected void Page_Load(object sender, EventArgs e)
        {
            BLL.Member member = new BLL.Member();
            DataRow    dr     = member.GetInfo(UserLoginInfo.UserID);

            if (dr == null)
            {
                return;
            }

            NickName = dr["NickName"].ToString();
            Sex      = Convert.ToInt32(dr["Sex"]);

            LogoID = Convert.ToInt32(dr["LogoID"]);

            LogoID = member.GetLogoID(Sex, LogoID);


            BankMoney = dr["BankMoney"].ToString();

            Email = dr["Email"].ToString();
            //获取玩家钱包金币必须判断钱包版本
            if (UiCommon.StringConfig.BankVersion == "2")
            {
                WalletMoney = member.GetWalletMoney(UiCommon.UserLoginInfo.UserID).ToString();
            }
            else
            {
                WalletMoney = dr["WalletMoney"].ToString();
            }
            AllMoney        = (Convert.ToInt64(BankMoney) + Convert.ToInt64(WalletMoney)).ToString();
            OnLineTimeCount = member.ConverTimeToDHMS(member.GetOnLineTimeSum(UserLoginInfo.UserID));
            //PlayTimeCount = member.ConverTimeToDHMS(member.GetPlayTimeSum(UserLoginInfo.UserID));
            PlayTimeCount = member.ConverTimeToDHMS(member.GetAllPlayTimeByUserID(UserLoginInfo.UserID));
            AllLoginCount = dr["AllLoginTime"].ToString();
            // string str = dr["RegisterTM"].ToString();

            RegisterTM  = Convert.ToDateTime(dr["RegisterTM"].ToString()).ToString("yyyy-MM-dd HH:mm:ss");
            LastLoginTM = Convert.ToDateTime(dr["LastLoginTM"]).ToString("yyyy-MM-dd HH:mm:ss");
            UserFasci   = dr["Fascination"].ToString();
            Phone       = dr["Phone"].ToString();
            RealName    = dr["RealName"].ToString();
            Lotteries   = dr["Lotteries"].ToString();
            //ZhiYe = dr["OccuPation"].ToString();
            //Address = dr["AdrProvince"].ToString() + dr["AdrCity"].ToString() + dr["AdrZone"].ToString();

            //Paiming

            //VipTime--------------
            VipTime = dr["VipTime2"].ToString();
            DateTime dtNow = DateTime.Now;

            if (Convert.ToDateTime(VipTime) > dtNow)
            {
                VipTime = Convert.ToDateTime(VipTime).ToString("yyyy-MM-dd");
            }
            else
            {
                DateTime dtInit = new DateTime(1970, 01, 01, 08, 00, 00);
                if (Convert.ToDateTime(VipTime) > dtInit)
                {
                    VipTime = "<a href=\"/Manage/VipApply.aspx\" class=\"red\">您的VIP已经过期,立即申请</a>";
                }
                else
                {
                    VipTime = "<a href=\"/Manage/VipApply.aspx\" class=\"red\">您还不是VIP,立即申请</a>";
                }
            }

            //UserHeadImg-------------
            //if (LogoID >= 1 && LogoID <= 255)//系统默认头像 1<=LogoID<=255
            if (LogoID >= BLL.Member.LogoId_Const1 && LogoID <= BLL.Member.LogoId_Const2)
            {
                if (Sex == 1)
                {
                    UserHeadImg = "/Image/Users/b_" + LogoID + ".png";
                }
                else
                {
                    UserHeadImg = "/Image/Users/g_" + LogoID + ".png";
                }
            }
            else if (LogoID >= BLL.Member.LogoId_Const3 && LogoID <= BLL.Member.LogoId_Const4) //上传的自定义头像 256<=LogoID<=512
            {
                int childDirName = Convert.ToInt32(UiCommon.UserLoginInfo.UserID) / 1000;
                UserHeadImg = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UiCommon.UserLoginInfo.UserID + ".png";
            }
            else if (LogoID > BLL.Member.LogoId_Const4) //上传的自定义头像 LogoID>512  需审核或有过期时间的自定义头像
            {
                int childDirName = Convert.ToInt32(UiCommon.UserLoginInfo.UserID) / 1000;
                UserHeadImg = "/Upload/" + UiCommon.StringConfig.UserCustHeadFolderName + "/" + childDirName + "/" + UiCommon.UserLoginInfo.UserID + ".png";
            }

            GameTimeCount = member.ConverTimeToDHMS(GetPlayTimeCount(UserLoginInfo.UserID));
        }