Реализация слоя моделей для роли "Поручитель" #3
@ -6,16 +6,16 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace ServiceStationDataModels.Enums
|
||||
{
|
||||
public enum Status
|
||||
public enum RepairStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
|
||||
Принят = 0,
|
||||
Запланирован = 0,
|
||||
|
||||
Выполняется = 1,
|
||||
|
||||
Готов = 2,
|
||||
Завершен = 2,
|
||||
|
||||
Выдан = 3
|
||||
Закрыт = 3
|
||||
}
|
||||
}
|
21
ServiceStation/ServiceStationDataModels/Enums/WorkStatus.cs
Normal file
21
ServiceStation/ServiceStationDataModels/Enums/WorkStatus.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 WorkStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
|
||||
Принята = 0,
|
||||
|
||||
Выполняется = 1,
|
||||
|
||||
Готова = 2,
|
||||
|
||||
Завершена = 3
|
||||
}
|
||||
}
|
@ -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 IGuarantorModel : IId
|
||||
{
|
||||
string GuarantorFIO { get; }
|
||||
string GuarantorEmail { get; }
|
||||
string GuarantorPassword { get; }
|
||||
string GuarantorNumber { get; }
|
||||
}
|
||||
}
|
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServiceStationDataModels.Models
|
||||
{
|
||||
public interface IRepairModel : IId
|
||||
{
|
||||
string RepairName { get; }
|
||||
|
||||
Enums.RepairStatus Status { get; }
|
||||
|
||||
double RepairCost { get; }
|
||||
|
||||
int GuarantorId { get; }
|
||||
|
||||
int DefectId { get; }
|
||||
|
||||
public Dictionary<int, ISparePartModel> RepairSpareParts { get; }
|
||||
}
|
||||
}
|
@ -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 ISparePartModel : IId
|
||||
{
|
||||
string SparePartName { get; }
|
||||
|
||||
double SparePartPrice { get; }
|
||||
|
||||
int GuarantorId { get; }
|
||||
}
|
||||
}
|
23
ServiceStation/ServiceStationDataModels/Models/IWorkModel.cs
Normal file
23
ServiceStation/ServiceStationDataModels/Models/IWorkModel.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ServiceStationDataModels.Models
|
||||
{
|
||||
public interface IWorkModel : IId
|
||||
{
|
||||
string WorkName { get; }
|
||||
|
||||
Enums.WorkStatus Status { get; }
|
||||
|
||||
double WorkPrice { get; }
|
||||
|
||||
int GuarantorId { get; }
|
||||
|
||||
int TechnicalWorkId { get; }
|
||||
|
||||
public Dictionary<int, ISparePartModel> WorkSpareParts { get; }
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user