Class ReportTemplate
- Namespace
- Geotab.Checkmate.ObjectModel
- Assembly
- Geotab.Checkmate.ObjectModel.dll
ReportTemplate class represents a template for reports that is an Excel file.
public class ReportTemplate : NameEntity, IEntity, IComparable, IIdentifiable, IDefaultable
- Inheritance
-
ReportTemplate
- Implements
- Inherited Members
Constructors
ReportTemplate()
Initializes a new instance of the ReportTemplate class.Default constructor.
public ReportTemplate()
ReportTemplate(Id?, string?, ReportDataSource?, byte[]?, ReportTemplateType?, bool?, ReportExtensionType?)
Initializes a new instance of the ReportTemplate class.Initializes a new instance of the ReportTemplate class.
public ReportTemplate(Id? id, string? name, ReportDataSource? reportDataSource, byte[]? binaryData, ReportTemplateType? reportTemplateType, bool? showReport, ReportExtensionType? reportExtensionType)
Parameters
idIdThe Id.
namestringThe report template name.
reportDataSourceReportDataSource?The ReportDataSource that specify for what the ReportTemplate is for.
binaryDatabyte[]The binary data for Excel file.
reportTemplateTypeReportTemplateType?The report template type.
showReportbool?If set to true, show the report in the report dropdowns.
reportExtensionTypeReportExtensionType?Report extension type
ReportTemplate(Id?, string?, ReportDataSource?, byte[]?, bool?, ReportTemplateType?, bool?, ReportExtensionType?)
Initializes a new instance of the ReportTemplate class.Initializes a new instance of the ReportTemplate class.
public ReportTemplate(Id? id, string? name, ReportDataSource? reportDataSource, byte[]? binaryData, bool? isSystem, ReportTemplateType? reportTemplateType, bool? showReport, ReportExtensionType? reportExtensionType)
Parameters
idIdThe Id.
namestringThe name.
reportDataSourceReportDataSource?The report data source.
binaryDatabyte[]The binary data.
isSystembool?If set to true [is system].
reportTemplateTypeReportTemplateType?The report template type.
showReportbool?If set to true, show the report in the report dropdowns.
reportExtensionTypeReportExtensionType?Report Extension type
Properties
BinaryData
Gets or sets the Excel binary data.
public byte[]? BinaryData { get; set; }
Property Value
- byte[]
byte buffer.
IsSystem
Gets or sets whether the ReportTemplate is System.
public bool? IsSystem { get; set; }
Property Value
ReportDataSource
Gets or sets the ReportDataSource.
public ReportDataSource? ReportDataSource { get; set; }
Property Value
ReportExtensionType
Gets or sets the ReportExtensionType.
public ReportExtensionType? ReportExtensionType { get; set; }
Property Value
ReportTemplateType
Gets or sets the ReportTemplateType.
public ReportTemplateType? ReportTemplateType { get; set; }
Property Value
ShowReport
Gets or sets whether the ReportTemplate is shown in the report dropdowns.
public bool? ShowReport { get; set; }
Property Value
Methods
AssignBinaryData(byte[]?)
Assign the Excel binary data to the ReportTemplate.
public void AssignBinaryData(byte[]? data)
Parameters
databyte[]The binary data.
ClearBinaryData()
Clear binary data for the ReportTemplate.
public void ClearBinaryData()
Clone()
Creates a new object that is a copy of the current instance.
public override IEntity Clone()
Returns
- IEntity
A new object that is a copy of this instance.
PopulateDefaults()
Populate non-required empty (null) properties with default values.
public void PopulateDefaults()