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

This commit is contained in:
Никита Потапов 2024-03-24 16:08:26 +04:00
parent 0118686e2b
commit d0f0cf29c6
4 changed files with 46 additions and 0 deletions

View File

@ -0,0 +1,9 @@
namespace SecuritySystemBusinessLogic.OfficePackage.HelperEnums
{
public enum PdfParagraphAlignmentType
{
Center,
Left,
Rigth
}
}

View File

@ -0,0 +1,13 @@
using SecuritySystemContracts.ViewModels;
namespace SecuritySystemBusinessLogic.OfficePackage.HelperModels
{
public class PdfInfo
{
public string FileName { get; set; } = string.Empty;
public string Title { get; set; } = string.Empty;
public DateTime DateFrom { get; set; }
public DateTime DateTo { get; set; }
public List<ReportOrdersViewModel> Orders { get; set; } = new();
}
}

View File

@ -0,0 +1,12 @@
using SecuritySystemBusinessLogic.OfficePackage.HelperEnums;
namespace SecuritySystemBusinessLogic.OfficePackage.HelperModels
{
public class PdfParagraph
{
public string Text { get; set; } = string.Empty;
public string Style { get; set; } = string.Empty;
public PdfParagraphAlignmentType ParagraphAlignment { get; set; }
}
}

View File

@ -0,0 +1,12 @@
using SecuritySystemBusinessLogic.OfficePackage.HelperEnums;
namespace SecuritySystemBusinessLogic.OfficePackage.HelperModels
{
public class PdfRowParameters
{
public List<string> Texts { get; set; } = new();
public string Style { get; set; } = string.Empty;
public PdfParagraphAlignmentType ParagraphAlignment { get; set; }
}
}