示例#1
0
 public Report(AspNetCore.ReportingServices.ReportProcessing.Report reportDef, ReportInstance reportInstance, RenderingContext renderingContext, string reportName, string description, CultureInfo defaultLanguage)
 {
     this.m_reportDef        = reportDef;
     this.m_reportInstance   = reportInstance;
     this.m_renderingContext = renderingContext;
     this.m_reportBody       = null;
     this.m_pageHeader       = null;
     this.m_pageFooter       = null;
     this.m_reportPagination = null;
     this.m_name             = reportName;
     this.m_description      = description;
     this.m_reportUrl        = null;
     this.m_documentMapRoot  = null;
     this.m_reportParameters = null;
     if (reportDef.Language != null)
     {
         if (reportDef.Language.Type == ExpressionInfo.Types.Constant)
         {
             this.m_reportLanguage = reportDef.Language.Value;
         }
         else if (reportInstance != null)
         {
             this.m_reportLanguage = reportInstance.Language;
         }
     }
     if (this.m_reportLanguage == null && defaultLanguage != null)
     {
         this.m_reportLanguage = defaultLanguage.Name;
     }
     this.AdjustBodyWhitespace();
 }
 public void UpdatePageSection(AspNetCore.ReportingServices.ReportRendering.PageSection renderPageSection)
 {
     base.m_renderReportItem = renderPageSection;
     if (this.m_reportItems != null)
     {
         this.m_reportItems.UpdateRenderReportItem(renderPageSection.ReportItemCollection);
     }
 }
示例#3
0
 public void UpdateWithCurrentPageSections(AspNetCore.ReportingServices.ReportRendering.PageSection header, AspNetCore.ReportingServices.ReportRendering.PageSection footer)
 {
     if (header != null)
     {
         this.PageHeader.UpdatePageSection(header);
     }
     if (footer != null)
     {
         this.PageFooter.UpdatePageSection(footer);
     }
 }
示例#4
0
        public PageSection GetHeader(PageSectionInstance headerInstance)
        {
            PageSection result = null;

            AspNetCore.ReportingServices.ReportProcessing.Report reportDef = this.m_report.ReportDef;
            if (reportDef != null)
            {
                if (!reportDef.PageHeaderEvaluation)
                {
                    result = this.m_report.PageHeader;
                }
                else if (reportDef.PageHeader != null && headerInstance != null)
                {
                    string           text             = headerInstance.PageNumber + "ph";
                    RenderingContext renderingContext = new RenderingContext(this.m_report.RenderingContext, text);
                    result = new PageSection(text, reportDef.PageHeader, headerInstance, this.m_report, renderingContext, false);
                }
            }
            return(result);
        }
示例#5
0
 public override void UpdatePageSections(ReportSection section)
 {
     AspNetCore.ReportingServices.ReportRendering.PageSection header = null;
     AspNetCore.ReportingServices.ReportRendering.PageSection footer = null;
     foreach (AggregatesImpl value in this.m_aggregatesOverReportItems.Values)
     {
         foreach (DataAggregateObj @object in value.Objects)
         {
             this.m_processingContext.ReportObjectModel.AggregatesImpl.Add(@object);
         }
     }
     if (this.m_report.PageHeaderEvaluation)
     {
         header = this.GenerateRenderPageSection(this.m_report.PageHeader, "ph");
     }
     if (this.m_report.PageFooterEvaluation)
     {
         footer = this.GenerateRenderPageSection(this.m_report.PageFooter, "pf");
     }
     this.m_aggregates = null;
     this.m_aggregatesOverReportItems = null;
     section.Page.UpdateWithCurrentPageSections(header, footer);
 }
示例#6
0
 protected Page(PageSection pageHeader, PageSection pageFooter)
 {
     this.Header = pageHeader;
     this.Footer = pageFooter;
 }
示例#7
0
        public bool Search(int searchPage, string findValue)
        {
            SearchContext searchContext = new SearchContext(searchPage, findValue, 0, this.NumberOfPages - 1);
            PageSection   pageSection   = this.PageHeader;
            PageSection   pageSection2  = this.PageFooter;
            bool          flag          = false;
            bool          flag2         = false;

            if (pageSection != null)
            {
                if (searchPage > 0 && searchPage < this.NumberOfPages - 1)
                {
                    goto IL_0057;
                }
                if (searchPage == 0 && pageSection.PrintOnFirstPage)
                {
                    goto IL_0057;
                }
                if (searchPage != 0 && searchPage == this.NumberOfPages - 1 && pageSection.PrintOnLastPage)
                {
                    goto IL_0057;
                }
            }
            goto IL_0059;
IL_0057:
            flag = true;
            goto IL_0059;
IL_0094:
            flag2 = true;
            goto IL_0097;
IL_0097:
            if ((flag || flag2) && this.NeedsHeaderFooterEvaluation)
            {
                PageSection pageSection3 = null;
                PageSection pageSection4 = null;
                AspNetCore.ReportingServices.ReportProcessing.ReportProcessing.EvaluateHeaderFooterExpressions(searchPage + 1, this.NumberOfPages, this, (PageReportItems)null, out pageSection3, out pageSection4);
                if (this.m_reportDef.PageHeaderEvaluation)
                {
                    pageSection = pageSection3;
                }
                if (this.m_reportDef.PageFooterEvaluation)
                {
                    pageSection2 = pageSection4;
                }
            }
            bool flag3 = false;

            if (flag)
            {
                flag3 = pageSection.Search(searchContext);
            }
            if (!flag3)
            {
                flag3 = this.Body.Search(searchContext);
                if (!flag3 && flag2)
                {
                    flag3 = pageSection2.Search(searchContext);
                }
            }
            return(flag3);

IL_0059:
            if (pageSection2 != null)
            {
                if (searchPage > 0 && searchPage < this.NumberOfPages - 1)
                {
                    goto IL_0094;
                }
                if (searchPage != this.NumberOfPages - 1 && searchPage == 0 && pageSection2.PrintOnFirstPage)
                {
                    goto IL_0094;
                }
                if (searchPage == this.NumberOfPages - 1 && pageSection2.PrintOnLastPage)
                {
                    goto IL_0094;
                }
            }
            goto IL_0097;
        }
 public PageSection(IDefinitionPath parentDefinitionPath, bool isHeader, AspNetCore.ReportingServices.ReportRendering.PageSection renderPageSection, RenderingContext renderingContext)
     : base(parentDefinitionPath, renderPageSection, renderingContext)
 {
     this.m_isHeader = isHeader;
 }