private void Query_Material_Rep_Daily(string mcno, DateTime?fromDate, DateTime?toDate) { try { base.ExecutionStart(); base.BeginProcessing("Begin Load data...", "Please Waiting for Loading Data"); using (QueryBLL queryBll = new QueryBLL()) { this.dtbRepDailyRec = queryBll.MaterialRepDaily(mcno, fromDate, toDate); } if (this.dtbRepDailyRec != null) { this.ConditionsColumnView(this.grdQrySummary); } this.grdQrySummary.DataSource = this.dtbRepDailyRec; this.dntQryStkAsOn.DataSource = this.dtbRepDailyRec; base.ExecutionStop(); } catch (Exception ex) { base.FinishedProcessing(); this.grdQrySummary.DataSource = null; this.dntQryStkAsOn.DataSource = null; XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } finally { ((frmMainMenu)this.ParentForm).ExecuteTime.Caption = base.ExecuteTime; base.FinishedProcessing(); } }