public void PrintForecastRemainingNew(int ENGPLSPM) { rprtForecastRemaining r = new rprtForecastRemaining(); FPreviewAR pv = new FPreviewAR(); //if (usePipe == true) // r.SetAsPipeline(); if (ENGPLSPM == 1) //********************Added 9/30/2015 { pv.Title = r.SetAsEngineering(); } if (ENGPLSPM == 3) { pv.Title = r.SetAsPM(); } DataSet ds = CBProjectSummary.GetForecastRemainingNew(ENGPLSPM); r.DataSource = ds; r.DataMember = "Table"; pv.ViewReportWithExcel(r); pv.ShowDialog(); }
public void PrintVariance(int indx, int pmID) { //DataSet ds = CBProjectSummary.GetVarianceReport(indx, pmID); //var title = "RESOURCE VARIANCE REPORT"; //var pipeline_services_reports = new[]{ 3, 4 }; //if (pipeline_services_reports.Contains(indx)) // title = title + " - PIPELINE SERVICES"; //var eng_only_reports = new[]{ 0, 2 }; //if (eng_only_reports.Contains(indx)) // title = title + " - ENGINEERING"; //var summary_reports = new[]{ 2, 4 }; //if( summary_reports.Contains( indx ) ) // PrintVarianceSummary(ds, title); //else // PrintVariance(ds, title); DataSet ds = CBProjectSummary.GetVarianceReport(indx, pmID); //var title = "RESOURCE VARIANCE REPORT" + indx + "-" + pmID; var title = "RESOURCE VARIANCE REPORT"; var pipeline_services_reports = new[] { 3, 4 }; if (pipeline_services_reports.Contains(indx)) { // title = title + " - PIPELINE SERVICES"; //title = title + " - PIPELINE SERVICES" + indx + "-" + pmID; title = title + " - PIPELINE SERVICES"; } var eng_only_reports = new[] { 0, 2 }; if (eng_only_reports.Contains(indx)) { // title = title + " - ENGINEERING"; //title = title + " - ENGINEERING" + indx + "-" + pmID; title = title + " - ENGINEERING"; } var summary_reports = new[] { 2, 4 }; if (summary_reports.Contains(indx)) { PrintVarianceSummary(ds, title); } else { PrintVariance(ds, title); } }
public void PrintForecastRemainingBHam() { rprtForecastRemaining r = new rprtForecastRemaining(); FPreviewAR pv = new FPreviewAR(); pv.Title = r.SetAsBHam(); DataSet ds = CBProjectSummary.GetForecastRemainingBHam(); r.DataSource = ds; r.DataMember = "Table"; pv.ViewReportWithExcel(r); pv.ShowDialog(); }
public void TestPM() { rprtPMReport1 r = new rprtPMReport1(); FPreviewAR pv = new FPreviewAR(); CBEmployee e = new CBEmployee(); e.Load(25); DataSet ds = CBProjectSummary.GetPMReport(25); r.ProjectManager = e.Name; r.DataSource = ds; r.DataMember = "Table"; pv.ViewReport(r); pv.ShowDialog(); }
public void PrintForecastRemaining(bool usePipe) { rprtForecastRemaining r = new rprtForecastRemaining(); FPreviewAR pv = new FPreviewAR(); if (usePipe == true) { r.SetAsPipeline(); } DataSet ds = CBProjectSummary.GetForecastRemaining(usePipe); r.DataSource = ds; r.DataMember = "Table"; pv.Title = "Pipeline Forecast Remaining Report"; //********************Added 9/30/2015 pv.ViewReportWithExcel(r); pv.ShowDialog(); }