Skip to content

Commit

Permalink
Add legend row property
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryba1986 committed Oct 26, 2023
1 parent c20468f commit 397667c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ private static void CreateResultSheets(ExcelWorksheets sheets, IReadOnlyCollecti
private static void SetResultSheetHeaders(ExcelWorksheet sheet, DateOnly date, string locationName, ITypeProcessor typeProcessor)
{
sheet.Cells[1, 1, 1, sheet.Dimension.Columns].Merge = true;
sheet.Cells[3, 1].Value = typeProcessor.GetLegend();
sheet.Cells[typeProcessor.LegendRow, 1].Value = typeProcessor.GetLegend();

ExcelRange headerCell = sheet.Cells[1, 1];
headerCell.Value = typeProcessor.GetHeader(locationName, date);
Expand Down
1 change: 1 addition & 0 deletions src/Phoenix.Services/Reports/Base/ITypeProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ namespace Phoenix.Services.Reports.Base
internal interface ITypeProcessor
{
ushort DeviceNameRow { get; }
ushort LegendRow { get; }
ushort RemoveTemplateRowCount { get; }
ushort StartingRow { get; }

Expand Down
2 changes: 2 additions & 0 deletions src/Phoenix.Services/Reports/Base/TypeProcessorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ namespace Phoenix.Services.Reports.Base
internal abstract class TypeProcessorBase
{
public ushort DeviceNameRow { get; }
public ushort LegendRow { get; }
public ushort StartingRow { get; }

public TypeProcessorBase()
{
DeviceNameRow = 3;
LegendRow = 3;
StartingRow = 8;
}
}
Expand Down

0 comments on commit 397667c

Please sign in to comment.