DataModels (recovery ешкин матрешкин..)

This commit is contained in:
Никита Волков 2024-05-03 21:31:07 +04:00
parent 927e1223ca
commit 082eadcf1b
12 changed files with 172 additions and 0 deletions

View File

@ -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

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

@ -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
}
}

View File

@ -0,0 +1,8 @@

namespace BeautyStudioDataModels
{
public interface IId
{
int Id { get; }
}
}

View 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; }
}
}

View 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; }
}
}

View File

@ -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; }
}
}

View 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; }
}
}

View File

@ -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; }
}
}

View 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; }
}
}

View 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; }
}
}

View 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 IStoreKeeperModel : IId
{
string StoreKeeperFIO { get; }
string StoreKeeperLogin { get; }
string StoreKeeperPassword { get; }
string StoreKeeperEmail { get; }
string StoreKeeperPhone { get; }
}
}