26 lines
964 B
C#
26 lines
964 B
C#
using PlumbingRepairContracts.Attributes;
|
|
using PlumbingRepairDataModels.Models;
|
|
using System.ComponentModel;
|
|
|
|
namespace PlumbingRepairContracts.ViewModels
|
|
{
|
|
public class ShopViewModel : IShopModel
|
|
{
|
|
[Column(visible: false)]
|
|
public int Id { get; set; }
|
|
|
|
[Column(title: "Название магазина", gridViewAutoSize: GridViewAutoSize.Fill, isUseAutoSize: true)]
|
|
public string ShopName { get; set; } = string.Empty;
|
|
|
|
[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, formatDate: true)]
|
|
public DateTime DateOpening { get; set; }
|
|
[Column(visible: false)]
|
|
public Dictionary<int, (IWorkModel, int)> ShopWorks { get; set; } = new();
|
|
|
|
}
|
|
}
|