From e37a7d8777746f5bc20e8e22c06cf680e79188ab Mon Sep 17 00:00:00 2001 From: Ismailov_Rovshan Date: Sat, 8 Apr 2023 22:43:04 +0400 Subject: [PATCH] HelperModels --- .../ReportFurnitureHeadsetModuleViewModel.cs | 16 ++++++++++++++ .../ReportHeadsetMaterialViewModel.cs | 14 ++++++++++++ .../HelperModels/ExcelInfoMaster.cs | 5 +++-- .../HelperModels/PdfInfoMaster.cs | 22 +++++++++++++++++++ .../HelperModels/PdfParagraph.cs | 18 +++++++++++++++ .../HelperModels/PdfRowParameters.cs | 18 +++++++++++++++ .../HelperModels/WordInfoMaster.cs | 18 +++++++++++++++ .../HelperModels/WordParagraph.cs | 15 +++++++++++++ 8 files changed, 124 insertions(+), 2 deletions(-) create mode 100644 FurnitureFactory/FurnitureContracts/ViewModel/ReportFurnitureHeadsetModuleViewModel.cs create mode 100644 FurnitureFactory/FurnitureContracts/ViewModel/ReportHeadsetMaterialViewModel.cs create mode 100644 FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfInfoMaster.cs create mode 100644 FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs create mode 100644 FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs create mode 100644 FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/WordInfoMaster.cs create mode 100644 FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/ReportFurnitureHeadsetModuleViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/ReportFurnitureHeadsetModuleViewModel.cs new file mode 100644 index 0000000..bb4db00 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/ViewModel/ReportFurnitureHeadsetModuleViewModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.ViewModel +{ + public class ReportFurnitureHeadsetModuleViewModel + { + public string TitleFurniture { get; set; } = string.Empty; + public DateTime DateFurniture { get; set; } + public string TitleHeadsetModule { get; set; } = string.Empty; + public DateTime DateHeadsetModule { get; set; } + } +} diff --git a/FurnitureFactory/FurnitureContracts/ViewModel/ReportHeadsetMaterialViewModel.cs b/FurnitureFactory/FurnitureContracts/ViewModel/ReportHeadsetMaterialViewModel.cs new file mode 100644 index 0000000..78f16dc --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/ViewModel/ReportHeadsetMaterialViewModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.ViewModel +{ + public class ReportHeadsetMaterialViewModel + { + public string Title { get; set; } = string.Empty; + public List Headsets { get; set; } = new(); + } +} diff --git a/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/ExcelInfoMaster.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/ExcelInfoMaster.cs index 17b34ae..9d64b8b 100644 --- a/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/ExcelInfoMaster.cs +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/ExcelInfoMaster.cs @@ -1,4 +1,5 @@ -using System; +using FurnitureContracts.ViewModel; +using System; using System.Collections.Generic; using System.Linq; using System.Text; @@ -12,6 +13,6 @@ namespace FurnitureFactoryBusinessLogic.OfficePackage.HelperModels public string Title { get; set; } = string.Empty; - //public List<> { get; set; } = new(); + public List FurnitureHeadsetModules { get; set; } } } diff --git a/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfInfoMaster.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfInfoMaster.cs new file mode 100644 index 0000000..0b82ca8 --- /dev/null +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfInfoMaster.cs @@ -0,0 +1,22 @@ +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureFactoryBusinessLogic.OfficePackage.HelperModels +{ + public class PdfInfoMaster + { + 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 ReportFurnitureHeadsetModuleViewModels { get; set; } = new(); + } +} diff --git a/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs new file mode 100644 index 0000000..c6846b2 --- /dev/null +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfParagraph.cs @@ -0,0 +1,18 @@ +using FurnitureFactoryBusinessLogic.OfficePackage.HelperEnums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureFactoryBusinessLogic.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/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs new file mode 100644 index 0000000..0a43135 --- /dev/null +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/PdfRowParameters.cs @@ -0,0 +1,18 @@ +using FurnitureFactoryBusinessLogic.OfficePackage.HelperEnums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureFactoryBusinessLogic.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/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/WordInfoMaster.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/WordInfoMaster.cs new file mode 100644 index 0000000..561ff14 --- /dev/null +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/WordInfoMaster.cs @@ -0,0 +1,18 @@ +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureFactoryBusinessLogic.OfficePackage.HelperModels +{ + public class WordInfoMaster + { + public string FileName { get; set; } = string.Empty; + + public string Title { get; set; } = string.Empty; + + public List HeadsetMaterialы { get; set; } = new(); + } +} diff --git a/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs new file mode 100644 index 0000000..47d4c26 --- /dev/null +++ b/FurnitureFactory/FurnitureFactoryBusinessLogic/OfficePackage/HelperModels/WordParagraph.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureFactoryBusinessLogic.OfficePackage.HelperModels +{ + public class WordParagraph + { + public List<(string, WordTextProperties)> Texts { get; set; } = new(); + + public WordTextProperties? TextProperties { get; set; } + } +}