Созданы Binding модели
This commit is contained in:
parent
a5e010ed3d
commit
73ab10abd1
@ -5,7 +5,9 @@ VisualStudioVersion = 17.2.32616.157
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
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}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LawFirmDataModels", "LawFirmDataModels\LawFirmDataModels.csproj", "{E30F4943-0DB0-4715-881F-BC23EBAAF573}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LawFirmContracts", "LawFirmContracts\LawFirmContracts.csproj", "{0BFA7B8D-BA92-4DA4-9477-144606DFFF96}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
@ -21,6 +23,10 @@ Global
|
||||
{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
|
||||
{0BFA7B8D-BA92-4DA4-9477-144606DFFF96}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{0BFA7B8D-BA92-4DA4-9477-144606DFFF96}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{0BFA7B8D-BA92-4DA4-9477-144606DFFF96}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{0BFA7B8D-BA92-4DA4-9477-144606DFFF96}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
18
LawFirm/LawFirmContracts/BindingModels/BlankBindingModel.cs
Normal file
18
LawFirm/LawFirmContracts/BindingModels/BlankBindingModel.cs
Normal file
@ -0,0 +1,18 @@
|
||||
using LawFirmDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawFirmContracts.BindingModels
|
||||
{
|
||||
internal class BlankBindingModel : IBlankModel
|
||||
{
|
||||
public string BlankName { get; set; } = string.Empty;
|
||||
|
||||
public double Cost { get; set; }
|
||||
|
||||
public int Id {get; set;}
|
||||
}
|
||||
}
|
@ -0,0 +1,20 @@
|
||||
using LawFirmDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawFirmContracts.BindingModels
|
||||
{
|
||||
internal class DocumentBindingModel : IDocumentModel
|
||||
{
|
||||
public string DocumentName {get; set;} = string.Empty;
|
||||
|
||||
public double Price { get; set; }
|
||||
|
||||
public Dictionary<int, (IBlankModel, int)> DocumentBlanks { get; set; } = new();
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
27
LawFirm/LawFirmContracts/BindingModels/OrderBindingModel.cs
Normal file
27
LawFirm/LawFirmContracts/BindingModels/OrderBindingModel.cs
Normal file
@ -0,0 +1,27 @@
|
||||
using LawFirmDataModels.Enums;
|
||||
using LawFirmDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace LawFirmContracts.BindingModels
|
||||
{
|
||||
internal class OrderBindingModel : IOrderModel
|
||||
{
|
||||
public int DocumentId { get; set; }
|
||||
|
||||
public int Count { get; set; }
|
||||
|
||||
public double Sum { get; set; }
|
||||
|
||||
public OrderStatus Status { get; set; } = OrderStatus.Неизвестен;
|
||||
|
||||
public DateTime DateCreate { get; set; } = DateTime.Now;
|
||||
|
||||
public DateTime? DateImplement { get; set; }
|
||||
|
||||
public int Id { get; set; }
|
||||
}
|
||||
}
|
9
LawFirm/LawFirmContracts/LawFirmContracts.csproj
Normal file
9
LawFirm/LawFirmContracts/LawFirmContracts.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>
|
Loading…
Reference in New Issue
Block a user