Merge pull request 'Создание моделей роли исполнитель' (#1) from Создание_моделей into main

Reviewed-on: #1
This commit is contained in:
YakovlevMaxim 2024-04-17 12:31:08 +04:00
commit dd5bde25dc
6 changed files with 87 additions and 5 deletions

View File

@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceStationDataModels.Enums
{
public enum Status
{
Неизвестен = -1,
Принят = 0,
Выполняется = 1,
Готов = 2,
Выдан = 3
}
}

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceStationDataModels.Models
{
public interface ICarModel : IId
{
string CarNumber { get; }
string CarBrand { get; }
int ExecutorId { get; }
public Dictionary<int, IDefectModel> CarDefects { get; }
public Dictionary<int, ITechnicalWorkModel> CarTechnicalWorks { get; }
}
}

View File

@ -0,0 +1,17 @@
using ServiceStationDataModels.Enums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceStationDataModels.Models
{
public interface IDefectModel : IId
{
string DefectType { get; }
Status DefectStatus { get; }
double DefectPrice { get; }
int ExecutorId { get; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceStationDataModels.Models
{
public interface IExecutorModel : IId
{
string ExecutorFIO { get; }
string ExecutorEmail { get; }
string ExecutorPassword { get; }
string ExecutorNumber { get; }
}
}

View File

@ -0,0 +1,16 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceStationDataModels.Models
{
public interface ITechnicalWorkModel : IId
{
string WorkType { get; }
DateTime DateLastWork { get; }
double WorkPrice { get; }
int ExecutorId { get; }
}
}

View File

@ -6,9 +6,4 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<Folder Include="Enums\" />
<Folder Include="Models\" />
</ItemGroup>
</Project>