public CustomPropertyCollection(IReportScopeInstance romInstance, RenderingContext renderingContext, ReportElement reportElementOwner, ICustomPropertiesHolder customPropertiesHolder, ObjectType objectType, string objectName)
 {
     this.m_reportElementOwner = reportElementOwner;
     AspNetCore.ReportingServices.ReportIntermediateFormat.DataValueList customProperties = customPropertiesHolder.CustomProperties;
     if (customProperties == null)
     {
         this.m_list = new List <CustomProperty>();
     }
     else
     {
         bool flag  = InstancePathItem.IsValidContext(customPropertiesHolder.InstancePath.InstancePath);
         int  count = customProperties.Count;
         this.m_list = new List <CustomProperty>(count);
         for (int i = 0; i < count; i++)
         {
             AspNetCore.ReportingServices.ReportIntermediateFormat.DataValue dataValue = customProperties[i];
             string   name     = null;
             object   value    = null;
             TypeCode typeCode = TypeCode.Empty;
             if (flag)
             {
                 dataValue.EvaluateNameAndValue(this.m_reportElementOwner, romInstance, customPropertiesHolder.InstancePath, renderingContext.OdpContext, objectType, objectName, out name, out value, out typeCode);
             }
             CustomProperty customProperty = new CustomProperty(this.m_reportElementOwner, renderingContext, dataValue.Name, dataValue.Value, name, value, typeCode);
             this.m_list.Add(customProperty);
             if (flag)
             {
                 this.AddPropToLookupTable(name, customProperty);
             }
         }
     }
 }
        public void UpdateCustomProperties(IReportScopeInstance romInstance, ICustomPropertiesHolder customPropertiesHolder, OnDemandProcessingContext context, ObjectType objectType, string objectName)
        {
            AspNetCore.ReportingServices.ReportIntermediateFormat.DataValueList customProperties = customPropertiesHolder.CustomProperties;
            int  count = this.m_list.Count;
            bool flag  = false;

            if (this.m_lookupTable == null)
            {
                flag = true;
            }
            for (int i = 0; i < count; i++)
            {
                string   name     = null;
                object   value    = null;
                TypeCode typeCode = TypeCode.Empty;
                if (customProperties != null && i < customProperties.Count)
                {
                    customProperties[i].EvaluateNameAndValue(this.m_reportElementOwner, romInstance, customPropertiesHolder.InstancePath, context, objectType, objectName, out name, out value, out typeCode);
                }
                this.m_list[i].Update(name, value, typeCode);
                if (flag)
                {
                    this.AddPropToLookupTable(name, this.m_list[i]);
                }
            }
        }
Example #3
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(ChartDataPoint.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.DataPointValues:
                    this.m_dataPointValues = (ChartDataPointValues)reader.ReadRIFObject();
                    break;

                case MemberName.DataLabel:
                    this.m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

                case MemberName.Action:
                    this.m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.StyleClass:
                    this.m_styleClass = (Style)reader.ReadRIFObject();
                    break;

                case MemberName.DataElementName:
                    this.m_dataElementName = reader.ReadString();
                    break;

                case MemberName.DataElementOutput:
                    this.m_dataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                case MemberName.CustomProperties:
                    this.m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.Marker:
                    this.m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

                case MemberName.AxisLabel:
                    this.m_axisLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartItemInLegend:
                    this.m_itemInLegend = (ChartItemInLegend)reader.ReadRIFObject();
                    break;

                case MemberName.ToolTip:
                    this.m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Example #4
0
        public void Initialize(string prefix, int rowIndex, int cellIndex, bool isCustomProperty, InitializationContext context)
        {
            int count = this.Count;

            AspNetCore.ReportingServices.ReportPublishing.CustomPropertyUniqueNameValidator validator = new AspNetCore.ReportingServices.ReportPublishing.CustomPropertyUniqueNameValidator();
            for (int i = 0; i < count; i++)
            {
                Global.Tracer.Assert(null != this[i]);
                this[i].Initialize(DataValueList.CreatePropertyNameString(prefix, rowIndex + 1, cellIndex + 1, i + 1), isCustomProperty, validator, context);
            }
        }
 public void ConstructCustomPropertyDefinitions(AspNetCore.ReportingServices.ReportIntermediateFormat.DataValueList dataValueDefs)
 {
     Global.Tracer.Assert(dataValueDefs != null && this.m_list.Count == dataValueDefs.Count, "m_list.Count == dataValueDefs.Count");
     for (int i = 0; i < this.m_list.Count; i++)
     {
         CustomProperty customProperty = this.m_list[i];
         customProperty.ConstructCustomPropertyDefinition(dataValueDefs[i]);
         if (customProperty.Instance != null && customProperty.Instance.Name != null)
         {
             this.AddPropToLookupTable(customProperty.Instance.Name, customProperty);
         }
     }
 }
Example #6
0
 public override void Deserialize(IntermediateFormatReader reader)
 {
     base.Deserialize(reader);
     reader.RegisterDeclaration(DataCell.m_Declaration);
     while (reader.NextMember())
     {
         MemberName memberName = reader.CurrentMember.MemberName;
         if (memberName == MemberName.DataValues)
         {
             this.m_dataValues = reader.ReadListOfRIFObjects <DataValueList>();
         }
         else
         {
             Global.Tracer.Assert(false);
         }
     }
 }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(ChartEmptyPoints.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    this.m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.Marker:
                    this.m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

                case MemberName.DataLabel:
                    this.m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

                case MemberName.AxisLabel:
                    this.m_axisLabel = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CustomProperties:
                    this.m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.ChartSeries:
                    this.m_chartSeries = reader.ReadReference <ChartSeries>(this);
                    break;

                case MemberName.ToolTip:
                    this.m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(ChartSeries.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

                case MemberName.ChartDataPoints:
                    this.m_dataPoints = reader.ReadListOfRIFObjects <ChartDataPointList>();
                    break;

                case MemberName.ExprHostID:
                    this.m_exprHostID = reader.ReadInt32();
                    break;

                case MemberName.Chart:
                    this.m_chart = reader.ReadReference <Chart>(this);
                    break;

                case MemberName.ChartMember:
                    this.m_parentChartMember = reader.ReadReference <ChartMember>(this);
                    break;

                case MemberName.SourceSeries:
                    this.m_sourceSeries = reader.ReadReference <ChartSeries>(this);
                    break;

                case MemberName.Action:
                    this.m_action = (Action)reader.ReadRIFObject();
                    break;

                case MemberName.Type:
                    this.m_type = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Subtype:
                    this.m_subtype = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.EmptyPoints:
                    this.m_emptyPoints = (ChartEmptyPoints)reader.ReadRIFObject();
                    break;

                case MemberName.LegendName:
                    this.m_legendName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.LegendText:
                    this.m_legendText = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartAreaName:
                    this.m_chartAreaName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ValueAxisName:
                    this.m_valueAxisName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CategoryAxisName:
                    this.m_categoryAxisName = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.StyleClass:
                    this.m_styleClass = (Style)reader.ReadRIFObject();
                    break;

                case MemberName.Hidden:
                    this.m_hidden = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.HideInLegend:
                    this.m_hideInLegend = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartSmartLabel:
                    this.m_chartSmartLabel = (ChartSmartLabel)reader.ReadRIFObject();
                    break;

                case MemberName.CustomProperties:
                    this.m_customProperties = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.DataLabel:
                    this.m_dataLabel = (ChartDataLabel)reader.ReadRIFObject();
                    break;

                case MemberName.Marker:
                    this.m_marker = (ChartMarker)reader.ReadRIFObject();
                    break;

                case MemberName.ToolTip:
                    this.m_toolTip = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartItemInLegend:
                    this.m_chartItemInLegend = (ChartItemInLegend)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Example #9
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(Chart.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.CategoryMembers:
                    this.m_categoryMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

                case MemberName.SeriesMembers:
                    this.m_seriesMembers = reader.ReadListOfRIFObjects <ChartMemberList>();
                    break;

                case MemberName.ChartSeriesCollection:
                    this.m_chartSeriesCollection = reader.ReadListOfRIFObjects <ChartSeriesList>();
                    break;

                case MemberName.ChartDerivedSeriesCollection:
                    this.m_chartDerivedSeriesCollection = reader.ReadGenericListOfRIFObjects <ChartDerivedSeries>();
                    break;

                case MemberName.Palette:
                    this.m_palette = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ChartLegends:
                    this.m_legends = reader.ReadGenericListOfRIFObjects <ChartLegend>();
                    break;

                case MemberName.ChartAreas:
                    this.m_chartAreas = reader.ReadGenericListOfRIFObjects <ChartArea>();
                    break;

                case MemberName.Titles:
                    this.m_titles = reader.ReadGenericListOfRIFObjects <ChartTitle>();
                    break;

                case MemberName.DynamicHeight:
                    this.m_dynamicHeight = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DynamicWidth:
                    this.m_dynamicWidth = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.CodeParameters:
                    this.m_codeParameters = reader.ReadListOfRIFObjects <DataValueList>();
                    break;

                case MemberName.CustomPaletteColors:
                    this.m_customPaletteColors = reader.ReadGenericListOfRIFObjects <ChartCustomPaletteColor>();
                    break;

                case MemberName.NoDataMessage:
                    this.m_noDataMessage = (ChartNoDataMessage)reader.ReadRIFObject();
                    break;

                case MemberName.BorderSkin:
                    this.m_borderSkin = (ChartBorderSkin)reader.ReadRIFObject();
                    break;

                case MemberName.DataValueSequenceRendering:
                    this.m_dataValueSequenceRendering = reader.ReadBoolean();
                    break;

                case MemberName.PaletteHatchBehavior:
                    this.m_paletteHatchBehavior = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ColumnGroupingIsSwitched:
                    this.m_columnGroupingIsSwitched = reader.ReadBoolean();
                    break;

                case MemberName.EnableCategoryDrilldown:
                    this.m_enableCategoryDrilldown = reader.ReadBoolean();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }