protected override void AttachChildControls() { this.accountList = (Common_Advance_AccountList)this.FindControl("Common_Advance_AccountList"); this.pager = (Pager)this.FindControl("pager"); this.calendarStart = (CalendarPanel)this.FindControl("calendarStart"); this.calendarEnd = (CalendarPanel)this.FindControl("calendarEnd"); this.dropTradeType = (TradeTypeDropDownList)this.FindControl("dropTradeType"); this.imgbtnSearch = (Button)this.FindControl("imgbtnSearch"); this.litAccountAmount = (FormatedMoneyLabel)this.FindControl("litAccountAmount"); this.litRequestBalance = (FormatedMoneyLabel)this.FindControl("litRequestBalance"); this.litUseableBalance = (FormatedMoneyLabel)this.FindControl("litUseableBalance"); this.spaccountamount = (HtmlGenericControl)this.FindControl("spaccountamount"); this.sprequestbalace = (HtmlGenericControl)this.FindControl("sprequestbalace"); this.link_balancedraw = (HtmlAnchor)this.FindControl("link_balancedraw"); this.imgbtnSearch.Click += this.imgbtnSearch_Click; PageTitle.AddSiteNameTitle("预付款账户"); if (!this.Page.IsPostBack) { MemberInfo user = HiContext.Current.User; if (string.IsNullOrWhiteSpace(user.TradePassword)) { this.Page.Response.Redirect($"/user/OpenBalance.aspx?ReturnUrl={HttpContext.Current.Request.Url}"); } this.BindBalanceDetails(); this.litAccountAmount.Money = user.Balance; this.litRequestBalance.Money = user.RequestBalance; this.litUseableBalance.Money = user.Balance - user.RequestBalance; HtmlGenericControl htmlGenericControl = this.spaccountamount; HtmlGenericControl htmlGenericControl2 = this.sprequestbalace; HtmlAnchor htmlAnchor = this.link_balancedraw; bool flag = htmlAnchor.Visible = HiContext.Current.SiteSettings.EnableBulkPaymentAdvance; bool visible = htmlGenericControl2.Visible = flag; htmlGenericControl.Visible = visible; } }
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.imgbtnSearch = (System.Web.UI.WebControls.ImageButton) this.FindControl("imgbtnSearch"); this.litAccountAmount = (FormatedMoneyLabel)this.FindControl("litAccountAmount"); this.litRequestBalance = (FormatedMoneyLabel)this.FindControl("litRequestBalance"); this.litUseableBalance = (FormatedMoneyLabel)this.FindControl("litUseableBalance"); this.imgbtnSearch.Click += new System.Web.UI.ImageClickEventHandler(this.imgbtnSearch_Click); PageTitle.AddSiteNameTitle("预付款账户"); if (!this.Page.IsPostBack) { Member member = Users.GetUser(HiContext.Current.User.UserId, false) as Member; if (!member.IsOpenBalance) { this.Page.Response.Redirect(Globals.ApplicationPath + string.Format("/user/OpenBalance.aspx?ReturnUrl={0}", System.Web.HttpContext.Current.Request.Url)); } this.BindBalanceDetails(); this.litAccountAmount.Money = member.Balance; this.litRequestBalance.Money = member.RequestBalance; this.litUseableBalance.Money = member.Balance - member.RequestBalance; } }
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(); } }