Создание Models в BusinessLogic

This commit is contained in:
Дарья Антонова 2023-04-08 21:53:16 +04:00
parent 7ec384130a
commit 7c3ca5ab34
21 changed files with 265 additions and 0 deletions

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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
}
}

View File

@ -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; }
}
}

View File

@ -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<ReportServiceVisitViewModel> VisitServices { get; set; }
}
}

View File

@ -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<ReportVisitServiceViewModel> VisitServices { get; set; }
}
}

View File

@ -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}";
}
}

View File

@ -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<ReportVisitViewModel> Visits { get; set; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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; }
}
}

View File

@ -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<string> Texts { get; set; }
public string Style { get; set; }
public PdfParagraphAlignmentType ParagraphAlignment { get; set; }
}
}

View File

@ -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<ReportServiceVisitViewModel> VisitServices { get; set; }
}
}

View File

@ -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<ReportVisitServiceViewModel> VisitServices { get; set; }
}
}

View File

@ -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; }
}
}

View File

@ -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<string> Texts { get; set; }
public string Style { get; set; }
}
}

View File

@ -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; }
}
}