2024-04-17 21:45:53 +04:00
|
|
|
|
using ComputerShopDataModels.Enums;
|
|
|
|
|
using ComputerShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
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 OrderViewModel : IOrderModel
|
2024-04-17 21:45:53 +04:00
|
|
|
|
{
|
|
|
|
|
[DisplayName("Номер")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
|
|
|
|
//!!!ТУТ МБ НЕ НУЖЕН DisplayName
|
|
|
|
|
[DisplayName("Номер пользователя")]
|
|
|
|
|
public int UserId { get; set; }
|
|
|
|
|
|
|
|
|
|
//!!!ТУТ МБ НАДО DisplayName (НО ВЯРД ЛИ)
|
2024-04-23 21:55:59 +04:00
|
|
|
|
|
|
|
|
|
//!!!УДАЛИТЬ (если нормально работает многие-ко-многим)
|
|
|
|
|
|
|
|
|
|
//public Dictionary<int, IRequestModel> OrderRequests { get; set; } = new();
|
|
|
|
|
//public Dictionary<int, IShipmentModel> OrderShipments { get; set; } = new();
|
2024-04-17 21:45:53 +04:00
|
|
|
|
|
|
|
|
|
//!!!МБ НЕ НУЖНО DateTime.Now
|
|
|
|
|
[DisplayName("Дата оформления")]
|
2024-04-23 22:25:40 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2024-04-17 21:45:53 +04:00
|
|
|
|
|
|
|
|
|
[DisplayName("Статус")]
|
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
|
|
|
|
|
[DisplayName("Стоимость")]
|
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|