fix views
This commit is contained in:
parent
cdff9cd481
commit
3dc7f5186d
@ -5,6 +5,10 @@ VisualStudioVersion = 17.9.34723.18
|
|||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CarShowroomDataModels", "CarShowroomDataModels\CarShowroomDataModels.csproj", "{7EECD77A-5D26-4093-85B0-F2D33C6F0C2C}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CarShowroomDataModels", "CarShowroomDataModels\CarShowroomDataModels.csproj", "{7EECD77A-5D26-4093-85B0-F2D33C6F0C2C}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CarShowroomContracts", "CarShowroomContracts\CarShowroomContracts.csproj", "{6274B5CD-C339-4FD3-AC45-DE8384AD4CB7}"
|
||||||
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CarShowroomDatabaseStorage", "CarShowroomDatabaseStorage\CarShowroomDatabaseStorage.csproj", "{7F0A0E4D-6EFD-459D-AFFF-99F3185243F8}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@ -15,6 +19,14 @@ Global
|
|||||||
{7EECD77A-5D26-4093-85B0-F2D33C6F0C2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{7EECD77A-5D26-4093-85B0-F2D33C6F0C2C}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{7EECD77A-5D26-4093-85B0-F2D33C6F0C2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{7EECD77A-5D26-4093-85B0-F2D33C6F0C2C}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{7EECD77A-5D26-4093-85B0-F2D33C6F0C2C}.Release|Any CPU.Build.0 = Release|Any CPU
|
{7EECD77A-5D26-4093-85B0-F2D33C6F0C2C}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{6274B5CD-C339-4FD3-AC45-DE8384AD4CB7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{6274B5CD-C339-4FD3-AC45-DE8384AD4CB7}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{6274B5CD-C339-4FD3-AC45-DE8384AD4CB7}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{6274B5CD-C339-4FD3-AC45-DE8384AD4CB7}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{7F0A0E4D-6EFD-459D-AFFF-99F3185243F8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{7F0A0E4D-6EFD-459D-AFFF-99F3185243F8}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{7F0A0E4D-6EFD-459D-AFFF-99F3185243F8}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{7F0A0E4D-6EFD-459D-AFFF-99F3185243F8}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
13
CarShowroom/CarShowroomContracts/CarShowroomContracts.csproj
Normal file
13
CarShowroom/CarShowroomContracts/CarShowroomContracts.csproj
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\CarShowroomDataModels\CarShowroomDataModels.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
7
CarShowroom/CarShowroomContracts/Class1.cs
Normal file
7
CarShowroom/CarShowroomContracts/Class1.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace CarShowroomContracts
|
||||||
|
{
|
||||||
|
public class Class1
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
@ -19,6 +19,8 @@ namespace CarShowroomContracts.Dtos
|
|||||||
public int ModelId { get; set; }
|
public int ModelId { get; set; }
|
||||||
[DisplayName("Модель")]
|
[DisplayName("Модель")]
|
||||||
public string ModelName { get; set; } = string.Empty;
|
public string ModelName { get; set; } = string.Empty;
|
||||||
|
[DisplayName("Цена")]
|
||||||
|
public int ModelPrice { get; set; }
|
||||||
[DisplayName("Марка")]
|
[DisplayName("Марка")]
|
||||||
public string MakeName { get; set; } = string.Empty;
|
public string MakeName { get; set; } = string.Empty;
|
||||||
public CarView(ICar model)
|
public CarView(ICar model)
|
||||||
|
@ -23,9 +23,21 @@ namespace CarShowroomDataModels.Dtos
|
|||||||
public int EmployeeId { get; set; }
|
public int EmployeeId { get; set; }
|
||||||
[DisplayName("Сотрудник")]
|
[DisplayName("Сотрудник")]
|
||||||
public string EmployeeName { get; set; } = string.Empty;
|
public string EmployeeName { get; set; } = string.Empty;
|
||||||
public List<int> CarIds { get; set; } = new();
|
public List<int> CarIds
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return Cars.Select(c => c.Id).ToList();
|
||||||
|
}
|
||||||
|
}
|
||||||
public List<CarView> Cars { get; set; } = new();
|
public List<CarView> Cars { get; set; } = new();
|
||||||
public List<int> ServiseIds { get; set; } = new();
|
public List<int> ServiseIds
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return Servises.Select(s => s.Id).ToList();
|
||||||
|
}
|
||||||
|
}
|
||||||
public List<ServiceView> Servises { get; set; } = new();
|
public List<ServiceView> Servises { get; set; } = new();
|
||||||
public SaleView(ISale model)
|
public SaleView(ISale model)
|
||||||
{
|
{
|
||||||
@ -34,8 +46,6 @@ namespace CarShowroomDataModels.Dtos
|
|||||||
Cost = model.Cost;
|
Cost = model.Cost;
|
||||||
ClientId = model.ClientId;
|
ClientId = model.ClientId;
|
||||||
EmployeeId = model.EmployeeId;
|
EmployeeId = model.EmployeeId;
|
||||||
CarIds = model.CarIds;
|
|
||||||
ServiseIds = model.ServiseIds;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<TargetFramework>net6.0</TargetFramework>
|
||||||
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\CarShowroomContracts\CarShowroomContracts.csproj" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
7
CarShowroom/CarShowroomDatabaseStorage/Class1.cs
Normal file
7
CarShowroom/CarShowroomDatabaseStorage/Class1.cs
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
namespace CarShowroomDatabaseStorage
|
||||||
|
{
|
||||||
|
public class Class1
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user