This commit is contained in:
Ivan_Starostin 2024-04-27 18:25:24 +04:00
parent 0c13fd92a4
commit 1f61f8d67d
3 changed files with 43 additions and 0 deletions

View File

@ -0,0 +1,11 @@
using ShipyardDataModels.Models;
namespace ShipyardContracts.BindingModels
{
public class ComponentBindingModel : IComponentModel
{
public int Id { get; set; }
public string ComponentName { get; set; } = string.Empty;
public double Cost { get; set; }
}
}

View File

@ -0,0 +1,15 @@
using ShipyardDataModels.Enums;
using ShipyardDataModels.Models;
namespace ShipyardContracts.BindingModels
{
public class OrderBindingModel : IOrderModel
{
public int Id { get; set; }
public int ShipId { get; set; }
public int Count { get; set; }
public double Sum { get; set; }
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
public DateTime DateCreate { get; set; } = DateTime.Now;
public DateTime? DateImplement { get; set; }
}
}

View File

@ -0,0 +1,17 @@
using ShipyardDataModels.Models;
namespace ShipyardContracts.BindingModels
{
public class ShipBindingModel : IShipModel
{
public int Id { get; set; }
public string ShipName { get; set; } = string.Empty;
public double Price { get; set; }
public Dictionary<int, (IComponentModel, int)> ShipComponents
{
get;
set;
} = new();
}
}