Upload files to 'ShipyardDataModels'
This commit is contained in:
parent
bf1fb04539
commit
65950d0f98
8
ShipyardDataModels/IComponentModel.cs
Normal file
8
ShipyardDataModels/IComponentModel.cs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
namespace ShipyardDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IComponentModel : IId
|
||||||
|
{
|
||||||
|
string ComponentName { get; }
|
||||||
|
double Cost { get; }
|
||||||
|
}
|
||||||
|
}
|
8
ShipyardDataModels/IId.cs
Normal file
8
ShipyardDataModels/IId.cs
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
namespace ShipyardDataModels
|
||||||
|
{
|
||||||
|
|
||||||
|
public interface IId
|
||||||
|
{
|
||||||
|
int Id { get; }
|
||||||
|
}
|
||||||
|
}
|
14
ShipyardDataModels/IOrderModel.cs
Normal file
14
ShipyardDataModels/IOrderModel.cs
Normal 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; }
|
||||||
|
}
|
||||||
|
}
|
9
ShipyardDataModels/IShipModel.cs
Normal file
9
ShipyardDataModels/IShipModel.cs
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
namespace ShipyardDataModels.Models
|
||||||
|
{
|
||||||
|
public interface IShipModel : IId
|
||||||
|
{
|
||||||
|
string ShipName { get; }
|
||||||
|
double Price { get; }
|
||||||
|
Dictionary<int, (IComponentModel, int)> ShipComponents { get; }
|
||||||
|
}
|
||||||
|
}
|
11
ShipyardDataModels/OrderStatus.cs
Normal file
11
ShipyardDataModels/OrderStatus.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
namespace ShipyardDataModels.Enums
|
||||||
|
{
|
||||||
|
public enum OrderStatus
|
||||||
|
{
|
||||||
|
Неизвестен = -1,
|
||||||
|
Принят = 0,
|
||||||
|
Выполняется = 1,
|
||||||
|
Готов = 2,
|
||||||
|
Выдан = 3
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user