From 39fc7769eba9440350bc0cddcef53365bd93c88c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=B3=D0=BE=D1=80=20=D0=9F=D1=8B=D0=B6=D0=BE=D0=B2?= Date: Fri, 15 Nov 2024 02:32:00 +0400 Subject: [PATCH] =?UTF-8?q?=D1=81=D0=B4=D0=B0=D0=BD=D0=BD=D1=8B=D0=B9=20?= =?UTF-8?q?=D0=B2=D0=B0=D1=80=D0=B8=D0=B0=D0=BD=D1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Entities/Enums/ServiceType.cs | 12 ++ .../ITServiceManager/Entities/Service.cs | 10 +- .../Forms/FormOrder.Designer.cs | 48 +++---- .../ITServiceManager/Forms/FormOrder.cs | 6 +- .../Forms/FormOrderService.Designer.cs | 39 ------ .../Forms/FormOrderService.cs | 20 --- .../Forms/FormOrderService.resx | 120 ------------------ .../Forms/FormService.Designer.cs | 71 ++++------- .../ITServiceManager/Forms/FormService.cs | 30 ++++- .../Forms/FormServices.Designer.cs | 28 ++-- .../ITServiceManager/Forms/FormServices.cs | 2 - ITServiceManager/ITServiceManager/Program.cs | 1 - .../Repositories/IOrderServiceRepository.cs | 10 -- .../Implementations/OrderServiceRepository.cs | 19 --- 14 files changed, 115 insertions(+), 301 deletions(-) create mode 100644 ITServiceManager/ITServiceManager/Entities/Enums/ServiceType.cs delete mode 100644 ITServiceManager/ITServiceManager/Forms/FormOrderService.Designer.cs delete mode 100644 ITServiceManager/ITServiceManager/Forms/FormOrderService.cs delete mode 100644 ITServiceManager/ITServiceManager/Forms/FormOrderService.resx delete mode 100644 ITServiceManager/ITServiceManager/Repositories/IOrderServiceRepository.cs delete mode 100644 ITServiceManager/ITServiceManager/Repositories/Implementations/OrderServiceRepository.cs diff --git a/ITServiceManager/ITServiceManager/Entities/Enums/ServiceType.cs b/ITServiceManager/ITServiceManager/Entities/Enums/ServiceType.cs new file mode 100644 index 0000000..c7151cc --- /dev/null +++ b/ITServiceManager/ITServiceManager/Entities/Enums/ServiceType.cs @@ -0,0 +1,12 @@ +namespace ITServiceManager.Entities.Enums; + +[Flags] +public enum ServiceType +{ + None = 0, + Maintenance = 1, + Development = 2, + Testing = 4, + Support = 8, + Consulting = 16 +} diff --git a/ITServiceManager/ITServiceManager/Entities/Service.cs b/ITServiceManager/ITServiceManager/Entities/Service.cs index b017541..d907ddb 100644 --- a/ITServiceManager/ITServiceManager/Entities/Service.cs +++ b/ITServiceManager/ITServiceManager/Entities/Service.cs @@ -1,17 +1,19 @@ -namespace ITServiceManager.Entities; +using ITServiceManager.Entities.Enums; + +namespace ITServiceManager.Entities; public class Service { public int Id { get; private set; } - public string Name { get; private set; } = string.Empty; + public ServiceType ServiceType { get; private set; } public string Description { get; private set; } = string.Empty; - public static Service CreateEntity(int id, string serviceName, string description) + public static Service CreateEntity(int id, ServiceType type, string description) { return new Service { Id = id, - Name = serviceName, + ServiceType = type, Description = description }; } diff --git a/ITServiceManager/ITServiceManager/Forms/FormOrder.Designer.cs b/ITServiceManager/ITServiceManager/Forms/FormOrder.Designer.cs index 060f37b..e756c3a 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormOrder.Designer.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormOrder.Designer.cs @@ -45,30 +45,29 @@ // // dataGridView // - dataGridView.AllowUserToAddRows = false; - dataGridView.AllowUserToDeleteRows = false; dataGridView.AutoSizeColumnsMode = DataGridViewAutoSizeColumnsMode.Fill; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.Columns.AddRange(new DataGridViewColumn[] { ColumnService, ColumnQuantity, ColumnExecutionDate }); - dataGridView.Location = new Point(12, 232); + dataGridView.Location = new Point(14, 309); + dataGridView.Margin = new Padding(3, 4, 3, 4); dataGridView.MultiSelect = false; dataGridView.Name = "dataGridView"; - dataGridView.ReadOnly = true; + dataGridView.RowHeadersWidth = 51; dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; - dataGridView.Size = new Size(492, 263); + dataGridView.Size = new Size(562, 351); dataGridView.TabIndex = 1; // // ColumnService // ColumnService.HeaderText = "Услуга"; + ColumnService.MinimumWidth = 6; ColumnService.Name = "ColumnService"; - ColumnService.ReadOnly = true; // // ColumnQuantity // ColumnQuantity.HeaderText = "Количество"; + ColumnQuantity.MinimumWidth = 6; ColumnQuantity.Name = "ColumnQuantity"; - ColumnQuantity.ReadOnly = true; // // ColumnExecutionDate // @@ -76,14 +75,15 @@ dataGridViewCellStyle1.NullValue = null; ColumnExecutionDate.DefaultCellStyle = dataGridViewCellStyle1; ColumnExecutionDate.HeaderText = "Срок"; + ColumnExecutionDate.MinimumWidth = 6; ColumnExecutionDate.Name = "ColumnExecutionDate"; - ColumnExecutionDate.ReadOnly = true; // // buttonCancel // - buttonCancel.Location = new Point(320, 514); + buttonCancel.Location = new Point(366, 685); + buttonCancel.Margin = new Padding(3, 4, 3, 4); buttonCancel.Name = "buttonCancel"; - buttonCancel.Size = new Size(112, 28); + buttonCancel.Size = new Size(128, 37); buttonCancel.TabIndex = 9; buttonCancel.Text = "Отмена"; buttonCancel.UseVisualStyleBackColor = true; @@ -91,9 +91,10 @@ // // buttonAdd // - buttonAdd.Location = new Point(64, 514); + buttonAdd.Location = new Point(73, 685); + buttonAdd.Margin = new Padding(3, 4, 3, 4); buttonAdd.Name = "buttonAdd"; - buttonAdd.Size = new Size(112, 28); + buttonAdd.Size = new Size(128, 37); buttonAdd.TabIndex = 8; buttonAdd.Text = "Добавить"; buttonAdd.UseVisualStyleBackColor = true; @@ -102,9 +103,9 @@ // label1 // label1.AutoSize = true; - label1.Location = new Point(52, 45); + label1.Location = new Point(59, 60); label1.Name = "label1"; - label1.Size = new Size(63, 15); + label1.Size = new Size(81, 20); label1.TabIndex = 10; label1.Text = "Компания"; // @@ -112,34 +113,36 @@ // comboBoxCompany.DropDownStyle = ComboBoxStyle.DropDownList; comboBoxCompany.FormattingEnabled = true; - comboBoxCompany.Location = new Point(181, 42); + comboBoxCompany.Location = new Point(207, 56); + comboBoxCompany.Margin = new Padding(3, 4, 3, 4); comboBoxCompany.Name = "comboBoxCompany"; - comboBoxCompany.Size = new Size(240, 23); + comboBoxCompany.Size = new Size(274, 28); comboBoxCompany.TabIndex = 11; // // label2 // label2.AutoSize = true; - label2.Location = new Point(52, 123); + label2.Location = new Point(59, 164); label2.Name = "label2"; - label2.Size = new Size(99, 15); + label2.Size = new Size(125, 20); label2.TabIndex = 12; label2.Text = "Сумма договора"; // // numericUpDownPrice // numericUpDownPrice.DecimalPlaces = 2; - numericUpDownPrice.Location = new Point(181, 121); + numericUpDownPrice.Location = new Point(207, 161); + numericUpDownPrice.Margin = new Padding(3, 4, 3, 4); numericUpDownPrice.Maximum = new decimal(new int[] { 1000000, 0, 0, 0 }); numericUpDownPrice.Name = "numericUpDownPrice"; - numericUpDownPrice.Size = new Size(240, 23); + numericUpDownPrice.Size = new Size(274, 27); numericUpDownPrice.TabIndex = 13; // // FormOrder // - AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(516, 576); + ClientSize = new Size(590, 768); Controls.Add(numericUpDownPrice); Controls.Add(label2); Controls.Add(comboBoxCompany); @@ -147,6 +150,7 @@ Controls.Add(buttonCancel); Controls.Add(buttonAdd); Controls.Add(dataGridView); + Margin = new Padding(3, 4, 3, 4); Name = "FormOrder"; Text = "Заказ"; ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); diff --git a/ITServiceManager/ITServiceManager/Forms/FormOrder.cs b/ITServiceManager/ITServiceManager/Forms/FormOrder.cs index 25ea8c7..38880ae 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormOrder.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormOrder.cs @@ -26,7 +26,7 @@ namespace ITServiceManager.Forms comboBoxCompany.ValueMember = "Id"; ColumnService.DataSource = serviceRepository.ReadServices(); - ColumnService.DisplayMember = "Name"; + ColumnService.DisplayMember = "ServiceType"; ColumnService.ValueMember = "Id"; } private void ButtonAdd_Click(object sender, EventArgs e) @@ -37,7 +37,7 @@ namespace ITServiceManager.Forms } try { - _orderRepository.CreateOrder(Order.CreateOperation(0, comboBoxCompany.SelectedIndex, numericUpDownPrice.Value, CreateListProductFromDataGrid())); + _orderRepository.CreateOrder(Order.CreateOperation(0, comboBoxCompany.SelectedIndex, numericUpDownPrice.Value, CreateListServiceFromDataGrid())); Close(); } catch (Exception ex) @@ -46,7 +46,7 @@ namespace ITServiceManager.Forms } } private void ButtonCancel_Click(object sender, EventArgs e) => Close(); - private List CreateListProductFromDataGrid() + private List CreateListServiceFromDataGrid() { var list = new List(); foreach (DataGridViewRow row in dataGridView.Rows) diff --git a/ITServiceManager/ITServiceManager/Forms/FormOrderService.Designer.cs b/ITServiceManager/ITServiceManager/Forms/FormOrderService.Designer.cs deleted file mode 100644 index e690af9..0000000 --- a/ITServiceManager/ITServiceManager/Forms/FormOrderService.Designer.cs +++ /dev/null @@ -1,39 +0,0 @@ -namespace ITServiceManager.Forms -{ - partial class FormOrderService - { - /// - /// Required designer variable. - /// - private System.ComponentModel.IContainer components = null; - - /// - /// Clean up any resources being used. - /// - /// true if managed resources should be disposed; otherwise, false. - protected override void Dispose(bool disposing) - { - if (disposing && (components != null)) - { - components.Dispose(); - } - base.Dispose(disposing); - } - - #region Windows Form Designer generated code - - /// - /// Required method for Designer support - do not modify - /// the contents of this method with the code editor. - /// - private void InitializeComponent() - { - this.components = new System.ComponentModel.Container(); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(800, 450); - this.Text = "FormOrderService"; - } - - #endregion - } -} \ No newline at end of file diff --git a/ITServiceManager/ITServiceManager/Forms/FormOrderService.cs b/ITServiceManager/ITServiceManager/Forms/FormOrderService.cs deleted file mode 100644 index 939d671..0000000 --- a/ITServiceManager/ITServiceManager/Forms/FormOrderService.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.ComponentModel; -using System.Data; -using System.Drawing; -using System.Linq; -using System.Text; -using System.Threading.Tasks; -using System.Windows.Forms; - -namespace ITServiceManager.Forms -{ - public partial class FormOrderService : Form - { - public FormOrderService() - { - InitializeComponent(); - } - } -} diff --git a/ITServiceManager/ITServiceManager/Forms/FormOrderService.resx b/ITServiceManager/ITServiceManager/Forms/FormOrderService.resx deleted file mode 100644 index 1af7de1..0000000 --- a/ITServiceManager/ITServiceManager/Forms/FormOrderService.resx +++ /dev/null @@ -1,120 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - \ No newline at end of file diff --git a/ITServiceManager/ITServiceManager/Forms/FormService.Designer.cs b/ITServiceManager/ITServiceManager/Forms/FormService.Designer.cs index 506e6e8..fb6bf27 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormService.Designer.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormService.Designer.cs @@ -30,19 +30,18 @@ { buttonCancel = new Button(); buttonAdd = new Button(); - textBoxName = new TextBox(); - labelDescription = new Label(); richTextBoxDescription = new RichTextBox(); label1 = new Label(); label2 = new Label(); - labelName = new Label(); + checkedListBoxType = new CheckedListBox(); SuspendLayout(); // // buttonCancel // - buttonCancel.Location = new Point(313, 275); + buttonCancel.Location = new Point(358, 367); + buttonCancel.Margin = new Padding(3, 4, 3, 4); buttonCancel.Name = "buttonCancel"; - buttonCancel.Size = new Size(112, 28); + buttonCancel.Size = new Size(128, 37); buttonCancel.TabIndex = 7; buttonCancel.Text = "Отмена"; buttonCancel.UseVisualStyleBackColor = true; @@ -50,80 +49,60 @@ // // buttonAdd // - buttonAdd.Location = new Point(87, 275); + buttonAdd.Location = new Point(99, 367); + buttonAdd.Margin = new Padding(3, 4, 3, 4); buttonAdd.Name = "buttonAdd"; - buttonAdd.Size = new Size(112, 28); + buttonAdd.Size = new Size(128, 37); buttonAdd.TabIndex = 6; buttonAdd.Text = "Добавить"; buttonAdd.UseVisualStyleBackColor = true; buttonAdd.Click += ButtonAdd_Click; // - // textBoxName - // - textBoxName.Location = new Point(243, 22); - textBoxName.Name = "textBoxName"; - textBoxName.Size = new Size(232, 23); - textBoxName.TabIndex = 5; - // - // labelDescription - // - labelDescription.AutoSize = true; - labelDescription.Location = new Point(21, 134); - labelDescription.Name = "labelDescription"; - labelDescription.Size = new Size(102, 15); - labelDescription.TabIndex = 8; - labelDescription.Text = "Описание услуги"; - // // richTextBoxDescription // - richTextBoxDescription.Location = new Point(243, 106); - richTextBoxDescription.Margin = new Padding(3, 2, 3, 2); + richTextBoxDescription.Location = new Point(278, 159); richTextBoxDescription.Name = "richTextBoxDescription"; - richTextBoxDescription.Size = new Size(232, 132); + richTextBoxDescription.Size = new Size(265, 175); richTextBoxDescription.TabIndex = 9; richTextBoxDescription.Text = ""; // // label1 // label1.AutoSize = true; - label1.Location = new Point(24, 25); + label1.Location = new Point(68, 36); label1.Name = "label1"; - label1.Size = new Size(99, 15); + label1.Size = new Size(83, 20); label1.TabIndex = 4; - label1.Text = "Название услуги"; + label1.Text = "Тип услуги"; // // label2 // label2.AutoSize = true; - label2.Location = new Point(24, 134); + label2.Location = new Point(52, 179); label2.Name = "label2"; - label2.Size = new Size(102, 15); + label2.Size = new Size(127, 20); label2.TabIndex = 8; label2.Text = "Описание услуги"; // - // labelName + // checkedListBoxType // - labelName.AutoSize = true; - labelName.Location = new Point(21, 22); - labelName.Name = "labelName"; - labelName.Size = new Size(99, 15); - labelName.TabIndex = 4; - labelName.Text = "Название услуги"; + checkedListBoxType.FormattingEnabled = true; + checkedListBoxType.Location = new Point(278, 12); + checkedListBoxType.Name = "checkedListBoxType"; + checkedListBoxType.Size = new Size(265, 114); + checkedListBoxType.TabIndex = 10; // // FormService // - AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(511, 338); + ClientSize = new Size(584, 451); + Controls.Add(checkedListBoxType); Controls.Add(richTextBoxDescription); Controls.Add(label2); - Controls.Add(labelDescription); Controls.Add(buttonCancel); Controls.Add(buttonAdd); - Controls.Add(textBoxName); Controls.Add(label1); - Controls.Add(labelName); - Margin = new Padding(3, 2, 3, 2); Name = "FormService"; StartPosition = FormStartPosition.CenterScreen; Text = "Услуга"; @@ -135,11 +114,9 @@ private Button buttonCancel; private Button buttonAdd; - private TextBox textBoxName; - private Label labelDescription; private RichTextBox richTextBoxDescription; private Label label1; private Label label2; - private Label labelName; + private CheckedListBox checkedListBoxType; } } \ No newline at end of file diff --git a/ITServiceManager/ITServiceManager/Forms/FormService.cs b/ITServiceManager/ITServiceManager/Forms/FormService.cs index 9db7e24..4191afb 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormService.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormService.cs @@ -1,6 +1,7 @@ using ITServiceManager.Entities.Enums; using ITServiceManager.Entities; using ITServiceManager.Repositories; +using Microsoft.VisualBasic.FileIO; namespace ITServiceManager.Forms; @@ -21,7 +22,16 @@ public partial class FormService : Form throw new InvalidDataException(nameof(service)); } - textBoxName.Text = service.Name; + foreach (ServiceType elem in Enum.GetValues(typeof(ServiceType))) + { + if ((elem & service.ServiceType) != 0) + { + checkedListBoxType.SetItemChecked(checkedListBoxType.Items.IndexOf( + elem), true); + } + } + + richTextBoxDescription.Text = service.Description; _serviceId = value; } @@ -37,12 +47,17 @@ public partial class FormService : Form InitializeComponent(); _serviceRepository = serviceRepository ?? throw new ArgumentNullException(nameof(serviceRepository)); + + foreach (var elem in Enum.GetValues(typeof(ServiceType))) + { + checkedListBoxType.Items.Add(elem); + } } private void ButtonAdd_Click(object sender, EventArgs e) { try { - if (string.IsNullOrWhiteSpace(textBoxName.Text) || + if (checkedListBoxType.CheckedItems.Count == 0 || string.IsNullOrWhiteSpace(richTextBoxDescription.Text)) { throw new Exception("Имеются незаполненные поля"); @@ -64,5 +79,14 @@ public partial class FormService : Form } } private void ButtonCancel_Click(object sender, EventArgs e) => Close(); - private Service CreateService(int id) => Service.CreateEntity(id, textBoxName.Text, richTextBoxDescription.Text); + private Service CreateService(int id) + { + ServiceType serviceType = ServiceType.None; + foreach (var elem in checkedListBoxType.CheckedItems) + { + serviceType |= (ServiceType)elem; + } + + return Service.CreateEntity(id, serviceType, richTextBoxDescription.Text); + } } diff --git a/ITServiceManager/ITServiceManager/Forms/FormServices.Designer.cs b/ITServiceManager/ITServiceManager/Forms/FormServices.Designer.cs index 74444b4..6e4c2db 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormServices.Designer.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormServices.Designer.cs @@ -43,18 +43,20 @@ panel.Controls.Add(buttonRemove); panel.Controls.Add(buttonAdd); panel.Dock = DockStyle.Right; - panel.Location = new Point(652, 0); + panel.Location = new Point(745, 0); + panel.Margin = new Padding(3, 4, 3, 4); panel.Name = "panel"; - panel.Size = new Size(148, 450); + panel.Size = new Size(169, 600); panel.TabIndex = 3; // // buttonUpdate // buttonUpdate.BackgroundImage = Properties.Resources.edit; buttonUpdate.BackgroundImageLayout = ImageLayout.Stretch; - buttonUpdate.Location = new Point(36, 249); + buttonUpdate.Location = new Point(41, 332); + buttonUpdate.Margin = new Padding(3, 4, 3, 4); buttonUpdate.Name = "buttonUpdate"; - buttonUpdate.Size = new Size(78, 80); + buttonUpdate.Size = new Size(89, 107); buttonUpdate.TabIndex = 2; buttonUpdate.UseVisualStyleBackColor = true; buttonUpdate.Click += ButtonUpd_Click; @@ -63,9 +65,10 @@ // buttonRemove.BackgroundImage = Properties.Resources.minus; buttonRemove.BackgroundImageLayout = ImageLayout.Stretch; - buttonRemove.Location = new Point(36, 141); + buttonRemove.Location = new Point(41, 188); + buttonRemove.Margin = new Padding(3, 4, 3, 4); buttonRemove.Name = "buttonRemove"; - buttonRemove.Size = new Size(75, 76); + buttonRemove.Size = new Size(86, 101); buttonRemove.TabIndex = 1; buttonRemove.UseVisualStyleBackColor = true; buttonRemove.Click += ButtonDel_Click; @@ -74,9 +77,10 @@ // buttonAdd.BackgroundImage = Properties.Resources.plus; buttonAdd.BackgroundImageLayout = ImageLayout.Stretch; - buttonAdd.Location = new Point(33, 43); + buttonAdd.Location = new Point(38, 57); + buttonAdd.Margin = new Padding(3, 4, 3, 4); buttonAdd.Name = "buttonAdd"; - buttonAdd.Size = new Size(81, 71); + buttonAdd.Size = new Size(93, 95); buttonAdd.TabIndex = 0; buttonAdd.UseVisualStyleBackColor = true; buttonAdd.Click += ButtonAdd_Click; @@ -90,6 +94,7 @@ dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.Dock = DockStyle.Fill; dataGridView.Location = new Point(0, 0); + dataGridView.Margin = new Padding(3, 4, 3, 4); dataGridView.MultiSelect = false; dataGridView.Name = "dataGridView"; dataGridView.ReadOnly = true; @@ -97,16 +102,17 @@ dataGridView.RowHeadersWidth = 51; dataGridView.RowTemplate.Height = 25; dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect; - dataGridView.Size = new Size(652, 450); + dataGridView.Size = new Size(745, 600); dataGridView.TabIndex = 4; // // FormServices // - AutoScaleDimensions = new SizeF(7F, 15F); + AutoScaleDimensions = new SizeF(8F, 20F); AutoScaleMode = AutoScaleMode.Font; - ClientSize = new Size(800, 450); + ClientSize = new Size(914, 600); Controls.Add(dataGridView); Controls.Add(panel); + Margin = new Padding(3, 4, 3, 4); Name = "FormServices"; StartPosition = FormStartPosition.CenterScreen; Text = "Услуги"; diff --git a/ITServiceManager/ITServiceManager/Forms/FormServices.cs b/ITServiceManager/ITServiceManager/Forms/FormServices.cs index d468018..4c5694b 100644 --- a/ITServiceManager/ITServiceManager/Forms/FormServices.cs +++ b/ITServiceManager/ITServiceManager/Forms/FormServices.cs @@ -111,8 +111,6 @@ namespace ITServiceManager.Forms return true; } - - } } diff --git a/ITServiceManager/ITServiceManager/Program.cs b/ITServiceManager/ITServiceManager/Program.cs index e3729b3..81423f3 100644 --- a/ITServiceManager/ITServiceManager/Program.cs +++ b/ITServiceManager/ITServiceManager/Program.cs @@ -25,7 +25,6 @@ namespace ITServiceManager container.RegisterType(); container.RegisterType(); container.RegisterType(); - container.RegisterType(); container.RegisterType(); container.RegisterType(); diff --git a/ITServiceManager/ITServiceManager/Repositories/IOrderServiceRepository.cs b/ITServiceManager/ITServiceManager/Repositories/IOrderServiceRepository.cs deleted file mode 100644 index d64b861..0000000 --- a/ITServiceManager/ITServiceManager/Repositories/IOrderServiceRepository.cs +++ /dev/null @@ -1,10 +0,0 @@ -using ITServiceManager.Entities; - -namespace ITServiceManager.Repositories; - -public interface IOrderServiceRepository -{ - IEnumerable ReadServicesConsumption(); - OrderService ReadServiceConsumptionById(int id); - void CreateServiceConsumption(OrderService serviceConsumption); -} diff --git a/ITServiceManager/ITServiceManager/Repositories/Implementations/OrderServiceRepository.cs b/ITServiceManager/ITServiceManager/Repositories/Implementations/OrderServiceRepository.cs deleted file mode 100644 index c0f9232..0000000 --- a/ITServiceManager/ITServiceManager/Repositories/Implementations/OrderServiceRepository.cs +++ /dev/null @@ -1,19 +0,0 @@ -using ITServiceManager.Entities; - -namespace ITServiceManager.Repositories.Implementations; - -public class OrderServiceRepository : IOrderServiceRepository -{ - public IEnumerable ReadServicesConsumption() - { - return []; - } - public OrderService ReadServiceConsumptionById(int id) - { - return null; - } - public void CreateServiceConsumption(OrderService serviceConsumption) - { - - } -}