Upload files to 'ShipyardDataModels'

This commit is contained in:
Ivan_Starostin 2024-04-27 18:28:37 +04:00
parent bf1fb04539
commit 65950d0f98
5 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,8 @@
namespace ShipyardDataModels.Models
{
public interface IComponentModel : IId
{
string ComponentName { get; }
double Cost { get; }
}
}

View File

@ -0,0 +1,8 @@
namespace ShipyardDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,14 @@
using ShipyardDataModels.Enums;
namespace ShipyardDataModels.Models
{
public interface IOrderModel : IId
{
int ShipId { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -0,0 +1,9 @@
namespace ShipyardDataModels.Models
{
public interface IShipModel : IId
{
string ShipName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> ShipComponents { get; }
}
}

View File

@ -0,0 +1,11 @@
namespace ShipyardDataModels.Enums
{
public enum OrderStatus
{
Неизвестен = -1,
Принят = 0,
Выполняется = 1,
Готов = 2,
Выдан = 3
}
}