protected override void AttachChildControls() { this.accountList = (Common_Advance_AccountList)this.FindControl("Common_Advance_AccountList"); this.pager = (Pager)this.FindControl("pager"); this.calendarStart = (WebCalendar)this.FindControl("calendarStart"); this.calendarEnd = (WebCalendar)this.FindControl("calendarEnd"); this.dropTradeType = (TradeTypeDropDownList)this.FindControl("dropTradeType"); this.btnSearchBalanceDetails = ButtonManager.Create(this.FindControl("btnSearchBalanceDetails")); PageTitle.AddSiteNameTitle("帐户明细", HiContext.Current.Context); this.btnSearchBalanceDetails.Click += new EventHandler(this.btnSearchBalanceDetails_Click); if (!this.Page.IsPostBack) { Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!user.IsOpenBalance) { this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", HttpContext.Current.Request.Url)); } this.BindBalanceDetails(); } }
protected override void AttachChildControls() { this.accountList = (Common_Advance_AccountList) this.FindControl("Common_Advance_AccountList"); this.pager = (Pager) this.FindControl("pager"); this.calendarStart = (WebCalendar) this.FindControl("calendarStart"); this.calendarEnd = (WebCalendar) this.FindControl("calendarEnd"); this.dropTradeType = (TradeTypeDropDownList) this.FindControl("dropTradeType"); this.btnSearchBalanceDetails = ButtonManager.Create(this.FindControl("btnSearchBalanceDetails")); PageTitle.AddSiteNameTitle("帐户明细", HiContext.Current.Context); this.btnSearchBalanceDetails.Click += new EventHandler(this.btnSearchBalanceDetails_Click); if (!this.Page.IsPostBack) { Member user = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!user.IsOpenBalance) { this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", HttpContext.Current.Request.Url)); } this.BindBalanceDetails(); } }