DataModels Complete
This commit is contained in:
parent
d4b11a5986
commit
bff0ac3cef
@ -0,0 +1,7 @@
|
||||
namespace CarCenterDataModels.HelperInterfaces
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
15
ServiceStation/SericeStationDataModels/ICategoryWorkModel.cs
Normal file
15
ServiceStation/SericeStationDataModels/ICategoryWorkModel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using CarCenterDataModels.HelperInterfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServiceStationDataModels
|
||||
{
|
||||
public interface ICategoryWorkModel: IId
|
||||
{
|
||||
string Name { get; }
|
||||
int ExecutorId { get; }
|
||||
}
|
||||
}
|
15
ServiceStation/SericeStationDataModels/IClientModel.cs
Normal file
15
ServiceStation/SericeStationDataModels/IClientModel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using CarCenterDataModels.HelperInterfaces;
|
||||
|
||||
namespace CarCenterDataModels
|
||||
{
|
||||
public interface IClientModel : IId
|
||||
{
|
||||
string FirstName { get; }
|
||||
string LastName { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
string PhoneNumber { get; }
|
||||
string Login { get; }
|
||||
int Point { get; }
|
||||
}
|
||||
}
|
19
ServiceStation/SericeStationDataModels/IExecutorModel.cs
Normal file
19
ServiceStation/SericeStationDataModels/IExecutorModel.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using CarCenterDataModels.HelperInterfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServiceStationDataModels
|
||||
{
|
||||
public interface IExecutorModel : IId
|
||||
{
|
||||
string FirstName { get; }
|
||||
string LastName { get; }
|
||||
string Email { get; }
|
||||
string Password { get; }
|
||||
string PhoneNumber { get; }
|
||||
string Login { get; }
|
||||
}
|
||||
}
|
14
ServiceStation/SericeStationDataModels/IReportModel.cs
Normal file
14
ServiceStation/SericeStationDataModels/IReportModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using CarCenterDataModels.HelperInterfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServiceStationDataModels
|
||||
{
|
||||
public interface IReportModel : IId
|
||||
{
|
||||
int Count { get; }
|
||||
}
|
||||
}
|
19
ServiceStation/SericeStationDataModels/IWorkModel.cs
Normal file
19
ServiceStation/SericeStationDataModels/IWorkModel.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using CarCenterDataModels.HelperInterfaces;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServiceStationDataModels
|
||||
{
|
||||
public interface IWorkModel : IId
|
||||
{
|
||||
DateTime Date { get; }
|
||||
int Price { get; }
|
||||
WorkStatus Status { get; }
|
||||
int ExecutorId { get; }
|
||||
int ReportId { get; }
|
||||
int CategoryWorkId { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
17
ServiceStation/SericeStationDataModels/WorkStatus.cs
Normal file
17
ServiceStation/SericeStationDataModels/WorkStatus.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServiceStationDataModels
|
||||
{
|
||||
public enum WorkStatus
|
||||
{
|
||||
Неизвестно = -1,
|
||||
Принят = 0,
|
||||
Выполняется = 1,
|
||||
Готов = 2,
|
||||
Выдан = 3
|
||||
}
|
||||
}
|
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.6.33717.318
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServiceStation", "ServiceStation\ServiceStation.csproj", "{3071CADC-9EED-4B15-A2AD-9B45C3C4A8EB}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServiceStationDataModels", "CarCenterDataModels\ServiceStationDataModels.csproj", "{779B3180-CB6B-4292-B7F1-8E50733E780B}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -11,10 +11,10 @@ Global
|
||||
Release|Any CPU = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(ProjectConfigurationPlatforms) = postSolution
|
||||
{3071CADC-9EED-4B15-A2AD-9B45C3C4A8EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{3071CADC-9EED-4B15-A2AD-9B45C3C4A8EB}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{3071CADC-9EED-4B15-A2AD-9B45C3C4A8EB}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{3071CADC-9EED-4B15-A2AD-9B45C3C4A8EB}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{779B3180-CB6B-4292-B7F1-8E50733E780B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{779B3180-CB6B-4292-B7F1-8E50733E780B}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{779B3180-CB6B-4292-B7F1-8E50733E780B}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{779B3180-CB6B-4292-B7F1-8E50733E780B}.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>net7.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
Loading…
Reference in New Issue
Block a user