CourseWork_CompShop/ComputerShopProvider/ComputerShopContracts/BindingModels/OrderBindingModel.cs

35 lines
870 B
C#
Raw Normal View History

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;
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();
}
}