From 0689ebe5b9acb7706ba16a4b96d041aca7f71620 Mon Sep 17 00:00:00 2001 From: danila Date: Thu, 30 Jan 2025 17:34:37 +0400 Subject: [PATCH] =?UTF-8?q?=D1=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ShoeStore/Entities/ShoesReplenishment.cs | 4 +-- ShoeStore/ShoeStore/Entities/Store.cs | 4 +-- .../ShoeStore/Forms/FormFactorys.Designer.cs | 2 ++ ShoeStore/ShoeStore/Forms/FormFactorys.resx | 4 +-- .../Forms/FormShoesReplenishment.Designer.cs | 32 +++++++++---------- .../Forms/FormShoesReplenishment.resx | 6 ++-- .../ShoeStore/Forms/FormStore.Designer.cs | 27 ++-------------- ShoeStore/ShoeStore/Forms/FormStore.cs | 8 +---- ShoeStore/ShoeStore/Forms/FormStore.resx | 4 +-- .../ShoeStore/Forms/FormStores.Designer.cs | 2 ++ ShoeStore/ShoeStore/Forms/FormStores.resx | 4 +-- .../Implementations/ConnectionString.cs | 2 +- .../Implementations/FactoryRepository.cs | 2 +- .../ShoesReplenishmentRepository.cs | 6 ++-- .../Implementations/ShoesRepository.cs | 10 +++--- .../Implementations/StoreRepository.cs | 13 ++++---- 16 files changed, 51 insertions(+), 79 deletions(-) diff --git a/ShoeStore/ShoeStore/Entities/ShoesReplenishment.cs b/ShoeStore/ShoeStore/Entities/ShoesReplenishment.cs index d432b87..72fcc61 100644 --- a/ShoeStore/ShoeStore/Entities/ShoesReplenishment.cs +++ b/ShoeStore/ShoeStore/Entities/ShoesReplenishment.cs @@ -9,7 +9,7 @@ namespace ShoeStore.Entities; public class ShoesReplenishment { public int Id { get; private set; } - public int FactoryId { get; private set; } + public int FactorysId { get; private set; } public DateTime DateReceipt { get; private set; } public IEnumerable ShoesShoesReplenishments { @@ -22,7 +22,7 @@ public class ShoesReplenishment return new ShoesReplenishment { Id = id, - FactoryId = factoryId, + FactorysId = factoryId, DateReceipt = DateTime.Now, ShoesShoesReplenishments = shoesShoesReplenishments }; diff --git a/ShoeStore/ShoeStore/Entities/Store.cs b/ShoeStore/ShoeStore/Entities/Store.cs index b3ec043..5bea84b 100644 --- a/ShoeStore/ShoeStore/Entities/Store.cs +++ b/ShoeStore/ShoeStore/Entities/Store.cs @@ -9,17 +9,15 @@ namespace ShoeStore.Entities; public class Store { public int Id { get; private set; } - public string StoreType { get; private set; } = string.Empty; public string StoreName { get; private set; } = string.Empty; public int Employees { get; private set; } public double Visitors { get; private set; } - public static Store CreateEntity(int id, string storeType, string + public static Store CreateEntity(int id, string storeName, int employees, double visitors) { return new Store { Id = id, - StoreType = storeType ?? string.Empty, StoreName = storeName ?? string.Empty, Employees = employees, Visitors = visitors diff --git a/ShoeStore/ShoeStore/Forms/FormFactorys.Designer.cs b/ShoeStore/ShoeStore/Forms/FormFactorys.Designer.cs index eed78b0..f529e81 100644 --- a/ShoeStore/ShoeStore/Forms/FormFactorys.Designer.cs +++ b/ShoeStore/ShoeStore/Forms/FormFactorys.Designer.cs @@ -57,6 +57,7 @@ ButtonDel.Size = new Size(85, 78); ButtonDel.TabIndex = 2; ButtonDel.UseVisualStyleBackColor = true; + ButtonDel.Click += ButtonDel_Click; // // ButtonUpd // @@ -67,6 +68,7 @@ ButtonUpd.Size = new Size(85, 77); ButtonUpd.TabIndex = 1; ButtonUpd.UseVisualStyleBackColor = true; + ButtonUpd.Click += ButtonUpd_Click; // // ButtonAdd // diff --git a/ShoeStore/ShoeStore/Forms/FormFactorys.resx b/ShoeStore/ShoeStore/Forms/FormFactorys.resx index 8b2ff64..af32865 100644 --- a/ShoeStore/ShoeStore/Forms/FormFactorys.resx +++ b/ShoeStore/ShoeStore/Forms/FormFactorys.resx @@ -1,7 +1,7 @@