Добавлены дополнительные классы для отчета Excel

This commit is contained in:
Никита Потапов 2024-03-24 15:31:40 +04:00
parent 3f98c6b58a
commit 4d58b86778
4 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,10 @@
namespace SecuritySystemBusinessLogic.OfficePackage.HelperEnums
{
public enum ExcelStyleInfoType
{
Title,
Text,
TextWithBroder
}
}

View File

@ -0,0 +1,13 @@
using SecuritySystemBusinessLogic.OfficePackage.HelperEnums;
namespace SecuritySystemBusinessLogic.OfficePackage.HelperModels
{
public class ExcelCellParameters
{
public string ColumnName { get; set; } = string.Empty;
public uint RowIndex { get; set; }
public string Text { get; set; } = string.Empty;
public string CellReference => $"{ColumnName}{RowIndex}";
public ExcelStyleInfoType StyleInfo { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using SecuritySystemContracts.ViewModels;
namespace SecuritySystemBusinessLogic.OfficePackage.HelperModels
{
public class ExcelInfo
{
public string FileName { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public List<ReportSecureComponentViewModel> SecureComponents
{
get;
set;
} = new();
}
}

View File

@ -0,0 +1,10 @@
namespace SecuritySystemBusinessLogic.OfficePackage.HelperModels
{
public class ExcelMergeParameters
{
public string CellFromName { get; set; } = string.Empty;
public string CellToName { get; set; } = string.Empty;
public string Merge => $"{CellFromName}:{CellToName}";
}
}