2023-04-06 23:41:09 +04:00
|
|
|
|
using ComputerShopDataModels.Enums;
|
|
|
|
|
using ComputerShopDataModels.Models;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ComputerShopContracts.BindingModels
|
|
|
|
|
{
|
|
|
|
|
public class OrderBindingModel : IOrderModel
|
|
|
|
|
{
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
|
|
|
|
|
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
|
|
|
|
|
2024-07-26 02:49:24 +04:00
|
|
|
|
public DateTime DateCreate { get; set; } = DateTime.Now;
|
2023-04-06 23:41:09 +04:00
|
|
|
|
|
2024-07-26 02:49:24 +04:00
|
|
|
|
public DateTime? DateImplement { get; set; }
|
2023-05-20 00:08:47 +04:00
|
|
|
|
public int ClientId { get; set; }
|
2024-07-26 02:49:24 +04:00
|
|
|
|
public Dictionary<int, (IComponentModel, int)> OrderComponents
|
|
|
|
|
{
|
2023-05-20 00:08:47 +04:00
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
|
|
|
|
public Dictionary<int, IOrderModel> SupplyOrders
|
|
|
|
|
{
|
|
|
|
|
get;
|
|
|
|
|
set;
|
|
|
|
|
} = new();
|
2023-04-06 23:41:09 +04:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|