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