2024-05-20 22:12:07 +04:00
|
|
|
|
using CarRepairShopContracts.Attributes;
|
|
|
|
|
using CarRepairShopDataModels.Models;
|
2024-02-09 22:08:31 +04:00
|
|
|
|
|
|
|
|
|
namespace CarRepairShopContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class RepairViewModel : IRepairModel
|
|
|
|
|
{
|
2024-05-20 22:12:07 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
[Column(title: "Название ремонта", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string RepairName { get; set; } = string.Empty;
|
|
|
|
|
[Column(title: "Цена", width: 100)]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> RepairComponents { get; set; } = new();
|
2024-02-09 22:08:31 +04:00
|
|
|
|
}
|
|
|
|
|
}
|