Пример #1
0
        internal void SetExprHost(NumericIndicatorExprHost exprHost, ObjectModelImpl reportObjectModel)
        {
            Global.Tracer.Assert(exprHost != null && reportObjectModel != null, "(exprHost != null && reportObjectModel != null)");
            SetExprHost((GaugePanelItemExprHost)exprHost, reportObjectModel);
            if (m_gaugeInputValue != null && ExprHost.GaugeInputValueHost != null)
            {
                m_gaugeInputValue.SetExprHost(ExprHost.GaugeInputValueHost, reportObjectModel);
            }
            IList <NumericIndicatorRangeExprHost> numericIndicatorRangesHostsRemotable = ExprHost.NumericIndicatorRangesHostsRemotable;

            if (m_numericIndicatorRanges != null && numericIndicatorRangesHostsRemotable != null)
            {
                for (int i = 0; i < m_numericIndicatorRanges.Count; i++)
                {
                    NumericIndicatorRange numericIndicatorRange = m_numericIndicatorRanges[i];
                    if (numericIndicatorRange != null && numericIndicatorRange.ExpressionHostID > -1)
                    {
                        numericIndicatorRange.SetExprHost(numericIndicatorRangesHostsRemotable[numericIndicatorRange.ExpressionHostID], reportObjectModel);
                    }
                }
            }
            if (m_minimumValue != null && ExprHost.MinimumValueHost != null)
            {
                m_minimumValue.SetExprHost(ExprHost.MinimumValueHost, reportObjectModel);
            }
            if (m_maximumValue != null && ExprHost.MaximumValueHost != null)
            {
                m_maximumValue.SetExprHost(ExprHost.MaximumValueHost, reportObjectModel);
            }
        }
Пример #2
0
        internal object PublishClone(AutomaticSubtotalContext context)
        {
            NumericIndicatorRange numericIndicatorRange = (NumericIndicatorRange)MemberwiseClone();

            numericIndicatorRange.m_gaugePanel = (GaugePanel)context.CurrentDataRegionClone;
            if (m_startValue != null)
            {
                numericIndicatorRange.m_startValue = (GaugeInputValue)m_startValue.PublishClone(context);
            }
            if (m_endValue != null)
            {
                numericIndicatorRange.m_endValue = (GaugeInputValue)m_endValue.PublishClone(context);
            }
            if (m_decimalDigitColor != null)
            {
                numericIndicatorRange.m_decimalDigitColor = (ExpressionInfo)m_decimalDigitColor.PublishClone(context);
            }
            if (m_digitColor != null)
            {
                numericIndicatorRange.m_digitColor = (ExpressionInfo)m_digitColor.PublishClone(context);
            }
            return(numericIndicatorRange);
        }