diff --git a/LawCompany/LawCompany/Enums/CaseStatus.cs b/LawCompany/LawCompany/Enums/CaseStatus.cs index 84e5d36..65e52d4 100644 --- a/LawCompany/LawCompany/Enums/CaseStatus.cs +++ b/LawCompany/LawCompany/Enums/CaseStatus.cs @@ -1,12 +1,11 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace LawCompanyDataModels.Enums +namespace LawCompanyDataModels.Enums { - internal class CaseStatus + public enum CaseStatus { + Неизвестен = -1, + Принято = 0, + АнализДелаИПодготовкаДокументов = 1, + СлушанияДела = 2, + ЗакрытиеДела = 3 } } diff --git a/LawCompany/LawCompany/IId.cs b/LawCompany/LawCompany/IId.cs index d4638a6..0db43c3 100644 --- a/LawCompany/LawCompany/IId.cs +++ b/LawCompany/LawCompany/IId.cs @@ -1,12 +1,7 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace LawCompanyDataModels +namespace LawCompanyDataModels { - internal class IId + public interface IId { + int Id { get; } } } diff --git a/LawCompany/LawCompany/LawCompanyDataModels.csproj b/LawCompany/LawCompany/LawCompanyDataModels.csproj index 132c02c..27ac386 100644 --- a/LawCompany/LawCompany/LawCompanyDataModels.csproj +++ b/LawCompany/LawCompany/LawCompanyDataModels.csproj @@ -1,4 +1,4 @@ - + net6.0 diff --git a/LawCompany/LawCompany/Models/ICaseModel.cs b/LawCompany/LawCompany/Models/ICaseModel.cs index e121c00..9cb1a9f 100644 --- a/LawCompany/LawCompany/Models/ICaseModel.cs +++ b/LawCompany/LawCompany/Models/ICaseModel.cs @@ -1,12 +1,14 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; +using LawCompanyDataModels.Enums; namespace LawCompanyDataModels.Models { - internal class ICaseModel + public interface ICaseModel : IId { + Dictionary CaseClients { get; } + string Name { get; } + CaseStatus Status { get; } + string CaseType { get; } + DateTime DateCreate { get; } + DateTime? DateImplement { get; } } } diff --git a/LawCompany/LawCompany/Models/IClientModel.cs b/LawCompany/LawCompany/Models/IClientModel.cs index 28bd026..795b2f7 100644 --- a/LawCompany/LawCompany/Models/IClientModel.cs +++ b/LawCompany/LawCompany/Models/IClientModel.cs @@ -1,12 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace LawCompanyDataModels.Models +namespace LawCompanyDataModels.Models { - internal class IClientModel + public interface IClientModel : IId { + string FIO { get; } + string Phone { get; } + string Email { get; } } } diff --git a/LawCompany/LawCompany/Models/IVisitModel.cs b/LawCompany/LawCompany/Models/IVisitModel.cs index 3455101..c804a05 100644 --- a/LawCompany/LawCompany/Models/IVisitModel.cs +++ b/LawCompany/LawCompany/Models/IVisitModel.cs @@ -1,12 +1,9 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace LawCompanyDataModels.Models +namespace LawCompanyDataModels.Models { - internal class IVisitModel + public interface IVisitModel : IId { + Dictionary VisitClients { get; } + DateTime VisitDate { get; } + int HearingId { get; } } }