예제 #1
0
        private void _helper_LoadGridDataSource(object sender, EventArgs e)
        {
            if (this._checkRequireFields())
            {
                FacadeFactory facadeFactory = new FacadeFactory(base.DataProvider);

                (e as WebQueryEventArgs).GridDataSource =
                    facadeFactory.CreateQueryECNFacade().QueryECNDetails(
                        FormatHelper.CleanString(this.txtECNQuery.Text).ToUpper(),
                        (e as WebQueryEventArgs).StartRow,
                        (e as WebQueryEventArgs).EndRow);

                (e as WebQueryEventArgs).RowCount =
                    facadeFactory.CreateQueryECNFacade().QueryECNDetailsCount(
                        FormatHelper.CleanString(this.txtECNQuery.Text).ToUpper());
            }
        }
예제 #2
0
        private void _helper_LoadGridDataSource(object sender, EventArgs e)
        {
            FacadeFactory facadeFactory = new FacadeFactory(base.DataProvider);

            (e as WebQueryEventArgs).GridDataSource =
                facadeFactory.CreateQueryECNFacade().QueryECN(
                    FormatHelper.CleanString(this.txtConditionItem.Text).ToUpper(),
                    FormatHelper.CleanString(this.txtConditionMo.Text).ToUpper(),
                    FormatHelper.CleanString(this.txtConditionModel.Text).ToUpper(),
                    FormatHelper.CleanString(this.txtStartSnQuery.Text),
                    FormatHelper.CleanString(this.txtEndSnQuery.Text),
                    FormatHelper.CleanString(this.txtECNQuery.Text),
                    (e as WebQueryEventArgs).StartRow,
                    (e as WebQueryEventArgs).EndRow);

            (e as WebQueryEventArgs).RowCount =
                facadeFactory.CreateQueryECNFacade().QueryECNCount(
                    FormatHelper.CleanString(this.txtConditionItem.Text).ToUpper(),
                    FormatHelper.CleanString(this.txtConditionMo.Text).ToUpper(),
                    FormatHelper.CleanString(this.txtConditionModel.Text).ToUpper(),
                    FormatHelper.CleanString(this.txtStartSnQuery.Text),
                    FormatHelper.CleanString(this.txtEndSnQuery.Text),
                    FormatHelper.CleanString(this.txtECNQuery.Text));
        }