private void Query_Delivery_Lot_Summary(string prodtype, string product, DateTime?fromDate, DateTime?toDate) { try { base.ExecutionStart(); base.BeginProcessing("Begin Load data...", "Please Waiting for Loading Data"); using (QueryBLL queryBll = new QueryBLL()) { this.dtbDeliveryLotSum = queryBll.DeliveryLotSummary(prodtype, product, fromDate, toDate); } if (this.dtbDeliveryLotSum != null) { this.ConditionsColumnView(this.grdQrySummary); } this.grdQrySummary.DataSource = this.dtbDeliveryLotSum; this.dntQryStkAsOn.DataSource = this.dtbDeliveryLotSum; 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(); } }