2024-02-22 01:58:33 +04:00
|
|
|
|
using AircraftPlantDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace AircraftPlantContracts.BindingModels
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Модель для передачи данных пользователя
|
|
|
|
|
/// в методы для сохранения данных для магазинов
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class ShopBindingModel : IShopModel
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Идентификатор
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Название магазина
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string ShopName { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Адрес магазина
|
|
|
|
|
/// </summary>
|
|
|
|
|
public string Address { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Дата открытия магазина
|
|
|
|
|
/// </summary>
|
|
|
|
|
public DateTime DateOpening { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Коллекция изделий в магазине
|
|
|
|
|
/// </summary>
|
|
|
|
|
public Dictionary<int, (IPlaneModel, int)> ShopPlanes
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
2024-02-25 23:08:05 +04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Максимальное количество изделий
|
|
|
|
|
/// </summary>
|
|
|
|
|
public int MaxPlanes { get; set; }
|
2024-02-22 01:58:33 +04:00
|
|
|
|
}
|
|
|
|
|
}
|