PIbd-22_Isaeva_A.I._FishFac.../FishFactoryContracts/ViewModels/CannedViewModel.cs

20 lines
622 B
C#
Raw Normal View History

2024-06-18 15:56:18 +04:00
using FishFactoryContracts.Attributes;
using FishFactoryDataModel.Models;
2024-02-05 19:09:54 +04:00
using System.ComponentModel;
namespace FishFactoryContracts.ViewModels
{
public class CannedViewModel : ICannedModel
{
2024-06-18 15:56:18 +04:00
[Column(visible: false)]
public int Id { get; set; }
[Column(title: "Название консервы", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string CannedName { get; set; }
[Column(title: "Цена", width: 80)]
public double Price { get; set; }
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> CannedComponents { get; set; } = new();
2024-02-05 19:09:54 +04:00
}
}