Пример #1
0
        internal CustomPropertyCollection(IReportScopeInstance romInstance, RenderingContext renderingContext, ReportElement reportElementOwner, ICustomPropertiesHolder customPropertiesHolder, ObjectType objectType, string objectName)
        {
            m_reportElementOwner = reportElementOwner;
            Microsoft.ReportingServices.ReportIntermediateFormat.DataValueList customProperties = customPropertiesHolder.CustomProperties;
            if (customProperties == null)
            {
                m_list = new List <CustomProperty>();
                return;
            }
            bool flag  = InstancePathItem.IsValidContext(customPropertiesHolder.InstancePath.InstancePath);
            int  count = customProperties.Count;

            m_list = new List <CustomProperty>(count);
            for (int i = 0; i < count; i++)
            {
                Microsoft.ReportingServices.ReportIntermediateFormat.DataValue dataValue = customProperties[i];
                string   name          = null;
                object   value         = null;
                TypeCode valueTypeCode = TypeCode.Empty;
                if (flag)
                {
                    dataValue.EvaluateNameAndValue(m_reportElementOwner, romInstance, customPropertiesHolder.InstancePath, renderingContext.OdpContext, objectType, objectName, out name, out value, out valueTypeCode);
                }
                CustomProperty customProperty = new CustomProperty(m_reportElementOwner, renderingContext, dataValue.Name, dataValue.Value, name, value, valueTypeCode);
                m_list.Add(customProperty);
                if (flag)
                {
                    AddPropToLookupTable(name, customProperty);
                }
            }
        }
 internal CustomProperty(ReportElement reportElementOwner, RenderingContext renderingContext, Microsoft.ReportingServices.ReportIntermediateFormat.ExpressionInfo nameExpr, Microsoft.ReportingServices.ReportIntermediateFormat.ExpressionInfo valueExpr, string name, object value, TypeCode typeCode)
 {
     m_reportElementOwner = reportElementOwner;
     Init(nameExpr, valueExpr, name, value, typeCode);
     m_renderingContext = renderingContext;
 }
Пример #3
0
 internal InternalParagraphInstance(ReportElement reportElementDef)
     : base(reportElementDef)
 {
 }