HelperModels
This commit is contained in:
parent
5c5024c41a
commit
8521193559
@ -0,0 +1,13 @@
|
||||
using HotelBusinessLogic.OfficePackage.HelperEnums;
|
||||
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class ExcelCellParameters
|
||||
{
|
||||
public string ColumnName { get; set; } = string.Empty;
|
||||
public uint RowIndex { get; set; }
|
||||
public string Text { get; set; } = string.Empty;
|
||||
public string CellReference => $"{ColumnName}{RowIndex}";
|
||||
public ExcelStyleInfoType StyleInfo { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
using HotelContracts.ViewModels;
|
||||
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class ExcelInfoOrganiser
|
||||
{
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public List<ReportMemberConferenceViewModel> MemberConferences { get; set; } = new();
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class ExcelMergeParameters
|
||||
{
|
||||
public string CellFromName { get; set; } = string.Empty;
|
||||
public string CellToName { get; set; } = string.Empty;
|
||||
public string Merge => $"{CellFromName}:{CellToName}";
|
||||
}
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
using HotelContracts.ViewModels;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class PdfInfoOrganiser
|
||||
{
|
||||
public string FileName { get; set; } = "C:\\Reports\\pdffile.pdf";
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public DateTime DateFrom { get; set; }
|
||||
public DateTime DateTo { get; set; }
|
||||
public List<ReportMembersViewModel> Members { get; set; } = new();
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
using HotelBusinessLogic.OfficePackage.HelperEnums;
|
||||
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class PdfParagraph
|
||||
{
|
||||
public string Text { get; set; } = string.Empty;
|
||||
public string Style { get; set; } = string.Empty;
|
||||
public PdfParagraphAlignmentType ParagraphAlignment { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
using HotelBusinessLogic.OfficePackage.HelperEnums;
|
||||
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class PdfRowParameters
|
||||
{
|
||||
public List<string> Texts { get; set; } = new();
|
||||
public string Style { get; set; } = string.Empty;
|
||||
public PdfParagraphAlignmentType ParagraphAlignment { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
using HotelContracts.ViewModels;
|
||||
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class WordInfoOrganiser
|
||||
{
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
public string Title { get; set; } = string.Empty;
|
||||
public List<ReportMemberConferenceViewModel> MemberConferences { get; set; } = new();
|
||||
}
|
||||
}
|
@ -0,0 +1,8 @@
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class WordParagraph
|
||||
{
|
||||
public List<(string, WordTextProperties)> Texts { get; set; } = new();
|
||||
public WordTextProperties? TextProperties { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
using HotelBusinessLogic.OfficePackage.HelperEnums;
|
||||
|
||||
namespace HotelBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
public class WordTextProperties
|
||||
{
|
||||
public string Size { get; set; } = string.Empty;
|
||||
public bool Bold { get; set; }
|
||||
public WordJustificationType JustificationType { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,11 @@
|
||||
namespace HotelContracts.BindingModels
|
||||
{
|
||||
public class ReportOrganiserBindingModel
|
||||
{
|
||||
public string FileName { get; set; } = string.Empty;
|
||||
public DateTime? DateFrom { get; set; }
|
||||
public DateTime? DateTo { get; set; }
|
||||
public List<int>? Ids { get; set; }
|
||||
public int OrganiserId { get; set; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using HotelContracts.BindingModels;
|
||||
using HotelContracts.ViewModels;
|
||||
|
||||
namespace HotelContracts.BusinessLogicsContracts
|
||||
{
|
||||
public interface IReportOrganiserLogic
|
||||
{
|
||||
List<ReportMemberConferenceViewModel> GetMemberConference(List<int> Ids);
|
||||
List<ReportMembersViewModel> GetMembers(ReportOrganiserBindingModel model);
|
||||
void SaveMemberConferenceToWordFile(ReportOrganiserBindingModel model);
|
||||
void SaveMemberConferenceToExcelFile(ReportOrganiserBindingModel model);
|
||||
void SaveMembersToPdfFile(ReportOrganiserBindingModel model);
|
||||
}
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
namespace HotelContracts.ViewModels
|
||||
{
|
||||
public class ReportMemberConferenceViewModel
|
||||
{
|
||||
public string MemberSurname { get; set; } = string.Empty;
|
||||
public string MemberName { get; set; } = string.Empty;
|
||||
public string MemberPatronymic { get; set; } = string.Empty;
|
||||
public List<Tuple<string, DateTime>> Conferences { get; set; } = new();
|
||||
}
|
||||
}
|
14
Hotel/HotelContracts/ViewModels/ReportMembersViewModel.cs
Normal file
14
Hotel/HotelContracts/ViewModels/ReportMembersViewModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
namespace HotelContracts.ViewModels
|
||||
{
|
||||
public class ReportMembersViewModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public DateTime StartDate { get; set; }
|
||||
public string MemberSurname { get; set; } = string.Empty;
|
||||
public string MemberName { get; set; } = string.Empty;
|
||||
public string MemberPatronymic { get; set; } = string.Empty;
|
||||
public string ConferenceName { get; set; } = string.Empty;
|
||||
public string MealPlanName { get; set; } = string.Empty;
|
||||
public double MealPlanPrice { get; set; }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user