2024-06-21 18:19:35 +04:00
|
|
|
|
using FurnitureAssemblyContracts.Attributes;
|
|
|
|
|
using FurnitureAssemblyDataModels.Models;
|
2024-02-28 01:13:41 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace FurnitureAssemblyContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
// Класс для отображения пользователю информации о продуктах (изделиях)
|
|
|
|
|
public class FurnitureViewModel : IFurnitureModel
|
|
|
|
|
{
|
2024-06-21 18:19:35 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-02-28 01:13:41 +04:00
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2024-06-21 18:19:35 +04:00
|
|
|
|
[Column(title: "Название изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2024-02-28 01:13:41 +04:00
|
|
|
|
public string FurnitureName { get; set; } = string.Empty;
|
|
|
|
|
|
2024-06-21 18:19:35 +04:00
|
|
|
|
[Column(title: "Цена", width: 150)]
|
2024-02-28 01:13:41 +04:00
|
|
|
|
public double Price { get; set; }
|
|
|
|
|
|
2024-06-21 18:19:35 +04:00
|
|
|
|
[Column(visible: false)]
|
2024-02-28 01:13:41 +04:00
|
|
|
|
public Dictionary<int, (IWorkPieceModel, int)> FurnitureWorkPieces { get; set; } = new();
|
|
|
|
|
}
|
|
|
|
|
}
|