2024-06-22 10:36:54 +04:00
|
|
|
|
using SecuritySystemContracts.Attributes;
|
|
|
|
|
using SecuritySystemDataModels.Models;
|
2024-05-07 15:10:34 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SecuritySystemContracts.ViewModels
|
|
|
|
|
{
|
2024-06-22 10:36:54 +04:00
|
|
|
|
//класс для отображения пользователю информаци о продуктах (изделиях)
|
|
|
|
|
public class SecureViewModel : ISecureModel
|
|
|
|
|
{
|
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
2024-05-07 15:10:34 +04:00
|
|
|
|
|
2024-06-22 10:36:54 +04:00
|
|
|
|
[Column(title: "Навание изделия", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string SecureName { get; set; } = string.Empty;
|
2024-05-07 15:10:34 +04:00
|
|
|
|
|
2024-06-22 10:36:54 +04:00
|
|
|
|
[Column(title: "Цена", width: 150)]
|
|
|
|
|
public double Price { get; set; }
|
2024-05-07 15:10:34 +04:00
|
|
|
|
|
2024-06-22 10:36:54 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public Dictionary<int, (ISensorModel, int)> SecureSensors { get; set; } = new();
|
|
|
|
|
}
|
|
|
|
|
}
|