コード例 #1
0
        public static void MergeDataProcessingItem(AspNetCore.ReportingServices.ReportIntermediateFormat.ReportItem item, ref List <AspNetCore.ReportingServices.ReportIntermediateFormat.ReportItem> results)
        {
            if (item != null)
            {
                if (item.IsDataRegion)
                {
                    RuntimeRICollection.AddItem(item, ref results);
                }
                else
                {
                    switch (item.ObjectType)
                    {
                    case AspNetCore.ReportingServices.ReportProcessing.ObjectType.Rectangle:
                    {
                        AspNetCore.ReportingServices.ReportIntermediateFormat.Rectangle rectangle = (AspNetCore.ReportingServices.ReportIntermediateFormat.Rectangle)item;
                        RuntimeRICollection.MergeDataProcessingItems(rectangle.ReportItems.ComputedReportItems, ref results);
                        break;
                    }

                    case AspNetCore.ReportingServices.ReportProcessing.ObjectType.Subreport:
                    case AspNetCore.ReportingServices.ReportProcessing.ObjectType.Map:
                        RuntimeRICollection.AddItem(item, ref results);
                        break;
                    }
                }
            }
        }