internal object PublishClone(AutomaticSubtotalContext context)
        {
            GaugeInputValue gaugeInputValue = (GaugeInputValue)MemberwiseClone();

            gaugeInputValue.m_gaugePanel = (GaugePanel)context.CurrentDataRegionClone;
            if (m_value != null)
            {
                gaugeInputValue.m_value = (ExpressionInfo)m_value.PublishClone(context);
            }
            if (m_formula != null)
            {
                gaugeInputValue.m_formula = (ExpressionInfo)m_formula.PublishClone(context);
            }
            if (m_minPercent != null)
            {
                gaugeInputValue.m_minPercent = (ExpressionInfo)m_minPercent.PublishClone(context);
            }
            if (m_maxPercent != null)
            {
                gaugeInputValue.m_maxPercent = (ExpressionInfo)m_maxPercent.PublishClone(context);
            }
            if (m_multiplier != null)
            {
                gaugeInputValue.m_multiplier = (ExpressionInfo)m_multiplier.PublishClone(context);
            }
            if (m_addConstant != null)
            {
                gaugeInputValue.m_addConstant = (ExpressionInfo)m_addConstant.PublishClone(context);
            }
            return(gaugeInputValue);
        }
示例#2
0
        public void Deserialize(IntermediateFormatReader reader)
        {
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugePanel:
                    m_gaugePanel = reader.ReadReference <GaugePanel>(this);
                    break;

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

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

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

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

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

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

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

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
示例#3
0
        internal void SetExprHost(GaugeCellExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null);
            m_exprHost = exprHost;
            m_exprHost.SetReportObjectModel(reportObjectModel);
            IList <GaugeInputValueExprHost> gaugeInputValueHostsRemotable = m_exprHost.GaugeInputValueHostsRemotable;
            List <GaugeInputValue>          gaugeInputValues = GetGaugeInputValues();

            if (gaugeInputValues != null && gaugeInputValueHostsRemotable != null)
            {
                for (int i = 0; i < gaugeInputValues.Count; i++)
                {
                    GaugeInputValue gaugeInputValue = gaugeInputValues[i];
                    if (gaugeInputValue != null && gaugeInputValue.ExpressionHostID > -1)
                    {
                        gaugeInputValue.SetExprHost(gaugeInputValueHostsRemotable[gaugeInputValue.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            BaseSetExprHost(exprHost, reportObjectModel);
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugeInputValue:
                    m_gaugeInputValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

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

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

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

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

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

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

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

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

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

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

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

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

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
                if (reader.IntermediateFormatVersion.CompareTo(Microsoft.ReportingServices.ReportIntermediateFormat.Persistence.IntermediateFormatVersion.SQL16) < 0)
                {
                    if (!m_styleClass.GetAttributeInfo("BorderStyle", out AttributeInfo styleAttribute))
                    {
                        m_styleClass.AddAttribute("BorderStyle", new ExpressionInfo
                        {
                            StringValue  = "Solid",
                            ConstantType = DataType.String
                        });
                    }
                    else
                    {
                        styleAttribute.IsExpression = false;
                        styleAttribute.Value        = "Solid";
                    }
                }
            }
        }
示例#5
0
 internal GaugeInputValue(Microsoft.ReportingServices.ReportIntermediateFormat.GaugeInputValue defObject, GaugePanel gaugePanel)
 {
     m_defObject  = defObject;
     m_gaugePanel = gaugePanel;
 }
示例#6
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    m_action = (Action)reader.ReadRIFObject();
                    break;

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

                case MemberName.DistanceFromScale:
                    m_distanceFromScale = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.StartWidth:
                    m_startWidth = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.EndWidth:
                    m_endWidth = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.InRangeBarPointerColor:
                    m_inRangeBarPointerColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.InRangeLabelColor:
                    m_inRangeLabelColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.InRangeTickMarksColor:
                    m_inRangeTickMarksColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.BackgroundGradientType:
                    m_backgroundGradientType = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Placement:
                    m_placement = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

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

                case MemberName.ID:
                    m_id = reader.ReadInt32();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
示例#7
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.GaugeInputValue:
                    m_gaugeInputValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.NumericIndicatorRanges:
                    m_numericIndicatorRanges = reader.ReadGenericListOfRIFObjects <NumericIndicatorRange>();
                    break;

                case MemberName.DecimalDigitColor:
                    m_decimalDigitColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DigitColor:
                    m_digitColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.UseFontPercent:
                    m_useFontPercent = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DecimalDigits:
                    m_decimalDigits = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Digits:
                    m_digits = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.Multiplier:
                    m_multiplier = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.NonNumericString:
                    m_nonNumericString = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.OutOfRangeString:
                    m_outOfRangeString = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                case MemberName.ShowDecimalPoint:
                    m_showDecimalPoint = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.ShowLeadingZeros:
                    m_showLeadingZeros = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                case MemberName.ShowSign:
                    m_showSign = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.SnappingEnabled:
                    m_snappingEnabled = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.SnappingInterval:
                    m_snappingInterval = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.LedDimColor:
                    m_ledDimColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.SeparatorWidth:
                    m_separatorWidth = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.SeparatorColor:
                    m_separatorColor = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
示例#8
0
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    m_action = (Action)reader.ReadRIFObject();
                    break;

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

                case MemberName.GaugeInputValue:
                    m_gaugeInputValue = (GaugeInputValue)reader.ReadRIFObject();
                    break;

                case MemberName.BarStart:
                    m_barStart = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.DistanceFromScale:
                    m_distanceFromScale = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.PointerImage:
                    m_pointerImage = (PointerImage)reader.ReadRIFObject();
                    break;

                case MemberName.MarkerLength:
                    m_markerLength = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.MarkerStyle:
                    m_markerStyle = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Placement:
                    m_placement = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.SnappingEnabled:
                    m_snappingEnabled = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.SnappingInterval:
                    m_snappingInterval = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.Width:
                    m_width = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                case MemberName.ID:
                    m_id = reader.ReadInt32();
                    break;

                default:
                    Global.Tracer.Assert(condition: false);
                    break;
                }
            }
        }
        public override void Deserialize(IntermediateFormatReader reader)
        {
            base.Deserialize(reader);
            reader.RegisterDeclaration(m_Declaration);
            while (reader.NextMember())
            {
                switch (reader.CurrentMember.MemberName)
                {
                case MemberName.Action:
                    m_action = (Action)reader.ReadRIFObject();
                    break;

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

                case MemberName.ScaleRanges:
                    m_scaleRanges = reader.ReadGenericListOfRIFObjects <ScaleRange>();
                    break;

                case MemberName.CustomLabels:
                    m_customLabels = reader.ReadGenericListOfRIFObjects <CustomLabel>();
                    break;

                case MemberName.Interval:
                    m_interval = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.IntervalOffset:
                    m_intervalOffset = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Logarithmic:
                    m_logarithmic = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.LogarithmicBase:
                    m_logarithmicBase = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.Multiplier:
                    m_multiplier = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.Reversed:
                    m_reversed = (ExpressionInfo)reader.ReadRIFObject();
                    break;

                case MemberName.GaugeMajorTickMarks:
                    m_gaugeMajorTickMarks = (GaugeTickMarks)reader.ReadRIFObject();
                    break;

                case MemberName.GaugeMinorTickMarks:
                    m_gaugeMinorTickMarks = (GaugeTickMarks)reader.ReadRIFObject();
                    break;

                case MemberName.MaximumPin:
                    m_maximumPin = (ScalePin)reader.ReadRIFObject();
                    break;

                case MemberName.MinimumPin:
                    m_minimumPin = (ScalePin)reader.ReadRIFObject();
                    break;

                case MemberName.ScaleLabels:
                    m_scaleLabels = (ScaleLabels)reader.ReadRIFObject();
                    break;

                case MemberName.TickMarksOnTop:
                    m_tickMarksOnTop = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

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

                case MemberName.Width:
                    m_width = (ExpressionInfo)reader.ReadRIFObject();
                    break;

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

                case MemberName.ID:
                    m_id = reader.ReadInt32();
                    break;

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