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(); }
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(); }
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(); }
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)); }
public PowerReport(ReportInformation reportInfo) : base(reportInfo, typeof(T)) { }
public SpeedReport(ReportInformation reportInfo) : base(reportInfo, typeof(T)) { }
//Going away??? or internal access public VolumeReport(ReportInformation reportInfo, YearlyReportData <T> data) : this(reportInfo) { yearlyData.Add(data.Year, data); }
public DensityReport(ReportInformation reportInfo, DateTime start, DateTime end) : base(reportInfo, typeof(T)) { }