добавлено 2 библиотеки (вроде добавлены...)

This commit is contained in:
ekallin 2024-02-11 10:25:36 +04:00
parent bc6229cbb2
commit 616cbf0ef2
10 changed files with 133 additions and 1 deletions

View File

@ -0,0 +1,14 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SushiBarDataModels
{
public interface IComponentModel
{
string ComponentName { get; }
double Cost { get; }
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SushiBarDataModels
{
public interface IId
{
int Id { get; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SushiBarDataModels
{
public interface IOrderModel : IId
{
int ProductId { get; }
int Count { get; }
double Sum { get; }
OrderStatus Status { get; }
DateTime DateCreate { get; }
DateTime? DateImplement { get; }
}
}

View File

@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SushiBarDataModels
{
public interface IProductModel : IId
{
string ProductName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace SushiBarDataModels
{
public enum OrderStatus
{
Неизвестен = -1,
Принят = 0,
Выполняется = 1,
Готов = 2,
Выдан = 3
}
}

View File

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

View File

@ -8,4 +8,10 @@
<ImplicitUsings>enable</ImplicitUsings>
</PropertyGroup>
<ItemGroup>
<Compile Remove="AbstractShopDataModels\**" />
<EmbeddedResource Remove="AbstractShopDataModels\**" />
<None Remove="AbstractShopDataModels\**" />
</ItemGroup>
</Project>

View File

@ -3,7 +3,11 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.8.34525.116
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SushiBar", "SushiBar.csproj", "{57C61C1C-B600-41E0-BEAC-667A8FC14F8C}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SushiBar", "SushiBar.csproj", "{57C61C1C-B600-41E0-BEAC-667A8FC14F8C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SushiBarDataModels", "..\ClassLibrary1SushiBarDataModels\SushiBarDataModels.csproj", "{AEC2E098-CC1B-44E3-BF4F-6532E6712317}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SushiBarContracts", "..\SushiBarContracts\SushiBarContracts.csproj", "{582D62F3-67BC-48E4-BE59-413A8692695B}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -15,6 +19,14 @@ Global
{57C61C1C-B600-41E0-BEAC-667A8FC14F8C}.Debug|Any CPU.Build.0 = Debug|Any CPU
{57C61C1C-B600-41E0-BEAC-667A8FC14F8C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{57C61C1C-B600-41E0-BEAC-667A8FC14F8C}.Release|Any CPU.Build.0 = Release|Any CPU
{AEC2E098-CC1B-44E3-BF4F-6532E6712317}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{AEC2E098-CC1B-44E3-BF4F-6532E6712317}.Debug|Any CPU.Build.0 = Debug|Any CPU
{AEC2E098-CC1B-44E3-BF4F-6532E6712317}.Release|Any CPU.ActiveCfg = Release|Any CPU
{AEC2E098-CC1B-44E3-BF4F-6532E6712317}.Release|Any CPU.Build.0 = Release|Any CPU
{582D62F3-67BC-48E4-BE59-413A8692695B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{582D62F3-67BC-48E4-BE59-413A8692695B}.Debug|Any CPU.Build.0 = Debug|Any CPU
{582D62F3-67BC-48E4-BE59-413A8692695B}.Release|Any CPU.ActiveCfg = Release|Any CPU
{582D62F3-67BC-48E4-BE59-413A8692695B}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE

View File

@ -0,0 +1,7 @@
namespace SushiBarContracts
{
public class Class1
{
}
}

View File

@ -0,0 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\ClassLibrary1SushiBarDataModels\SushiBarDataModels.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="BindingModel\" />
<Folder Include="SearchModel\" />
<Folder Include="ViewModel\" />
<Folder Include="BusinessLodicsContracts\" />
<Folder Include="StoragesContracts\" />
</ItemGroup>
</Project>