protected override object SearchChildren(int targetUniqueName, ref NonComputedUniqueNames nonCompNames, ChunkManager.RenderingChunkManager chunkManager) { object obj = null; Matrix matrix = (Matrix)base.ReportItemDef; if (matrix.CornerReportItems.Count > 0) { if (m_cornerContent != null) { obj = ((ISearchByUniqueName)m_cornerContent).Find(targetUniqueName, ref nonCompNames, chunkManager); if (obj != null) { return(obj); } } else { NonComputedUniqueNames nonCompNames2 = ((MatrixInstanceInfo)GetInstanceInfo(chunkManager, inPageSection: false)).CornerNonComputedNames; obj = ((ISearchByUniqueName)matrix.CornerReportItems[0]).Find(targetUniqueName, ref nonCompNames2, chunkManager); if (obj != null) { nonCompNames = nonCompNames2; return(obj); } } } obj = ((ISearchByUniqueName)m_columnInstances).Find(targetUniqueName, ref nonCompNames, chunkManager); if (obj != null) { return(obj); } obj = ((ISearchByUniqueName)m_rowInstances).Find(targetUniqueName, ref nonCompNames, chunkManager); if (obj != null) { return(obj); } int count = m_cells.Count; for (int i = 0; i < count; i++) { MatrixCellInstanceList matrixCellInstanceList = m_cells[i]; int count2 = matrixCellInstanceList.Count; for (int j = 0; j < count2; j++) { MatrixCellInstance matrixCellInstance = matrixCellInstanceList[j]; MatrixCellInstanceInfo instanceInfo = matrixCellInstance.GetInstanceInfo(chunkManager); int index = instanceInfo.RowIndex * matrix.MatrixColumns.Count + instanceInfo.ColumnIndex; if (matrix.CellReportItems.IsReportItemComputed(index)) { if (matrixCellInstance.Content != null) { obj = ((ISearchByUniqueName)matrixCellInstance.Content).Find(targetUniqueName, ref nonCompNames, chunkManager); if (obj != null) { return(obj); } } } else { NonComputedUniqueNames nonCompNames3 = instanceInfo.ContentUniqueNames; obj = ((ISearchByUniqueName)matrix.CellReportItems[index]).Find(targetUniqueName, ref nonCompNames3, chunkManager); if (obj != null) { nonCompNames = nonCompNames3; return(obj); } } } } return(null); }
internal MatrixCellInstance(int rowIndex, int colIndex, Matrix matrixDef, int cellDefIndex, ReportProcessing.ProcessingContext pc, out NonComputedUniqueNames nonComputedUniqueNames) { m_instanceInfo = new MatrixCellInstanceInfo(rowIndex, colIndex, matrixDef, cellDefIndex, pc, this, out nonComputedUniqueNames); }