Exemple #1
0
        public void LoadReportForProjectRollup_Pipelines(string project, int rprtCase)      //*******************Added 12/8
        {
            string         currDate;
            DSForecastRprt rprtDs;

            this.Cursor = Cursors.WaitCursor;

            CRolllups ru = new CRolllups();

            rprtDs = ru.LoadReportForProjectRollup(project, rprtCase);

            currDate = DateTime.Now.ToShortDateString();
            rprtCostReport1 rprt = new rprtCostReport1();

            projNumber = project + "-RollUp";
            ViewReport(rprt);
            ViewReport(rprt);
            rprt.CutoffDate  = currDate;
            rprt.DataSource  = rprtDs;
            rprt.DataMember  = "EngrInfo";
            viewer1.Document = rprt.Document;
            rprt.IsRollup    = true;   //**********************Added 7/23/2015

            rprt.Run();

            this.Cursor = Cursors.Default;
        }
Exemple #2
0
        private void LoadReportRollupforBatchPrint(string project, int rprtCase, string printer, int copy)
        {
            string currDate;

            this.Cursor = Cursors.WaitCursor;


            currDate = DateTime.Now.ToShortDateString();

            DSForecastRprt rprtDs;
            CRolllups      ru = new CRolllups();

            rprtDs = ru.LoadReportForProjectRollup(project, rprtCase);

            rprtCostReport1 rprt = new rprtCostReport1();

            rprt.Document.Printer.PrinterName            = printer;
            rprt.Document.Printer.PrinterSettings.Copies = (short)copy;
            rprt.IsRollup   = true;
            rprt.CutoffDate = currDate;
            rprt.DataSource = rprtDs;
            rprt.DataMember = "EngrInfo";
            rprt.Run();
            rprt.Document.Print(false, false);

            this.Cursor = Cursors.Default;
        }
Exemple #3
0
        private GrapeCity.ActiveReports.Document.Section.PagesCollection CreatePagesForecastForRollup(string project)
        {
            string currDate;

            this.Cursor = Cursors.WaitCursor;

            currDate = DateTime.Now.ToShortDateString();

            DSForecastRprt rprtDs;
            CRolllups      ru = new CRolllups();

            rprtDs = ru.LoadReportForProjectRollup(project, FCRMain.GetRprtCase(project));

            rprtCostReport1 rprt = new rprtCostReport1();

            rprt.CutoffDate = currDate;
            rprt.IsRollup   = true;
            rprt.DataSource = rprtDs;
            rprt.DataMember = "EngrInfo";
            rprt.Run(false);

            return(rprt.Document.Pages);
        }