.
This commit is contained in:
parent
5df383fc54
commit
1a62aada4f
@ -21,7 +21,7 @@ namespace PlumbingRepairBusinessLogic.BusinessLogics
|
||||
{
|
||||
_logger.LogInformation("ReadList. ComponentName: {ComponentName}.Id:{Id} ",
|
||||
model?.ComponentName, model?.Id);
|
||||
var list = model == null ? _componentStorage.GetFullList() :
|
||||
var list = model == null ? _componentStorage.GetFullList() :
|
||||
_componentStorage.GetFilteredList(model);
|
||||
if (list == null)
|
||||
{
|
||||
|
@ -6,6 +6,10 @@
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\PlumbingRepairContracts\PlumbingRepairContracts.csproj" />
|
||||
</ItemGroup>
|
||||
|
@ -12,7 +12,7 @@ namespace PlumbingRepairContracts.BindingModels
|
||||
public int Id { get; set; }
|
||||
public string WorkName { get; set; } = string.Empty;
|
||||
public double Price { get; set; }
|
||||
public Dictionary<int, (IComponentModel, int)> ProductComponents
|
||||
public Dictionary<int, (IComponentModel, int)> WorkComponents
|
||||
{ get; set; } = new();
|
||||
}
|
||||
}
|
@ -1,7 +0,0 @@
|
||||
namespace PlumbingRepairContracts
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
@ -6,9 +6,9 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace PlumbingRepairContracts.SearchModels
|
||||
{
|
||||
public class ProductSearchModel
|
||||
public class WorkSearchModel
|
||||
{
|
||||
public int? Id { get; set; }
|
||||
public string? ProductName { get; set; }
|
||||
public string? WorkName { get; set; }
|
||||
}
|
||||
}
|
||||
|
@ -1,18 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace PlumbingRepairDataModels.Enums
|
||||
{
|
||||
public interface IOrderModel : IId
|
||||
{
|
||||
int WorkId { get; }
|
||||
int Count { get; }
|
||||
double Sum { get; }
|
||||
OrderStatus Status { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
}
|
||||
}
|
@ -15,6 +15,5 @@ namespace PlumbingRepairDataModels.Models
|
||||
OrderStatus Status { get; }
|
||||
DateTime DateCreate { get; }
|
||||
DateTime? DateImplement { get; }
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -11,6 +11,5 @@ namespace PlumbingRepairDataModels.Models
|
||||
string WorkName { get; }
|
||||
double Price { get; }
|
||||
Dictionary<int, (IComponentModel, int)> WorkComponents { get; }
|
||||
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user