Ejemplo n.º 1
0
            private TextBox FindNotAlwaysHiddenTextBox(ReportItemCollection reportItems)
            {
                if (reportItems == null)
                {
                    return(null);
                }
                TextBox textBox = null;

                for (int i = 0; i < reportItems.Count; i++)
                {
                    ReportItem reportItem = reportItems[i];
                    TextBox    textBox2   = this.FindNotAlwaysHiddenTextBox(reportItem);
                    if (this.IsFinish())
                    {
                        return(null);
                    }
                    if (textBox2 != null)
                    {
                        if (textBox != null)
                        {
                            this.m_useOWC = false;
                            return(null);
                        }
                        textBox = textBox2;
                    }
                }
                return(textBox);
            }
        public void SetPaginationForNonComputedChild(ReportProcessing.Pagination pagination, ReportItem reportItem, ReportItem parentDef)
        {
            ReportItemCollection reportItemColDef = this.m_reportItemColDef;
            int num = parentDef.StartPage;

            if (parentDef is Table)
            {
                num = ((Table)parentDef).CurrentPage;
            }
            else if (parentDef is Matrix)
            {
                num = ((Matrix)parentDef).CurrentPage;
            }
            reportItem.TopInStartPage = parentDef.TopInStartPage;
            if (reportItem.SiblingAboveMe != null)
            {
                for (int i = 0; i < reportItem.SiblingAboveMe.Count; i++)
                {
                    ReportItem reportItem2 = reportItemColDef[reportItem.SiblingAboveMe[i]];
                    int        num2        = reportItem2.EndPage;
                    double     num3        = reportItem2.TopValue + reportItem2.HeightValue;
                    if (num3 > reportItem.TopValue)
                    {
                        num2 = reportItem2.StartPage;
                        reportItem.TopInStartPage = reportItem2.TopInStartPage;
                    }
                    else
                    {
                        bool flag = reportItem2.ShareMyLastPage;
                        if (!(reportItem2 is Table) && !(reportItem2 is Matrix))
                        {
                            flag = false;
                        }
                        if (!pagination.IgnorePageBreak && pagination.PageBreakAtEnd(reportItem2) && !flag)
                        {
                            num2++;
                            if (i == reportItem.SiblingAboveMe.Count - 1)
                            {
                                pagination.SetCurrentPageHeight(reportItem, reportItem.HeightValue);
                                reportItem.TopInStartPage = 0.0;
                            }
                        }
                        else
                        {
                            reportItem.TopInStartPage = pagination.CurrentPageHeight;
                        }
                    }
                    num = Math.Max(num, num2);
                }
            }
            if (pagination.CanMoveToNextPage(pagination.PageBreakAtStart(reportItem)))
            {
                num++;
                reportItem.TopInStartPage = 0.0;
                pagination.SetCurrentPageHeight(reportItem, reportItem.HeightValue);
            }
            reportItem.StartPage = num;
            reportItem.EndPage   = num;
        }
Ejemplo n.º 3
0
 public Report(int id, int idForReportItems)
     : base(id, null)
 {
     this.m_intermediateFormatVersion = new IntermediateFormatVersion();
     this.m_reportVersion             = Guid.NewGuid();
     base.m_height           = "11in";
     base.m_width            = "8.5in";
     this.m_dataSources      = new DataSourceList();
     this.m_reportItems      = new ReportItemCollection(idForReportItems, true);
     this.m_pageAggregates   = new DataAggregateInfoList();
     this.m_exprCompiledCode = new byte[0];
 }
 public ReportItemColInstance(ReportProcessing.ProcessingContext pc, ReportItemCollection reportItemsDef)
 {
     this.m_reportItemColDef = reportItemsDef;
     if (reportItemsDef.ComputedReportItems != null)
     {
         this.m_reportItemInstances = new ReportItemInstanceList(reportItemsDef.ComputedReportItems.Count);
     }
     if (pc != null)
     {
         this.m_childrenNonComputedUniqueNames = NonComputedUniqueNames.CreateNonComputedUniqueNames(pc, reportItemsDef);
     }
     base.m_instanceInfo = new ReportItemColInstanceInfo(pc, reportItemsDef, this);
 }
Ejemplo n.º 5
0
 private void DetectIllegalReportItems(ReportItemCollection reportItems)
 {
     if (reportItems != null)
     {
         for (int i = 0; i < reportItems.Count; i++)
         {
             this.DetectIllegalReportItems(reportItems[i]);
             if (this.IsFinish())
             {
                 break;
             }
         }
     }
 }
Ejemplo n.º 6
0
 public ReportItemCollection(AspNetCore.ReportingServices.ReportProcessing.ReportItemCollection reportItemColDef, ReportItemColInstance reportItemColInstance, RenderingContext renderingContext, NonComputedUniqueNames[] childrenNonComputedUniqueNames)
 {
     if (reportItemColInstance != null)
     {
         ReportItemColInstanceInfo instanceInfo = reportItemColInstance.GetInstanceInfo(renderingContext.ChunkManager, renderingContext.InPageSection);
         Global.Tracer.Assert(childrenNonComputedUniqueNames == null || null == instanceInfo.ChildrenNonComputedUniqueNames);
         if (childrenNonComputedUniqueNames == null)
         {
             childrenNonComputedUniqueNames = instanceInfo.ChildrenNonComputedUniqueNames;
         }
     }
     this.m_childrenNonComputedUniqueNames = childrenNonComputedUniqueNames;
     this.m_reportItemColInstance          = reportItemColInstance;
     this.m_reportItemColDef = reportItemColDef;
     this.m_renderingContext = renderingContext;
 }
Ejemplo n.º 7
0
 public ReportItemColInstanceInfo(ReportProcessing.ProcessingContext pc, ReportItemCollection reportItemsDef, ReportItemColInstance owner)
 {
     if (pc != null)
     {
         this.m_childrenNonComputedUniqueNames = owner.ChildrenNonComputedUniqueNames;
         if (pc.ChunkManager != null && !pc.DelayAddingInstanceInfo)
         {
             if (reportItemsDef.FirstInstance)
             {
                 pc.ChunkManager.AddInstanceToFirstPage(this, owner, pc.InPageSection);
                 reportItemsDef.FirstInstance = false;
             }
             else
             {
                 pc.ChunkManager.AddInstance(this, owner, pc.InPageSection);
             }
         }
     }
 }
        public object Find(int index, int targetUniqueName, ref NonComputedUniqueNames nonCompNames, ChunkManager.RenderingChunkManager chunkManager)
        {
            object obj = null;
            ReportItemCollection reportItemCollection = (!this.IsSubtotal) ? this.MatrixHeadingDef.ReportItems : this.MatrixHeadingDef.Subtotal.ReportItems;

            if (reportItemCollection.Count > 0)
            {
                if (reportItemCollection.Count == 1)
                {
                    index = 0;
                }
                if (reportItemCollection.IsReportItemComputed(index))
                {
                    Global.Tracer.Assert(this.m_content != null, "The instance of a computed report item cannot be null.");
                    obj = ((ISearchByUniqueName)this.m_content).Find(targetUniqueName, ref nonCompNames, chunkManager);
                    if (obj != null)
                    {
                        return(obj);
                    }
                }
                else
                {
                    NonComputedUniqueNames contentUniqueNames = this.GetInstanceInfo(chunkManager).ContentUniqueNames;
                    obj = ((ISearchByUniqueName)reportItemCollection[index]).Find(targetUniqueName, ref contentUniqueNames, chunkManager);
                    if (obj != null)
                    {
                        nonCompNames = contentUniqueNames;
                        return(obj);
                    }
                }
            }
            if (this.m_subHeadingInstances != null)
            {
                return(((ISearchByUniqueName)this.m_subHeadingInstances).Find(targetUniqueName, ref nonCompNames, chunkManager));
            }
            return(null);
        }
Ejemplo n.º 9
0
 public PageSection(bool isHeader, int id, int idForReportItems, Report report)
     : base(id, report)
 {
     this.m_reportItems = new ReportItemCollection(idForReportItems, true);
     this.m_isHeader    = isHeader;
 }
Ejemplo n.º 10
0
 public TableRow(int id, int idForReportItems)
     : base(id)
 {
     this.m_reportItems = new ReportItemCollection(idForReportItems, false);
     this.m_colSpans    = new IntList();
 }
Ejemplo n.º 11
0
 public MatrixHeading(int id, int idForReportItems, Matrix matrixDef)
     : base(id, matrixDef)
 {
     this.m_reportItems = new ReportItemCollection(idForReportItems, false);
 }
Ejemplo n.º 12
0
 public static NonComputedUniqueNames[] CreateNonComputedUniqueNames(ReportProcessing.ProcessingContext pc, ReportItemCollection reportItemsDef)
 {
     if (reportItemsDef != null && pc != null)
     {
         ReportItemList nonComputedReportItems = reportItemsDef.NonComputedReportItems;
         if (nonComputedReportItems == null)
         {
             return(null);
         }
         if (nonComputedReportItems.Count == 0)
         {
             return(null);
         }
         NonComputedUniqueNames[] array = new NonComputedUniqueNames[nonComputedReportItems.Count];
         for (int i = 0; i < nonComputedReportItems.Count; i++)
         {
             array[i] = NonComputedUniqueNames.CreateNonComputedUniqueNames(pc, nonComputedReportItems[i]);
         }
         return(array);
     }
     return(null);
 }
Ejemplo n.º 13
0
 public Rectangle(int id, int idForReportItems, ReportItem parent)
     : base(id, parent)
 {
     this.m_reportItems = new ReportItemCollection(idForReportItems, true);
 }
Ejemplo n.º 14
0
 public Matrix(int id, int idForCornerReportItems, int idForCellReportItems, ReportItem parent)
     : base(id, parent)
 {
     this.m_cornerReportItems = new ReportItemCollection(idForCornerReportItems, false);
     this.m_cellReportItems   = new ReportItemCollection(idForCellReportItems, false);
 }
Ejemplo n.º 15
0
 public Subtotal(int id, int idForReportItems, bool autoDerived)
     : base(id)
 {
     this.m_autoDerived = autoDerived;
     this.m_reportItems = new ReportItemCollection(idForReportItems, false);
 }
Ejemplo n.º 16
0
 public List(int id, int idForListContent, int idForReportItems, ReportItem parent)
     : base(id, parent)
 {
     this.m_hierarchyDef = new ReportHierarchyNode(idForListContent, this);
     this.m_reportItems  = new ReportItemCollection(idForReportItems, true);
 }