private void _helper_LoadGridDataSource(object sender, EventArgs e) { FacadeFactory facadeFactory = new FacadeFactory(base.DataProvider); (e as WebQueryEventArgs).GridDataSource = facadeFactory.CreateQuerySNNGFacade().QuerySNNG( FormatHelper.CleanString(this.txtConditionItem.Text).ToUpper(), FormatHelper.CleanString(this.txtConditionMo.Text).ToUpper(), FormatHelper.CleanString(this.txtConditionStepSequence.Text).ToUpper(), FormatHelper.CleanString(this.txtStartSnQuery.Text), FormatHelper.CleanString(this.txtEndSnQuery.Text), FormatHelper.CleanString(this.txtResource.Text).ToUpper(), FormatHelper.CleanString(this.txtFrmDateFrom.Text).ToUpper(), FormatHelper.CleanString(this.txtFrmDateTo.Text).ToUpper(), (e as WebQueryEventArgs).StartRow, (e as WebQueryEventArgs).EndRow); (e as WebQueryEventArgs).RowCount = facadeFactory.CreateQuerySNNGFacade().QuerySNNGCount( FormatHelper.CleanString(this.txtConditionItem.Text).ToUpper(), FormatHelper.CleanString(this.txtConditionMo.Text).ToUpper(), FormatHelper.CleanString(this.txtConditionStepSequence.Text).ToUpper(), FormatHelper.CleanString(this.txtStartSnQuery.Text), FormatHelper.CleanString(this.txtEndSnQuery.Text), FormatHelper.CleanString(this.txtResource.Text).ToUpper(), FormatHelper.CleanString(this.txtFrmDateFrom.Text).ToUpper(), FormatHelper.CleanString(this.txtFrmDateTo.Text).ToUpper()); }
private void _helper_LoadGridDataSource(object sender, EventArgs e) { if (this._checkRequireFields()) { FacadeFactory facadeFactory = new FacadeFactory(base.DataProvider); (e as WebQueryEventArgs).GridDataSource = facadeFactory.CreateQuerySNNGFacade().QuerySNNGDetails( "", FormatHelper.CleanString(this.txtSNQuery.Text).ToUpper(), "", "", (e as WebQueryEventArgs).StartRow, (e as WebQueryEventArgs).EndRow); (e as WebQueryEventArgs).RowCount = facadeFactory.CreateQuerySNNGFacade().QuerySNNGDetailsCount( "", FormatHelper.CleanString(this.txtSNQuery.Text).ToUpper(), "", ""); } }