ПИбд-22 Боровков М В 1 лабораторная работа #1

Closed
bekodeg wants to merge 22 commits from labWork1 into main
6 changed files with 77 additions and 0 deletions
Showing only changes of commit 512a605510 - Show all commits

View File

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.7.34031.279
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AbstractSushiBarDataModels", "AbstractSushiBarDataModels\AbstractSushiBarDataModels.csproj", "{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3CA94B77-00EA-45B6-BD88-BDD3EAD3C887}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {73292010-42D8-482B-90B6-CD302C7EA849}
EndGlobalSection
EndGlobal

View File

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

View File

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

View File

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

View File

@ -0,0 +1,14 @@
using AbstractSushiBarDataModels.Enums;
namespace AbstractSushiBarDataModels.Models
{
internal 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,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
namespace AbstractSushiBarDataModels.Models
{
internal interface IProductModel : IId
{
string ProductName { get; }
double Price { get; }
Dictionary<int, (IComponentModel, int)> ProductComponents { get; }
}
}