diff --git a/ComputerShopProvider/ComputerShopBusinessLogic/BusinessLogics/EquipmentReceivingLogic.cs b/ComputerShopProvider/ComputerShopBusinessLogic/BusinessLogics/EquipmentReceivingLogic.cs index 2093d9a..1b67b1d 100644 --- a/ComputerShopProvider/ComputerShopBusinessLogic/BusinessLogics/EquipmentReceivingLogic.cs +++ b/ComputerShopProvider/ComputerShopBusinessLogic/BusinessLogics/EquipmentReceivingLogic.cs @@ -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? 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(); + } } } diff --git a/ComputerShopProvider/ComputerShopBusinessLogic/OfficePackage/Implements/SaveToExcel.cs b/ComputerShopProvider/ComputerShopBusinessLogic/OfficePackage/Implements/SaveToExcel.cs index c3c08e6..31b0702 100644 --- a/ComputerShopProvider/ComputerShopBusinessLogic/OfficePackage/Implements/SaveToExcel.cs +++ b/ComputerShopProvider/ComputerShopBusinessLogic/OfficePackage/Implements/SaveToExcel.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace ComputerShopBusinessLogic.OfficePackage.Implements { - public class SaveToExcel + public class SaveToExcel : AbstractSaveToExcel { } } diff --git a/ComputerShopProvider/ComputerShopBusinessLogic/OfficePackage/Implements/SaveToPdf.cs b/ComputerShopProvider/ComputerShopBusinessLogic/OfficePackage/Implements/SaveToPdf.cs index 59a4875..c4ed5b5 100644 --- a/ComputerShopProvider/ComputerShopBusinessLogic/OfficePackage/Implements/SaveToPdf.cs +++ b/ComputerShopProvider/ComputerShopBusinessLogic/OfficePackage/Implements/SaveToPdf.cs @@ -6,7 +6,7 @@ using System.Threading.Tasks; namespace ComputerShopBusinessLogic.OfficePackage.Implements { - public class SaveToPdf + public class SaveToPdf : AbstractSaveToPdf { } } diff --git a/ComputerShopProvider/ComputerShopContracts/BusinessLogicContracts/IReportLogic.cs b/ComputerShopProvider/ComputerShopContracts/BusinessLogicContracts/IReportLogic.cs index f664635..b7b3eb6 100644 --- a/ComputerShopProvider/ComputerShopContracts/BusinessLogicContracts/IReportLogic.cs +++ b/ComputerShopProvider/ComputerShopContracts/BusinessLogicContracts/IReportLogic.cs @@ -15,6 +15,8 @@ namespace ComputerShopContracts.BusinessLogicContracts List GetPurchaseSupply(); + public List GetComponentReceivings(List ids); + void SavePackagesToWordFile(ReportBindingModel model); /// Сохранение компонент с указаеним продуктов в файл-Excel void SaveProductComponentToExcelFile(ReportBindingModel model); diff --git a/ComputerShopProvider/ComputerShopDatabaseImplement/Implements/EquipmentReceivingStorage.cs b/ComputerShopProvider/ComputerShopDatabaseImplement/Implements/EquipmentReceivingStorage.cs index c43ea87..badef8d 100644 --- a/ComputerShopProvider/ComputerShopDatabaseImplement/Implements/EquipmentReceivingStorage.cs +++ b/ComputerShopProvider/ComputerShopDatabaseImplement/Implements/EquipmentReceivingStorage.cs @@ -12,7 +12,7 @@ using System.Threading.Tasks; namespace ComputerShopDatabaseImplement.Implements { - internal class EquipmentReceivingStorage : IEquipmentReceivingStorage + public class EquipmentReceivingStorage : IEquipmentReceivingStorage { public EquipmentReceivingViewModel? Delete(EquipmentReceivingBindingModel model) { diff --git a/ComputerShopProvider/ComputerShopDatabaseImplement/Implements/SupplyStorage.cs b/ComputerShopProvider/ComputerShopDatabaseImplement/Implements/SupplyStorage.cs index f0df5da..3e114e4 100644 --- a/ComputerShopProvider/ComputerShopDatabaseImplement/Implements/SupplyStorage.cs +++ b/ComputerShopProvider/ComputerShopDatabaseImplement/Implements/SupplyStorage.cs @@ -12,7 +12,7 @@ using System.Threading.Tasks; namespace ComputerShopDatabaseImplement.Implements { - internal class SupplyStorage : ISupplyStorage + public class SupplyStorage : ISupplyStorage { public SupplyViewModel? Delete(SupplyBindingModel model) { diff --git a/ComputerShopProvider/ComputerShopRestApi/Program.cs b/ComputerShopProvider/ComputerShopRestApi/Program.cs index e690ebf..e0713e6 100644 --- a/ComputerShopProvider/ComputerShopRestApi/Program.cs +++ b/ComputerShopProvider/ComputerShopRestApi/Program.cs @@ -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(); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); builder.Services.AddTransient(); +builder.Services.AddTransient(); builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); +builder.Services.AddTransient(); + builder.Services.AddControllers(); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer();