2023-04-22 21:40:26 +04:00
|
|
|
|
using FurnitureAssemblyContracts.Attributes;
|
|
|
|
|
using FurnitureAssemblyDataModels.Models;
|
|
|
|
|
|
2023-01-29 18:06:26 +04:00
|
|
|
|
|
|
|
|
|
namespace FurnitureAssemblyContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ComponentViewModel : IComponentModel
|
|
|
|
|
{
|
2023-04-22 21:40:26 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-01-29 18:06:26 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-04-22 21:40:26 +04:00
|
|
|
|
[Column(title: "Название компонента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-01-29 18:06:26 +04:00
|
|
|
|
public string ComponentName { get; set; } = string.Empty;
|
2023-04-23 12:20:37 +04:00
|
|
|
|
[Column(title: "Цена", width: 70, isFormatable: true, formatter: "0.00##")]
|
2023-01-29 18:06:26 +04:00
|
|
|
|
public double Cost { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|