protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { RadioButtonListBuilder builder1 = new RadioButtonListBuilder(new NewReportByTimeType(), this.rblByTimeTypeGroup, this.languageComponent1); RadioButtonListBuilder builder2 = new RadioButtonListBuilder(new NewReportCompareType(), this.rblCompareTypeGroup, this.languageComponent1); RadioButtonListBuilder builder3 = new RadioButtonListBuilder(new NewReportCompleteType(), this.rblCompleteTypeGroup, this.languageComponent1); RadioButtonListBuilder builder4 = new RadioButtonListBuilder(new NewReportExceptionOrDuty(), this.rblExceptionOrDuty, this.languageComponent1); builder1.Build(); builder2.Build(); builder3.Build(); builder4.Build(); SetByTime(); ClearEmptyPanels(); ReportPageHelper.SetControlValue(this, this.Request.Params); //this.chbCompareGroup.Attributes["onclick"] = "onCheckChange('" + this.chbCompareGroup.ClientID + "');"; } RadioButtonListBuilder.FormatListControlStyle(this.rblByTimeTypeGroup, 30); RadioButtonListBuilder.FormatListControlStyle(this.rblCompareTypeGroup, 40); RadioButtonListBuilder.FormatListControlStyle(this.rblCompleteTypeGroup, 30); RadioButtonListBuilder.FormatListControlStyle(this.rblExceptionOrDuty, 50); this.rblCompareTypeGroup.Enabled = this.chbCompareGroup.Checked; }
protected void Page_Load(object sender, EventArgs e) { RadioButtonListBuilder builder = new RadioButtonListBuilder(new NewReportQueryDataType(), this.rblQueryDataType, this.languageComponent1); if (!this.IsPostBack) { builder.Build(); ReportPageHelper.SetControlValue(this, this.Request.Params); } RadioButtonListBuilder.FormatListControlStyle(this.rblQueryDataType, 50); }
private void rblMaxOrAvg_Load() { if (!this.IsPostBack) { rblMaxOrAvg.Items.Clear(); rblMaxOrAvg.Items.Add(new ListItem(this.languageComponent1.GetString("MaxQty"), "MaxQty")); rblMaxOrAvg.Items.Add(new ListItem(this.languageComponent1.GetString("AvgQty"), "AvgQty")); rblMaxOrAvg.SelectedIndex = 0; } RadioButtonListBuilder.FormatListControlStyle(this.rblMaxOrAvg, 60); }
protected void Page_Load(object sender, System.EventArgs e) { if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); RadioButtonListBuilder builder = new RadioButtonListBuilder( new SoftWareVersionStatus(), this.rblSoftWareStatusEdit, this.languageComponent1); builder.Build(); this.trImport.Visible = false; } RadioButtonListBuilder.FormatListControlStyle(this.rblSoftWareStatusEdit, 80); }
protected void Page_Load(object sender, EventArgs e) { if (!this.IsPostBack) { rblReportDisplayType.Items.Clear(); if (_DisplayList != null) { foreach (ListItem item in _DisplayList) { rblReportDisplayType.Items.Add(item); } rblReportDisplayType.SelectedIndex = 0; } ReportPageHelper.SetControlValue(this, this.Request.Params); } RadioButtonListBuilder.FormatListControlStyle(this.rblReportDisplayType, 50); }
//protected ControlLibrary.Web.Language.LanguageComponent languageComponent1; //private System.ComponentModel.IContainer components; protected void Page_Load(object sender, System.EventArgs e) { RadioButtonListBuilder builder1 = new RadioButtonListBuilder( new TimingType(), this.rblTimingType, this.languageComponent1); RadioButtonListBuilder builder2 = new RadioButtonListBuilder( new SummaryTarget(), this.rblSummaryTarget, this.languageComponent1); this.gridHelper = new GridHelperNew(this.gridWebGrid, this.DtSource); if (!this.IsPostBack) { // 初始化页面语言 //this.InitPageLanguage(this.languageComponent1, false); this.UCDisplayConditions1.InitUserControl(this.languageComponent1, this.DataProvider); this.RefreshController1.Interval = ConfigSection.Current.DomainSetting.Interval; //this.gridWebGrid.Visible = false; this.cmdGridExport.Visible = false; this.columnChart.Visible = false; this.lineChart.Visible = false; builder1.Build(); builder2.Build(); this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.dateEndDateQuery.Text = this.dateStartDateQuery.Text; this.rblSummaryTarget.Attributes.Add("onclick", "judgeSummaryTarget()"); } RadioButtonListBuilder.FormatListControlStyle(this.rblTimingType, 50); RadioButtonListBuilder.FormatListControlStyle(this.rblSummaryTarget, 50); //加载控件的值 LoadDisplayControls(); //this.gridWebGrid.Behaviors.CreateBehavior<RowSelectors>().Enabled = false; this.gridWebGrid.Behaviors.RowSelectors.RowNumbering = false; this.gridWebGrid.Behaviors.Sorting.Enabled = false; }