Exemplo n.º 1
0
 public BaseReport(ReportInformation reportInformation, Type reportType, BaseReportData reportData = null)
 {
     this.reportInformation = reportInformation;
     this.reportType        = reportType;
     //this.reportData = reportData;
     this.baseReportType = GetType();
     if (baseReportType.IsGenericType)
     {
         baseReportType = baseReportType.GetGenericTypeDefinition();
     }
     InitializeReport();
 }
Exemplo n.º 2
0
 protected override void InitializeData()
 {
     foreach (Object entity in Report.ReportInformation.ReportEntities)
     {
         AllocateAndStartWorker(() =>
         {
             Console.WriteLine("DailyReportData(" + entity + " Month = " + month + " Day = " + day + ") Wait...");
             for (int hour = 0; hour < DateUtility.HoursInDay; ++hour)
             {
                 DataDictionary[entity] = BaseReportData.AllocateDataEntry <T>(DateUtility.HoursInDay, DateUtility.MinutesInHour, DateUtility.SecondsInMinute);
             }
             Console.WriteLine("DailyReportData(" + entity + " Month = " + month + " Day = " + day + ") Complete!");
         });
     }
 }