DataModels Complete

This commit is contained in:
RavilGismatullin 2024-04-30 00:49:32 +03:00
parent d4b11a5986
commit bff0ac3cef
10 changed files with 129 additions and 5 deletions

View File

@ -0,0 +1,7 @@
namespace CarCenterDataModels.HelperInterfaces
{
public interface IId
{
int Id { get; }
}
}

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

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

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

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

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

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>

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

View File

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

View File

@ -0,0 +1,9 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>