Изменил(а) на 'BlacksmithWorkshop/BlacksmithWorkshopListImplement/Implements/OrderStorage.cs'
This commit is contained in:
parent
c44bd13c85
commit
c1df34a0ee
@ -59,7 +59,7 @@ namespace BlacksmithWorkshopListImplement.Implements
|
||||
|
||||
foreach (var order in _source.Orders)
|
||||
{
|
||||
if (order.Id == model.Id || model.DateFrom <= order.DateCreate && order.DateCreate <= model.DateTo)
|
||||
if (order.Id == model.Id || model.DateFrom <= order.DateCreate && order.DateCreate <= model.DateTo || order.ClientId == model.ClientId)
|
||||
{
|
||||
result.Add(order.GetViewModel);
|
||||
}
|
||||
@ -119,7 +119,16 @@ namespace BlacksmithWorkshopListImplement.Implements
|
||||
orderViewModel.ManufactureName = manufacture.ManufactureName;
|
||||
}
|
||||
}
|
||||
return orderViewModel;
|
||||
foreach (var client in _source.Clients)
|
||||
{
|
||||
if (client.Id == order.ClientId)
|
||||
{
|
||||
orderViewModel.ClientFIO = client.ClientFIO;
|
||||
}
|
||||
}
|
||||
return orderViewModel;
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user