2024-05-01 22:21:11 +04:00
|
|
|
|
using AccountingWarehouseProductsDataModels.Enums;
|
|
|
|
|
using AccountingWarehouseProductsDataModels.Models;
|
2024-04-21 15:33:17 +04:00
|
|
|
|
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
|
|
|
|
|
{
|
2024-05-01 22:21:11 +04:00
|
|
|
|
public int ProductId { get; set; }
|
|
|
|
|
public int SupplierId { get; set; }
|
2024-04-21 15:33:17 +04:00
|
|
|
|
[DisplayName("Номер")]
|
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
2024-05-01 22:21:11 +04:00
|
|
|
|
[DisplayName("Название продукта")]
|
|
|
|
|
public string ProductName { get; set; }
|
|
|
|
|
|
2024-05-07 16:15:07 +04:00
|
|
|
|
[DisplayName("Название поставщика")]
|
|
|
|
|
public string SupplierName { get; set; }
|
|
|
|
|
|
2024-05-01 22:21:11 +04:00
|
|
|
|
[DisplayName("Количество")]
|
|
|
|
|
public int Count { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Сумма")]
|
|
|
|
|
public double Sum { get; set; }
|
|
|
|
|
|
|
|
|
|
[DisplayName("Дата создания")]
|
2024-04-21 15:33:17 +04:00
|
|
|
|
public DateTime? DateofOrder { get; set; }
|
|
|
|
|
|
2024-05-01 22:21:11 +04:00
|
|
|
|
[DisplayName("Дата выполнения")]
|
|
|
|
|
public DateTime? DateImplement { get; set; }
|
|
|
|
|
|
2024-04-21 15:33:17 +04:00
|
|
|
|
[DisplayName("Статус заказа")]
|
|
|
|
|
public AccountingWarehouseProductsDataModels.Enums.OrderStatus Status { get; set; }
|
|
|
|
|
|
2024-05-01 22:21:11 +04:00
|
|
|
|
public Dictionary<int, (IProductModel, int)> OrderProduct { get; set; } = new();
|
2024-04-21 15:33:17 +04:00
|
|
|
|
}
|
|
|
|
|
}
|