From 09f64c788fc8f84d2cfb3d70364392d7b5626d3a Mon Sep 17 00:00:00 2001 From: bekodeg Date: Wed, 17 Apr 2024 22:01:38 +0400 Subject: [PATCH 1/9] =?UTF-8?q?=D1=81=D0=BE=D0=B7=D0=B4=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D0=B5=20=D0=BF=D1=80=D0=BE=D0=B5=D0=BA=D1=82=D0=B0=20=D1=81=20?= =?UTF-8?q?=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=B0=D0=BA=D1=82=D0=B0=D0=BC?= =?UTF-8?q?=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ComputerHardwareStore/ComputerHardwareStore.sln | 6 ++++++ .../ComputerHardwareStoreContracts.csproj | 9 +++++++++ 2 files changed, 15 insertions(+) create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj diff --git a/ComputerHardwareStore/ComputerHardwareStore.sln b/ComputerHardwareStore/ComputerHardwareStore.sln index e96d3cb..3c6075c 100644 --- a/ComputerHardwareStore/ComputerHardwareStore.sln +++ b/ComputerHardwareStore/ComputerHardwareStore.sln @@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputerHardwareStore", "Co EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputerHardwareStoreDataModels", "ComputerHardwareStoreDataModels\ComputerHardwareStoreDataModels.csproj", "{48126915-C6D4-451C-BC88-39E3C50332B8}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ComputerHardwareStoreContracts", "ComputerHardwareStoreContracts\ComputerHardwareStoreContracts.csproj", "{5F394E21-2597-432B-AE73-BBAFD8D9F50E}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -21,6 +23,10 @@ Global {48126915-C6D4-451C-BC88-39E3C50332B8}.Debug|Any CPU.Build.0 = Debug|Any CPU {48126915-C6D4-451C-BC88-39E3C50332B8}.Release|Any CPU.ActiveCfg = Release|Any CPU {48126915-C6D4-451C-BC88-39E3C50332B8}.Release|Any CPU.Build.0 = Release|Any CPU + {5F394E21-2597-432B-AE73-BBAFD8D9F50E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5F394E21-2597-432B-AE73-BBAFD8D9F50E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5F394E21-2597-432B-AE73-BBAFD8D9F50E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5F394E21-2597-432B-AE73-BBAFD8D9F50E}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj new file mode 100644 index 0000000..fa71b7a --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj @@ -0,0 +1,9 @@ + + + + net8.0 + enable + enable + + + -- 2.25.1 From c70fddda2c0724c1588a8daa471c268cf5c6ff08 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 18:37:36 +0400 Subject: [PATCH 2/9] business logicc ontracts --- .../BusinessLogicsContracts/IComponentLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IOrderLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IProductLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IStoreKeeperLogic.cs | 15 +++++++++++++++ .../ComputerHardwareStoreContracts.csproj | 8 ++++++++ 5 files changed, 68 insertions(+) create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs new file mode 100644 index 0000000..49f3039 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.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/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs new file mode 100644 index 0000000..fc0dc8e --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.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/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs new file mode 100644 index 0000000..59f4cdd --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IProductLogic + { + List? ReadList(ProductSearchModel? model); + ProductViewModel? ReadElement(ProductSearchModel model); + bool Create(ProductBindingModel model); + bool Update(ProductBindingModel model); + bool Delete(ProductBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs new file mode 100644 index 0000000..b7a2fc0 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IStoreKeeperLogic + { + List? ReadList(StoreKeeperSearchModel? model); + StoreKeeperViewModel? ReadElement(StoreKeeperSearchModel model); + bool Create(StoreKeeperBindingModel model); + bool Update(StoreKeeperBindingModel model); + bool Delete(StoreKeeperBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj index fa71b7a..9f4545e 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj @@ -6,4 +6,12 @@ enable + + + + + + + + -- 2.25.1 From 40f96fe6c1d9f4227ab2238e6c5fad412e5740d2 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:08:06 +0400 Subject: [PATCH 3/9] + vendor --- .../BusinessLogicsContracts/IVendorLogic.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs new file mode 100644 index 0000000..821555a --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -0,0 +1,11 @@ +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IVendorLogic + { + List? ReadList(VendorSearchModel? model); + VendorViewModel? ReadElement(VendorSearchModel model); + bool Create(VendorBindingModel model); + bool Update(VendorBindingModel model); + bool Delete(VendorBindingModel model); + } +} -- 2.25.1 From 14b3bbd20e6d062a2377e639598b2ce358bc3998 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:08:37 +0400 Subject: [PATCH 4/9] + links --- .../BusinessLogicsContracts/IVendorLogic.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs index 821555a..9309879 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -1,4 +1,8 @@ -namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +rHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts { public interface IVendorLogic { -- 2.25.1 From 8e96befcd668df96220cfb12899b001b908ec638 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:09:02 +0400 Subject: [PATCH 5/9] links --- .../BusinessLogicsContracts/IVendorLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs index 9309879..5f12939 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -1,4 +1,4 @@ -rHardwareStoreContracts.BindingModels; +using HardwareStoreContracts.BindingModels; using ComputerHardwareStoreContracts.SearchModels; using ComputerHardwareStoreContracts.ViewModels; -- 2.25.1 From 9573c340ba8f23d52adbed4163c3077303bcdcaf Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 18:37:36 +0400 Subject: [PATCH 6/9] business logicc ontracts --- .../BusinessLogicsContracts/IComponentLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IOrderLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IProductLogic.cs | 15 +++++++++++++++ .../BusinessLogicsContracts/IStoreKeeperLogic.cs | 15 +++++++++++++++ .../ComputerHardwareStoreContracts.csproj | 6 +++++- 5 files changed, 65 insertions(+), 1 deletion(-) create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs new file mode 100644 index 0000000..49f3039 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IComponentLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.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/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs new file mode 100644 index 0000000..fc0dc8e --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IOrderLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.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/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs new file mode 100644 index 0000000..59f4cdd --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IProductLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IProductLogic + { + List? ReadList(ProductSearchModel? model); + ProductViewModel? ReadElement(ProductSearchModel model); + bool Create(ProductBindingModel model); + bool Update(ProductBindingModel model); + bool Delete(ProductBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs new file mode 100644 index 0000000..b7a2fc0 --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IStoreKeeperLogic.cs @@ -0,0 +1,15 @@ +using ComputerHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IStoreKeeperLogic + { + List? ReadList(StoreKeeperSearchModel? model); + StoreKeeperViewModel? ReadElement(StoreKeeperSearchModel model); + bool Create(StoreKeeperBindingModel model); + bool Update(StoreKeeperBindingModel model); + bool Delete(StoreKeeperBindingModel model); + } +} diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj index 4e4937a..9f4545e 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/ComputerHardwareStoreContracts.csproj @@ -7,7 +7,11 @@ - + + + + + -- 2.25.1 From 9945ff4bb2529ace5d10d890284d0a3f7023b069 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:08:06 +0400 Subject: [PATCH 7/9] + vendor --- .../BusinessLogicsContracts/IVendorLogic.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs new file mode 100644 index 0000000..821555a --- /dev/null +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -0,0 +1,11 @@ +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +{ + public interface IVendorLogic + { + List? ReadList(VendorSearchModel? model); + VendorViewModel? ReadElement(VendorSearchModel model); + bool Create(VendorBindingModel model); + bool Update(VendorBindingModel model); + bool Delete(VendorBindingModel model); + } +} -- 2.25.1 From 81907df9cf862ff7c30141b4b1224c6242ff248b Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:08:37 +0400 Subject: [PATCH 8/9] + links --- .../BusinessLogicsContracts/IVendorLogic.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs index 821555a..9309879 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -1,4 +1,8 @@ -namespace ComputerHardwareStoreContracts.BusinessLogicsContracts +rHardwareStoreContracts.BindingModels; +using ComputerHardwareStoreContracts.SearchModels; +using ComputerHardwareStoreContracts.ViewModels; + +namespace ComputerHardwareStoreContracts.BusinessLogicsContracts { public interface IVendorLogic { -- 2.25.1 From 03da9f0eda16ad26f6f903aa50fa8ac15a765669 Mon Sep 17 00:00:00 2001 From: dex_moth Date: Wed, 24 Apr 2024 19:09:02 +0400 Subject: [PATCH 9/9] links --- .../BusinessLogicsContracts/IVendorLogic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs index 9309879..5f12939 100644 --- a/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs +++ b/ComputerHardwareStore/ComputerHardwareStoreContracts/BusinessLogicsContracts/IVendorLogic.cs @@ -1,4 +1,4 @@ -rHardwareStoreContracts.BindingModels; +using HardwareStoreContracts.BindingModels; using ComputerHardwareStoreContracts.SearchModels; using ComputerHardwareStoreContracts.ViewModels; -- 2.25.1