2024-06-22 16:00:21 +04:00
|
|
|
|
using RenovationWorkContracts.Attributes;
|
2024-04-17 09:22:08 +04:00
|
|
|
|
using RenovationWorkDataModels.Models;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace RenovationWorkContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class RepairViewModel : IRepairModel
|
|
|
|
|
{
|
2024-06-22 16:00:21 +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: 70)]
|
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public Dictionary<int, (IComponentModel, int)> RepairComponents { get; set; } = new();
|
2024-04-17 09:22:08 +04:00
|
|
|
|
}
|
|
|
|
|
}
|