PIbd-21_Balberova_D.N._Sush.../SushiBar/SushiBarContracts/ViewModels/ShopViewModel.cs

26 lines
955 B
C#
Raw Normal View History

2023-05-02 21:20:10 +04:00
using SushiBarContracts.Attributes;
using SushiBarDataModels.Models;
2023-02-13 23:13:13 +04:00
namespace SushiBarContracts.ViewModels
{
public class ShopViewModel : IShopModel
{
2023-05-02 21:20:10 +04:00
[Column(visible: false)]
2023-02-13 23:13:13 +04:00
public int Id { get; set; }
2023-05-02 21:20:10 +04:00
[Column(title: "Магазин", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2023-02-13 23:13:13 +04:00
public string ShopName { get; set; } = string.Empty;
2023-05-02 21:20:10 +04:00
[Column(title: "Адрес", width: 80)]
2023-02-13 23:13:13 +04:00
public string Address { get; set; } = string.Empty;
2023-05-02 21:20:10 +04:00
[Column(title: "Дата открытия", width: 80, format: "d")]
2023-02-13 23:13:13 +04:00
public DateTime DateOpening { get; set; } = DateTime.Now;
2023-05-02 21:20:10 +04:00
[Column(title: "Максимальное количество суши", width: 80)]
public int MaxCountSushi { get; set; }
2023-05-02 21:20:10 +04:00
[Column(visible: false)]
2023-02-13 23:13:13 +04:00
public Dictionary<int, (ISushiModel, int)> ListSushi
{
get;
set;
} = new();
}
}