2024-04-23 21:55:59 +04:00
|
|
|
|
using ComputerShopDataModels.Models;
|
|
|
|
|
using System;
|
2024-04-17 21:45:53 +04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.ComponentModel;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ComputerShopContracts.ViewModels
|
|
|
|
|
{
|
2024-04-23 22:25:40 +04:00
|
|
|
|
public class ShipmentViewModel : IShipmentModel
|
2024-04-17 21:45:53 +04:00
|
|
|
|
{
|
|
|
|
|
//!!!ТУТ МБ НЕ НУЖЕН DisplayName
|
|
|
|
|
[DisplayName("Номер")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
//!!!ТУТ МБ НЕ НУЖЕН DisplayName
|
|
|
|
|
[DisplayName("Номер пользователя")]
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
//!!!МБ ДОБАВИТЬ НИК ПОЛЬЗОВАТЕЛЯ, СОЗДАВШЕГО ПАРТИЮ
|
|
|
|
|
|
2024-04-23 21:55:59 +04:00
|
|
|
|
|
|
|
|
|
public Dictionary<int, IOrderModel> ShipmentOrders { get; set; } = new();
|
|
|
|
|
|
2024-04-17 21:45:53 +04:00
|
|
|
|
//!!!МБ НЕ НУЖЕН string.Empty
|
|
|
|
|
[DisplayName("Поставщик")]
|
|
|
|
|
public string ProviderName { get; set; } = string.Empty;
|
|
|
|
|
|
|
|
|
|
//!!!МБ НЕ НУЖНО DateTime.Now
|
|
|
|
|
[DisplayName("Дата поставки")]
|
|
|
|
|
public DateTime DateShipment { get; set; } = DateTime.Now;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|