private void Query_Stock_In_History(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.dtbStockInHistory = queryBll.StockInHistory(whid, partyid, product, fromDate, toDate, shift); } if (this.dtbStockInHistory != null) { this.ConditionsColumnView(this.grdQrySummary); } this.grdQrySummary.DataSource = this.dtbStockInHistory; this.dntQryStkAsOn.DataSource = this.dtbStockInHistory; 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(); } }