2024-06-17 14:32:12 +04:00
|
|
|
|
using DataModels.Enums;
|
2024-06-22 12:18:43 +04:00
|
|
|
|
using DataModels.Models;
|
2024-06-17 14:32:12 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2024-06-22 15:10:46 +04:00
|
|
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
2024-06-17 14:32:12 +04:00
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace Contracts.ViewModels
|
|
|
|
|
{
|
|
|
|
|
public class SupplyViewModel
|
|
|
|
|
{
|
|
|
|
|
public Guid Id { get; set; }
|
2024-06-22 12:18:43 +04:00
|
|
|
|
public string Name { get; set; } = string.Empty;
|
2024-06-22 15:10:46 +04:00
|
|
|
|
public Guid SupplierId { get; set; }
|
2024-06-17 14:32:12 +04:00
|
|
|
|
public string SupplierName { get; set; } = string.Empty;
|
|
|
|
|
public double Price { get; set; }
|
2024-06-22 12:18:43 +04:00
|
|
|
|
public Dictionary<Guid, (IProduct, int)> Products { get; set; } = new();
|
2024-06-17 14:32:12 +04:00
|
|
|
|
public DateTime Date { get; set; }
|
|
|
|
|
public SupplyStatus Status { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|