add models
This commit is contained in:
parent
be1228f7c8
commit
618c41a5a0
25
Canteen/Canteen.sln
Normal file
25
Canteen/Canteen.sln
Normal file
@ -0,0 +1,25 @@
|
||||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.4.33403.182
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CanteenDataModels", "CanteenDataModels\CanteenDataModels.csproj", "{F11EA5AA-83D7-4D06-9DC5-E2C8E726BC4A}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{F11EA5AA-83D7-4D06-9DC5-E2C8E726BC4A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F11EA5AA-83D7-4D06-9DC5-E2C8E726BC4A}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F11EA5AA-83D7-4D06-9DC5-E2C8E726BC4A}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F11EA5AA-83D7-4D06-9DC5-E2C8E726BC4A}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {939F96DE-61BC-438B-9904-E07CEC3136CB}
|
||||
EndGlobalSection
|
||||
EndGlobal
|
14
Canteen/CanteenDataModels/CanteenDataModels.csproj
Normal file
14
Canteen/CanteenDataModels/CanteenDataModels.csproj
Normal file
@ -0,0 +1,14 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Folder Include="Enums\" />
|
||||
<Folder Include="Models\" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
17
Canteen/CanteenDataModels/Enums/OrderStatus.cs
Normal file
17
Canteen/CanteenDataModels/Enums/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 CanteenDataModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принят = 0,
|
||||
Выполняется = 1,
|
||||
Готов = 2,
|
||||
Выдан = 3
|
||||
}
|
||||
}
|
13
Canteen/CanteenDataModels/IId.cs
Normal file
13
Canteen/CanteenDataModels/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 CanteenDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
18
Canteen/CanteenDataModels/Models/ICookModel.cs
Normal file
18
Canteen/CanteenDataModels/Models/ICookModel.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface ICookModel : IId
|
||||
{
|
||||
string Name { get; }
|
||||
string Surname { get; }
|
||||
string? Patronymic { get; }
|
||||
DateTime DateOfBirth { get; }
|
||||
string Position { get; }
|
||||
int ClientId { get; }
|
||||
}
|
||||
}
|
16
Canteen/CanteenDataModels/Models/IDishModel.cs
Normal file
16
Canteen/CanteenDataModels/Models/IDishModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface IDishModel : IId
|
||||
{
|
||||
string DishName { get; }
|
||||
double Cost { get; }
|
||||
int VisitorId { get; }
|
||||
int ProductId { get; }
|
||||
}
|
||||
}
|
16
Canteen/CanteenDataModels/Models/ILunchModel.cs
Normal file
16
Canteen/CanteenDataModels/Models/ILunchModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface ILunchModel : IId
|
||||
{
|
||||
string LunchName { get; }
|
||||
double Cost { get; }
|
||||
int VisitorId { get; }
|
||||
Dictionary<int, (IProductModel, int)> LunchProducts { get; }
|
||||
}
|
||||
}
|
17
Canteen/CanteenDataModels/Models/IManagerModel.cs
Normal file
17
Canteen/CanteenDataModels/Models/IManagerModel.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface IManagerModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
string PhoneNumber { get; }
|
||||
int RoleId { get; }
|
||||
}
|
||||
}
|
18
Canteen/CanteenDataModels/Models/IOrderModel.cs
Normal file
18
Canteen/CanteenDataModels/Models/IOrderModel.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using CanteenDataModels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface IOrderModel : IId
|
||||
{
|
||||
int ClientId { get; }
|
||||
double Sum { get; }
|
||||
OrderStatus Status { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
}
|
||||
}
|
16
Canteen/CanteenDataModels/Models/IProductModel.cs
Normal file
16
Canteen/CanteenDataModels/Models/IProductModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface IProductModel : IId
|
||||
{
|
||||
string ProductName { get; }
|
||||
double Cost { get; }
|
||||
int ClientId { get; }
|
||||
Dictionary<int, ICookModel> ProductCooks { get; }
|
||||
}
|
||||
}
|
13
Canteen/CanteenDataModels/Models/IRoleModel.cs
Normal file
13
Canteen/CanteenDataModels/Models/IRoleModel.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface IRoleModel : IId
|
||||
{
|
||||
string RoleName { get; }
|
||||
}
|
||||
}
|
15
Canteen/CanteenDataModels/Models/ITablewareModel.cs
Normal file
15
Canteen/CanteenDataModels/Models/ITablewareModel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface ITablewareModel : IId
|
||||
{
|
||||
string TablewareName { get; }
|
||||
int ClientId { get; }
|
||||
int OrderId { get; }
|
||||
}
|
||||
}
|
17
Canteen/CanteenDataModels/Models/IVisitorModel.cs
Normal file
17
Canteen/CanteenDataModels/Models/IVisitorModel.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CanteenDataModels.Models
|
||||
{
|
||||
public interface IVisitorModel : IId
|
||||
{
|
||||
string FIO { get; }
|
||||
string Login { get; }
|
||||
string Password { get; }
|
||||
string PhoneNumber { get; }
|
||||
int RoleId { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user