Добавление DataModels
This commit is contained in:
parent
108c48d5a4
commit
be9c89db06
@ -5,6 +5,8 @@ VisualStudioVersion = 17.3.32825.248
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FurnitureFactoryView", "FurnitureFactoryView\FurnitureFactoryView.csproj", "{424025BA-99E8-4B7E-AC7C-CCF9F9BCE5F4}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FurnitureFactoryDataModels", "FurnitureFactoryDataModels\FurnitureFactoryDataModels.csproj", "{097184BE-A548-4FC7-910F-37805AEF97AD}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -15,6 +17,10 @@ Global
|
||||
{424025BA-99E8-4B7E-AC7C-CCF9F9BCE5F4}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{424025BA-99E8-4B7E-AC7C-CCF9F9BCE5F4}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{424025BA-99E8-4B7E-AC7C-CCF9F9BCE5F4}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{097184BE-A548-4FC7-910F-37805AEF97AD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{097184BE-A548-4FC7-910F-37805AEF97AD}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{097184BE-A548-4FC7-910F-37805AEF97AD}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{097184BE-A548-4FC7-910F-37805AEF97AD}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryDataModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принят = 0,
|
||||
Выполняется = 1,
|
||||
Готов = 2,
|
||||
Выдан = 3
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryDataModels.Enums
|
||||
{
|
||||
public enum PaymentStatus
|
||||
{
|
||||
Неоплачен = -1,
|
||||
Частично = 0,
|
||||
Оплачен = 1
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
13
FurnitureFactory/FurnitureFactoryDataModels/IId.cs
Normal file
13
FurnitureFactory/FurnitureFactoryDataModels/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 FurnitureFactoryDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryDataModels.Models
|
||||
{
|
||||
public interface IClientModel : IId
|
||||
{
|
||||
string ClientFIO { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryDataModels.Models
|
||||
{
|
||||
public interface IEmployeeModel : IId
|
||||
{
|
||||
string EmployeeFIO { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryDataModels.Models
|
||||
{
|
||||
public interface IFurnitureModel : IId
|
||||
{
|
||||
string FurnitureName { get; }
|
||||
double FurniturePrice { get; }
|
||||
Dictionary<int, (IMaterialModel, int)> FurnitureMaterials { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryDataModels.Models
|
||||
{
|
||||
public interface IMaterialModel : IId
|
||||
{
|
||||
string MaretialName { get; }
|
||||
double MaterialCost { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
using FurnitureFactoryDataModels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryDataModels.Models
|
||||
{
|
||||
public interface IOrderModel : IId
|
||||
{
|
||||
int ClientId { get; }
|
||||
int? EmployeeId { get; }
|
||||
int FurnitureId { get; }
|
||||
int FurnitureCount { get; }
|
||||
double OrderPrice { get; }
|
||||
OrderStatus OStatus { get; }
|
||||
PaymentStatus PStatus { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
Dictionary<int, (IFurnitureModel, int)> OrderFurnitures { get; }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user