AccountingWarehouseProducts.../AccountingWarehouseProducts/AccountingWarehouseProductsContracts/ViewModels/OrderViewModel.cs

43 lines
1.3 KiB
C#

using AccountingWarehouseProductsDataModels.Enums;
using AccountingWarehouseProductsDataModels.Models;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AccountingWarehouseProductsContracts.ViewModels
{
public class OrderViewModel : IOrderModel
{
public int ProductId { get; set; }
public int SupplierId { get; set; }
[DisplayName("Номер")]
public int Id { get; set; }
[DisplayName("Название продукта")]
public string ProductName { get; set; }
[DisplayName("Название поставщика")]
public string SupplierName { get; set; }
[DisplayName("Количество")]
public int Count { get; set; }
[DisplayName("Сумма")]
public double Sum { get; set; }
[DisplayName("Дата создания")]
public DateTime? DateofOrder { get; set; }
[DisplayName("Дата выполнения")]
public DateTime? DateImplement { get; set; }
[DisplayName("Статус заказа")]
public AccountingWarehouseProductsDataModels.Enums.OrderStatus Status { get; set; }
public Dictionary<int, (IProductModel, int)> OrderProduct { get; set; } = new();
}
}