Подготовка слоя контрактов для отчётов
This commit is contained in:
parent
512af9ed98
commit
5c5024c41a
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
@ -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();
|
||||||
|
}
|
||||||
|
}
|
14
Hotel/HotelContracts/ViewModels/ReportLunchesViewModel.cs
Normal file
14
Hotel/HotelContracts/ViewModels/ReportLunchesViewModel.cs
Normal 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;
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user