protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridWebGrid); this._helper = new WebQueryHelper(null, null, this.gridWebGrid, this.pagerSizeSelector, this.pagerToolBar, this.languageComponent1); //this._helper.LoadGridDataSource +=new EventHandler(_helper_LoadGridDataSource); //this._helper.LoadGridDataSource +=new EventHandler(_processDataDourceToGrid); //this._helper.DomainObjectToGridRow +=new EventHandler(_helper_DomainObjectToGridRow); this.pagerSizeSelector.Readonly = true; this.eMESDate1.Enable = "false"; if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this.eMESDate1.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this._initialQueryCondtion(); this._initialWebGrid(); this._processDataDourceToGrid(); //this._helper.Query( sender ); } }
protected void Page_Load(object sender, System.EventArgs e) { this.OWCPivotTable1.LanguageComponent = this.languageComponent1; this._gridHelper = new GridHelperForRPT(this.gridWebGrid); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialWebGrid(); txtOQCBeginDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today)); txtOQCEndDate.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(DateTime.Today)); this.txtOQCBeginTime.Text = FormatHelper.ToTimeString(0); this.txtOQCEndTime.Text = FormatHelper.ToTimeString(235959); } 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); }
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); RadioButtonListBuilder builder = new RadioButtonListBuilder( new TSPerformanceSummaryTarget(), this.rblSummaryTargetQuery, this.languageComponent1); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialWebGrid(); builder.Build(); this.upDown.Value = 3; this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.dateEndDateQuery.Text = this.dateStartDateQuery.Text; } RadioButtonListBuilder.FormatListControlStyle(this.rblSummaryTargetQuery, 50); }
protected void Page_Load(object sender, System.EventArgs e) { this._gridQuantityHelper = new GridHelperForRPT(this.gridQuantity); this._gridYieldHelper = new GridHelperForRPT(this.gridYield); this._gridLRRHelper = new GridHelperForRPT(this.gridLRR); this.gridQuantity.DisplayLayout.CellClickActionDefault = CellClickAction.NotSet; this.gridYield.DisplayLayout.CellClickActionDefault = CellClickAction.NotSet; this.gridLRR.DisplayLayout.CellClickActionDefault = CellClickAction.NotSet; if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); // 初始化页面显示 //InitUIFromViewConfig(); this._doQuery(); this.RefreshController1.Interval = ConfigSection.Current.DomainSetting.Interval; } if (this.V_StartRefresh) { this._doQuery(); } }
protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridWebGrid); this.gridWebGrid.DisplayLayout.CellClickActionDefault = CellClickAction.NotSet; if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.dateEndDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.dateStartTimeQuery.Text = FormatHelper.ToTimeString(FormatHelper.TOTimeInt(System.DateTime.Now)); this.dateEndTimeQuery.Text = FormatHelper.ToTimeString(235959); this._initialWebGrid(); } if (!this.IsPostBack) { //如果接受到其它页面的参数直接执行查询 if (this.GetRequestParam("post") != null && this.GetRequestParam("post") != string.Empty) { //日期 this.dateStartDateQuery.Text = this.GetRequestParam("shiftday"); this.dateStartTimeQuery.Text = this.GetRequestParam("shiftday"); this._doQuery(); } } }
protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridTPT); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialGrid(); this._processDataDourceToGrid(this._loadDataSource()); } }
protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridWebGrid); this.gridWebGrid.DisplayLayout.CellClickActionDefault = CellClickAction.NotSet; if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this.eMESDate1.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); // BaseModelFacade facade = new FacadeFactory(base.DataProvider).CreateBaseModelFacade(); object[] segments = facade.QuerySegment("", 0, System.Int32.MaxValue); if (segments != null) { this.drpSegmentQuery.Items.Clear(); foreach (Segment seg in segments) { this.drpSegmentQuery.Items.Add(seg.SegmentCode); } this.drpSegmentQuery.Items.Insert(0, ""); this.RefreshController1.Interval = ConfigSection.Current.DomainSetting.Interval; } this._initialWebGrid(); } if (!this.IsPostBack) { //如果接受到其它页面的参数直接执行查询 if (this.GetRequestParam("post") != null && this.GetRequestParam("post") != string.Empty) { this.eMESDate1.Text = this.GetRequestParam("shiftday"); //日期 this.drpSegmentQuery.SelectedValue = this.GetRequestParam("segmentcode"); //工段 this.drpSegmentQuery_SelectedIndexChanged(null, null); //加载班次选项 this.drpShiftQuery.SelectedValue = this.GetRequestParam("shiftcode"); //班次 this.txtModelQuery.Text = this.GetRequestParam("modelcode"); //产品别 this.txtItemQuery.Text = this.GetRequestParam("itemcode"); //产品 this.txtMoQuery.Text = this.GetRequestParam("mocode"); //工单 this._doQuery(); } } if (this.V_StartRefresh) { this._doQuery(); } }
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); }
protected void Page_Load(object sender, System.EventArgs e) { InitialRequestParam(); 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(); this._helper.Query(this); // 设置不良数量栏的合并 string strErrCode = string.Empty; int iRowCount = 0; int iRowIdx = 0; int iIdxErrCode = this.gridWebGrid.Columns.FromKey("ErrorCode").Index; int iIdxQty = this.gridWebGrid.Columns.FromKey("TotalQty").Index; for (int i = 0; i < this.gridWebGrid.Rows.Count; i++) { if (this.gridWebGrid.Rows[i].Cells[iIdxErrCode].Text != strErrCode) { if (iRowCount > 1) { this.gridWebGrid.Rows[iRowIdx].Cells[iIdxQty].RowSpan = iRowCount; } iRowCount = 1; iRowIdx = i; strErrCode = this.gridWebGrid.Rows[i].Cells[iIdxErrCode].Text; } else { iRowCount++; } } if (iRowCount > 1) { this.gridWebGrid.Rows[iRowIdx].Cells[iIdxQty].RowSpan = iRowCount; } } }
protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridLine); this.gridLine.DisplayLayout.CellClickActionDefault = CellClickAction.NotSet; segmentCode = this.GetRequestParam("SegmentCode"); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialGrid(); this._processDataDourceToGrid(this._loadDataSource()); } }
protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridDayProduct); opCode = this.GetRequestParam("OPCode"); eCode = this.GetRequestParam("ECode"); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialGrid(); this._processDataDourceToGrid(this._loadDataSource()); } }
protected void Page_Load(object sender, System.EventArgs e) { if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this.txtModelCode.Value = this.GetRequestParam("MODELCODE"); this.txtItemCode.Value = this.GetRequestParam("ITEMCODE"); this.txtStartDate.Value = this.GetRequestParam("STARTDATE"); this.txtEndDate.Value = this.GetRequestParam("ENDDATE"); } _gridHelper = new GridHelperForRPT(gridWebGrid); this._gridHelper.GridHelper.LoadDataSourceHandle = new LoadDataSourceDelegate(this.LoadDataSource); this._gridHelper.GridHelper.GetRowCountHandle = new GetRowCountDelegate(this.GetRowCount); this._gridHelper.GridHelper.BuildGridRowhandle = new BuildGridRowDelegate(this.GetGridRow); }
protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridWebGrid); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialWebGrid(); this.dateStartDateQuery.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); this.dateEndDateQuery.Text = this.dateStartDateQuery.Text; } 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); }
protected void Page_Load(object sender, System.EventArgs e) { this._initialParamter(); this._gridHelper = new GridHelperForRPT(this.gridWebGrid); this._helper = new WebQueryHelper(null, 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); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this._initialWebGrid(); this._helper.Query(sender); } }
protected void Page_Load(object sender, System.EventArgs e) { this._gridHelper = new GridHelperForRPT(this.gridWebGrid); if (!this.IsPostBack) { // 初始化页面语言 this.InitPageLanguage(this.languageComponent1, false); this.eMESDate1.Text = FormatHelper.ToDateString(FormatHelper.TODateInt(System.DateTime.Now)); // BaseModelFacade facade = new FacadeFactory(base.DataProvider).CreateBaseModelFacade(); object[] segments = facade.QuerySegment("", 0, System.Int32.MaxValue); if (segments != null) { this.drpSegmentQuery.Items.Clear(); foreach (Segment seg in segments) { this.drpSegmentQuery.Items.Add(seg.SegmentCode); } this.drpSegmentQuery.Items.Insert(0, ""); this._initialWebGrid(); this.RefreshController1.Interval = ConfigSection.Current.DomainSetting.Interval; this.txtTargetPercent.Attributes.Add("onblur", "Format()"); } factory_load(); } if (this.V_StartRefresh) { this._doQuery(); } }