Esempio n. 1
0
 private bool SetupNextRow()
 {
     try
     {
         int rowIndex = default(int);
         this.m_currentRow = base.ReadOneRow(out rowIndex);
         if (this.m_currentRow == null)
         {
             return(false);
         }
         FieldsImpl fieldsImpl = base.m_odpContext.ReportObjectModel.FieldsImpl;
         fieldsImpl.NewRow();
         if (fieldsImpl.AddRowIndex)
         {
             fieldsImpl.SetRowIndex(rowIndex);
         }
         base.m_odpContext.ReportObjectModel.UpdateFieldValues(false, this.m_currentRow, base.m_dataSetInstance, base.HasServerAggregateMetadata);
         return(true);
     }
     catch (Exception)
     {
         this.CleanupForException();
         this.FinalCleanup();
         throw;
     }
 }
 private bool SetupNextRow()
 {
     try
     {
         m_currentRow = ReadOneRow(out int rowIndex);
         if (m_currentRow == null)
         {
             return(false);
         }
         FieldsImpl fieldsImpl = m_odpContext.ReportObjectModel.FieldsImpl;
         fieldsImpl.NewRow();
         if (fieldsImpl.AddRowIndex)
         {
             fieldsImpl.SetRowIndex(rowIndex);
         }
         m_odpContext.ReportObjectModel.UpdateFieldValues(reuseFieldObjects: false, m_currentRow, m_dataSetInstance, base.HasServerAggregateMetadata);
         return(true);
     }
     catch (Exception)
     {
         CleanupForException();
         FinalCleanup();
         throw;
     }
 }
        public void NextRow(AspNetCore.ReportingServices.ReportIntermediateFormat.RecordRow row, int rowNumber, bool useRowOffset, bool readerExtensionsSupported)
        {
            FieldsImpl fieldsImplForUpdate = this.m_odpContext.ReportObjectModel.GetFieldsImplForUpdate(this.m_dataSet);

            if (useRowOffset)
            {
                fieldsImplForUpdate.NewRow();
            }
            else
            {
                fieldsImplForUpdate.NewRow(row.StreamPosition);
            }
            if (fieldsImplForUpdate.AddRowIndex)
            {
                fieldsImplForUpdate.SetRowIndex(rowNumber);
            }
            this.m_odpContext.ReportObjectModel.UpdateFieldValues(false, row, this.m_dataSetInstance, readerExtensionsSupported);
            this.m_dataSetObj.NextRow();
        }
        protected override void ProcessRow(AspNetCore.ReportingServices.ReportIntermediateFormat.RecordRow row, int rowNumber)
        {
            FieldsImpl fieldsImpl = base.m_odpContext.ReportObjectModel.FieldsImpl;

            fieldsImpl.NewRow();
            base.m_odpContext.ReportObjectModel.UpdateFieldValues(false, row, base.m_dataSetInstance, base.HasServerAggregateMetadata);
            bool flag = true;

            if (this.m_filters != null)
            {
                flag = this.m_filters.PassFilters(new DataFieldRow(base.m_odpContext.ReportObjectModel.FieldsImpl, false));
            }
            if (flag)
            {
                this.PostFilterNextRow();
            }
        }