private void BindBankType() { DataTable dt = new DAL.Tables.T_Banks().Open("", "", "[Name]"); ddlAccountType.DataSource = dt; ddlAccountType.DataTextField = "Name"; ddlAccountType.DataValueField = "Name"; ddlAccountType.DataBind(); ddlAccountType.Items.Insert(0, ""); ddlAccountType.Items.Add(new ListItem("支付宝", "支付宝")); }
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("支付宝"); }
static DataCache() { #region 银行 DataTable dt = new DAL.Tables.T_Banks().Open("ID,Name", "", ""); if (dt == null) { new Log("SNS").Write("PublicFunction 读取 T_Banks 出错"); } if (dt != null) { foreach (DataRow dr in dt.Rows) { Banks[short.Parse(dr["ID"].ToString())] = dr["Name"].ToString(); } } #endregion #region 城市 dt = new DAL.Tables.T_Citys().Open("ID,Name", "", ""); if (dt == null) { new Log("SNS").Write("PublicFunction 读取 T_Citys 出错"); } if (dt != null) { foreach (DataRow dr in dt.Rows) { Citys[dr["Name"].ToString()] = int.Parse(dr["ID"].ToString()); } } #endregion #region 安全问题 SecurityQuestions[0] = "我婆婆或岳母的名字叫什么?"; SecurityQuestions[1] = "我爸爸的出生地在哪里?"; SecurityQuestions[2] = "我妈妈的出生地在哪里?"; SecurityQuestions[3] = "我的小学校名是什么?"; SecurityQuestions[4] = "我的中学校名是什么?"; SecurityQuestions[5] = "我的一个好朋友的手机号码是什么?"; SecurityQuestions[6] = "我的一个好朋友的爸爸名字是什么?"; SecurityQuestions[7] = "自定义问题"; #endregion #region 彩种玩法 Lotteries[3] = "七星彩"; Lotteries[5] = "双色球"; Lotteries[6] = "福彩3D"; Lotteries[28] = "重庆时时彩"; Lotteries[29] = "时时乐"; Lotteries[39] = "大乐透"; Lotteries[58] = "东方6+1"; Lotteries[59] = "15选5"; Lotteries[13] = "七乐彩"; Lotteries[9] = "22选5"; Lotteries[14] = "29选7"; Lotteries[63] = "排列3"; Lotteries[64] = "排列5"; Lotteries[19] = "篮彩"; Lotteries[1] = "胜负彩"; Lotteries[2] = "四场进球彩"; Lotteries[15] = "六场半全场"; Lotteries[61] = "江西时时彩"; Lotteries[62] = "十一运夺金"; Lotteries[65] = "31选7"; Lotteries[41] = "浙江体彩6+1"; Lotteries[70] = "11选5"; //江西11选5 Lotteries[72] = "竞彩足彩"; Lotteries[73] = "竞彩蓝彩"; Lotteries[74] = "胜负彩"; Lotteries[75] = "任九场"; Lotteries[69] = "河南福彩22选5"; Lotteries[68] = "快赢481"; Lotteries[77] = "河南11选5"; Lotteries[78] = "广东11选5"; Dictionary<int, string> tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[301] = "单式"; tempPlayTypes[302] = "复式"; PlayTypes[3] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[501] = "单式"; tempPlayTypes[502] = "复式"; tempPlayTypes[503] = "胆拖"; PlayTypes[5] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[601] = "直选单式"; tempPlayTypes[602] = "直选复式"; tempPlayTypes[603] = "组选单式"; tempPlayTypes[604] = "组6复式"; tempPlayTypes[605] = "组3复式"; tempPlayTypes[606] = "直选包点"; tempPlayTypes[607] = "复选包点"; PlayTypes[6] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[2801] = "单式"; tempPlayTypes[2802] = "复式"; tempPlayTypes[2803] = "组选"; tempPlayTypes[2804] = "猜大小"; tempPlayTypes[2805] = "五星通选单式"; tempPlayTypes[2806] = "五星通选复式"; tempPlayTypes[2807] = "二星组选单式"; tempPlayTypes[2808] = "二星组选复式"; tempPlayTypes[2809] = "二星组选分位"; tempPlayTypes[2810] = "二星组选包点"; tempPlayTypes[2811] = "二星组选包胆"; tempPlayTypes[2812] = "三星包点"; tempPlayTypes[2813] = "三星组3单式"; tempPlayTypes[2814] = "三星组3复式"; tempPlayTypes[2815] = "三星组6单式"; tempPlayTypes[2816] = "三星组6复式"; tempPlayTypes[2817] = "三星直选组合复式"; tempPlayTypes[2818] = "三星组选包胆"; tempPlayTypes[2819] = "三星组选包点"; PlayTypes[61] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[2901] = "直选单式"; tempPlayTypes[2902] = "直选复式"; tempPlayTypes[2903] = "组选单式"; tempPlayTypes[2904] = "组选6"; tempPlayTypes[2905] = "组选3"; tempPlayTypes[2906] = "直选"; tempPlayTypes[2907] = "组选"; tempPlayTypes[2908] = "前二单式"; tempPlayTypes[2909] = "前二复式"; tempPlayTypes[2910] = "后二单式"; tempPlayTypes[2911] = "后二复式"; tempPlayTypes[2912] = "前一单式"; tempPlayTypes[2913] = "前一复式"; tempPlayTypes[2914] = "后一单式"; tempPlayTypes[2915] = "后一复式"; PlayTypes[29] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[3901] = "单式"; tempPlayTypes[3902] = "复式"; tempPlayTypes[3903] = "追加单式"; tempPlayTypes[3904] = "追加复式"; tempPlayTypes[3905] = "12选2单式"; tempPlayTypes[3906] = "12选2复式"; PlayTypes[39] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[5801] = "单式"; tempPlayTypes[5802] = "复式"; PlayTypes[58] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[1301] = "单式"; tempPlayTypes[1302] = "复式"; PlayTypes[13] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[5901] = "单式"; tempPlayTypes[5902] = "复式"; PlayTypes[59] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[901] = "单式"; tempPlayTypes[902] = "复式"; PlayTypes[9] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[1401] = "单式"; tempPlayTypes[1402] = "复式"; PlayTypes[14] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[6301] = "排列3直选单式"; tempPlayTypes[6302] = "排列3直选复式"; tempPlayTypes[6303] = "排列3组选单式"; tempPlayTypes[6304] = "排列3组选6复式"; tempPlayTypes[6305] = "排列3组选3复式"; tempPlayTypes[6306] = "排列3直选和值"; tempPlayTypes[6307] = "排列3组选和值"; PlayTypes[63] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[6401] = "排列5单式"; tempPlayTypes[6402] = "排列5复式"; PlayTypes[64] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[1901] = "单式"; tempPlayTypes[1902] = "复式"; PlayTypes[19] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[101] = "单式"; tempPlayTypes[102] = "复式"; tempPlayTypes[103] = "任九场单式"; tempPlayTypes[104] = "任九场复式"; PlayTypes[1] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[201] = "单式"; tempPlayTypes[202] = "复式"; PlayTypes[2] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[1501] = "单式"; tempPlayTypes[1502] = "复式"; PlayTypes[15] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[6201] = "任选一"; tempPlayTypes[6202] = "任选二"; tempPlayTypes[6203] = "任选三"; tempPlayTypes[6204] = "任选四"; tempPlayTypes[6205] = "任选五"; tempPlayTypes[6206] = "任选六"; tempPlayTypes[6207] = "任选七"; tempPlayTypes[6208] = "任选八"; tempPlayTypes[6209] = "前二直选"; tempPlayTypes[6210] = "前三直选"; tempPlayTypes[6211] = "前二组选"; tempPlayTypes[6212] = "前三组选"; PlayTypes[62] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[6501] = "单式"; tempPlayTypes[3502] = "复式"; PlayTypes[65] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[6501] = "单式"; tempPlayTypes[3502] = "复式"; PlayTypes[65] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[6101] = "单式"; tempPlayTypes[6102] = "复式"; tempPlayTypes[6103] = "组选"; tempPlayTypes[6104] = "猜大小"; tempPlayTypes[6105] = "五星通选单式"; tempPlayTypes[6106] = "五星通选复式"; tempPlayTypes[6107] = "二星组选单式"; tempPlayTypes[6108] = "二星组选复式"; tempPlayTypes[6109] = "二星组选分位"; tempPlayTypes[6110] = "二星组选包点"; tempPlayTypes[6111] = "二星组选包胆"; tempPlayTypes[6112] = "二星直选包点"; PlayTypes[61] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[7001] = "任选一"; tempPlayTypes[7002] = "任选二"; tempPlayTypes[7003] = "任选三"; tempPlayTypes[7004] = "任选四"; tempPlayTypes[7005] = "任选五"; tempPlayTypes[7006] = "任选六"; tempPlayTypes[7007] = "任选七"; tempPlayTypes[7008] = "任选八"; tempPlayTypes[7009] = "前二直选"; tempPlayTypes[7010] = "前三直选"; tempPlayTypes[7011] = "前二组选"; tempPlayTypes[7012] = "前三组选"; PlayTypes[70] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[4101] = "单式"; tempPlayTypes[4102] = "复式"; PlayTypes[41] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[7201] = "单式"; tempPlayTypes[7202] = "复式"; tempPlayTypes[7203] = "复式"; tempPlayTypes[7204] = "复式"; PlayTypes[72] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[7301] = "单式"; tempPlayTypes[7302] = "复式"; tempPlayTypes[7303] = "复式"; tempPlayTypes[7304] = "复式"; PlayTypes[73] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[7401] = "单式"; tempPlayTypes[7402] = "复式"; PlayTypes[74] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[7501] = "单式"; tempPlayTypes[7502] = "复式"; PlayTypes[75] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[6901] = "单式"; tempPlayTypes[6902] = "复式"; tempPlayTypes[6903] = "好运2"; tempPlayTypes[6904] = "好运3"; tempPlayTypes[6905] = "好运4"; PlayTypes[69] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[6801] = "任选一"; tempPlayTypes[6802] = "任选二"; tempPlayTypes[6803] = "任选三"; tempPlayTypes[6804] = "直选单式"; tempPlayTypes[6805] = "直选复式"; tempPlayTypes[6806] = "组选24单式"; tempPlayTypes[6807] = "组选24复式"; tempPlayTypes[6808] = "组选12单式"; tempPlayTypes[6809] = "组选12复式"; tempPlayTypes[6810] = "组选6单式"; tempPlayTypes[6811] = "组选6复式"; tempPlayTypes[6812] = "组选4单式"; tempPlayTypes[6813] = "组选4复式"; PlayTypes[68] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[7701] = "任选一"; tempPlayTypes[7702] = "任选二"; tempPlayTypes[7703] = "任选三"; tempPlayTypes[7704] = "任选四"; tempPlayTypes[7705] = "任选五"; tempPlayTypes[7706] = "任选六"; tempPlayTypes[7707] = "任选七"; tempPlayTypes[7708] = "任选八"; tempPlayTypes[7709] = "前二直选"; tempPlayTypes[7710] = "前三直选"; tempPlayTypes[7711] = "前二组选"; tempPlayTypes[7712] = "前三组选"; PlayTypes[77] = tempPlayTypes; tempPlayTypes = new Dictionary<int, string>(); tempPlayTypes[7801] = "任选一"; tempPlayTypes[7802] = "任选二"; tempPlayTypes[7803] = "任选三"; tempPlayTypes[7804] = "任选四"; tempPlayTypes[7805] = "任选五"; tempPlayTypes[7806] = "任选六"; tempPlayTypes[7807] = "任选七"; tempPlayTypes[7808] = "任选八"; tempPlayTypes[7809] = "前二直选"; tempPlayTypes[7810] = "前三直选"; tempPlayTypes[7811] = "前二组选"; tempPlayTypes[7812] = "前三组选"; PlayTypes[78] = tempPlayTypes; #endregion #region LotterieBuyPage[3] = "Buy_QXC.aspx"; LotterieBuyPage[5] = "Buy_SSQ.aspx"; LotterieBuyPage[6] = "Buy_3D.aspx"; LotterieBuyPage[28] = "Buy_CQSSC.aspx"; LotterieBuyPage[29] = "Buy_SSL.aspx"; LotterieBuyPage[39] = "Buy_CJDLT.aspx"; LotterieBuyPage[58] = "Buy_DF6J1.aspx"; LotterieBuyPage[59] = "Buy_15X5.aspx"; LotterieBuyPage[13] = "Buy_QLC.aspx"; LotterieBuyPage[9] = "Buy_22X5.aspx"; LotterieBuyPage[14] = "Buy_31X7.aspx"; LotterieBuyPage[63] = "Buy_PL3.aspx"; LotterieBuyPage[64] = "Buy_PL5.aspx"; LotterieBuyPage[19] = "Buy.aspx"; LotterieBuyPage[1] = "Buy.aspx"; LotterieBuyPage[2] = "Buy_JQC.aspx"; LotterieBuyPage[15] = "Buy_LCBQC.aspx"; LotterieBuyPage[61] = "Buy_SSC.aspx"; LotterieBuyPage[62] = "Buy_SYYDJ.aspx"; LotterieBuyPage[65] = "Buy_31X7.aspx"; LotterieBuyPage[41] = "Buy_ZJTC6J1.aspx"; LotterieBuyPage[70] = "Buy_JX11X5.aspx"; //江西11选5 LotterieBuyPage[72] = "JCZC/Buy_SPF.aspx"; LotterieBuyPage[73] = "JCLC/Buy_SF.aspx"; LotterieBuyPage[74] = "Buy_SFC.aspx"; LotterieBuyPage[75] = "Buy_SFC_9_D.aspx"; LotterieBuyPage[69] = "Buy_HN22X5.aspx"; LotterieBuyPage[68] = "Buy_KY481.aspx"; LotterieBuyPage[77] = "Buy_HN11X5.aspx"; LotterieBuyPage[78] = "Buy_GD11X5.aspx"; #endregion #region 提前截止时间 string strLottery = ""; foreach (KeyValuePair<int, string> kvp in Lotteries) { strLottery += kvp.Key + ","; } strLottery = strLottery.Remove(strLottery.Length - 1, 1); DataTable dtPlayTypes = new DAL.Tables.T_PlayTypes().Open("LotteryID,SystemEndAheadMinute", "LotteryID in (" + strLottery + ")", ""); foreach (DataRow dr in dtPlayTypes.Rows) { LotteryEndAheadMinute[int.Parse(dr["LotteryID"].ToString())] = int.Parse(dr["SystemEndAheadMinute"].ToString()); } #endregion }
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>" : "未激活") + " <a href='UserEmailBind.aspx'>申请激活或修改激活</a>"; this.labIsMobileVailded.Text = (base._User.isMobileValided ? "<font color='red'>已绑定</font>" : "未绑定") + " <a href='UserMobileBind.aspx'>申请绑定或修改绑定</a>"; this.lbQQValided.Text = (flag ? "<font color='red'>已绑定</font>" : "未绑定") + " <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; } }