2023-03-28 16:13:50 +04:00
|
|
|
|
using BeautySaloonDataModels;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace BeautySaloonContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderViewModel : IOrderModel
|
|
|
|
|
{
|
|
|
|
|
[DisplayName("Номер")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[DisplayName("Дата заказа")]
|
2023-03-28 21:24:52 +04:00
|
|
|
|
public DateOnly Date { get; set; } = DateOnly.FromDateTime(DateTime.Now);
|
2023-03-28 16:13:50 +04:00
|
|
|
|
[DisplayName("Сумма")]
|
2023-03-28 21:24:52 +04:00
|
|
|
|
public decimal Sum { get; set; }
|
2023-03-28 16:13:50 +04:00
|
|
|
|
public int ClientId { get; set; }
|
|
|
|
|
[DisplayName("Клиент")]
|
|
|
|
|
public string ClientName { get; set; } = string.Empty;
|
2023-03-28 21:24:52 +04:00
|
|
|
|
[DisplayName("Номер клиента")]
|
|
|
|
|
public string ClientPhone { get; set; } = string.Empty;
|
2023-03-28 16:13:50 +04:00
|
|
|
|
public int EmployeeId { get; set; }
|
|
|
|
|
[DisplayName("Продавец")]
|
|
|
|
|
public string EmployeeName { get; set; } = string.Empty;
|
2023-03-28 21:24:52 +04:00
|
|
|
|
[DisplayName("Номер продавца")]
|
|
|
|
|
public string EmployeePhone { get; set; } = string.Empty;
|
2023-03-28 17:32:55 +04:00
|
|
|
|
public Dictionary<int, (DateTime, IServiceModel, IEmployeeModel)> OrderServices
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
2023-03-28 16:13:50 +04:00
|
|
|
|
}
|
|
|
|
|
}
|