2024-05-16 18:30:57 +04:00
|
|
|
|
using PlumbingRepairContracts.Attributes;
|
|
|
|
|
using PlumbingRepairDataModels.Models;
|
2024-04-12 20:16:02 +04:00
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
|
|
|
|
|
namespace PlumbingRepairContracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class ShopViewModel
|
|
|
|
|
{
|
2024-05-16 18:30:57 +04:00
|
|
|
|
[Column(visible: false)]
|
|
|
|
|
public int Id { get; set; }
|
2024-04-12 20:16:02 +04:00
|
|
|
|
|
2024-05-16 18:30:57 +04:00
|
|
|
|
[Column(title: "Название магазина", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string ShopName { get; set; } = string.Empty;
|
2024-04-12 20:16:02 +04:00
|
|
|
|
|
2024-05-16 18:30:57 +04:00
|
|
|
|
[Column(title: "Адрес", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
|
|
|
public string Address { get; set; } = string.Empty;
|
|
|
|
|
[Column(title: "Максимальное количество работ", width: 150)]
|
|
|
|
|
public int maxCountWorks { get; set; }
|
|
|
|
|
[Column(title: "Дата открытия", width: 150, format: "Date: dd/MM/yyyy")]
|
2024-04-12 20:16:02 +04:00
|
|
|
|
public DateTime DateOpening { get; set; }
|
|
|
|
|
public Dictionary<int, (IWorkModel, int)> ShopWorks { get; set; } = new();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|