Пример #1
0
        private void Query_ProductionTrack(string jobNo, string partyid, DateTime?fromDate, DateTime?todate,
                                           string prodType, string mcno, string product)
        {
            try
            {
                base.ExecutionStart();
                //UiUtility.BeginProcessing("Please wait", this);
                base.BeginProcessing("Begin Load data...", "Please wait for Loading data");

                using (QueryBLL queryBll = new QueryBLL())
                {
                    this.dtbProductionTrans = queryBll.JobTrackingList(jobNo, partyid, fromDate, todate, prodType, mcno, product);
                }

                if (dtbProductionTrans != null)
                {
                    dtbProductionTrans.DefaultView.Sort = "JOB_NO,JOB_LOT";
                    this.ConditionsColumnView(this.grdQrySummary);
                    //this.ConditionsAdjustment(this.grdQrySummary);
                }

                this.grdQrySummary.DataSource = this.dtbProductionTrans;
                this.dntQryStkAsOn.DataSource = this.dtbProductionTrans;

                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
            {
                base.FinishedProcessing();
                ((frmMainMenu)this.ParentForm).ExecuteTime.Caption = base.ExecuteTime;
            }
        }