From ef2c302fccf5b6c57d0e3d5b1758f16ce8be7a50 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B0=D0=BB=D0=B5=D1=80=D0=B8=D1=8F=20=D0=9D=D0=B8?= =?UTF-8?q?=D0=BA=D0=B8=D1=84=D0=BE=D1=80=D0=BE=D0=B2=D0=B0?= Date: Tue, 31 Jan 2023 22:03:00 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D1=8B=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=B0=D0=BA=D1=82=D1=8B=20=D0=B1?= =?UTF-8?q?=D0=B8=D0=B7=D0=BD=D0=B5=D1=81=20=D0=BB=D0=BE=D0=B3=D0=B8=D0=BA?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AircraftPlantContracts.csproj | 1 - .../IComponentLogic.cs | 20 +++++++++++++++++++ .../BusinessLogicsContracts/IOrderLogic.cs | 20 +++++++++++++++++++ .../BusinessLogicsContracts/IPlaneLogic.cs | 20 +++++++++++++++++++ .../ViewModels/OrderViewModel.cs | 2 +- 5 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IComponentLogic.cs create mode 100644 AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IOrderLogic.cs create mode 100644 AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IPlaneLogic.cs diff --git a/AircraftPlant/AircraftPlantContracts/AircraftPlantContracts.csproj b/AircraftPlant/AircraftPlantContracts/AircraftPlantContracts.csproj index 2e25339..c48fd6b 100644 --- a/AircraftPlant/AircraftPlantContracts/AircraftPlantContracts.csproj +++ b/AircraftPlant/AircraftPlantContracts/AircraftPlantContracts.csproj @@ -11,7 +11,6 @@ - diff --git a/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IComponentLogic.cs b/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IComponentLogic.cs new file mode 100644 index 0000000..9ef09cc --- /dev/null +++ b/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IComponentLogic.cs @@ -0,0 +1,20 @@ +using AircraftPlantContracts.BindingModels; +using AircraftPlantContracts.SearchModels; +using AircraftPlantContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AircraftPlantContracts.BusinessLogicsContracts +{ + public interface IComponentLogic + { + List? ReadList(ComponentSearchModel? model); + ComponentViewModel? ReadElement(ComponentSearchModel model); + bool Create(ComponentBindingModel model); + bool Update(ComponentBindingModel model); + bool Delete(ComponentBindingModel model); + } +} diff --git a/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IOrderLogic.cs b/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IOrderLogic.cs new file mode 100644 index 0000000..a3b5ca4 --- /dev/null +++ b/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IOrderLogic.cs @@ -0,0 +1,20 @@ +using AircraftPlantContracts.BindingModels; +using AircraftPlantContracts.SearchModels; +using AircraftPlantContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AircraftPlantContracts.BusinessLogicsContracts +{ + public interface IOrderLogic + { + List? ReadList(OrderSearchModel? model); + bool CreateOrder(OrderBindingModel model); + bool TakeOrderInWork(OrderBindingModel model); + bool FinishOrder(OrderBindingModel model); + bool DeliveryOrder(OrderBindingModel model); + } +} diff --git a/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IPlaneLogic.cs b/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IPlaneLogic.cs new file mode 100644 index 0000000..1e0abdf --- /dev/null +++ b/AircraftPlant/AircraftPlantContracts/BusinessLogicsContracts/IPlaneLogic.cs @@ -0,0 +1,20 @@ +using AircraftPlantContracts.BindingModels; +using AircraftPlantContracts.SearchModels; +using AircraftPlantContracts.ViewModels; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace AircraftPlantContracts.BusinessLogicsContracts +{ + public interface IPlaneLogic + { + List? ReadList(PlaneSearchModel? model); + PlaneViewModel? ReadElement(PlaneSearchModel model); + bool Create(PlaneBindingModel model); + bool Update(PlaneBindingModel model); + bool Delete(PlaneBindingModel model); + } +} diff --git a/AircraftPlant/AircraftPlantContracts/ViewModels/OrderViewModel.cs b/AircraftPlant/AircraftPlantContracts/ViewModels/OrderViewModel.cs index 196ff75..828456f 100644 --- a/AircraftPlant/AircraftPlantContracts/ViewModels/OrderViewModel.cs +++ b/AircraftPlant/AircraftPlantContracts/ViewModels/OrderViewModel.cs @@ -9,7 +9,7 @@ using System.Threading.Tasks; namespace AircraftPlantContracts.ViewModels { - internal class OrderViewModel : IOrderModel + public class OrderViewModel : IOrderModel { public int PlaneId { get; set; }