Созданы интерфейсы - модели данных
This commit is contained in:
parent
9c57996621
commit
a5e010ed3d
@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.2.32616.157
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LawFirm", "LawFirm\LawFirm.csproj", "{9CAD54F8-62BE-4E4B-9F97-8B4DD21896B1}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LawFirm", "LawFirm\LawFirm.csproj", "{9CAD54F8-62BE-4E4B-9F97-8B4DD21896B1}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LawFirmDataModels", "LawFirmDataModels\LawFirmDataModels.csproj", "{E30F4943-0DB0-4715-881F-BC23EBAAF573}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -15,6 +17,10 @@ Global
|
||||
{9CAD54F8-62BE-4E4B-9F97-8B4DD21896B1}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9CAD54F8-62BE-4E4B-9F97-8B4DD21896B1}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9CAD54F8-62BE-4E4B-9F97-8B4DD21896B1}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{E30F4943-0DB0-4715-881F-BC23EBAAF573}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{E30F4943-0DB0-4715-881F-BC23EBAAF573}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{E30F4943-0DB0-4715-881F-BC23EBAAF573}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{E30F4943-0DB0-4715-881F-BC23EBAAF573}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
17
LawFirm/LawFirmDataModels/Enums/OrderStatus.cs
Normal file
17
LawFirm/LawFirmDataModels/Enums/OrderStatus.cs
Normal file
@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawFirmDataModels.Enums
|
||||
{
|
||||
public enum OrderStatus
|
||||
{
|
||||
Неизвестен = -1,
|
||||
Принят = 0,
|
||||
Выполняется = 1,
|
||||
Готов = 2,
|
||||
Выдан = 3,
|
||||
}
|
||||
}
|
13
LawFirm/LawFirmDataModels/IId.cs
Normal file
13
LawFirm/LawFirmDataModels/IId.cs
Normal file
@ -0,0 +1,13 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawFirmDataModels
|
||||
{
|
||||
public interface IId
|
||||
{
|
||||
int Id { get; }
|
||||
}
|
||||
}
|
9
LawFirm/LawFirmDataModels/LawFirmDataModels.csproj
Normal file
9
LawFirm/LawFirmDataModels/LawFirmDataModels.csproj
Normal file
@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
14
LawFirm/LawFirmDataModels/Models/IBlankModel.cs
Normal file
14
LawFirm/LawFirmDataModels/Models/IBlankModel.cs
Normal file
@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawFirmDataModels.Models
|
||||
{
|
||||
public interface IBlankModel : IId
|
||||
{
|
||||
string BlankName { get; }
|
||||
double Cost { get; }
|
||||
}
|
||||
}
|
15
LawFirm/LawFirmDataModels/Models/IDocumentModel.cs
Normal file
15
LawFirm/LawFirmDataModels/Models/IDocumentModel.cs
Normal file
@ -0,0 +1,15 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawFirmDataModels.Models
|
||||
{
|
||||
public interface IDocumentModel : IId
|
||||
{
|
||||
string DocumentName { get; }
|
||||
double Price { get; }
|
||||
Dictionary<int, (IBlankModel, int)> DocumentBlanks { get; }
|
||||
}
|
||||
}
|
20
LawFirm/LawFirmDataModels/Models/IOrderModel.cs
Normal file
20
LawFirm/LawFirmDataModels/Models/IOrderModel.cs
Normal file
@ -0,0 +1,20 @@
|
||||
using LawFirmDataModels.Enums;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawFirmDataModels.Models
|
||||
{
|
||||
public interface IOrderModel : IId
|
||||
{
|
||||
int DocumentId { get; }
|
||||
int Count { get; }
|
||||
double Sum { get; }
|
||||
OrderStatus Status { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user