From e9be3dfbb3fced2db7809b186c7a03b2b6efe616 Mon Sep 17 00:00:00 2001 From: Yunusov_Niyaz Date: Thu, 2 May 2024 10:05:48 +0400 Subject: [PATCH 1/2] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D1=8C:=20=D0=BD=D0=B0=D1=87=D0=B0=D0=BB=20?= =?UTF-8?q?=D1=80=D0=B0=D0=BF=D0=BE=D1=80=D1=82=D1=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OfficePackage/Enums/WordJustificationType.cs | 12 ++++++++++++ .../VeterinaryBusinessLogic.csproj | 1 - 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Enums/WordJustificationType.cs diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Enums/WordJustificationType.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Enums/WordJustificationType.cs new file mode 100644 index 0000000..932032e --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Enums/WordJustificationType.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VeterinaryBusinessLogic.OfficePackage.Enums +{ + internal class WordJustificationType + { + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj b/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj index 1ecf6d2..438d0df 100644 --- a/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj +++ b/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj @@ -15,7 +15,6 @@ - From 5115f8006b8262e7793ab459530ce15ad2cc0d19 Mon Sep 17 00:00:00 2001 From: Yunusov_Niyaz Date: Thu, 2 May 2024 10:51:30 +0400 Subject: [PATCH 2/2] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D0=BD=D0=B8?= =?UTF-8?q?=D1=82=D0=B5=D0=BB=D1=8C:=20=D0=B4=D1=83=D0=BC=D0=B0=D0=BB=20?= =?UTF-8?q?=D0=B2=D1=81=D1=91,=20=D0=B0=20=D0=BD=D0=B5=20=D0=B2=D1=81?= =?UTF-8?q?=D1=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../OfficePackage/Enums/WordJustificationType.cs | 12 ------------ .../HelperEnums/PdfParagraphAligmentType.cs | 9 +++++++++ .../HelperEnums/WordJustificationType.cs | 8 ++++++++ .../OfficePackage/HelperModels/PdfInfo.cs | 12 ++++++++++++ .../OfficePackage/HelperModels/PdfParagraph.cs | 11 +++++++++++ .../OfficePackage/HelperModels/PdfRowParameters.cs | 11 +++++++++++ .../OfficePackage/HelperModels/WordInfo.cs | 12 ++++++++++++ .../OfficePackage/HelperModels/WordParagraph.cs | 8 ++++++++ .../OfficePackage/HelperModels/WordTextProperties.cs | 11 +++++++++++ .../VeterinaryBusinessLogic.csproj | 5 ----- 10 files changed, 82 insertions(+), 17 deletions(-) delete mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Enums/WordJustificationType.cs create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperEnums/PdfParagraphAligmentType.cs create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperEnums/WordJustificationType.cs create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordInfo.cs create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs create mode 100644 VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordTextProperties.cs diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Enums/WordJustificationType.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Enums/WordJustificationType.cs deleted file mode 100644 index 932032e..0000000 --- a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/Enums/WordJustificationType.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace VeterinaryBusinessLogic.OfficePackage.Enums -{ - internal class WordJustificationType - { - } -} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperEnums/PdfParagraphAligmentType.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperEnums/PdfParagraphAligmentType.cs new file mode 100644 index 0000000..a87e6c6 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperEnums/PdfParagraphAligmentType.cs @@ -0,0 +1,9 @@ +namespace VeterinaryBusinessLogic.OfficePackage.HelperEnums +{ + public enum PdfParagraphAlignmentType + { + Center, + Left, + Right + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperEnums/WordJustificationType.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperEnums/WordJustificationType.cs new file mode 100644 index 0000000..e484d4f --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperEnums/WordJustificationType.cs @@ -0,0 +1,8 @@ +namespace VeterinaryBusinessLogic.OfficePackage.HelperEnums +{ + public enum WordJustificationType + { + Center, + Both + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs new file mode 100644 index 0000000..bd5e72a --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfInfo.cs @@ -0,0 +1,12 @@ +namespace VeterinaryBusinessLogic.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 ReportServices { get; set; } = new(); + public List ReportPurchases{ get; set; } = new(); + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs new file mode 100644 index 0000000..73b5857 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs @@ -0,0 +1,11 @@ +using VeterinaryBusinessLogic.OfficePackage.HelperEnums; + +namespace VeterinaryBusinessLogic.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/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs new file mode 100644 index 0000000..58ecf09 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs @@ -0,0 +1,11 @@ +using VeterinaryBusinessLogic.OfficePackage.HelperEnums; + +namespace VeterinaryBusinessLogic.OfficePackage.HelperModels +{ + public class PdfRowParameters + { + public List Texts { get; set; } = new(); + public string Style { get; set; } = string.Empty; + public PdfParagraphAlignmentType ParagraphAlignment { get; set; } + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordInfo.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordInfo.cs new file mode 100644 index 0000000..b9b30c0 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordInfo.cs @@ -0,0 +1,12 @@ +using VeterinaryContracts.ViewModels; + +namespace VeterinaryBusinessLogic.OfficePackage.HelperModels +{ + public class WordInfo + { + public string FileName { get; set; } = string.Empty; + public string Title { get; set; } = string.Empty; + public List Services { get; set; } = new(); + public List Pets { get; set; } = new(); + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs new file mode 100644 index 0000000..c54f188 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs @@ -0,0 +1,8 @@ +namespace VeterinaryBusinessLogic.OfficePackage.HelperModels +{ + public class WordParagraph + { + public List<(string, WordTextProperties)> Texts { get; set; } = new(); + public WordTextProperties? TextProperties { get; set; } + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordTextProperties.cs b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordTextProperties.cs new file mode 100644 index 0000000..2c63475 --- /dev/null +++ b/VeterinaryView/VeterinaryBusinessLogic/OfficePackage/HelperModels/WordTextProperties.cs @@ -0,0 +1,11 @@ +using VeterinaryBusinessLogic.OfficePackage.HelperEnums; + +namespace VeterinaryBusinessLogic.OfficePackage.HelperModels +{ + public class WordTextProperties + { + public string Size { get; set; } = string.Empty; + public bool Bold { get; set; } + public WordJustificationType JustificationType { get; set; } + } +} diff --git a/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj b/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj index 52a5007..3110a4b 100644 --- a/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj +++ b/VeterinaryView/VeterinaryBusinessLogic/VeterinaryBusinessLogic.csproj @@ -14,9 +14,4 @@ - - - - -