2023-04-24 01:54:33 +04:00
|
|
|
|
using LawFirmContracts.Attributes;
|
|
|
|
|
using LawFirmDataModels.Models;
|
2023-02-01 15:17:07 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace LawFirmContracts.ViewModels
|
|
|
|
|
{
|
2023-02-12 16:37:12 +04:00
|
|
|
|
public class ShopViewModel : IShopModel
|
2023-02-01 15:17:07 +04:00
|
|
|
|
{
|
2023-04-24 01:54:33 +04:00
|
|
|
|
[Column("Название магазина", gridViewAutoSize:GridViewAutoSize.Fill, isUseAutoSize: true)]
|
2023-02-01 15:17:07 +04:00
|
|
|
|
public string Name { get; set; } = string.Empty;
|
2023-04-24 01:54:33 +04:00
|
|
|
|
|
|
|
|
|
[Column("Адрес", width: 150)]
|
2023-02-01 15:17:07 +04:00
|
|
|
|
public string Adress { get; set; } = string.Empty;
|
2023-04-24 01:54:33 +04:00
|
|
|
|
|
|
|
|
|
[Column("Дата открытия", format:"D", isUseAutoSize:true, gridViewAutoSize:GridViewAutoSize.AllCells)]
|
2023-02-01 15:17:07 +04:00
|
|
|
|
public DateTime OpeningDate { get; set; }
|
|
|
|
|
|
2023-04-24 01:54:33 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-02-01 15:17:07 +04:00
|
|
|
|
public Dictionary<int, (IDocumentModel, int)> ShopDocuments { get; set; } = new();
|
2023-04-24 01:54:33 +04:00
|
|
|
|
|
|
|
|
|
[Column(visible: false)]
|
2023-04-09 00:53:06 +04:00
|
|
|
|
public List<Tuple<string, int>>? DocumentCount { get; set; } = new();
|
2023-02-01 15:17:07 +04:00
|
|
|
|
|
2023-04-24 01:54:33 +04:00
|
|
|
|
[Column(visible: false)]
|
2023-02-01 15:17:07 +04:00
|
|
|
|
public int Id { get; set; }
|
2023-02-26 23:20:43 +04:00
|
|
|
|
|
2023-04-24 01:54:33 +04:00
|
|
|
|
[Column("Макс. документов в магазине", width:100)]
|
2023-02-26 23:20:43 +04:00
|
|
|
|
public int MaxCountDocuments { get; set; }
|
2023-02-01 15:17:07 +04:00
|
|
|
|
}
|
|
|
|
|
}
|