Пример #1
0
        internal ReportItem FindReportItemInBody(int uniqueName)
        {
            object obj = null;
            NonComputedUniqueNames nonCompNames = null;
            QuickFindHashtable     quickFind    = ReportSnapshot.GetQuickFind(ChunkManager);

            if (quickFind != null)
            {
                obj = quickFind[uniqueName];
            }
            if (obj == null)
            {
                Global.Tracer.Assert(ReportSnapshot.ReportInstance != null);
                obj = ((ISearchByUniqueName)ReportSnapshot.ReportInstance).Find(uniqueName, ref nonCompNames, ChunkManager);
                if (obj == null)
                {
                    return(null);
                }
            }
            if (obj is Microsoft.ReportingServices.ReportProcessing.ReportItem)
            {
                Microsoft.ReportingServices.ReportProcessing.ReportItem reportItemDef = (Microsoft.ReportingServices.ReportProcessing.ReportItem)obj;
                return(ReportItem.CreateItem(-1, reportItemDef, null, this, nonCompNames));
            }
            Microsoft.ReportingServices.ReportProcessing.ReportItemInstance reportItemInstance = (Microsoft.ReportingServices.ReportProcessing.ReportItemInstance)obj;
            return(ReportItem.CreateItem(-1, reportItemInstance.ReportItemDef, reportItemInstance, this, nonCompNames));
        }
Пример #2
0
        internal static bool IsVisible(ReportItem reportItem, ReportItemInstance reportItemInstance, ReportItemInstanceInfo reportItemInstanceInfo)
        {
            if (reportItem == null)
            {
                return(false);
            }
            bool startHidden = reportItemInstance != null && reportItemInstanceInfo != null && reportItemInstanceInfo.StartHidden;

            return(IsVisible(reportItem.Visibility, startHidden));
        }
Пример #3
0
 internal void Add(int key, ReportItemInstance val)
 {
     m_hashtable.Add(key, val);
 }
 internal void Add(ReportItemInstance riInstance)
 {
     Global.Tracer.Assert(m_reportItemInstances != null);
     m_reportItemInstances.Add(riInstance);
 }
Пример #5
0
 protected ReportItemInstanceInfo(ReportProcessing.ProcessingContext pc, ReportItem reportItemDef, ReportItemInstance owner, bool addToChunk)
 {
     ConstructorHelper(pc, reportItemDef, owner);
     if (addToChunk && pc.ChunkManager != null && !pc.DelayAddingInstanceInfo)
     {
         pc.ChunkManager.AddInstance(this, owner, pc.InPageSection);
     }
     reportItemDef.StartHidden = m_startHidden;
 }
Пример #6
0
        private void ConstructorHelper(ReportProcessing.ProcessingContext pc, ReportItem reportItemDef, ReportItemInstance owner)
        {
            m_reportItemDef = reportItemDef;
            Style styleClass = reportItemDef.StyleClass;

            if (styleClass != null && styleClass.ExpressionList != null && 0 < styleClass.ExpressionList.Count)
            {
                m_styleAttributeValues = new object[styleClass.ExpressionList.Count];
            }
            ReportProcessing.RuntimeRICollection.EvalReportItemAttr(reportItemDef, owner, this, pc);
            if (reportItemDef.CustomProperties != null)
            {
                m_customPropertyInstances = reportItemDef.CustomProperties.EvaluateExpressions(reportItemDef.ObjectType, reportItemDef.Name, null, pc);
            }
        }
Пример #7
0
 protected ReportItemInstanceInfo(ReportProcessing.ProcessingContext pc, ReportItem reportItemDef, ReportItemInstance owner, int index, bool customCreated)
 {
     if (!customCreated)
     {
         ConstructorHelper(pc, reportItemDef, owner);
     }
     else
     {
         m_reportItemDef = reportItemDef;
     }
     if (pc.ChunkManager != null && !pc.DelayAddingInstanceInfo)
     {
         pc.ChunkManager.AddInstance(this, reportItemDef, owner, index, pc.InPageSection);
     }
     reportItemDef.StartHidden = m_startHidden;
 }
Пример #8
0
 internal ImageInstanceInfo(ReportProcessing.ProcessingContext pc, Image reportItemDef, ReportItemInstance owner, int index, bool customCreated)
     : base(pc, reportItemDef, owner, index, customCreated)
 {
 }
Пример #9
0
 internal CheckBoxInstanceInfo(ReportProcessing.ProcessingContext pc, CheckBox reportItemDef, ReportItemInstance owner, int index)
     : base(pc, reportItemDef, owner, index)
 {
 }
 internal ActiveXControlInstanceInfo(ReportProcessing.ProcessingContext pc, ActiveXControl reportItemDef, ReportItemInstance owner, int index)
     : base(pc, reportItemDef, owner, index)
 {
     if (reportItemDef.Parameters != null)
     {
         m_parameterValues = new object[reportItemDef.Parameters.Count];
     }
 }
Пример #11
0
 internal LineInstanceInfo(ReportProcessing.ProcessingContext pc, Line reportItemDef, ReportItemInstance owner, int index)
     : base(pc, reportItemDef, owner, index)
 {
 }