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