From b681091801a3c8c7237c30ad66ce4f736e0bcb7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=95=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=91=D0=B0=D0=BA=D0=B0?= =?UTF-8?q?=D0=BB=D1=8C=D1=81=D0=BA=D0=B0=D1=8F?= Date: Wed, 24 Apr 2024 09:49:52 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B8=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=B8=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=BC=D0=BE=D0=B4=D0=B5=D0=BB=D0=B8=20=D0=B4=D0=B0?= =?UTF-8?q?=D0=BD=D0=BD=D1=8B=D1=85=20-=20=D1=83=D0=B1=D1=80=D0=B0=D0=BB?= =?UTF-8?q?=D0=B0=20=D0=BE=D0=B1=D1=89=D0=B8=D0=B9=20=D0=B0=D0=B9=D0=B4?= =?UTF-8?q?=D0=B8=D1=88=D0=BD=D0=B8=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- BeautySalon/BeautySalon/FormMain.Designer.cs | 39 +++++++++++++-- BeautySalon/BeautySalon/FormMain.resx | 50 +++++++++---------- BeautySalon/BeautySalonDBModels/ICheque.cs | 15 ++++++ BeautySalon/BeautySalonDBModels/IClient.cs | 15 ++++++ BeautySalon/BeautySalonDBModels/IMaster.cs | 15 ++++++ BeautySalon/BeautySalonDBModels/IReception.cs | 16 ++++++ BeautySalon/BeautySalonDBModels/IService.cs | 16 ++++++ .../BeautySalonDBModels/ISpecialisation.cs | 14 ++++++ 8 files changed, 151 insertions(+), 29 deletions(-) create mode 100644 BeautySalon/BeautySalonDBModels/ICheque.cs create mode 100644 BeautySalon/BeautySalonDBModels/IClient.cs create mode 100644 BeautySalon/BeautySalonDBModels/IMaster.cs create mode 100644 BeautySalon/BeautySalonDBModels/IReception.cs create mode 100644 BeautySalon/BeautySalonDBModels/IService.cs create mode 100644 BeautySalon/BeautySalonDBModels/ISpecialisation.cs diff --git a/BeautySalon/BeautySalon/FormMain.Designer.cs b/BeautySalon/BeautySalon/FormMain.Designer.cs index 248a5c3..1a032ec 100644 --- a/BeautySalon/BeautySalon/FormMain.Designer.cs +++ b/BeautySalon/BeautySalon/FormMain.Designer.cs @@ -28,12 +28,43 @@ /// 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 = "FormMain"; + comboBoxService = new ComboBox(); + label1 = new Label(); + SuspendLayout(); + // + // comboBoxService + // + comboBoxService.FormattingEnabled = true; + comboBoxService.Location = new Point(310, 209); + comboBoxService.Name = "comboBoxService"; + comboBoxService.Size = new Size(227, 28); + comboBoxService.TabIndex = 0; + // + // label1 + // + label1.AutoSize = true; + label1.Location = new Point(350, 253); + label1.Name = "label1"; + label1.Size = new Size(124, 20); + label1.TabIndex = 1; + label1.Text = "Выберите услугу"; + // + // FormMain + // + AutoScaleDimensions = new SizeF(8F, 20F); + AutoScaleMode = AutoScaleMode.Font; + ClientSize = new Size(817, 456); + Controls.Add(label1); + Controls.Add(comboBoxService); + Name = "FormMain"; + Text = "FormMain"; + ResumeLayout(false); + PerformLayout(); } #endregion + + private ComboBox comboBoxService; + private Label label1; } } \ No newline at end of file diff --git a/BeautySalon/BeautySalon/FormMain.resx b/BeautySalon/BeautySalon/FormMain.resx index 1af7de1..af32865 100644 --- a/BeautySalon/BeautySalon/FormMain.resx +++ b/BeautySalon/BeautySalon/FormMain.resx @@ -1,17 +1,17 @@  - diff --git a/BeautySalon/BeautySalonDBModels/ICheque.cs b/BeautySalon/BeautySalonDBModels/ICheque.cs new file mode 100644 index 0000000..5cf6063 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/ICheque.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonDBModels +{ + public interface ICheque + { + int ChequeId { get; } + int ClientId { get; } + string ReceptionId { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/IClient.cs b/BeautySalon/BeautySalonDBModels/IClient.cs new file mode 100644 index 0000000..e351b71 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/IClient.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonDBModels +{ + public interface IClient + { + int ClientId { get; } + string FIO { get; } + int Age { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/IMaster.cs b/BeautySalon/BeautySalonDBModels/IMaster.cs new file mode 100644 index 0000000..1accf98 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/IMaster.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonDBModels +{ + public interface IMaster + { + int MasterId { get; } + int SpecialisationId { get; } + string FIO { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/IReception.cs b/BeautySalon/BeautySalonDBModels/IReception.cs new file mode 100644 index 0000000..e85cd2b --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/IReception.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonDBModels +{ + public interface IReception + { + int ReceptionId { get; } + int MasterId { get; } + int ServiceId { get; } + DateTime DateReception { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/IService.cs b/BeautySalon/BeautySalonDBModels/IService.cs new file mode 100644 index 0000000..cafd066 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/IService.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonDBModels +{ + public interface IService + { + int ServiceId { get; } + string ServiceName { get; } + double Price { get; } + int SpecialisationId { get; } + } +} diff --git a/BeautySalon/BeautySalonDBModels/ISpecialisation.cs b/BeautySalon/BeautySalonDBModels/ISpecialisation.cs new file mode 100644 index 0000000..ca3db02 --- /dev/null +++ b/BeautySalon/BeautySalonDBModels/ISpecialisation.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace BeautySalonDBModels +{ + public interface ISpecialisation + { + int SpecialisationId { get; } + string Name { get; } + } +}