Ejemplo n.º 1
0
        public void Execute()
        {
            viewModel.ReportCommand.Execute();

            if (viewModel.canCreateReport)
            {
                if (viewModel.ReportType == ReportType.TracingReport)
                {
                    var report = new TracingReport();

                    report.DataSource = viewModel.ReportDataSource;
                    report.FootersVisibility = viewModel.IsFooterVisible;

                    report.PipelineJointCount = viewModel.PipelineJointCount;
                    report.PipelinePipeCount = viewModel.PipelinePipeCount;
                    report.PipelineSpoolCount = viewModel.PipelineSpoolCount;
                    report.PipelineComponentCount = viewModel.PipelineComponentCount;
                    report.PipelineLength = viewModel.PipelineLength;

                    report.CreateDocument();
                    viewModel.PreviewSource = report;
                }
                else if (viewModel.ReportType == ReportType.UsedProductReport)
                {
                    var report = new UsedProductsXtraReport(viewModel.localizedPartType);

                    report.DataSource = viewModel.ReportDataSource;
                    report.FootersVisibility = viewModel.IsFooterVisible;

                    report.CreateDocument();
                    viewModel.PreviewSource = report;
                }
            }
        }
Ejemplo n.º 2
0
        public void Execute()
        {
            viewModel.ReportCommand.Execute();

            if (viewModel.canCreateReport)
            {
                if (viewModel.ReportType == ReportType.TracingReport)
                {
                    var report = new TracingReport();

                    report.DataSource        = viewModel.ReportDataSource;
                    report.FootersVisibility = viewModel.IsFooterVisible;

                    report.PipelineJointCount     = viewModel.PipelineJointCount;
                    report.PipelinePipeCount      = viewModel.PipelinePipeCount;
                    report.PipelineSpoolCount     = viewModel.PipelineSpoolCount;
                    report.PipelineComponentCount = viewModel.PipelineComponentCount;
                    report.PipelineLength         = viewModel.PipelineLength;

                    report.CreateDocument();
                    viewModel.PreviewSource = report;
                }
                else if (viewModel.ReportType == ReportType.UsedProductReport)
                {
                    var report = new UsedProductsXtraReport(viewModel.localizedPartType);

                    report.DataSource        = viewModel.ReportDataSource;
                    report.FootersVisibility = viewModel.IsFooterVisible;

                    report.CreateDocument();
                    viewModel.PreviewSource = report;
                }
            }
        }
Ejemplo n.º 3
0
        public void Execute()
        {
            viewModel.ReportCommand.Execute();

            if (viewModel.ReportType == ReportType.TracingReport)
            {
                var report = new TracingReport();

                report.DataSource = viewModel.ReportDataSource;

                report.PipelineJointCount     = viewModel.PipelineJointCount;
                report.PipelinePipeCount      = viewModel.PipelinePipeCount;
                report.PipelineSpoolCount     = viewModel.PipelineSpoolCount;
                report.PipelineComponentCount = viewModel.PipelineComponentCount;
                report.PipelineLength         = viewModel.PipelineLength;

                var tool = new ReportPrintTool(report);
                tool.AutoShowParametersPanel = false;
                tool.ShowPreview();
            }
            else if (viewModel.ReportType == ReportType.UsedProductReport)
            {
                var report = new UsedProductsXtraReport();

                report.DataSource = viewModel.ReportDataSource;

                var tool = new ReportPrintTool(report);
                tool.AutoShowParametersPanel = false;
                tool.ShowPreview();
            }
        }
Ejemplo n.º 4
0
        public void Execute()
        {
            viewModel.ReportCommand.Execute();

            if (viewModel.ReportType == ReportType.TracingReport)
            {
                var report = new TracingReport();

                report.DataSource = viewModel.ReportDataSource;

                report.PipelineJointCount     = viewModel.PipelineJointCount;
                report.PipelinePipeCount      = viewModel.PipelinePipeCount;
                report.PipelineSpoolCount     = viewModel.PipelineSpoolCount;
                report.PipelineComponentCount = viewModel.PipelineComponentCount;
                report.PipelineLength         = viewModel.PipelineLength;

                report.CreateDocument();
                viewModel.PreviewSource = report;
            }
            else if (viewModel.ReportType == ReportType.UsedProductReport)
            {
                var report = new UsedProductsXtraReport();

                report.DataSource = viewModel.ReportDataSource;

                report.CreateDocument();
                viewModel.PreviewSource = report;
            }
        }
Ejemplo n.º 5
0
        public void Execute()
        {
            viewModel.ReportCommand.Execute();

            if (viewModel.canCreateReport)
            {
                if (viewModel.ReportType == ReportType.TracingReport)
                {
                    var report = new TracingReport();

                    report.DataSource = viewModel.ReportDataSource;
                    report.FootersVisibility = viewModel.IsFooterVisible;


                    report.PipelineJointCount = viewModel.PipelineJointCount;
                    report.PipelinePipeCount = viewModel.PipelinePipeCount;
                    report.PipelineSpoolCount = viewModel.PipelineSpoolCount;
                    report.PipelineComponentCount = viewModel.PipelineComponentCount;
                    report.PipelineLength = viewModel.PipelineLength;

                    var tool = new ReportPrintTool(report);
                    tool.AutoShowParametersPanel = false;
                    tool.ShowPreview();
                }
                else if (viewModel.ReportType == ReportType.UsedProductReport)
                {
                    var report = new UsedProductsXtraReport(viewModel.localizedPartType);

                    report.DataSource = viewModel.ReportDataSource;
                    report.FootersVisibility = viewModel.IsFooterVisible;

                    var tool = new ReportPrintTool(report);
                    tool.AutoShowParametersPanel = false;
                    tool.ShowPreview();
                }
            }
        }