Создание моделей роли исполнитель
This commit is contained in:
parent
e653fdca68
commit
617a9d019d
21
ServiceStation/ServiceStationDataModels/Enums/Status.cs
Normal file
21
ServiceStation/ServiceStationDataModels/Enums/Status.cs
Normal 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
|
||||||
|
}
|
||||||
|
}
|
17
ServiceStation/ServiceStationDataModels/Models/ICarModel.cs
Normal file
17
ServiceStation/ServiceStationDataModels/Models/ICarModel.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.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; }
|
||||||
|
}
|
||||||
|
}
|
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
@ -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; }
|
||||||
|
}
|
||||||
|
}
|
@ -6,9 +6,4 @@
|
|||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Folder Include="Enums\" />
|
|
||||||
<Folder Include="Models\" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user