PIbd-21_RazubaevSM_Plumbing.../PlumbingRepair/PlumbingRepairContracts/ViewModels/ComponentViewModel.cs

18 lines
630 B
C#
Raw Normal View History

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 19:02:46 +04:00
[Column(title: "Цена", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true, formattedNumber: true)]
2024-03-23 11:06:35 +04:00
public double Cost { get; set; }
}
}