コード例 #1
0
 public Parameter(ActionDrillthrough actionDef, AspNetCore.ReportingServices.ReportProcessing.ParameterValue parameterDef, ActionItemInstance actionInstance, int index)
 {
     this.m_name      = parameterDef.Name;
     this.m_value     = new ReportVariantProperty(parameterDef.Value);
     this.m_omit      = new ReportBoolProperty(parameterDef.Omit);
     this.m_actionDef = actionDef;
     this.m_instance  = new ParameterInstance(actionInstance, index);
 }
コード例 #2
0
        public static ReportBoolProperty GetStartHidden(AspNetCore.ReportingServices.ReportIntermediateFormat.Visibility visibility)
        {
            ReportBoolProperty reportBoolProperty = null;

            if (visibility == null)
            {
                return(new ReportBoolProperty());
            }
            return(new ReportBoolProperty(visibility.Hidden));
        }
コード例 #3
0
        private bool GetUseSecureConnection(MapTileLayer mapTileLayer)
        {
            ReportBoolProperty useSecureConnection = mapTileLayer.UseSecureConnection;

            if (useSecureConnection == null)
            {
                return(false);
            }
            if (!useSecureConnection.IsExpression)
            {
                return(useSecureConnection.Value);
            }
            return(mapTileLayer.Instance.UseSecureConnection);
        }
コード例 #4
0
        private bool GetShowInColorScale()
        {
            ReportBoolProperty showInColorScale = ((MapColorRule)base.m_mapRule).ShowInColorScale;

            if (showInColorScale != null)
            {
                if (!showInColorScale.IsExpression)
                {
                    return(showInColorScale.Value);
                }
                return(((MapColorRule)base.m_mapRule).Instance.ShowInColorScale);
            }
            return(false);
        }
コード例 #5
0
        public static bool PolygonUseCustomTemplate(MapPolygon mapPolygon, bool hasScope)
        {
            if (mapPolygon == null)
            {
                return(false);
            }
            bool result = false;
            ReportBoolProperty useCustomCenterPointTemplate = mapPolygon.UseCustomCenterPointTemplate;

            if (useCustomCenterPointTemplate != null)
            {
                if (!useCustomCenterPointTemplate.IsExpression)
                {
                    result = useCustomCenterPointTemplate.Value;
                }
                else if (hasScope)
                {
                    result = mapPolygon.Instance.UseCustomCenterPointTemplate;
                }
            }
            return(result);
        }
コード例 #6
0
        private static bool UseCustomTemplate(MapPoint mapPoint, bool hasScope)
        {
            if (mapPoint == null)
            {
                return(false);
            }
            bool result = false;
            ReportBoolProperty useCustomPointTemplate = mapPoint.UseCustomPointTemplate;

            if (useCustomPointTemplate != null)
            {
                if (!useCustomPointTemplate.IsExpression)
                {
                    result = useCustomPointTemplate.Value;
                }
                else if (hasScope)
                {
                    result = mapPoint.Instance.UseCustomPointTemplate;
                }
            }
            return(result);
        }
コード例 #7
0
        private bool UseCustomTemplate(MapLine mapLine, bool hasScope)
        {
            if (mapLine == null)
            {
                return(false);
            }
            bool result = false;
            ReportBoolProperty useCustomLineTemplate = mapLine.UseCustomLineTemplate;

            if (useCustomLineTemplate != null)
            {
                if (!useCustomLineTemplate.IsExpression)
                {
                    result = useCustomLineTemplate.Value;
                }
                else if (hasScope)
                {
                    result = mapLine.Instance.UseCustomLineTemplate;
                }
            }
            return(result);
        }
コード例 #8
0
        public void ConstructParameterDefinition()
        {
            ParameterInstance instance = this.Instance;

            Global.Tracer.Assert(instance != null);
            if (instance.Value != null)
            {
                this.m_parameterDef.Value = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateConstExpression((string)instance.Value);
            }
            else
            {
                this.m_parameterDef.Value = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateEmptyExpression();
            }
            this.m_value = null;
            if (instance.IsOmitAssined)
            {
                this.m_parameterDef.Omit = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateConstExpression(instance.Omit);
            }
            else
            {
                this.m_parameterDef.Omit = AspNetCore.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateEmptyExpression();
            }
            this.m_omit = null;
        }
コード例 #9
0
        protected void RenderSpatialElementTemplate(MapSpatialElementTemplate mapSpatialElementTemplate, ISpatialElement coreSpatialElement, bool ignoreBackgroundColor, bool hasScope)
        {
            ReportStringProperty toolTip = mapSpatialElementTemplate.ToolTip;
            string text = null;

            if (toolTip != null)
            {
                if (!toolTip.IsExpression)
                {
                    text = toolTip.Value;
                }
                else if (hasScope)
                {
                    text = mapSpatialElementTemplate.Instance.ToolTip;
                }
                if (text != null)
                {
                    text = (coreSpatialElement.ToolTip = VectorLayerMapper.AddPrefixToFieldNames(this.m_mapVectorLayer.Name, text));
                }
            }
            this.m_mapMapper.RenderActionInfo(mapSpatialElementTemplate.ActionInfo, text, coreSpatialElement, this.m_mapVectorLayer.Name, hasScope);
            ReportBoolProperty hidden = mapSpatialElementTemplate.Hidden;

            if (hidden != null)
            {
                if (!hidden.IsExpression)
                {
                    coreSpatialElement.Visible = !hidden.Value;
                }
                else if (hasScope)
                {
                    coreSpatialElement.Visible = !mapSpatialElementTemplate.Instance.Hidden;
                }
                else
                {
                    coreSpatialElement.Visible = true;
                }
            }
            else
            {
                coreSpatialElement.Visible = true;
            }
            ReportStringProperty label = mapSpatialElementTemplate.Label;

            if (label != null)
            {
                string text3 = "";
                if (!label.IsExpression)
                {
                    text3 = label.Value;
                }
                else if (hasScope)
                {
                    text3 = mapSpatialElementTemplate.Instance.Label;
                }
                if (text3 != null)
                {
                    coreSpatialElement.Text = VectorLayerMapper.AddPrefixToFieldNames(this.m_mapVectorLayer.Name, text3);
                }
            }
            ReportDoubleProperty offsetX = mapSpatialElementTemplate.OffsetX;
            double x = 0.0;

            if (offsetX != null)
            {
                if (!offsetX.IsExpression)
                {
                    x = offsetX.Value;
                }
                else if (hasScope)
                {
                    x = mapSpatialElementTemplate.Instance.OffsetX;
                }
                coreSpatialElement.Offset.X = x;
            }
            offsetX = mapSpatialElementTemplate.OffsetY;
            x       = 0.0;
            if (offsetX != null)
            {
                if (!offsetX.IsExpression)
                {
                    x = offsetX.Value;
                }
                else if (hasScope)
                {
                    x = mapSpatialElementTemplate.Instance.OffsetY;
                }
                coreSpatialElement.Offset.Y = x;
            }
            Style         style  = mapSpatialElementTemplate.Style;
            StyleInstance style2 = mapSpatialElementTemplate.Instance.Style;

            this.RenderStyle(style, style2, coreSpatialElement, ignoreBackgroundColor, hasScope);
        }