Созданы интерфейсы - модели данных
This commit is contained in:
parent
35d0fff923
commit
0ce8124495
@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.4.33213.308
|
VisualStudioVersion = 17.4.33213.308
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
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
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
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}.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.ActiveCfg = Release|Any CPU
|
||||||
{E434A570-19A4-486C-AD38-3E2C07E6DB01}.Release|Any CPU.Build.0 = 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
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
</Project>
|
14
AircraftPlant/AircraftPlantDataModels/IComponentModel.cs
Normal file
14
AircraftPlant/AircraftPlantDataModels/IComponentModel.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
13
AircraftPlant/AircraftPlantDataModels/IId.cs
Normal file
13
AircraftPlant/AircraftPlantDataModels/IId.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
19
AircraftPlant/AircraftPlantDataModels/IOrderModel.cs
Normal file
19
AircraftPlant/AircraftPlantDataModels/IOrderModel.cs
Normal file
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
15
AircraftPlant/AircraftPlantDataModels/IPlaneModel.cs
Normal file
15
AircraftPlant/AircraftPlantDataModels/IPlaneModel.cs
Normal file
@ -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<int, (IComponentModel, int)> PlaneComponents { get; }
|
||||||
|
}
|
||||||
|
}
|
17
AircraftPlant/AircraftPlantDataModels/OrderStatus.cs
Normal file
17
AircraftPlant/AircraftPlantDataModels/OrderStatus.cs
Normal file
@ -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
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user