PIbd-22-Stroev-V.M.-Plumbin.../PlumbingRepair/PlumbingRepairContracts/ViewModels/WorkViewModel.cs

25 lines
800 B
C#
Raw Normal View History

2024-05-21 20:02:14 +04:00
using PlumbingRepairContracts.Attributes;
using PlumbingRepairDataModels.Models;
2024-02-13 23:15:11 +04:00
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PlumbingRepairContracts.ViewModels
{
2024-02-14 11:14:37 +04:00
public class WorkViewModel : IWorkModel
2024-02-13 23:15:11 +04:00
{
2024-05-21 20:02:14 +04:00
[Column(visible: false)]
2024-02-13 23:15:11 +04:00
public int Id { get; set; }
2024-05-21 20:02:14 +04:00
[Column("Название изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
2024-02-14 11:14:37 +04:00
public string WorkName { get; set; } = string.Empty;
2024-05-21 20:02:14 +04:00
[Column("Цена", width: 100)]
2024-02-13 23:15:11 +04:00
public double Price { get; set; }
2024-05-21 20:02:14 +04:00
[Column(visible: false)]
2024-02-14 11:14:37 +04:00
public Dictionary<int, (IComponentModel, int)> WorkComponents
2024-02-13 23:15:11 +04:00
{ get; set; } = new();
}
}