Exemplo n.º 1
0
        public override object PublishClone(AutomaticSubtotalContext context)
        {
            IndicatorImage indicatorImage = (IndicatorImage)base.PublishClone(context);

            if (this.m_hueColor != null)
            {
                indicatorImage.m_hueColor = (ExpressionInfo)this.m_hueColor.PublishClone(context);
            }
            if (this.m_transparency != null)
            {
                indicatorImage.m_transparency = (ExpressionInfo)this.m_transparency.PublishClone(context);
            }
            return(indicatorImage);
        }
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(IndicatorState.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugePanel:
                    this.m_gaugePanel = reader.ReadReference <GaugePanel>(this);
                    break;

                case MemberName.Name:
                    this.m_name = reader.ReadString();
                    break;

                case MemberName.StartValue:
                    this.m_startValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.EndValue:
                    this.m_endValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.Color:
                    this.m_color = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ScaleFactor:
                    this.m_scaleFactor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorStyle:
                    this.m_indicatorStyle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorImage:
                    this.m_indicatorImage = (IndicatorImage)reader.ReadRIFObject();
                    break;

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

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
            }
        }
Exemplo n.º 3
0
 public IndicatorImage(AspNetCore.ReportingServices.ReportIntermediateFormat.IndicatorImage defObject, GaugePanel gaugePanel)
     : base(defObject, gaugePanel)
 {
 }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(StateIndicator.m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugeInputValue:
                    this.m_gaugeInputValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.TransformationType:
                    this.m_transformationType = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.TransformationScope:
                    this.m_transformationScope = reader.ReadString();
                    break;

                case MemberName.MaximumValue:
                    this.m_maximumValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.MinimumValue:
                    this.m_minimumValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorStyle:
                    this.m_indicatorStyle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorImage:
                    this.m_indicatorImage = (IndicatorImage)reader.ReadRIFObject();
                    break;

                case MemberName.ScaleFactor:
                    this.m_scaleFactor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IndicatorStates:
                    this.m_indicatorStates = reader.ReadGenericListOfRIFObjects <IndicatorState>();
                    break;

                case MemberName.ResizeMode:
                    this.m_resizeMode = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Angle:
                    this.m_angle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.StateDataElementName:
                    this.m_stateDataElementName = reader.ReadString();
                    break;

                case MemberName.StateDataElementOutput:
                    this.m_stateDataElementOutput = (DataElementOutputTypes)reader.ReadEnum();
                    break;

                default:
                    Global.Tracer.Assert(false);
                    break;
                }
                if (reader.IntermediateFormatVersion.CompareTo(AspNetCore.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatVersion.SQL16) < 0)
                {
                    AttributeInfo attributeInfo = default(AttributeInfo);
                    if (!base.m_styleClass.GetAttributeInfo("BorderStyle", out attributeInfo))
                    {
                        base.m_styleClass.AddAttribute("BorderStyle", new ExpressionInfo
                        {
                            StringValue  = "Solid",
                            ConstantType = DataType.String
                        });
                    }
                    else
                    {
                        attributeInfo.IsExpression = false;
                        attributeInfo.Value        = "Solid";
                    }
                }
            }
        }