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

21 lines
663 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 WorkViewModel : IWorkModel
{
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 WorkName { get; set; } = string.Empty;
2024-03-23 11:06:35 +04:00
2024-05-16 19:02:46 +04:00
[Column(title: "Цена", width: 150, formattedNumber: true)]
2024-05-16 17:00:28 +04:00
public double Price { get; set; }
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> WorkComponents { get; set; } = new();
2024-03-23 11:06:35 +04:00
}
}