This commit is contained in:
the 2023-05-19 19:34:21 +04:00
parent 0a1c0bd5ac
commit e13b57c898
7 changed files with 45 additions and 6 deletions

View File

@ -1,4 +1,8 @@
using System;
using ComputerShopContracts.BindingModels;
using ComputerShopContracts.BusinessLogicContracts;
using ComputerShopContracts.SearchModels;
using ComputerShopContracts.ViewModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
@ -6,7 +10,31 @@ using System.Threading.Tasks;
namespace ComputerShopBusinessLogic.BusinessLogics
{
public class EquipmentReceivingLogic
public class EquipmentReceivingLogic : IEquipmentReceivingLogic
{
public List<EquipmentReceivingViewModel>? ReadList(EquipmentReceivingSearchModel? model)
{
throw new NotImplementedException();
}
public bool CreateOrder(EquipmentReceivingBindingModel model)
{
throw new NotImplementedException();
}
public bool TakeOrderInWork(EquipmentReceivingBindingModel model)
{
throw new NotImplementedException();
}
public bool FinishOrder(EquipmentReceivingBindingModel model)
{
throw new NotImplementedException();
}
public bool DeliveryOrder(EquipmentReceivingBindingModel model)
{
throw new NotImplementedException();
}
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace ComputerShopBusinessLogic.OfficePackage.Implements
{
public class SaveToExcel
public class SaveToExcel : AbstractSaveToExcel
{
}
}

View File

@ -6,7 +6,7 @@ using System.Threading.Tasks;
namespace ComputerShopBusinessLogic.OfficePackage.Implements
{
public class SaveToPdf
public class SaveToPdf : AbstractSaveToPdf
{
}
}

View File

@ -15,6 +15,8 @@ namespace ComputerShopContracts.BusinessLogicContracts
List<ReportPurchaseSupplyViewModel> GetPurchaseSupply();
public List<ReportComponentReceivingViewModel> GetComponentReceivings(List<int> ids);
void SavePackagesToWordFile(ReportBindingModel model);
/// Сохранение компонент с указаеним продуктов в файл-Excel
void SaveProductComponentToExcelFile(ReportBindingModel model);

View File

@ -12,7 +12,7 @@ using System.Threading.Tasks;
namespace ComputerShopDatabaseImplement.Implements
{
internal class EquipmentReceivingStorage : IEquipmentReceivingStorage
public class EquipmentReceivingStorage : IEquipmentReceivingStorage
{
public EquipmentReceivingViewModel? Delete(EquipmentReceivingBindingModel model)
{

View File

@ -12,7 +12,7 @@ using System.Threading.Tasks;
namespace ComputerShopDatabaseImplement.Implements
{
internal class SupplyStorage : ISupplyStorage
public class SupplyStorage : ISupplyStorage
{
public SupplyViewModel? Delete(SupplyBindingModel model)
{

View File

@ -1,4 +1,6 @@
using ComputerShopBusinessLogic.BusinessLogics;
using ComputerShopBusinessLogic.OfficePackage;
using ComputerShopBusinessLogic.OfficePackage.Implements;
using ComputerShopContracts.BusinessLogicContracts;
using ComputerShopContracts.StorageContracts;
using ComputerShopDatabaseImplement.Implements;
@ -15,13 +17,20 @@ builder.Services.AddTransient<IClientStorage, ClientStorage>();
builder.Services.AddTransient<IPurchaseStorage, PurchaseStorage>();
builder.Services.AddTransient<IComponentStorage, ComponentStorage>();
builder.Services.AddTransient<IAssemblyStorage, AssemblyStorage>();
builder.Services.AddTransient<IEquipmentReceivingStorage, EquipmentReceivingStorage>();
builder.Services.AddTransient<ISupplyStorage, SupplyStorage>();
builder.Services.AddTransient<IPurchaseLogic, PurchaseLogic>();
builder.Services.AddTransient<IClientLogic, ClientLogic>();
builder.Services.AddTransient<IComponentLogic, ComponentLogic>();
builder.Services.AddTransient<IAssemblyLogic, AssemblyLogic>();
builder.Services.AddTransient<IEquipmentReceivingLogic, EquipmentReceivingLogic>();
builder.Services.AddTransient<IReportLogic, ReportLogic>();
builder.Services.AddTransient<AbstractSaveToExcel, SaveToExcel>();
builder.Services.AddTransient<AbstractSaveToWord, SaveToWord>();
builder.Services.AddTransient<AbstractSaveToPdf, SaveToPdf>();
builder.Services.AddControllers();
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();