26 lines
824 B
C#
26 lines
824 B
C#
using DataModels.Enums;
|
|
using DataModels.Models;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations.Schema;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace Contracts.ViewModels
|
|
{
|
|
public class SupplyViewModel
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; } = string.Empty;
|
|
public Guid SupplierId { get; set; }
|
|
public string SupplierName { get; set; } = string.Empty;
|
|
public double Price { get; set; }
|
|
public Dictionary<Guid, (IProduct, int)> Products { get; set; } = new();
|
|
public DateTime Date { get; set; }
|
|
public DateTime? DateArriving { get; set; }
|
|
public DateTime? DateComplete { get; set; }
|
|
public SupplyStatus Status { get; set; }
|
|
}
|
|
}
|