示例#1
0
    private void BindBankType()
    {
        string    key = "Admin_UserDistillUnsuccess_BankType";
        DataTable cacheAsDataTable = Shove._Web.Cache.GetCacheAsDataTable(key);

        if (cacheAsDataTable == null)
        {
            cacheAsDataTable = new Tables.T_Banks().Open("", "", "[Name]");
        }
        this.ddlAccountType.DataSource     = cacheAsDataTable;
        this.ddlAccountType.DataTextField  = "Name";
        this.ddlAccountType.DataValueField = "Name";
        this.ddlAccountType.DataBind();
        this.ddlAccountType.Items.Insert(0, "");
        this.ddlAccountType.Items.Add("支付宝");
    }
示例#2
0
        static DataCache()
        {
            DataTable table = new Tables.T_Banks().Open("ID,Name", "", "");

            if (table == null)
            {
                new Log("SNS").Write("PublicFunction 读取 T_Banks 出错");
            }
            if (table != null)
            {
                foreach (DataRow row in table.Rows)
                {
                    Banks[short.Parse(row["ID"].ToString())] = row["Name"].ToString();
                }
            }
            table = new Tables.T_Citys().Open("ID,Name", "", "");
            if (table == null)
            {
                new Log("SNS").Write("PublicFunction 读取 T_Citys 出错");
            }
            if (table != null)
            {
                foreach (DataRow row2 in table.Rows)
                {
                    Citys[row2["Name"].ToString()] = int.Parse(row2["ID"].ToString());
                }
            }
            SecurityQuestions[0] = "我婆婆或岳母的名字叫什么?";
            SecurityQuestions[1] = "我爸爸的出生地在哪里?";
            SecurityQuestions[2] = "我妈妈的出生地在哪里?";
            SecurityQuestions[3] = "我的小学校名是什么?";
            SecurityQuestions[4] = "我的中学校名是什么?";
            SecurityQuestions[5] = "我的一个好朋友的手机号码是什么?";
            SecurityQuestions[6] = "我的一个好朋友的爸爸名字是什么?";
            SecurityQuestions[7] = "自定义问题";
            Lotteries[3]         = "七星彩";
            Lotteries[5]         = "双色球";
            Lotteries[6]         = "福彩3D";
            Lotteries[0x1c]      = "重庆时时彩";
            Lotteries[0x1d]      = "时时乐";
            Lotteries[0x27]      = "大乐透";
            Lotteries[0x3a]      = "东方6+1";
            Lotteries[0x3b]      = "15选5";
            Lotteries[13]        = "七乐彩";
            Lotteries[9]         = "22选5";
            Lotteries[14]        = "29选7";
            Lotteries[0x3f]      = "排列3";
            Lotteries[0x40]      = "排列5";
            Lotteries[0x13]      = "篮彩";
            Lotteries[1]         = "胜负彩";
            Lotteries[2]         = "四场进球彩";
            Lotteries[15]        = "六场半全场";
            Lotteries[0x3d]      = "江西时时彩";
            Lotteries[0x3e]      = "十一运夺金";
            Lotteries[0x41]      = "31选7";
            Lotteries[0x29]      = "浙江体彩6+1";
            Lotteries[70]        = "11选5";
            Dictionary <int, string> dictionary = new Dictionary <int, string>();

            dictionary[0x12d]  = "单式";
            dictionary[0x12e]  = "复式";
            PlayTypes[3]       = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x1f5]  = "单式";
            dictionary[0x1f6]  = "复式";
            dictionary[0x1f7]  = "胆拖";
            PlayTypes[5]       = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x259]  = "直选单式";
            dictionary[0x25a]  = "直选复式";
            dictionary[0x25b]  = "组选单式";
            dictionary[0x25c]  = "组6复式";
            dictionary[0x25d]  = "组3复式";
            dictionary[0x25e]  = "直选包点";
            dictionary[0x25f]  = "复选包点";
            PlayTypes[6]       = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0xaf1]  = "单式";
            dictionary[0xaf2]  = "复式";
            dictionary[0xaf3]  = "组选";
            dictionary[0xaf4]  = "猜大小";
            dictionary[0xaf5]  = "五星通选单式";
            dictionary[0xaf6]  = "五星通选复式";
            dictionary[0xaf7]  = "二星组选单式";
            dictionary[0xaf8]  = "二星组选复式";
            dictionary[0xaf9]  = "二星组选分位";
            dictionary[0xafa]  = "二星组选包点";
            dictionary[0xafb]  = "二星组选包胆";
            dictionary[0xafc]  = "三星包点";
            dictionary[0xafd]  = "三星组3单式";
            dictionary[0xafe]  = "三星组3复式";
            dictionary[0xaff]  = "三星组6单式";
            dictionary[0xb00]  = "三星组6复式";
            dictionary[0xb01]  = "三星直选组合复式";
            dictionary[0xb02]  = "三星组选包胆";
            dictionary[0xb03]  = "三星组选包点";
            PlayTypes[0x3d]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0xb55]  = "直选单式";
            dictionary[0xb56]  = "直选复式";
            dictionary[0xb57]  = "组选单式";
            dictionary[0xb58]  = "组选6";
            dictionary[0xb59]  = "组选3";
            dictionary[0xb5a]  = "直选";
            dictionary[0xb5b]  = "组选";
            dictionary[0xb5c]  = "前二单式";
            dictionary[0xb5d]  = "前二复式";
            dictionary[0xb5e]  = "后二单式";
            dictionary[0xb5f]  = "后二复式";
            dictionary[0xb60]  = "前一单式";
            dictionary[0xb61]  = "前一复式";
            dictionary[0xb62]  = "后一单式";
            dictionary[0xb63]  = "后一复式";
            PlayTypes[0x1d]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0xf3d]  = "单式";
            dictionary[0xf3e]  = "复式";
            dictionary[0xf3f]  = "追加单式";
            dictionary[0xf40]  = "追加复式";
            dictionary[0xf41]  = "12选2单式";
            dictionary[0xf42]  = "12选2复式";
            PlayTypes[0x27]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x16a9] = "单式";
            dictionary[0x16aa] = "复式";
            PlayTypes[0x3a]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x515]  = "单式";
            dictionary[0x516]  = "复式";
            PlayTypes[13]      = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x170d] = "单式";
            dictionary[0x170e] = "复式";
            PlayTypes[0x3b]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x385]  = "单式";
            dictionary[0x386]  = "复式";
            PlayTypes[9]       = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x579]  = "单式";
            dictionary[0x57a]  = "复式";
            PlayTypes[14]      = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x189d] = "排列3直选单式";
            dictionary[0x189e] = "排列3直选复式";
            dictionary[0x189f] = "排列3组选单式";
            dictionary[0x18a0] = "排列3组选6复式";
            dictionary[0x18a1] = "排列3组选3复式";
            dictionary[0x18a2] = "排列3直选和值";
            dictionary[0x18a3] = "排列3组选和值";
            PlayTypes[0x3f]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x1901] = "排列5单式";
            dictionary[0x1902] = "排列5复式";
            PlayTypes[0x40]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x76d]  = "单式";
            dictionary[0x76e]  = "复式";
            PlayTypes[0x13]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x65]   = "单式";
            dictionary[0x66]   = "复式";
            dictionary[0x67]   = "任九场单式";
            dictionary[0x68]   = "任九场复式";
            PlayTypes[1]       = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0xc9]   = "单式";
            dictionary[0xca]   = "复式";
            PlayTypes[2]       = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x5dd]  = "单式";
            dictionary[0x5de]  = "复式";
            PlayTypes[15]      = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x1839] = "任选一";
            dictionary[0x183a] = "任选二";
            dictionary[0x183b] = "任选三";
            dictionary[0x183c] = "任选四";
            dictionary[0x183d] = "任选五";
            dictionary[0x183e] = "任选六";
            dictionary[0x183f] = "任选七";
            dictionary[0x1840] = "任选八";
            dictionary[0x1841] = "前二直选";
            dictionary[0x1842] = "前三直选";
            dictionary[0x1843] = "前二组选";
            dictionary[0x1844] = "前三组选";
            PlayTypes[0x3e]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x1965] = "单式";
            dictionary[0xdae]  = "复式";
            PlayTypes[0x41]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x1965] = "单式";
            dictionary[0xdae]  = "复式";
            PlayTypes[0x41]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x17d5] = "单式";
            dictionary[0x17d6] = "复式";
            dictionary[0x17d7] = "组选";
            dictionary[0x17d8] = "猜大小";
            dictionary[0x17d9] = "五星通选单式";
            dictionary[0x17da] = "五星通选复式";
            dictionary[0x17db] = "二星组选单式";
            dictionary[0x17dc] = "二星组选复式";
            dictionary[0x17dd] = "二星组选分位";
            dictionary[0x17de] = "二星组选包点";
            dictionary[0x17df] = "二星组选包胆";
            dictionary[0x17e0] = "二星直选包点";
            PlayTypes[0x3d]    = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x1b59] = "任选一";
            dictionary[0x1b5a] = "任选二";
            dictionary[0x1b5b] = "任选三";
            dictionary[0x1b5c] = "任选四";
            dictionary[0x1b5d] = "任选五";
            dictionary[0x1b5e] = "任选六";
            dictionary[0x1b5f] = "任选七";
            dictionary[0x1b60] = "任选八";
            dictionary[0x1b61] = "前二直选";
            dictionary[0x1b62] = "前三直选";
            dictionary[0x1b63] = "前二组选";
            dictionary[0x1b64] = "前三组选";
            PlayTypes[70]      = dictionary;
            dictionary         = new Dictionary <int, string>();
            dictionary[0x1005] = "单式";
            dictionary[0x1006] = "复式";
            PlayTypes[0x29]    = dictionary;
            string str = "";

            foreach (KeyValuePair <int, string> pair in Lotteries)
            {
                str = str + pair.Key + ",";
            }
            str = str.Remove(str.Length - 1, 1);
            foreach (DataRow row3 in new Tables.T_PlayTypes().Open("LotteryID,SystemEndAheadMinute", "LotteryID in (" + str + ")", "").Rows)
            {
                LotteryEndAheadMinute[int.Parse(row3["LotteryID"].ToString())] = int.Parse(row3["SystemEndAheadMinute"].ToString());
            }
        }
    private void BindData()
    {
        this.lbUserName.Text = "*".PadLeft(base._User.Name.Length - 1, '*') + base._User.Name.Substring(base._User.Name.Length - 1);
        if (base._User.RealityName != "")
        {
            this.tbRealityName.Visible       = false;
            this.lbRealityName.Visible       = true;
            this.lbRealityName.Text          = "*".PadLeft(base._User.RealityName.Length - 1, '*') + base._User.RealityName.Substring(base._User.RealityName.Length - 1);
            this.lbIsRealityNameValided.Text = "已绑定";
        }
        else
        {
            this.tbRealityName.Visible       = true;
            this.lbRealityName.Visible       = false;
            this.tbRealityName.Text          = "***";
            this.lbIsRealityNameValided.Text = "未绑定";
        }
        this.ddlCity.City_id = base._User.CityID;
        this.rbSexM.Checked  = base._User.Sex == "男";
        this.rbSexW.Checked  = base._User.Sex != "男";
        this.tbBirthday.Text = base._User.BirthDay.ToShortDateString();
        this.tbAddress.Text  = base._User.Address;
        this.tbEmail.Text    = base._User.Email;
        try
        {
            if (base._User.isMobileValided)
            {
                this.lbMobile.Text = base._User.Mobile.Substring(0, 3) + "*****" + base._User.Mobile.Substring(8, 3);
            }
        }
        catch
        {
        }
        DataTable table = new Tables.T_Users().Open("IsQQValided", "ID=" + base._User.ID.ToString(), "");

        if ((table != null) && (table.Rows.Count != 0))
        {
            bool flag = _Convert.StrToBool(table.Rows[0]["IsQQValided"].ToString(), false);
            if (flag)
            {
                this.lbQQ.Text = (base._User.QQ.Length > 3) ? (base._User.QQ.Substring(0, 3) + "********") : base._User.QQ;
            }
            this.lbIsEmailValided.Text   = (base._User.isEmailValided ? "<font color='red'>已激活</font>" : "未激活") + "&nbsp;&nbsp;<a href='UserEmailBind.aspx'>申请激活或修改激活</a>";
            this.labIsMobileVailded.Text = (base._User.isMobileValided ? "<font color='red'>已绑定</font>" : "未绑定") + "&nbsp;&nbsp;<a href='UserMobileBind.aspx'>申请绑定或修改绑定</a>";
            this.lbQQValided.Text        = (flag ? "<font color='red'>已绑定</font>" : "未绑定") + "&nbsp;&nbsp;<a href='UserQQBind.aspx'>申请绑定或修改绑定</a>";
            table = new Tables.T_Banks().Open("", "", "[Order]");
            if (base._User.SecurityQuestion.StartsWith("自定义问题|"))
            {
                this.lbQuestion.Text = base._User.SecurityQuestion.Remove(0, 6);
            }
            else
            {
                this.lbQuestion.Text = base._User.SecurityQuestion;
            }
            if (this.lbQuestion.Text == "")
            {
                this.lbQuestionInfo.Text = "设置安全保护问题";
            }
            else
            {
                this.lbQuestionInfo.Text = "修改安全保护问题";
            }
            try
            {
                if (base._User.IDCardNumber.Length == 15)
                {
                    this.lbIdCardNumber.Visible       = true;
                    this.tbIdIDCardNumber.Visible     = false;
                    this.lbIdCardNumber.Text          = base._User.IDCardNumber.Substring(0, 6) + "*****" + base._User.IDCardNumber.Substring(10, 4);
                    this.lbIsIdCardNumberValided.Text = "已绑定";
                }
                else
                {
                    this.lbIdCardNumber.Visible       = true;
                    this.tbIdIDCardNumber.Visible     = false;
                    this.lbIdCardNumber.Text          = base._User.IDCardNumber.Substring(0, 6) + "********" + base._User.IDCardNumber.Substring(14, 4);
                    this.lbIsIdCardNumberValided.Text = "已绑定";
                }
            }
            catch
            {
                this.lbIdCardNumber.Visible       = false;
                this.tbIdIDCardNumber.Visible     = true;
                this.lbIdCardNumber.Text          = "";
                this.lbIsIdCardNumberValided.Text = "未绑定";
            }
            this.hdIDCardNumber.Value = this.lbIdCardNumber.Text;
        }
    }