예제 #1
0
 public FieldImpl this[int index]
 {
     get
     {
         this.ValidateFieldCollection();
         try
         {
             FieldImpl fieldImpl = this.m_collection[index];
             fieldImpl.UsedInExpression = true;
             return(fieldImpl);
         }
         catch (RSException)
         {
             throw;
         }
         catch (Exception e)
         {
             if (AsynchronousExceptionDetection.IsStoppingException(e))
             {
                 throw;
             }
             throw new ReportProcessingException_NonExistingFieldReference();
         }
     }
     set
     {
         Global.Tracer.Assert(null != this.m_collection);
         this.m_collection[index] = value;
     }
 }
예제 #2
0
 public override Field this[string key]
 {
     get
     {
         if (key == null)
         {
             throw new ReportProcessingException_NonExistingFieldReference();
         }
         this.ValidateFieldCollection();
         try
         {
             FieldImpl fieldImpl = this.m_collection[(int)this.m_nameMap[key]];
             fieldImpl.UsedInExpression = true;
             return(fieldImpl);
         }
         catch (RSException)
         {
             throw;
         }
         catch (Exception e)
         {
             if (AsynchronousExceptionDetection.IsStoppingException(e))
             {
                 throw;
             }
             throw new ReportProcessingException_NonExistingFieldReference();
         }
     }
 }
예제 #3
0
 public void Add(string name, FieldImpl field)
 {
     Global.Tracer.Assert(null != this.m_collection, "(null != m_collection)");
     Global.Tracer.Assert(null != this.m_nameMap, "(null != m_nameMap)");
     Global.Tracer.Assert(this.m_count < this.m_collection.Length, "(m_count < m_collection.Length)");
     this.m_nameMap.Add(name, this.m_count);
     this.m_collection[this.m_count] = field;
     this.m_count++;
 }
예제 #4
0
 public void AddFieldsUsedInExpression(List <string> fieldsUsedInValueExpression)
 {
     if (this.m_collection != null)
     {
         for (int i = 0; i < this.m_collection.Length; i++)
         {
             FieldImpl fieldImpl = this.m_collection[i];
             if (fieldImpl.UsedInExpression && fieldImpl.FieldDef != null)
             {
                 fieldsUsedInValueExpression.Add(fieldImpl.FieldDef.DataField);
             }
         }
     }
 }
예제 #5
0
 public void SetFields(FieldImpl[] fields)
 {
     this.NewRow();
     Global.Tracer.Assert(null != this.m_collection, "(null != m_collection)");
     if (fields == null)
     {
         for (int i = 0; i < this.m_count; i++)
         {
             FieldImpl fieldImpl = this.m_collection[i];
             AspNetCore.ReportingServices.ReportProcessing.Field fieldDef = (fieldImpl == null) ? null : fieldImpl.FieldDef;
             this.m_collection[i] = new FieldImpl(null, false, fieldDef);
         }
     }
     else
     {
         Global.Tracer.Assert(fields.Length == this.m_count, "(fields.Length == m_count)");
         for (int j = 0; j < this.m_count; j++)
         {
             this.m_collection[j] = fields[j];
         }
         this.m_isAggregateRow        = false;
         this.m_aggregationFieldCount = this.m_aggregationFieldCountForDetailRow;
     }
 }