public void MatchEventSource(TextBox textBox, TextBoxInstance textBoxInstance, ReportProcessing.IScope containingScope, ReportProcessing.ProcessingContext processingContext)
        {
            bool flag = false;

            if (!(containingScope is ReportProcessing.RuntimePivotCell))
            {
                while (containingScope != null && !(containingScope is ReportProcessing.RuntimeGroupLeafObj) && !(containingScope is ReportProcessing.RuntimeDetailObj) && !(containingScope is ReportProcessing.RuntimeOnePassDetailObj))
                {
                    containingScope = containingScope.GetOuterScope(true);
                }
            }
            if (containingScope == null)
            {
                if (this.m_eventSource.ContainingScopes == null || this.m_eventSource.ContainingScopes.Count == 0)
                {
                    flag = true;
                }
            }
            else if (this.m_eventSourceScope == containingScope)
            {
                flag = true;
                DataRegion dataRegion = null;
                if (containingScope is ReportProcessing.RuntimeDetailObj)
                {
                    dataRegion = ((ReportProcessing.RuntimeDetailObj)containingScope).DataRegionDef;
                }
                else if (containingScope is ReportProcessing.RuntimeOnePassDetailObj)
                {
                    dataRegion = ((ReportProcessing.RuntimeOnePassDetailObj)containingScope).DataRegionDef;
                }
                if (dataRegion != null && dataRegion.CurrentDetailRowIndex != this.m_eventSourceDetailIndex)
                {
                    flag = false;
                }
            }
            if (flag)
            {
                if (textBox == this.m_eventSource)
                {
                    this.m_newUniqueName = textBoxInstance.UniqueName;
                    this.m_page          = processingContext.Pagination.GetTextBoxStartPage(textBox);
                }
                else if (this.m_peerSortFilters != null && this.m_peerSortFilters.Contains(textBox.ID))
                {
                    this.m_peerSortFilters[textBox.ID] = textBoxInstance.UniqueName;
                }
            }
        }
示例#2
0
 public TextBox(string uniqueName, int intUniqueName, AspNetCore.ReportingServices.ReportProcessing.TextBox reportItemDef, AspNetCore.ReportingServices.ReportProcessing.TextBoxInstance reportItemInstance, RenderingContext renderingContext)
     : base(uniqueName, intUniqueName, reportItemDef, reportItemInstance, renderingContext)
 {
 }
 public TextBoxInstanceInfo(ReportProcessing.ProcessingContext pc, TextBox reportItemDef, TextBoxInstance owner, int index)
     : base(pc, reportItemDef, owner, index)
 {
 }
示例#4
0
 public SimpleTextBoxInstanceInfo(ReportProcessing.ProcessingContext pc, TextBox reportItemDef, TextBoxInstance owner, int index)
 {
     this.m_reportItemDef = reportItemDef;
     ReportProcessing.RuntimeRICollection.ResetSubtotalReferences(pc);
     if (pc.ChunkManager != null && !pc.DelayAddingInstanceInfo)
     {
         pc.ChunkManager.AddInstance(this, reportItemDef, owner, index, pc.InPageSection);
     }
 }