private void BindddlIsuses(int IsuseId) { string key = "Home_Room_NewsPaper"; if (Shove._Web.Cache.GetCacheAsDataTable(key) == null) { DataTable dt = new Tables.T_NewsPaperIsuses().Open("", "", " ID desc"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试!", base.GetType().BaseType.FullName); } else { foreach (DataRow row in dt.Rows) { row["Name"] = row["Name"].ToString() + "期"; } ControlExt.FillDropDownList(this.ddlIsusesID, dt, "Name", "ID"); ListItem item = this.ddlIsusesID.Items.FindByValue(IsuseId.ToString()); if (item != null) { this.ddlIsusesID.SelectedIndex = -1; item.Selected = true; } } } }
private void BindDataForIsuse() { if (this.ddlLottery.Items.Count >= 1) { DataTable dt = new Tables.T_Isuses().Open("[ID], [Name]", "LotteryID = " + Utility.FilteSqlInfusion(this.ddlLottery.SelectedValue) + " and isOpened = 1", "EndTime desc"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName); } else { ControlExt.FillDropDownList(this.ddlIsuse, dt, "Name", "ID"); if (this.ddlIsuse.Items.Count > 0) { this.WinNumberOther.Visible = true; this.btnGO.Enabled = true; this.ddlIsuse_SelectedIndexChanged(this.ddlIsuse, new EventArgs()); } else { this.WinNumberOther.Visible = true; this.btnGO.Enabled = false; } } } }
private void BindDataForIsuse() { if (this.ddlLottery.Items.Count >= 1) { DataTable dt = new Tables.T_Isuses().Open("[ID], [Name]", "LotteryID = " + Utility.FilteSqlInfusion(this.ddlLottery.SelectedValue) + " and EndTime < GetDate() and isOpened = 1", "EndTime"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_InputOpenAffiche"); } else { ControlExt.FillDropDownList(this.ddlIsuse, dt, "Name", "ID"); if (this.ddlIsuse.Items.Count > 0) { this.btnOK.Enabled = true; this.tbOpenAffiche.ReadOnly = false; } else { this.btnOK.Enabled = false; this.tbOpenAffiche.ReadOnly = true; } this.BindData(); } } }
private void BindDataForIsuse() { if (this.ddlLottery.Items.Count >= 1) { DataTable dt = new Tables.T_Isuses().Open("[ID], [Name]", "LotteryID = " + Utility.FilteSqlInfusion(this.ddlLottery.SelectedValue) + " and EndTime < GetDate() and isnull(WinLotteryNumber,'') =''", "EndTime"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().FullName); } else { ControlExt.FillDropDownList(this.ddlIsuse, dt, "Name", "ID"); if (this.ddlIsuse.Items.Count > 0) { this.btnGO.Enabled = true; this.tbWinNumber.Enabled = true; } else { this.btnGO.Enabled = false; this.tbWinNumber.Enabled = false; this.tbWinNumber.Text = ""; } } } }
private void BindDataForLottery() { DataTable dt = new Tables.T_Lotteries().Open("[ID], [Name]", "[ID] in (" + ((base._Site.UseLotteryList == "") ? "-1" : base._Site.UseLotteryList) + ")", "[Order]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_WinList"); } else { ControlExt.FillDropDownList(this.ddlLottery, dt, "Name", "ID"); } }
protected void ddlLottery_SelectedIndexChanged(object sender, EventArgs e) { DataTable dt = new Tables.T_Isuses().Open("ID,Name", "LotteryID=" + this.ddlLottery.SelectedValue + " and getdate()>StartTime", "EndTime desc"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_ChaseList"); } else { ControlExt.FillDropDownList(this.ddlIsuses, dt, "Name", "ID"); } }
private void FillQuestionType() { DataTable dt = new Tables.T_QuestionTypes().Open("", "UseType = 1", "[ID]"); if ((dt == null) || (dt.Rows.Count == 0)) { PF.GoError(4, "数据库繁忙,请重试", "Room_Service"); } else { ControlExt.FillDropDownList(this.ddlQuestionType, dt, "Name", "ID"); } }
private void BindData() { DataTable dt = new Tables.T_CardPasswordAgents().Open("[ID], [Name]", "", "[ID]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_CardPasswordAdd"); } else { ControlExt.FillDropDownList(this.ddlCardPasswordAgents, dt, "Name", "ID"); } }
private void BindData() { DataTable dt = new Tables.T_Sites().Open("[ID], [Name]", "", "[Level], [ID]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_UserAddMoney"); } else { ControlExt.FillDropDownList(this.ddlSites, dt, "Name", "ID"); } }
private void BindDataForNewsPaperTypes() { DataTable dt = new Tables.T_NewsPaperIsuses().Open("", "", "[ID]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName); } else { ControlExt.FillDropDownList(this.ddlNewsTypes, dt, "Name", "ID"); } }
private void BindDataForLottery() { DataTable dt = new Tables.T_Lotteries().Open("[ID], [Name]", "[ID] in (1,2,3,4,9,10,14,15,39)", "[Order]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().FullName); } else { ControlExt.FillDropDownList(this.ddlLottery, dt, "Name", "ID"); } }
private void BindDataForIsuse() { DataTable dt = new Tables.T_Isuses().Open("[ID], [Name]", "LotteryID = " + Utility.FilteSqlInfusion(this.ddlLottery.SelectedValue) + " and StartTime < GetDate() and IsOpened = 0", "EndTime"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_PrintOutput"); } else { ControlExt.FillDropDownList(this.ddlIsuse, dt, "Name", "ID"); this.g.Visible = this.ddlIsuse.Items.Count > 0; } }
private void BindDataForIsuse() { if (this.ddlLottery.Items.Count >= 1) { DataTable dt = new Tables.T_Isuses().Open("[ID], [Name]", "LotteryID = " + Utility.FilteSqlInfusion(this.ddlLottery.SelectedValue) + " and EndTime < GetDate() and isOpened = 0", "EndTime"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_OpenManual"); } else { ControlExt.FillDropDownList(this.ddlIsuse, dt, "Name", "ID"); if (this.ddlIsuse.Items.Count > 0) { this.ddlIsuse_SelectedIndexChanged(this.ddlIsuse, new EventArgs()); if (this.ddlIsuse.SelectedValue == "45") { this.Label1.Visible = false; this.tbWinLotteryNumber.Visible = false; this.lbTipLotteryNumber.Visible = false; this.tbWinLotteryNumber.Enabled = true; this.lbTipLotteryNumber.Visible = true; this.btnEnd.Enabled = true; this.tbOpenAffiche.ReadOnly = false; } else { this.Label1.Visible = true; this.tbWinLotteryNumber.Visible = true; this.lbTipLotteryNumber.Visible = true; this.tbWinLotteryNumber.Enabled = true; this.lbTipLotteryNumber.Visible = true; this.btnEnd.Enabled = true; this.tbOpenAffiche.ReadOnly = false; } } else { this.Label1.Visible = true; this.tbWinLotteryNumber.Visible = true; this.lbTipLotteryNumber.Visible = true; this.tbWinLotteryNumber.Enabled = false; this.lbTipLotteryNumber.Visible = false; this.btnEnd.Enabled = false; this.tbOpenAffiche.ReadOnly = true; } } } }
private void BindDataForLottery() { if (this.ddlElectronTicket.Items.Count >= 1) { DataTable dt = new Tables.T_Lotteries().Open("[ID], [Name]", "PrintOutType = " + Utility.FilteSqlInfusion(this.ddlElectronTicket.SelectedValue) + " and [ID] in (" + ((base._Site.UseLotteryListRestrictions == "") ? "-1" : base._Site.UseLotteryListRestrictions) + ")", "[Order]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", this.Page.GetType().BaseType.FullName); } else { ControlExt.FillDropDownList(this.ddlLottery, dt, "Name", "ID"); } } }
private void ddlLeagueTypeDataBind(DropDownList ddl) { if (this.dt_FootballLeagueTypes == null) { this.dt_FootballLeagueTypes = MSSQL.Select("select * from T_FootballLeagueTypes where isUse = 1 order by [Order]", new MSSQL.Parameter[0]); } if ((this.dt_FootballLeagueTypes == null) || (this.dt_FootballLeagueTypes.Rows.Count == 0)) { JavaScript.Alert(this.Page, "请先添加联赛类别!"); } else { ControlExt.FillDropDownList(ddl, this.dt_FootballLeagueTypes, "Name", "ID"); } }
private void BindDataForIsuse() { if (this.ddlLottery.Items.Count >= 1) { DataTable dt = new Tables.T_Isuses().Open("", "StartTime < GetDate() and LotteryID = " + Utility.FilteSqlInfusion(this.ddlLottery.SelectedValue), "EndTime desc"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_SchemeAtTop"); } else { this.ddlIsuse.Items.Clear(); ControlExt.FillDropDownList(this.ddlIsuse, dt, "Name", "ID"); } } }
private void BindDataForLottery() { DataTable dt = new Tables.T_Lotteries().Open("[ID], [Name]", "[ID] in (1,2,3,4,9,10,14,15,39)", "[Order]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName); } else { ControlExt.FillDropDownList(this.ddlLottery, dt, "Name", "ID"); string request = Utility.GetRequest("LotteryID"); if (request != "") { ControlExt.SetDownListBoxTextFromValue(this.ddlLottery, request); } } }
private void BindDataForLottery() { DataTable dt = new Tables.T_Lotteries().Open("[ID], [Name]", "[ID] in (1,2,3,4,9,10,14,15,39) and [ID] <> 45", "[Order]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().FullName); } else { ControlExt.FillDropDownList(this.ddlLottery, dt, "Name", "ID"); if (this.ddlLottery.Items.Count < 1) { this.btnGO.Enabled = false; this.tbWinNumber.Enabled = false; } } }
private void BindDataForLottery() { DataTable dt = new Tables.T_Lotteries().Open("[ID], [Name]", "[ID] in (" + ((base._Site.UseLotteryListRestrictions == "") ? "-1" : base._Site.UseLotteryListRestrictions) + ") and [ID] <> 45", "[Order]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", "Admin_InputWinNumber"); } else { ControlExt.FillDropDownList(this.ddlLottery, dt, "Name", "ID"); if (this.ddlLottery.Items.Count < 1) { this.btnGO.Enabled = false; this.tbWinNumber.Enabled = false; } } }
private void BindDataForLottery() { DataTable dt = new Tables.T_Lotteries().Open("[ID], [Name]", "[ID] in (" + ((base._Site.UseLotteryListRestrictions == "") ? "-1" : base._Site.UseLotteryListRestrictions) + ")", "[Order]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().BaseType.FullName); } else { ControlExt.FillDropDownList(this.ddlLottery, dt, "Name", "ID"); if (this.ddlLottery.Items.Count < 1) { this.btnGO.Enabled = false; } else { this.ddlLottery_SelectedIndexChanged(this.ddlLottery, new EventArgs()); } } }
private void BindddlIsuses() { string key = "Home_Room_NewsPaper"; if (Shove._Web.Cache.GetCacheAsDataTable(key) == null) { DataTable dt = new Tables.T_NewsPaperIsuses().Open("", "", " ID desc"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试!", base.GetType().BaseType.FullName); } else { foreach (DataRow row in dt.Rows) { row["Name"] = row["Name"].ToString() + "期"; } ControlExt.FillDropDownList(this.ddlIsusesID, dt, "Name", "ID"); } } }
private void BindddlIsuses() { string key = "NewsPapers_NewsPaperList"; if (Shove._Web.Cache.GetCacheAsDataTable(key) == null) { DataTable dt = new Tables.T_NewsPaperIsuses().Open("", "", " ID desc"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试!", base.GetType().BaseType.FullName); } else { foreach (DataRow row in dt.Rows) { row["Name"] = row["Name"].ToString() + "期"; } ControlExt.FillDropDownList(this.ddlIsusesID, dt, "Name", "ID"); this.ddlIsusesID.Items.Insert(0, new ListItem("--------", "0")); this.ddlIsusesID.SelectedIndex = 0; } } }
protected void Page_Load(object sender, EventArgs e) { AjaxPro.Utility.RegisterTypeForAjax(typeof(Home_Room_TencentReceive), this.Page); if (base.Request.Form.AllKeys.Length < 1) { JavaScript.Alert(this.Page, "接口调用失败,请重新登录。", "../../UserLogin.aspx"); } else { new StringBuilder(); string str = (base.Request.Form["charset"] == null) ? "" : base.Request.Form["charset"].ToString().Trim(); string str2 = (base.Request.Form["tmstamp"] == null) ? "" : base.Request.Form["tmstamp"].ToString().Trim(); string str3 = (base.Request.Form["sign"] == null) ? "" : base.Request.Form["sign"].ToString().Trim(); string key = this.so["MemberSharing_Tencent_MD5"].ToString("").Trim(); string str5 = (base.Request.Form["id"] == null) ? "" : base.Request.Form["id"].ToString().Trim(); string str6 = ""; if ((str5.IndexOf("@") > 0) && (str5.IndexOf(".") > 0)) { str6 = str5; } else { str6 = str5 + "@qq.com"; } if (!base.IsPostBack) { if ((_Convert.StrToLong(this.GetTmstamp(), 0L) - _Convert.StrToLong(str2, 0L)) > 120L) { JavaScript.Alert(this.Page, "登陆超时,请重新登录。", "../../UserLogin.aspx"); return; } string[] allKeys = base.Request.Form.AllKeys; if (this.GetSign(key, str, allKeys) != str3) { JavaScript.Alert(this.Page, "您不是有效的腾讯用户不能登录本站,请您注册成为本站会员,再登录,谢谢!(-1001)。", "../../UserLogin.aspx"); return; } if (string.IsNullOrEmpty(str5)) { JavaScript.Alert(this.Page, "您不是有效的腾讯用户不能登录本站,请您注册成为本站会员,再登录,谢谢!(-1002)。", "../../UserLogin.aspx"); return; } } bool flag = base._Site.SiteOptions["Opt_isUseCheckCode"].ToBoolean(true); this.CheckCode.Visible = flag; new Login().SetCheckCode(base._Site, this.ShoveCheckCode1); Sites sites = new Sites()[Shove._Web.Utility.GetUrlWithoutHttp()]; if (sites == null) { JavaScript.Alert(this.Page, "站点信息不存在。", "../../UserLogin.aspx"); } else { if ((base._User != null) && (Shove._Web.Cache.GetCache("UserQQBind_" + base._User.ID.ToString()) != null)) { if (_Convert.StrToLong(str5, 0L) < 1L) { JavaScript.Alert(this.Page, "您输入的 QQ 号码不合法!", "TencentLogin.aspx"); return; } Shove._Web.Cache.ClearCache("UserQQBind_" + base._User.ID.ToString()); Thread.Sleep(500); string returnDescription = ""; base._User.QQ = str5; base._User.isQQValided = true; if (base._User.EditByID(ref returnDescription) < 0) { JavaScript.Alert(this.Page, returnDescription); return; } JavaScript.Alert(this.Page, "QQ号码绑定成功!", "UserQQBind.aspx"); } DataTable dt = new Tables.T_Users().Open("[ID], [Name]", "SiteID = " + sites.ID.ToString() + " and QQ = '" + Shove._Web.Utility.FilteSqlInfusion(str5) + "' and IsQQValided = 1", "[ID]"); if (dt == null) { JavaScript.Alert(this.Page, "数据库繁忙,请重试。", "../../UserLogin.aspx"); } else if (!base.IsPostBack) { this.labAccount.Text = str5; this.labAccount2.Text = str5; if (dt.Rows.Count < 1) { this.tbQQID.Text = str5; this.tbName.Text = str5; this.tbEmail.Text = str6; this.btnSelect.Enabled = false; this.tableSelect.Visible = false; this.Script = "btn_CheckUserName('" + str5 + "')"; } else if (dt.Rows.Count == 1) { long num4 = _Convert.StrToLong(dt.Rows[0]["ID"].ToString(), -1L); if (num4 < 0L) { JavaScript.Alert(this.Page, "用户信息读取错误。", "../../UserLogin.aspx"); } else { Users user = new Users(sites.ID)[sites.ID, num4]; if (user == null) { JavaScript.Alert(this.Page, "用户信息不存在。", "../../UserLogin.aspx"); } else { string str9 = ""; if (user.LoginDirect(ref str9) < 0) { PF.GoError(1, str9, base.GetType().FullName); } else { this.ResponseToDistination(user, str5); } } } } else { this.tableRegister.Visible = false; this.btnOK.Enabled = false; this.tableSelect.Visible = true; this.btnSelect.Enabled = true; ControlExt.FillDropDownList(this.ddlName, dt, "Name", "ID"); this.ddlName.SelectedIndex = 0; } } } } }
protected void Page_Load(object sender, EventArgs e) { AjaxPro.Utility.RegisterTypeForAjax(typeof(Home_Room_Receive), this.Page); if (base.Request.QueryString.Count < 1) { JavaScript.Alert(this.Page, "接口调用失败,请重新登录。", "../../Default.aspx"); } else { string str = "http://notify.alipay.com/trade/notify_query.do?"; string str2 = this.so["MemberSharing_Alipay_UserNumber"].ToString(""); str = str + "partner=" + str2 + "¬ify_id=" + base.Request.QueryString["notify_id"]; if (this.Get_Http(str, 0x1d4c0) == "false") { JavaScript.Alert(this.Page, "接口调用失败,请重新登录。", "../../Default.aspx"); } else { bool flag = base._Site.SiteOptions["Opt_isUseCheckCode"].ToBoolean(true); this.CheckCode.Visible = flag; new Login().SetCheckCode(base._Site, this.ShoveCheckCode1); if (WebConfig.GetAppSettingsBool("DebugUserControl", false)) { this.tbName.Text = "为了设计页面而进入调试状态,本控件的功能并不运行"; } else { string str4 = this.so["MemberSharing_Alipay_MD5"].ToString(""); string charset = "utf-8"; string[] strArray3 = Shove.Alipay.Alipay.BubbleSort(base.Request.QueryString.AllKeys); StringBuilder builder = new StringBuilder(); for (int i = 0; i < strArray3.Length; i++) { if (((!string.IsNullOrEmpty(strArray3[i]) && (base.Request.QueryString[strArray3[i]] != "")) && ((strArray3[i] != "sign") && (strArray3[i] != "sign_type"))) && (strArray3[i].ToLower() != "pn")) { if (i == (strArray3.Length - 1)) { builder.Append(strArray3[i] + "=" + base.Request.QueryString[strArray3[i]]); } else { builder.Append(strArray3[i] + "=" + base.Request.QueryString[strArray3[i]] + "&"); } } } builder.Append(str4); string str6 = Shove.Alipay.Alipay.GetMD5(builder.ToString(), charset); string str7 = (base.Request.QueryString["sign"] == null) ? "" : base.Request.QueryString["sign"].ToString(); string str8 = (base.Request.QueryString["is_success"] == null) ? "" : base.Request.QueryString["is_success"].ToString().ToUpper(); string str9 = (base.Request.QueryString["user_id"] == null) ? "" : base.Request.QueryString["user_id"].ToString(); string str10 = (base.Request.QueryString["email"] == null) ? "" : base.Request.QueryString["email"].ToString(); if (base.Request.QueryString["user_type"] != null) { base.Request.QueryString["user_type"].ToString(); } if (base.Request.QueryString["user_status"] != null) { base.Request.QueryString["user_status"].ToString(); } if (base.Request.QueryString["firm_name"] != null) { base.Request.QueryString["firm_name"].ToString(); } string str11 = (base.Request.QueryString["real_name"] == null) ? "" : base.Request.QueryString["real_name"].ToString(); if (base.Request.QueryString["cert_no"] != null) { base.Request.QueryString["cert_no"].ToString(); } if (base.Request.QueryString["cert_type"] != null) { base.Request.QueryString["cert_type"].ToString(); } if (base.Request.QueryString["gender"] != null) { base.Request.QueryString["gender"].ToString(); } if (base.Request.QueryString["province"] != null) { base.Request.QueryString["province"].ToString(); } if (base.Request.QueryString["city"] != null) { base.Request.QueryString["city"].ToString(); } if (base.Request.QueryString["address"] != null) { base.Request.QueryString["address"].ToString(); } if (base.Request.QueryString["zip"] != null) { base.Request.QueryString["zip"].ToString(); } if (base.Request.QueryString["phone"] != null) { base.Request.QueryString["phone"].ToString(); } if (base.Request.QueryString["mobile"] != null) { base.Request.QueryString["mobile"].ToString(); } if (base.Request.QueryString["is_bank_auth"] != null) { base.Request.QueryString["is_bank_auth"].ToString(); } if (base.Request.QueryString["is_mobile_auth"] != null) { base.Request.QueryString["is_mobile_auth"].ToString(); } if (base.Request.QueryString["is_id_auth"] != null) { base.Request.QueryString["is_id_auth"].ToString(); } if ((str6 != str7) || (str10 == "")) { PF.GoError(1, "您不是有效的支付宝会员不能登录本站,请您注册成为本站会员,再登录,谢谢!(-1001)", base.GetType().FullName); } else if (str8 != "T") { PF.GoError(1, "您不是有效的支付宝会员不能登录本站,请您注册成为本站会员,再登录,谢谢!(-1002)", base.GetType().FullName); } else if (string.IsNullOrEmpty(str9)) { PF.GoError(1, "您不是有效的支付宝会员不能登录本站,请您注册成为本站会员,再登录,谢谢!(-1003)", base.GetType().FullName); } else if (string.IsNullOrEmpty(str10)) { PF.GoError(1, "您不是有效的支付宝会员不能登录本站,请您注册成为本站会员,再登录,谢谢!(-1004)", base.GetType().FullName); } else { Sites sites = new Sites()[Shove._Web.Utility.GetUrlWithoutHttp()]; if (sites == null) { PF.GoError(1, "会员数据校验错误。", base.GetType().FullName); } else { if ((base._User != null) && (Shove._Web.Cache.GetCache("BindAlipay_" + base._User.ID.ToString()) != null)) { string realityName = ""; long num3 = new Member().Query(str10, ref realityName); if (num3 < 0L) { JavaScript.Alert(this.Page, "输入的账号在支付宝网站验证失败(不存在账号或者网络通讯故障," + num3.ToString() + "),请重新填写一个账号名称。"); return; } if (((str11 != base._User.RealityName) && (realityName != base._User.RealityName)) && (base._User.RealityName != "")) { JavaScript.Alert(this.Page, "您输入的支付宝账号的真实姓名与您在本站注册时提供的真实姓名不一致,请更换新的支付宝帐号进行绑定,谢谢!", "Login.aspx"); return; } Shove._Web.Cache.ClearCache("BindAlipay_" + base._User.ID.ToString()); Thread.Sleep(500); Users user = new Users(base._Site.ID); base._User.Clone(user); base._User.AlipayID = num3.ToString(); base._User.AlipayName = str10; base._User.RealityName = realityName; base._User.isAlipayNameValided = true; string returnDescription = ""; if (base._User.EditByID(ref returnDescription) < 0) { user.Clone(base._User); JavaScript.Alert(this.Page, returnDescription); return; } JavaScript.Alert(this.Page, "支付宝绑定成功!", "BindAlipay.aspx"); } DataTable dt = new Tables.T_Users().Open("[ID], [Name]", "SiteID = " + sites.ID.ToString() + " and AlipayID = '" + Shove._Web.Utility.FilteSqlInfusion(str9) + "'", "[ID]"); if (dt == null) { PF.GoError(4, "数据库繁忙,请重试", base.GetType().FullName); } else if (!base.IsPostBack) { this.labAccount.Text = str10; this.labAccount2.Text = str10; if (dt.Rows.Count < 1) { this.tbAlipayID.Text = str9; this.tbName.Text = str10.Split(new char[] { '@' })[0]; this.Script = "btn_CheckUserName('" + this.tbName.Text + "')"; this.btnSelect.Enabled = false; this.tableSelect.Visible = false; } else if (dt.Rows.Count == 1) { long num5 = _Convert.StrToLong(dt.Rows[0]["ID"].ToString(), -1L); if (num5 < 0L) { PF.GoError(1, "会员数据校验错误。", base.GetType().FullName); } else { Users users3 = new Users(sites.ID)[sites.ID, num5]; if (users3 == null) { PF.GoError(1, "会员数据校验错误。", base.GetType().FullName); } else { string str14 = ""; if (users3.LoginDirect(ref str14) < 0) { PF.GoError(1, str14, base.GetType().FullName); } else { long buyID = -1L; if ((base.Request.Url.AbsoluteUri.IndexOf("?BuyID") > 0) && (base.Request.Url.AbsoluteUri.IndexOf("&") > 0)) { buyID = _Convert.StrToLong(HttpUtility.UrlDecode(base.Request.Url.AbsoluteUri).Split(new char[] { '?' })[1].Split(new char[] { '&' })[0].Replace("BuyID=", ""), -1L); } if (buyID > 0L) { this.GoBuy(buyID); } else { base.Response.Redirect("../../Default.aspx", true); } } } } } else { this.tableRegister.Visible = false; this.btnOK.Enabled = false; this.tableSelect.Visible = true; this.btnSelect.Enabled = true; ControlExt.FillDropDownList(this.ddlName, dt, "Name", "ID"); this.ddlName.SelectedIndex = 0; } } } } } } } }