Создание Models в BusinessLogic
This commit is contained in:
parent
7ec384130a
commit
7c3ca5ab34
@ -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
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
||||
}
|
@ -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
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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}";
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
@ -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; }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user