protected void Page_Load(object sender, EventArgs e) { this.gridHelper = new GridHelperNew(this.gridWebGrid, DtSource); this._helper = new WebQueryHelperNew(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1, DtSource); this._helper.LoadGridDataSource += new EventHandler(_helper_LoadGridDataSource); this._helper.DomainObjectToGridRow += new EventHandler(_helper_DomainObjectToGridRow); this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow); this._helper.GetExportHeadText += new EventHandler(_helper_GetExportHeadText); //this._helper.GridCellClick += new EventHandler(_helper_GridCellClick); this.txtSegmentCodeQuery.TextBox.TextChanged += new EventHandler(TextBox_TextChanged); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialWebGrid(); TSStatus tsstatus = new TSStatus(); tsstatus.Items.Remove(TSStatus.TSStatus_Reflow); tsstatus.Items.Remove(TSStatus.TSStatus_RepeatNG); tsstatus.Items.Remove(TSStatus.TSStatus_OffMo); new CheckBoxListBuilder(tsstatus, this.chkTSStateList, this.languageComponent1).Build(); this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.dateEndDateQuery.Text = this.dateStartDateQuery.Text; } CheckBoxListBuilder.FormatListControlStyle(this.chkTSStateList, 80); FormatHelper.SetSNRangeValue(txtStartSnQuery, txtEndSnQuery); this.InitQueryText(); }
//protected GridHelper gridHelper = null; protected void Page_Load(object sender, System.EventArgs e) { this.gridHelper = new GridHelperNew(this.gridWebGrid, DtSource); this._helper = new WebQueryHelperNew(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1, DtSource); this._helper.LoadGridDataSource += new EventHandler(_helper_LoadGridDataSource); this._helper.DomainObjectToGridRow += new EventHandler(_helper_DomainObjectToGridRow); this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow); this._helper.GetExportHeadText += new EventHandler(_helper_GetExportHeadText); //this._helper.GridCellClick += new EventHandler(_helper_GridCellClick); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialWebGrid(); TSStatus tsstatus = new TSStatus(); tsstatus.Items.Remove(TSStatus.TSStatus_Reflow); //不包括回流 tsstatus.Items.Remove(TSStatus.TSStatus_RepeatNG); new CheckBoxListBuilder(tsstatus, this.chkTSStateList, this.languageComponent1).Build(); this.txtReceiveBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.txtReceiveEndDate.Text = this.txtReceiveBeginDate.Text; this.txtReceiveBeginTime.Text = FormatHelper.ToTimeString(0); this.txtReceiveEndTime.Text = FormatHelper.ToTimeString(235959); } CheckBoxListBuilder.FormatListControlStyle(this.chkTSStateList, 80); }
protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridWebGrid); this._helper = new WebQueryHelper(this.cmdQuery, this.cmdGridExport, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1); this._helper.LoadGridDataSource += new EventHandler(_helper_LoadGridDataSource); this._helper.DomainObjectToGridRow += new EventHandler(_helper_DomainObjectToGridRow); this._helper.DomainObjectToExportRow += new EventHandler(_helper_DomainObjectToExportRow); this._helper.GetExportHeadText += new EventHandler(_helper_GetExportHeadText); this._helper.GridCellClick += new EventHandler(_helper_GridCellClick); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialWebGrid(); TSStatus tsstatus = new TSStatus(); tsstatus.Items.Remove(TSStatus.TSStatus_Reflow); //不包括回流 new CheckBoxListBuilder(tsstatus, this.chkTSStateList, this.languageComponent1).Build(); this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.dateEndDateQuery.Text = this.dateStartDateQuery.Text; this.txtReceiveBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.txtReceiveEndDate.Text = this.txtReceiveBeginDate.Text; this.txtTSBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.txtTSEndDate.Text = this.txtTSBeginDate.Text; this.dateStartTimeQuery.Text = FormatHelper.ToTimeString(0); this.dateEndTimeQuery.Text = FormatHelper.ToTimeString(235959); this.txtReceiveBeginTime.Text = FormatHelper.ToTimeString(0); this.txtReceiveEndTime.Text = FormatHelper.ToTimeString(235959); this.txtTSBeginTime.Text = FormatHelper.ToTimeString(0); this.txtTSEndTime.Text = FormatHelper.ToTimeString(235959); this.rdbErrorDate.Attributes["onclick"] = "onRadioCheckChange(this)"; this.rdbReceivedDate.Attributes["onclick"] = "onRadioCheckChange(this)"; this.rdbTSDate.Attributes["onclick"] = "onRadioCheckChange(this)"; this.rdbErrorDate.Checked = true; } CheckBoxListBuilder.FormatListControlStyle(this.chkTSStateList, 80); FormatHelper.SetSNRangeValue(txtStartSnQuery, txtEndSnQuery); }