21 lines
663 B
C#
21 lines
663 B
C#
using PlumbingRepairContracts.Attributes;
|
|
using PlumbingRepairDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace PlumbingRepairContracts.ViewModels
|
|
{
|
|
public class WorkViewModel : IWorkModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
|
|
[Column(title: "Название изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string WorkName { get; set; } = string.Empty;
|
|
|
|
[Column(title: "Цена", width: 150, formattedNumber: true)]
|
|
public double Price { get; set; }
|
|
[Column(visible: false)]
|
|
public Dictionary<int, (IComponentModel, int)> WorkComponents { get; set; } = new();
|
|
}
|
|
}
|