diff --git a/ShipyardDataModels/IComponentModel.cs b/ShipyardDataModels/IComponentModel.cs new file mode 100644 index 0000000..4072f19 --- /dev/null +++ b/ShipyardDataModels/IComponentModel.cs @@ -0,0 +1,8 @@ +namespace ShipyardDataModels.Models +{ + public interface IComponentModel : IId + { + string ComponentName { get; } + double Cost { get; } + } +} diff --git a/ShipyardDataModels/IId.cs b/ShipyardDataModels/IId.cs new file mode 100644 index 0000000..1f37123 --- /dev/null +++ b/ShipyardDataModels/IId.cs @@ -0,0 +1,8 @@ +namespace ShipyardDataModels +{ + + public interface IId + { + int Id { get; } + } +} diff --git a/ShipyardDataModels/IOrderModel.cs b/ShipyardDataModels/IOrderModel.cs new file mode 100644 index 0000000..a3a51ba --- /dev/null +++ b/ShipyardDataModels/IOrderModel.cs @@ -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; } + } +} diff --git a/ShipyardDataModels/IShipModel.cs b/ShipyardDataModels/IShipModel.cs new file mode 100644 index 0000000..7cae0da --- /dev/null +++ b/ShipyardDataModels/IShipModel.cs @@ -0,0 +1,9 @@ +namespace ShipyardDataModels.Models +{ + public interface IShipModel : IId + { + string ShipName { get; } + double Price { get; } + Dictionary ShipComponents { get; } + } +} diff --git a/ShipyardDataModels/OrderStatus.cs b/ShipyardDataModels/OrderStatus.cs new file mode 100644 index 0000000..bc993e5 --- /dev/null +++ b/ShipyardDataModels/OrderStatus.cs @@ -0,0 +1,11 @@ +namespace ShipyardDataModels.Enums +{ + public enum OrderStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3 + } +}