diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/ExcelStyleInfoType.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/ExcelStyleInfoType.cs new file mode 100644 index 0000000..5b33142 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/ExcelStyleInfoType.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Enums +{ + public enum ExcelStyleInfoType + { + Title, + Text, + TextWithBroder + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/PdfParagraphAlignmentType.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/PdfParagraphAlignmentType.cs new file mode 100644 index 0000000..1b4553d --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/PdfParagraphAlignmentType.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Enums +{ + public enum PdfParagraphAlignmentType + { + Center, + Left + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/WordJustificationType.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/WordJustificationType.cs new file mode 100644 index 0000000..cc056f1 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Enums/WordJustificationType.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Enums +{ + public enum WordJustificationType + { + Center, + Both + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelCellParameters.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelCellParameters.cs new file mode 100644 index 0000000..37bd918 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelCellParameters.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.BusinessLogic.OfficePackage.Enums; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class ExcelCellParameters + { + public string ColumnName { get; set; } + public uint RowIndex { get; set; } + public string Text { get; set; } + public string CellReference => $"{ColumnName}{RowIndex}"; + public ExcelStyleInfoType StyleInfo { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelInfoServiceVisit.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelInfoServiceVisit.cs new file mode 100644 index 0000000..881f838 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelInfoServiceVisit.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.ViewModels; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class ExcelInfoServiceVisit + { + public string FileName { get; set; } + public string Title { get; set; } + public List VisitServices { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelInfoVisitService.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelInfoVisitService.cs new file mode 100644 index 0000000..81360e9 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelInfoVisitService.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.ViewModels; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class ExcelInfoVisitService + { + public string FileName { get; set; } + public string Title { get; set; } + public List VisitServices { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelMergeParameters.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelMergeParameters.cs new file mode 100644 index 0000000..58a28aa --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/ExcelMergeParameters.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class ExcelMergeParameters + { + public string CellFromName { get; set; } + public string CellToName { get; set; } + public string Merge => $"{CellFromName}:{CellToName}"; + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfo.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfo.cs new file mode 100644 index 0000000..dea3e1f --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfo.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.ViewModels; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class PdfInfo + { + public string FileName { get; set; } + public string Title { get; set; } + public DateTime DateFrom { get; set; } + public DateTime DateTo { get; set; } + public List Visits { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfoOrdersForAllDates.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfoOrdersForAllDates.cs new file mode 100644 index 0000000..05b9e08 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfoOrdersForAllDates.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class PdfInfoOrdersForAllDates + { + public string FileName { get; set; } + + public string Title { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfoService.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfoService.cs new file mode 100644 index 0000000..49e0e5a --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfInfoService.cs @@ -0,0 +1,18 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.ViewModels; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class PdfInfoService + { + public string FileName { get; set; } + public string Title { get; set; } + public DateTime DateFrom { get; set; } + public DateTime DateTo { get; set; } + public ReportServiceViewModel Services { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfParagraph.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfParagraph.cs new file mode 100644 index 0000000..535f881 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfParagraph.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class PdfParagraph + { + public string Text { get; set; } + public string Style { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfRowParameters.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfRowParameters.cs new file mode 100644 index 0000000..65a594a --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/PdfRowParameters.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.BusinessLogic.OfficePackage.Enums; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class PdfRowParameters + { + public List Texts { get; set; } + public string Style { get; set; } + public PdfParagraphAlignmentType ParagraphAlignment { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordInfoServiceVisit.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordInfoServiceVisit.cs new file mode 100644 index 0000000..bae2080 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordInfoServiceVisit.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.ViewModels; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class WordInfoServiceVisit + { + public string FileName { get; set; } + public string Title { get; set; } + public List VisitServices { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordInfoVisitService.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordInfoVisitService.cs new file mode 100644 index 0000000..1832bcb --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordInfoVisitService.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.ViewModels; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class WordInfoVisitService + { + public string FileName { get; set; } + public string Title { get; set; } + public List VisitServices { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordParagraph.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordParagraph.cs new file mode 100644 index 0000000..3946ff1 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordParagraph.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class WordParagraph + { + public List<(string, WordTextProperties)> Texts { get; set; } + public WordTextProperties TextProperties { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordRowParametrs.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordRowParametrs.cs new file mode 100644 index 0000000..5dfe6f3 --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordRowParametrs.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class WordRowParametrs + { + public List Texts { get; set; } + public string Style { get; set; } + } +} diff --git a/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordTextProperties.cs b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordTextProperties.cs new file mode 100644 index 0000000..3417c1b --- /dev/null +++ b/VetClinic/VetClinicBusinessLogic/BusinessLogic/OfficePackage/Models/WordTextProperties.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using VetClinicBusinessLogic.BusinessLogic.OfficePackage.Enums; + +namespace VetClinicBusinessLogic.BusinessLogic.OfficePackage.Models +{ + public class WordTextProperties + { + public string Size { get; set; } + public bool Bold { get; set; } + public WordJustificationType JustificationType { get; set; } + } +} diff --git a/VetClinic/VetClinicDatabaseImplement/Migrations/init2.cs b/VetClinic/VetClinicDatabaseImplement/Migrations/20230404035215_init2.cs similarity index 100% rename from VetClinic/VetClinicDatabaseImplement/Migrations/init2.cs rename to VetClinic/VetClinicDatabaseImplement/Migrations/20230404035215_init2.cs diff --git a/VetClinic/VetClinicDatabaseImplement/Migrations/mail.cs b/VetClinic/VetClinicDatabaseImplement/Migrations/20230406075330_mail.cs similarity index 100% rename from VetClinic/VetClinicDatabaseImplement/Migrations/mail.cs rename to VetClinic/VetClinicDatabaseImplement/Migrations/20230406075330_mail.cs diff --git a/VetClinic/VetClinicDatabaseImplement/Migrations/manyToMany.cs b/VetClinic/VetClinicDatabaseImplement/Migrations/20230407075600_manyToMany.cs similarity index 100% rename from VetClinic/VetClinicDatabaseImplement/Migrations/manyToMany.cs rename to VetClinic/VetClinicDatabaseImplement/Migrations/20230407075600_manyToMany.cs diff --git a/VetClinic/VetClinicDatabaseImplement/Migrations/payment.cs b/VetClinic/VetClinicDatabaseImplement/Migrations/20230407075624_payment.cs similarity index 100% rename from VetClinic/VetClinicDatabaseImplement/Migrations/payment.cs rename to VetClinic/VetClinicDatabaseImplement/Migrations/20230407075624_payment.cs