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 ComponentViewModel : IComponentModel
|
|
|
|
|
{
|
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 ComponentName { get; set; } = string.Empty;
|
|
|
|
|
[Column(title: "Цена", width: 80)]
|
|
|
|
|
public double Cost { get; set; }
|
2024-02-09 22:08:31 +04:00
|
|
|
|
}
|
|
|
|
|
}
|