//private void ExportDocument(eExportType expType) //{ // try // { // GridExportController gridController = new GridExportController(this.grdQryDetail.Views[0]); // switch (expType) // { // case eExportType.html: // gridController.ExportToHTML(this.FileName_Detail + ".html", "HTML Document", "HTML Files|*.html"); // break; // case eExportType.pdf: // gridController.ExportToPDF(this.FileName_Detail + ".pdf", "PDF Document", "PDF Files|*.pdf"); // break; // case eExportType.rtf: // gridController.ExportToRTF(this.FileName_Detail + ".rtf", "RTF Document", "RTF Files|*.rtf"); // break; // case eExportType.txt: // gridController.ExportToTEXT(this.FileName_Detail + ".txt", "Text Document", "Text Files|*.txt"); // break; // case eExportType.xls: // gridController.ExportToXLS(this.FileName_Detail + ".xls", "Microsoft Excel Document", "Microsoft Excel|*.xls"); // break; // case eExportType.xlsx: // gridController.ExportToXLSX(this.FileName_Detail + ".xlsx", "Microsoft Excel 2007 Document", "Microsoft Excel|*.xlsx"); // break; // default: // break; // } // } // catch (Exception ex) // { // XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); // } //} private void Query_ProductionTrack_Detail() { //TimeSpan executionTime = new TimeSpan(); try { base.BeginProcessing("Begin Load data...", "Please Waiting for Loading Data"); DataTable dtbStkAsOnDtl = null; using (QueryBLL queryBll = new QueryBLL()) { dtbStkAsOnDtl = queryBll.JobTrackingDetail(this._JOB_NO, this._JOB_LOT); //executionTime = queryBll.ExecutionTime; } this.grdQryDetail.DataSource = dtbStkAsOnDtl; this.dntProdTracDtl.DataSource = dtbStkAsOnDtl; } catch (Exception ex) { base.FinishedProcessing(); this.grdQryDetail.DataSource = null; XtraMessageBox.Show(this, ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1); } finally { base.FinishedProcessing(); //((frmMainMenu)this.ParentForm).ExecuteTime.Caption = "Execute Time: " + UiUtility.TimeSpanInWords(executionTime); } }