Подготовка слоя контрактов для отчётов

This commit is contained in:
Вячеслав Иванов 2024-03-24 10:59:44 +04:00
parent 512af9ed98
commit 5c5024c41a
4 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,12 @@
namespace HotelContracts.BindingModels
{
public class ReportHeadwaiterBindingModel
{
public string FileName { get; set; } = string.Empty;
public string RoomName { get; set; } = string.Empty;
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
public List<int>? Ids { get; set; }
public int HeadwaiterId { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using HotelContracts.BindingModels;
using HotelContracts.ViewModels;
namespace HotelContracts.BusinessLogicsContracts
{
public interface IReportHeadwaiterLogic
{
List<ReportLunchRoomViewModel> GetLunchRoom(List<int> Ids);
List<ReportLunchesViewModel> GetLunches(ReportHeadwaiterBindingModel model);
void SaveLunchRoomToWordFile(ReportHeadwaiterBindingModel model);
void SaveLunchRoomToExcelFile(ReportHeadwaiterBindingModel model);
void SaveLunchesToPdfFile(ReportHeadwaiterBindingModel model);
}
}

View File

@ -0,0 +1,8 @@
namespace HotelContracts.ViewModels
{
public class ReportLunchRoomViewModel
{
public string LunchName { get; set; } = string.Empty;
public List<Tuple<string, double>> Rooms { get; set; } = new();
}
}

View File

@ -0,0 +1,14 @@
namespace HotelContracts.ViewModels
{
public class ReportLunchesViewModel
{
public int Id { get; set; }
public string RoomName { get; set; } = string.Empty;
public string NameHall { get; set; } = string.Empty;
public DateTime? BookingDate { get; set; }
public string LunchName { get; set; } = string.Empty;
public double LunchPrice { get; set; }
public double RoomPrice { get; set; }
public string RoomFrame { get; set; } = string.Empty;
}
}