DataModels (recovery ешкин матрешкин..)
This commit is contained in:
parent
927e1223ca
commit
082eadcf1b
@ -5,6 +5,8 @@ VisualStudioVersion = 17.9.34723.18
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeautyStudioView", "BeautyStudioView\BeautyStudioView.csproj", "{DCC3ADED-6BBE-4B54-AADB-59237361F601}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BeautyStudioDataModels", "BeautyStudioDataModels\BeautyStudioDataModels.csproj", "{7C1604C6-4223-47A7-B651-687BBF19704B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@ -15,6 +17,10 @@ Global
|
||||
{DCC3ADED-6BBE-4B54-AADB-59237361F601}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{DCC3ADED-6BBE-4B54-AADB-59237361F601}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{DCC3ADED-6BBE-4B54-AADB-59237361F601}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{7C1604C6-4223-47A7-B651-687BBF19704B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{7C1604C6-4223-47A7-B651-687BBF19704B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{7C1604C6-4223-47A7-B651-687BBF19704B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{7C1604C6-4223-47A7-B651-687BBF19704B}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
16
BeautyStudio/BeautyStudioDataModels/Enums/OrderStatus.cs
Normal file
16
BeautyStudio/BeautyStudioDataModels/Enums/OrderStatus.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BeautyStudioDataModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принято = 0,
|
||||
Отклонено = 1,
|
||||
Выполнено = 2
|
||||
}
|
||||
}
|
8
BeautyStudio/BeautyStudioDataModels/IId.cs
Normal file
8
BeautyStudio/BeautyStudioDataModels/IId.cs
Normal file
@ -0,0 +1,8 @@
|
||||
|
||||
namespace BeautyStudioDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
17
BeautyStudio/BeautyStudioDataModels/Models/IClientModel.cs
Normal file
17
BeautyStudio/BeautyStudioDataModels/Models/IClientModel.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BeautyStudioDataModels.Models
|
||||
{
|
||||
public interface IClientModel : IId
|
||||
{
|
||||
string ClientFIO { get; }
|
||||
string ClientEmail { get; }
|
||||
string ClientPhone { get; }
|
||||
string ClientLogin { get; set; }
|
||||
string ClientPassword { get; }
|
||||
}
|
||||
}
|
16
BeautyStudio/BeautyStudioDataModels/Models/ICosmeticModel.cs
Normal file
16
BeautyStudio/BeautyStudioDataModels/Models/ICosmeticModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BeautyStudioDataModels.Models
|
||||
{
|
||||
public interface ICosmeticModel : IId
|
||||
{
|
||||
string CosmeticName { get; }
|
||||
double CosmeticPrice { get; }
|
||||
int StoreKeeperId { get; }
|
||||
int LaborCostId { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BeautyStudioDataModels.Models
|
||||
{
|
||||
public interface ILaborCostModel : IId
|
||||
{
|
||||
int TimeSpent { get; }
|
||||
int StaffId { get; }
|
||||
}
|
||||
}
|
21
BeautyStudio/BeautyStudioDataModels/Models/IOrderModel.cs
Normal file
21
BeautyStudio/BeautyStudioDataModels/Models/IOrderModel.cs
Normal file
@ -0,0 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using BeautyStudioDataModels.Enums;
|
||||
|
||||
namespace BeautyStudioDataModels.Models
|
||||
{
|
||||
public interface IOrderModel : IId
|
||||
{
|
||||
double Sum { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateComplete { get; }
|
||||
OrderStatus Status { get; }
|
||||
int ClientId { get; }
|
||||
int ServiceId { get; }
|
||||
int? StaffId { get; }
|
||||
}
|
||||
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BeautyStudioDataModels.Models
|
||||
{
|
||||
public interface IProcedureModel : IId
|
||||
{
|
||||
string ProcedureName { get; }
|
||||
double ProcedureCost { get; }
|
||||
string ProcedureDescription { get; }
|
||||
}
|
||||
}
|
16
BeautyStudio/BeautyStudioDataModels/Models/IServiceModel.cs
Normal file
16
BeautyStudio/BeautyStudioDataModels/Models/IServiceModel.cs
Normal file
@ -0,0 +1,16 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Security.Authentication.ExtendedProtection;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BeautyStudioDataModels.Models
|
||||
{
|
||||
public interface IServiceModel : IId
|
||||
{
|
||||
string ServiceName { get; }
|
||||
double Sum { get; }
|
||||
int StaffId { get; }
|
||||
}
|
||||
}
|
17
BeautyStudio/BeautyStudioDataModels/Models/IStaffModel.cs
Normal file
17
BeautyStudio/BeautyStudioDataModels/Models/IStaffModel.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BeautyStudioDataModels.Models
|
||||
{
|
||||
public interface IStaffModel : IId
|
||||
{
|
||||
string StaffFIO { get; }
|
||||
string StaffLogin { get; }
|
||||
string StaffPassword { get; }
|
||||
string StaffEmail { get; }
|
||||
string StaffPhone { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace BeautyStudioDataModels.Models
|
||||
{
|
||||
public interface IStoreKeeperModel : IId
|
||||
{
|
||||
string StoreKeeperFIO { get; }
|
||||
string StoreKeeperLogin { get; }
|
||||
string StoreKeeperPassword { get; }
|
||||
string StoreKeeperEmail { get; }
|
||||
string StoreKeeperPhone { get; }
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user