Ejemplo n.º 1
0
        private void _helper_LoadGridDataSource(object sender, EventArgs e)
        {
            if (this._checkRequireFields())
            {
                FacadeFactory facadeFactory = new FacadeFactory(base.DataProvider);
                (e as WebQueryEventArgs).GridDataSource =
                    facadeFactory.CreateQueryTryItemFacade().QueryTryItem(
                        FormatHelper.CleanString(this.txtTryitemQuery.Text),
                        FormatHelper.CleanString(this.txtConditionMo.Text).ToUpper(),
                        (e as WebQueryEventArgs).StartRow,
                        (e as WebQueryEventArgs).EndRow);

                (e as WebQueryEventArgs).RowCount =
                    facadeFactory.CreateQueryTryItemFacade().QueryTryItemCount(
                        FormatHelper.CleanString(this.txtTryitemQuery.Text),
                        FormatHelper.CleanString(this.txtConditionMo.Text).ToUpper());
            }
        }