示例#1
0
 public void Add(RecordsDetails record)
 {
     if (record.FunctionalArea.Equals(this.FunctionalArea))
     {
         totalDocRecords++;
         totalDocRecordsSize += record.FileSize;
     }
 }
示例#2
0
 public void Add(RecordsDetails record)
 {
     // We're only interested to count work boxes that have been opened and that use the given records type:
     if (RecordsType.Equals(record.RecordsType))
     {
         totalDocumentRecords++;
         totalSizeOfDocRecords += record.FileSize;
     }
 }
示例#3
0
        internal void Add(RecordsDetails record)
        {
            if (record.hasBeenCreated)
            {
                bool isPublicZone = "Public".Equals(record["Protective Zone"]);

                if (record.DateCreated >= this.Date && record.DateCreated < this.NextDate)
                {
                    this.totalDocRecordsCreated++;
                    if (isPublicZone)
                    {
                        publicDocRecordsCreated++;
                    }
                }

                if (record.IsArchived && record.hasBeenModified && record.DateLastModified >= this.Date && record.DateLastModified < this.NextDate)
                {
                    if ((record.DateLastModified > record.DateCreated.AddDays(1)) && isPublicZone)
                    {
                        publicDocRecordsArchived++;
                    }
                }

                if (record.DateCreated < this.NextDate)
                {
                    totalEverDocRecords++;
                    sizeOfAllDocRecords += record.FileSize;
                    if (isPublicZone)
                    {
                        totalEverPublicRecords++;

                        if (record.DateLastModified <= this.NextDate && record.IsArchived)
                        {
                            sizeOfAllArchivedPublicDocRecords += record.FileSize;
                        }
                        else
                        {
                            sizeOfAllLivePublicDocRecords += record.FileSize;
                        }
                    }
                }

                if (record.DateLastModified < this.NextDate && record.IsArchived && isPublicZone)
                {
                    totalEverArchivedPublicRecords++;
                }
            }
        }