コード例 #1
0
        public static string GetBindingFieldName(MapBindingFieldPair bindingFieldPair)
        {
            ReportStringProperty fieldName = bindingFieldPair.FieldName;

            if (!fieldName.IsExpression)
            {
                return(fieldName.Value);
            }
            return(bindingFieldPair.Instance.FieldName);
        }
コード例 #2
0
        public static object EvaluateBindingExpression(MapBindingFieldPair mapBindingFieldPair)
        {
            ReportVariantProperty bindingExpression = mapBindingFieldPair.BindingExpression;

            if (!bindingExpression.IsExpression)
            {
                return(bindingExpression.Value);
            }
            return(mapBindingFieldPair.Instance.BindingExpression);
        }
コード例 #3
0
        private static object GetBindingFieldValue(ISpatialElement coreSpatialElement, MapBindingFieldPair bindingFieldPair, string mapName, string layerName)
        {
            string bindingFieldName = SpatialDataMapper.GetBindingFieldName(bindingFieldPair);

            if (bindingFieldName == null)
            {
                return(null);
            }
            return(coreSpatialElement[SpatialDataMapper.GetUniqueFieldName(layerName, bindingFieldName)]);
        }