2024-06-21 21:49:23 +04:00
|
|
|
|
using ShipyardContracts.Attributes;
|
|
|
|
|
using ShipyardDataModels.Models;
|
2024-04-27 18:26:46 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
namespace ShipyardContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ComponentViewModel : IComponentModel
|
|
|
|
|
{
|
2024-06-21 21:49:23 +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-04-27 18:26:46 +04:00
|
|
|
|
}
|