2024-05-16 17:03:51 +04:00
|
|
|
|
using FlowerShopContracts.Attributes;
|
|
|
|
|
using FlowerShopDataModels.Models;
|
2024-02-24 09:40:58 +04:00
|
|
|
|
|
|
|
|
|
namespace FlowerShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class FlowerViewModel : IFlowerModel
|
|
|
|
|
{
|
2024-05-16 17:03:51 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-02-24 09:40:58 +04:00
|
|
|
|
public int Id { get; set; }
|
2024-05-16 17:03:51 +04:00
|
|
|
|
[Column(title: "Название изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-02-24 09:40:58 +04:00
|
|
|
|
public string FlowerName { get; set; } = string.Empty;
|
2024-05-16 17:03:51 +04:00
|
|
|
|
[Column(title: "Цена", width: 150)]
|
2024-02-24 09:40:58 +04:00
|
|
|
|
public double Price { get; set; }
|
2024-05-16 17:03:51 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> FlowerComponents
|
2024-02-24 09:40:58 +04:00
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|