diff --git a/ServiceStation/ServiceStationDataModels/Enums/Status.cs b/ServiceStation/ServiceStationDataModels/Enums/Status.cs new file mode 100644 index 0000000..20b7d0d --- /dev/null +++ b/ServiceStation/ServiceStationDataModels/Enums/Status.cs @@ -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 + } +} diff --git a/ServiceStation/ServiceStationDataModels/Models/ICarModel.cs b/ServiceStation/ServiceStationDataModels/Models/ICarModel.cs new file mode 100644 index 0000000..933e37e --- /dev/null +++ b/ServiceStation/ServiceStationDataModels/Models/ICarModel.cs @@ -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 CarDefects { get; } + public Dictionary CarTechnicalWorks { get; } + } +} diff --git a/ServiceStation/ServiceStationDataModels/Models/IDefectModel.cs b/ServiceStation/ServiceStationDataModels/Models/IDefectModel.cs new file mode 100644 index 0000000..4484c2d --- /dev/null +++ b/ServiceStation/ServiceStationDataModels/Models/IDefectModel.cs @@ -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; } + } +} diff --git a/ServiceStation/ServiceStationDataModels/Models/IExecutorModel.cs b/ServiceStation/ServiceStationDataModels/Models/IExecutorModel.cs new file mode 100644 index 0000000..7327863 --- /dev/null +++ b/ServiceStation/ServiceStationDataModels/Models/IExecutorModel.cs @@ -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; } + } +} diff --git a/ServiceStation/ServiceStationDataModels/Models/ITechnicalWorkModel.cs b/ServiceStation/ServiceStationDataModels/Models/ITechnicalWorkModel.cs new file mode 100644 index 0000000..0e18d8b --- /dev/null +++ b/ServiceStation/ServiceStationDataModels/Models/ITechnicalWorkModel.cs @@ -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; } + } +} diff --git a/ServiceStation/ServiceStationDataModels/ServiceStationDataModels.csproj b/ServiceStation/ServiceStationDataModels/ServiceStationDataModels.csproj index 7264f69..132c02c 100644 --- a/ServiceStation/ServiceStationDataModels/ServiceStationDataModels.csproj +++ b/ServiceStation/ServiceStationDataModels/ServiceStationDataModels.csproj @@ -6,9 +6,4 @@ enable - - - - -