Созданы проекты DataModels и Contracts

This commit is contained in:
Никита Потапов 2024-02-25 18:41:53 +04:00
parent 6ca8999f68
commit fc59da0008
8 changed files with 87 additions and 0 deletions

View File

@ -5,6 +5,10 @@ VisualStudioVersion = 17.6.33815.320
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SecuritySystemView", "SecuritySystemView\SecuritySystemView.csproj", "{B4D0310E-1162-4BCF-A7E0-2AC41959C963}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SecuritySystemDataModels", "SecuritySystemDataModels\SecuritySystemDataModels.csproj", "{37DD658F-D5C0-4C97-A83D-A21EE0076C55}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SecuritySystemContracts", "SecuritySystemContracts\SecuritySystemContracts.csproj", "{0737BCB2-EEDB-44A4-8BD2-5B5EA689A7FF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@ -15,6 +19,14 @@ Global
{B4D0310E-1162-4BCF-A7E0-2AC41959C963}.Debug|Any CPU.Build.0 = Debug|Any CPU
{B4D0310E-1162-4BCF-A7E0-2AC41959C963}.Release|Any CPU.ActiveCfg = Release|Any CPU
{B4D0310E-1162-4BCF-A7E0-2AC41959C963}.Release|Any CPU.Build.0 = Release|Any CPU
{37DD658F-D5C0-4C97-A83D-A21EE0076C55}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{37DD658F-D5C0-4C97-A83D-A21EE0076C55}.Debug|Any CPU.Build.0 = Debug|Any CPU
{37DD658F-D5C0-4C97-A83D-A21EE0076C55}.Release|Any CPU.ActiveCfg = Release|Any CPU
{37DD658F-D5C0-4C97-A83D-A21EE0076C55}.Release|Any CPU.Build.0 = Release|Any CPU
{0737BCB2-EEDB-44A4-8BD2-5B5EA689A7FF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{0737BCB2-EEDB-44A4-8BD2-5B5EA689A7FF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{0737BCB2-EEDB-44A4-8BD2-5B5EA689A7FF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{0737BCB2-EEDB-44A4-8BD2-5B5EA689A7FF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="BindingModels\" />
<Folder Include="SearchModels\" />
<Folder Include="ViewModels\" />
<Folder Include="BusinessLogicsContracts\" />
<Folder Include="StoragesContracts\" />
</ItemGroup>
</Project>

View File

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

View File

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

View File

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

View File

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

View File

@ -0,0 +1,9 @@
namespace SecuritySystemDataModels.Models
{
public interface ISecureModel : IId
{
string SecureName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> SecureComponents { get; }
}
}

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>