SUBD_PIbd-21_Balberova_D.N./BeautySaloon/BeautySaloonContracts/ViewModels/OrderViewModel.cs

31 lines
1.1 KiB
C#
Raw Normal View History

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);
[DisplayName("Сумма")]
2023-03-28 21:24:52 +04:00
public decimal Sum { get; set; }
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;
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();
}
}