2024-05-16 17:00:28 +04:00
|
|
|
|
using PlumbingRepairContracts.Attributes;
|
|
|
|
|
using PlumbingRepairDataModels.Models;
|
2024-03-23 11:06:35 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace PlumbingRepairContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ComponentViewModel : IComponentModel
|
|
|
|
|
{
|
2024-05-16 17:00:28 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
2024-03-23 11:06:35 +04:00
|
|
|
|
|
2024-05-16 17:00:28 +04:00
|
|
|
|
[Column(title: "Название компонента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ComponentName { get; set; } = string.Empty;
|
2024-03-23 11:06:35 +04:00
|
|
|
|
|
2024-05-16 17:00:28 +04:00
|
|
|
|
[Column(title: "Цена", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-03-23 11:06:35 +04:00
|
|
|
|
public double Cost { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|