From d0f0cf29c6e6655f2a40a3c9855f9195caee7658 Mon Sep 17 00:00:00 2001 From: "ns.potapov" Date: Sun, 24 Mar 2024 16:08:26 +0400 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D1=8B=20=D0=B4=D0=BE=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8=D1=82?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BD=D1=8B=D0=B5=20=D0=BA=D0=BB=D0=B0=D1=81?= =?UTF-8?q?=D1=81=D1=8B=20=D0=B4=D0=BB=D1=8F=20=D0=BE=D1=82=D1=87=D0=B5?= =?UTF-8?q?=D1=82=D0=B0=20PDF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../HelperEnums/PdfParagraphAlignmentType.cs | 9 +++++++++ .../OfficePackage/HelperModels/PdfInfo.cs | 13 +++++++++++++ .../OfficePackage/HelperModels/PdfParagraph.cs | 12 ++++++++++++ .../OfficePackage/HelperModels/PdfRowParameters.cs | 12 ++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperEnums/PdfParagraphAlignmentType.cs create mode 100644 SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs create mode 100644 SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs create mode 100644 SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs diff --git a/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperEnums/PdfParagraphAlignmentType.cs b/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperEnums/PdfParagraphAlignmentType.cs new file mode 100644 index 0000000..1d2f318 --- /dev/null +++ b/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperEnums/PdfParagraphAlignmentType.cs @@ -0,0 +1,9 @@ +namespace SecuritySystemBusinessLogic.OfficePackage.HelperEnums +{ + public enum PdfParagraphAlignmentType + { + Center, + Left, + Rigth + } +} diff --git a/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs b/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs new file mode 100644 index 0000000..414f726 --- /dev/null +++ b/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs @@ -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 Orders { get; set; } = new(); + } +} diff --git a/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs b/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs new file mode 100644 index 0000000..25ec635 --- /dev/null +++ b/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs @@ -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; } + } + +} diff --git a/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs b/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs new file mode 100644 index 0000000..bc00c12 --- /dev/null +++ b/SecuritySystem/SecuritySystemBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs @@ -0,0 +1,12 @@ +using SecuritySystemBusinessLogic.OfficePackage.HelperEnums; + +namespace SecuritySystemBusinessLogic.OfficePackage.HelperModels +{ + public class PdfRowParameters + { + public List Texts { get; set; } = new(); + public string Style { get; set; } = string.Empty; + public PdfParagraphAlignmentType ParagraphAlignment { get; set; } + } + +}