diff --git a/AircraftPlant/AircraftPlant.sln b/AircraftPlant/AircraftPlant.sln index 75de8a3..2c2d566 100644 --- a/AircraftPlant/AircraftPlant.sln +++ b/AircraftPlant/AircraftPlant.sln @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.4.33213.308 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlant", "AircraftPlant\AircraftPlant.csproj", "{E434A570-19A4-486C-AD38-3E2C07E6DB01}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AircraftPlant", "AircraftPlant\AircraftPlant.csproj", "{E434A570-19A4-486C-AD38-3E2C07E6DB01}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantDataModels", "AircraftPlantDataModels\AircraftPlantDataModels.csproj", "{F35C01BC-BCB8-4870-8143-529291F7AD5D}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +17,10 @@ Global {E434A570-19A4-486C-AD38-3E2C07E6DB01}.Debug|Any CPU.Build.0 = Debug|Any CPU {E434A570-19A4-486C-AD38-3E2C07E6DB01}.Release|Any CPU.ActiveCfg = Release|Any CPU {E434A570-19A4-486C-AD38-3E2C07E6DB01}.Release|Any CPU.Build.0 = Release|Any CPU + {F35C01BC-BCB8-4870-8143-529291F7AD5D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F35C01BC-BCB8-4870-8143-529291F7AD5D}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F35C01BC-BCB8-4870-8143-529291F7AD5D}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F35C01BC-BCB8-4870-8143-529291F7AD5D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/AircraftPlant/AircraftPlantDataModels/AircraftPlantDataModels.csproj b/AircraftPlant/AircraftPlantDataModels/AircraftPlantDataModels.csproj new file mode 100644 index 0000000..132c02c --- /dev/null +++ b/AircraftPlant/AircraftPlantDataModels/AircraftPlantDataModels.csproj @@ -0,0 +1,9 @@ + + + + net6.0 + enable + enable + + + diff --git a/AircraftPlant/AircraftPlantDataModels/IComponentModel.cs b/AircraftPlant/AircraftPlantDataModels/IComponentModel.cs new file mode 100644 index 0000000..b58aff2 --- /dev/null +++ b/AircraftPlant/AircraftPlantDataModels/IComponentModel.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AircraftPlantDataModels.Models +{ + public interface IComponentModel : IId + { + string ComponentName { get; } + double Cost { get; } + } +} diff --git a/AircraftPlant/AircraftPlantDataModels/IId.cs b/AircraftPlant/AircraftPlantDataModels/IId.cs new file mode 100644 index 0000000..662fec6 --- /dev/null +++ b/AircraftPlant/AircraftPlantDataModels/IId.cs @@ -0,0 +1,13 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AircraftPlantDataModels +{ + public interface IId + { + int Id { get; } + } +} diff --git a/AircraftPlant/AircraftPlantDataModels/IOrderModel.cs b/AircraftPlant/AircraftPlantDataModels/IOrderModel.cs new file mode 100644 index 0000000..dcd2df3 --- /dev/null +++ b/AircraftPlant/AircraftPlantDataModels/IOrderModel.cs @@ -0,0 +1,19 @@ +using AircraftPlantDataModels.Enums; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AircraftPlantDataModels.Models +{ + public interface IOrderModel : IId + { + int PlaneId { get; } + int Count { get; } + double Sum { get; } + OrderStatus Status { get; } + DateTime DateCreate { get; } + DateTime? DateImplement { get; } + } +} diff --git a/AircraftPlant/AircraftPlantDataModels/IPlaneModel.cs b/AircraftPlant/AircraftPlantDataModels/IPlaneModel.cs new file mode 100644 index 0000000..03f1aad --- /dev/null +++ b/AircraftPlant/AircraftPlantDataModels/IPlaneModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AircraftPlantDataModels.Models +{ + public interface IPlaneModel : IId + { + string PlaneName { get; } + double Price { get; } + Dictionary PlaneComponents { get; } + } +} diff --git a/AircraftPlant/AircraftPlantDataModels/OrderStatus.cs b/AircraftPlant/AircraftPlantDataModels/OrderStatus.cs new file mode 100644 index 0000000..dfc0ab7 --- /dev/null +++ b/AircraftPlant/AircraftPlantDataModels/OrderStatus.cs @@ -0,0 +1,17 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AircraftPlantDataModels.Enums +{ + public enum OrderStatus + { + Неизвестен = -1, + Принят = 0, + Выполняется = 1, + Готов = 2, + Выдан = 3 + } +}