From 9cda53ca2abc2044d75d1ca4a1c0fb768f71af64 Mon Sep 17 00:00:00 2001 From: Ivan_Starostin Date: Sun, 2 Jun 2024 16:50:39 +0400 Subject: [PATCH] Upload files to 'ShipyardBusinessLogic/OfficePackage' --- .../OfficePackage/ExcelMergeParameters.cs | 15 +++++++++++++++ .../OfficePackage/ExcelStyleInfoType.cs | 15 +++++++++++++++ ShipyardBusinessLogic/OfficePackage/PdfInfo.cs | 18 ++++++++++++++++++ .../OfficePackage/PdfParagraph.cs | 16 ++++++++++++++++ .../OfficePackage/PdfParagraphAlignmentType.cs | 15 +++++++++++++++ 5 files changed, 79 insertions(+) create mode 100644 ShipyardBusinessLogic/OfficePackage/ExcelMergeParameters.cs create mode 100644 ShipyardBusinessLogic/OfficePackage/ExcelStyleInfoType.cs create mode 100644 ShipyardBusinessLogic/OfficePackage/PdfInfo.cs create mode 100644 ShipyardBusinessLogic/OfficePackage/PdfParagraph.cs create mode 100644 ShipyardBusinessLogic/OfficePackage/PdfParagraphAlignmentType.cs diff --git a/ShipyardBusinessLogic/OfficePackage/ExcelMergeParameters.cs b/ShipyardBusinessLogic/OfficePackage/ExcelMergeParameters.cs new file mode 100644 index 0000000..a6c4974 --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/ExcelMergeParameters.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.OfficePackage.HelperModels +{ + public class ExcelMergeParameters + { + public string CellFromName { get; set; } = string.Empty; + public string CellToName { get; set; } = string.Empty; + public string Merge => $"{CellFromName}:{CellToName}"; + } +} diff --git a/ShipyardBusinessLogic/OfficePackage/ExcelStyleInfoType.cs b/ShipyardBusinessLogic/OfficePackage/ExcelStyleInfoType.cs new file mode 100644 index 0000000..83397e1 --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/ExcelStyleInfoType.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.OfficePackage.HelperEnums +{ + public enum ExcelStyleInfoType + { + Title, + Text, + TextWithBroder + } +} diff --git a/ShipyardBusinessLogic/OfficePackage/PdfInfo.cs b/ShipyardBusinessLogic/OfficePackage/PdfInfo.cs new file mode 100644 index 0000000..ed3a63a --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/PdfInfo.cs @@ -0,0 +1,18 @@ +using ShipyardContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.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/ShipyardBusinessLogic/OfficePackage/PdfParagraph.cs b/ShipyardBusinessLogic/OfficePackage/PdfParagraph.cs new file mode 100644 index 0000000..114d8c8 --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/PdfParagraph.cs @@ -0,0 +1,16 @@ +using ShipyardBusinessLogic.OfficePackage.HelperEnums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.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/ShipyardBusinessLogic/OfficePackage/PdfParagraphAlignmentType.cs b/ShipyardBusinessLogic/OfficePackage/PdfParagraphAlignmentType.cs new file mode 100644 index 0000000..4fc6d7a --- /dev/null +++ b/ShipyardBusinessLogic/OfficePackage/PdfParagraphAlignmentType.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ShipyardBusinessLogic.OfficePackage.HelperEnums +{ + public enum PdfParagraphAlignmentType + { + Center, + Left, + Right + } +}