Exemplo n.º 1
0
 public VolumeReport(ReportInformation reportInfo)
     : base(reportInfo, typeof(T))
 {
     //Instantiate the yearlyData Dictionary
     yearlyData = new Dictionary <int, YearlyReportData <T> >();
     //Allocate the memory for each year in the report
     InitializeData();
 }
Exemplo n.º 2
0
        protected BaseReport(Byte[] binary)
        {
            BaseReport pointer = Deserialize(binary);

            this.reportInformation = pointer.reportInformation;
            this.reportType        = pointer.reportType;
            this.reportId          = pointer.reportId;
            //this.reportData = pointer.reportData;
            //Already Initialized from binary
            //InitializeBase();
        }
Exemplo n.º 3
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.º 4
0
 public BaseReport(SerializationInfo info, StreamingContext context)
 {
     this.reportInformation = (ReportInformation)info.GetValue("reportInformation", typeof(ReportInformation));
     this.reportType        = (Type)info.GetValue("reportType", typeof(Type));
     this.baseReportType    = (Type)info.GetValue("baseReportType", typeof(Type));
     this.reportId          = (Guid)info.GetValue("reportId", typeof(Guid));
     this.reportData        = (BaseReportData[])info.GetValue("reportData", typeof(BaseReportData[]));
     this.friendlyName      = info.GetString("friendlyName");
     //this.DateTimeField = info.GetString("DateTimeField");
     //this.DataField = info.GetString("DataField");
     //this.StoredProcedureName = info.GetString("StoredProcedureName");
     //this.storedProcedureParameters = (System.Data.SqlClient.SqlParameter[])info.GetValue("storedProcedureParameters", typeof(Array));
 }
Exemplo n.º 5
0
 public PowerReport(ReportInformation reportInfo)
     : base(reportInfo, typeof(T))
 {
 }
Exemplo n.º 6
0
 public SpeedReport(ReportInformation reportInfo)
     : base(reportInfo, typeof(T))
 {
 }
Exemplo n.º 7
0
 //Going away??? or internal access
 public VolumeReport(ReportInformation reportInfo, YearlyReportData <T> data)
     : this(reportInfo)
 {
     yearlyData.Add(data.Year, data);
 }
Exemplo n.º 8
0
 public DensityReport(ReportInformation reportInfo, DateTime start, DateTime end)
     : base(reportInfo, typeof(T))
 {
 }