Созданы Binding модели
This commit is contained in:
parent
0ce8124495
commit
b63d5b4685
@ -7,6 +7,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "AircraftPlant", "AircraftPl
|
|||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantDataModels", "AircraftPlantDataModels\AircraftPlantDataModels.csproj", "{F35C01BC-BCB8-4870-8143-529291F7AD5D}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantDataModels", "AircraftPlantDataModels\AircraftPlantDataModels.csproj", "{F35C01BC-BCB8-4870-8143-529291F7AD5D}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AircraftPlantContracts", "AircraftPlantContracts\AircraftPlantContracts.csproj", "{ECC2CC21-2172-4E1A-8806-CD3EFDC33F12}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -21,6 +23,10 @@ Global
|
|||||||
{F35C01BC-BCB8-4870-8143-529291F7AD5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{F35C01BC-BCB8-4870-8143-529291F7AD5D}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{F35C01BC-BCB8-4870-8143-529291F7AD5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{F35C01BC-BCB8-4870-8143-529291F7AD5D}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{F35C01BC-BCB8-4870-8143-529291F7AD5D}.Release|Any CPU.Build.0 = Release|Any CPU
|
{F35C01BC-BCB8-4870-8143-529291F7AD5D}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{ECC2CC21-2172-4E1A-8806-CD3EFDC33F12}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{ECC2CC21-2172-4E1A-8806-CD3EFDC33F12}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{ECC2CC21-2172-4E1A-8806-CD3EFDC33F12}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{ECC2CC21-2172-4E1A-8806-CD3EFDC33F12}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
@ -0,0 +1,21 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\AircraftPlantDataModels\AircraftPlantDataModels.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Folder Include="BindingModels\" />
|
||||||
|
<Folder Include="BusinessLogicsContracts\" />
|
||||||
|
<Folder Include="SearchModels\" />
|
||||||
|
<Folder Include="StoragesContracts\" />
|
||||||
|
<Folder Include="ViewModels\" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
@ -0,0 +1,18 @@
|
|||||||
|
using AircraftPlantDataModels.Models;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace AircraftPlantContracts.BindingModels
|
||||||
|
{
|
||||||
|
internal class ComponentBindingModel : IComponentModel
|
||||||
|
{
|
||||||
|
public string ComponentName { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public double Cost { get; set; }
|
||||||
|
|
||||||
|
public int Id { get; set; }
|
||||||
|
}
|
||||||
|
}
|
27
AircraftPlant/AircraftPlantContracts/OrderBindingModel.cs
Normal file
27
AircraftPlant/AircraftPlantContracts/OrderBindingModel.cs
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
using AircraftPlantDataModels.Enums;
|
||||||
|
using AircraftPlantDataModels.Models;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace AircraftPlantContracts.BindingModels
|
||||||
|
{
|
||||||
|
internal class OrderBindingModel : IOrderModel
|
||||||
|
{
|
||||||
|
public int PlaneId { 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; }
|
||||||
|
}
|
||||||
|
}
|
20
AircraftPlant/AircraftPlantContracts/PlaneBindingModel.cs
Normal file
20
AircraftPlant/AircraftPlantContracts/PlaneBindingModel.cs
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
using AircraftPlantDataModels.Models;
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
|
namespace AircraftPlantContracts.BindingModels
|
||||||
|
{
|
||||||
|
internal class PlaneBindingModel : IPlaneModel
|
||||||
|
{
|
||||||
|
public string PlaneName { get; set; } = string.Empty;
|
||||||
|
|
||||||
|
public double Price { get; set; }
|
||||||
|
|
||||||
|
public Dictionary<int, (IComponentModel, int)> PlaneComponents { get; set; } = new();
|
||||||
|
|
||||||
|
public int Id { get; set; }
|
||||||
|
}
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user