18 lines
630 B
C#
18 lines
630 B
C#
using PlumbingRepairContracts.Attributes;
|
|
using PlumbingRepairDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace PlumbingRepairContracts.ViewModels
|
|
{
|
|
public class ComponentViewModel : IComponentModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
|
|
[Column(title: "Название компонента", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string ComponentName { get; set; } = string.Empty;
|
|
|
|
[Column(title: "Цена", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true, formattedNumber: true)]
|
|
public double Cost { get; set; }
|
|
}
|
|
} |