36 lines
1.0 KiB
C#
36 lines
1.0 KiB
C#
|
using CarServiceContracts.BindingModels;
|
|||
|
using CarServiceContracts.BusinessLogicsContracts;
|
|||
|
using CarServiceContracts.StorageContracts;
|
|||
|
using CarServiceContracts.ViewModels;
|
|||
|
using Microsoft.Extensions.Logging;
|
|||
|
|
|||
|
namespace CarServiceBusinessLogic.BusinessLogics
|
|||
|
{
|
|||
|
public class ReportLogic : IReportLogic
|
|||
|
{
|
|||
|
//private readonly ILogger _logger;
|
|||
|
private readonly IWorkStorage _workStorage;
|
|||
|
public ReportLogic(/*ILogger logger,*/ IWorkStorage workStorage)
|
|||
|
{
|
|||
|
//_logger = logger;
|
|||
|
_workStorage = workStorage;
|
|||
|
}
|
|||
|
public List<ReportWorkWithRequestsViewModel> GetRequestsByWorks(ReportBindingModel model)
|
|||
|
{
|
|||
|
return _workStorage.GetWorksWithRequest(new() { SelectedWorksIds = model.SelectedWorks });
|
|||
|
}
|
|||
|
public void SaveComponentsToWordFile(ReportBindingModel model)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
public void SaveManufactureComponentToExcelFile(ReportBindingModel model)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
public void SaveOrdersToPdfFile(ReportBindingModel model)
|
|||
|
{
|
|||
|
throw new NotImplementedException();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|