25 lines
789 B
C#
Raw Normal View History

2024-02-12 12:46:44 +04:00
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TypographyDataModels.Models;
2024-02-12 12:46:44 +04:00
using System.ComponentModel;
using TypographyContracts.Attributes;
2024-02-12 12:46:44 +04:00
namespace TypographyContracts.ViewModels
2024-02-12 12:46:44 +04:00
{
public class PrintedViewModel : IPrintedModel
2024-02-12 12:46:44 +04:00
{
[Column(visible: false)]
2024-02-12 12:46:44 +04:00
public int Id { get; set; }
[Column("Название изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
public string PrintedName { get; set; } = string.Empty;
[Column("Цена", width: 100)]
2024-02-12 12:46:44 +04:00
public double Price { get; set; }
[Column(visible: false)]
public Dictionary<int, (IComponentModel, int)> PrintedComponents { get; set; } = new();
2024-02-12 12:46:44 +04:00
}
}