Реализация слоя моделей для роли "Поручитель" #3

Merged
TabeevAlexander merged 1 commits from Создание_моделей_роль_поручитель into main 2024-04-27 15:13:35 +04:00
6 changed files with 104 additions and 4 deletions

View File

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

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 WorkStatus
{
Неизвестен = -1,
Принята = 0,
Выполняется = 1,
Готова = 2,
Завершена = 3
}
}

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 IGuarantorModel : IId
{
string GuarantorFIO { get; }
string GuarantorEmail { get; }
string GuarantorPassword { get; }
string GuarantorNumber { get; }
}
}

View 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 IRepairModel : IId
{
string RepairName { get; }
Enums.RepairStatus Status { get; }
double RepairCost { get; }
int GuarantorId { get; }
int DefectId { get; }
public Dictionary<int, ISparePartModel> RepairSpareParts { get; }
}
}

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 ISparePartModel : IId
{
string SparePartName { get; }
double SparePartPrice { get; }
int GuarantorId { get; }
}
}

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