Переименование проекта
@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00
|
|||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.11.35222.181
|
VisualStudioVersion = 17.11.35222.181
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectConfectionaryFactory", "ProjectConfectionaryFactory\ProjectConfectionaryFactory.csproj", "{B7790CDB-40A9-4462-AA15-04C10DCFCF7B}"
|
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ProjectConfectioneryFactory", "ProjectConfectioneryFactory\ProjectConfectioneryFactory.csproj", "{B7790CDB-40A9-4462-AA15-04C10DCFCF7B}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Entities;
|
namespace ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
public class Client
|
public class Client
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Entities;
|
namespace ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
public class Component
|
public class Component
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
namespace ProjectConfectionaryFactory.Entities.Enums;
|
namespace ProjectConfectioneryFactory.Entities.Enums;
|
||||||
|
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum ConfectionaryType
|
public enum ConfectioneryType
|
||||||
{
|
{
|
||||||
None = 0,
|
None = 0,
|
||||||
Cake = 1,
|
Cake = 1,
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Entities;
|
namespace ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
public class Order
|
public class Order
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Entities;
|
namespace ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
public class OrderProduct
|
public class OrderProduct
|
||||||
{
|
{
|
@ -1,21 +1,21 @@
|
|||||||
using ProjectConfectionaryFactory.Entities.Enums;
|
using ProjectConfectioneryFactory.Entities.Enums;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Entities;
|
namespace ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
public class Product
|
public class Product
|
||||||
{
|
{
|
||||||
public int Id { get; private set; }
|
public int Id { get; private set; }
|
||||||
public ConfectionaryType ConfectionaryType { get; private set; }
|
public ConfectioneryType ConfectioneryType { get; private set; }
|
||||||
public string Name { get; private set; } = string.Empty;
|
public string Name { get; private set; } = string.Empty;
|
||||||
public double Price { get; private set; }
|
public double Price { get; private set; }
|
||||||
public IEnumerable<ProductComponent> ProductComponents { get; private set; } = [];
|
public IEnumerable<ProductComponent> ProductComponents { get; private set; } = [];
|
||||||
|
|
||||||
public static Product CreateEntity(int id, ConfectionaryType сonfectionaryType, string name, double price, IEnumerable<ProductComponent> productComponents)
|
public static Product CreateEntity(int id, ConfectioneryType сonfectionaryType, string name, double price, IEnumerable<ProductComponent> productComponents)
|
||||||
{
|
{
|
||||||
return new Product
|
return new Product
|
||||||
{
|
{
|
||||||
Id = id,
|
Id = id,
|
||||||
ConfectionaryType = сonfectionaryType,
|
ConfectioneryType = сonfectionaryType,
|
||||||
Name = name ?? string.Empty,
|
Name = name ?? string.Empty,
|
||||||
Price = price,
|
Price = price,
|
||||||
ProductComponents = productComponents
|
ProductComponents = productComponents
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Entities;
|
namespace ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
public class ProductComponent
|
public class ProductComponent
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Entities;
|
namespace ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
public class Supplier
|
public class Supplier
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Entities;
|
namespace ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
public class Supply
|
public class Supply
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
namespace ProjectConfectionaryFactory
|
namespace ProjectConfectioneryFactory
|
||||||
{
|
{
|
||||||
partial class FormConfectionaryFactory
|
partial class FormConfectioneryFactory
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
@ -112,7 +112,7 @@
|
|||||||
отчётыToolStripMenuItem.Size = new Size(60, 20);
|
отчётыToolStripMenuItem.Size = new Size(60, 20);
|
||||||
отчётыToolStripMenuItem.Text = "Отчёты";
|
отчётыToolStripMenuItem.Text = "Отчёты";
|
||||||
//
|
//
|
||||||
// FormConfectionaryFactory
|
// FormConfectioneryFactory
|
||||||
//
|
//
|
||||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
@ -121,7 +121,7 @@
|
|||||||
ClientSize = new Size(784, 411);
|
ClientSize = new Size(784, 411);
|
||||||
Controls.Add(menuStrip1);
|
Controls.Add(menuStrip1);
|
||||||
MainMenuStrip = menuStrip1;
|
MainMenuStrip = menuStrip1;
|
||||||
Name = "FormConfectionaryFactory";
|
Name = "FormConfectioneryFactory";
|
||||||
StartPosition = FormStartPosition.CenterScreen;
|
StartPosition = FormStartPosition.CenterScreen;
|
||||||
Text = "Кондитерская фабрика";
|
Text = "Кондитерская фабрика";
|
||||||
menuStrip1.ResumeLayout(false);
|
menuStrip1.ResumeLayout(false);
|
@ -1,13 +1,13 @@
|
|||||||
using ProjectConfectionaryFactory.Forms;
|
using ProjectConfectioneryFactory.Forms;
|
||||||
using Unity;
|
using Unity;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory
|
namespace ProjectConfectioneryFactory
|
||||||
{
|
{
|
||||||
public partial class FormConfectionaryFactory : Form
|
public partial class FormConfectioneryFactory : Form
|
||||||
{
|
{
|
||||||
private readonly IUnityContainer _container;
|
private readonly IUnityContainer _container;
|
||||||
|
|
||||||
public FormConfectionaryFactory(IUnityContainer container)
|
public FormConfectioneryFactory(IUnityContainer container)
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_container = container ?? throw new ArgumentNullException(nameof(container));
|
_container = container ?? throw new ArgumentNullException(nameof(container));
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormClient
|
partial class FormClient
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormClient : Form
|
public partial class FormClient : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormClients
|
partial class FormClients
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using Unity;
|
using Unity;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormClients : Form
|
public partial class FormClients : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormComponent
|
partial class FormComponent
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormComponent : Form
|
public partial class FormComponent : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormComponents
|
partial class FormComponents
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using Unity;
|
using Unity;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormComponents : Form
|
public partial class FormComponents : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormOrder
|
partial class FormOrder
|
||||||
{
|
{
|
@ -1,8 +1,8 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using ProjectConfectionaryFactory.Repositories.Implementations;
|
using ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormOrder : Form
|
public partial class FormOrder : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormOrders
|
partial class FormOrders
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using Unity;
|
using Unity;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormOrders : Form
|
public partial class FormOrders : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormProduct
|
partial class FormProduct
|
||||||
{
|
{
|
||||||
@ -35,7 +35,7 @@
|
|||||||
label3 = new Label();
|
label3 = new Label();
|
||||||
buttonCancel = new Button();
|
buttonCancel = new Button();
|
||||||
buttonSave = new Button();
|
buttonSave = new Button();
|
||||||
checkedListBoxConfectionaryType = new CheckedListBox();
|
checkedListBoxConfectioneryType = new CheckedListBox();
|
||||||
groupBox1 = new GroupBox();
|
groupBox1 = new GroupBox();
|
||||||
dataGridViewComponents = new DataGridView();
|
dataGridViewComponents = new DataGridView();
|
||||||
ColumnComponent = new DataGridViewComboBoxColumn();
|
ColumnComponent = new DataGridViewComboBoxColumn();
|
||||||
@ -111,13 +111,13 @@
|
|||||||
buttonSave.UseVisualStyleBackColor = true;
|
buttonSave.UseVisualStyleBackColor = true;
|
||||||
buttonSave.Click += ButtonSave_Click;
|
buttonSave.Click += ButtonSave_Click;
|
||||||
//
|
//
|
||||||
// checkedListBoxConfectionaryType
|
// checkedListBoxConfectioneryType
|
||||||
//
|
//
|
||||||
checkedListBoxConfectionaryType.FormattingEnabled = true;
|
checkedListBoxConfectioneryType.FormattingEnabled = true;
|
||||||
checkedListBoxConfectionaryType.Location = new Point(150, 31);
|
checkedListBoxConfectioneryType.Location = new Point(150, 31);
|
||||||
checkedListBoxConfectionaryType.Name = "checkedListBoxConfectionaryType";
|
checkedListBoxConfectioneryType.Name = "checkedListBoxConfectioneryType";
|
||||||
checkedListBoxConfectionaryType.Size = new Size(207, 112);
|
checkedListBoxConfectioneryType.Size = new Size(207, 112);
|
||||||
checkedListBoxConfectionaryType.TabIndex = 12;
|
checkedListBoxConfectioneryType.TabIndex = 12;
|
||||||
//
|
//
|
||||||
// groupBox1
|
// groupBox1
|
||||||
//
|
//
|
||||||
@ -163,7 +163,7 @@
|
|||||||
AutoScaleMode = AutoScaleMode.Font;
|
AutoScaleMode = AutoScaleMode.Font;
|
||||||
ClientSize = new Size(384, 579);
|
ClientSize = new Size(384, 579);
|
||||||
Controls.Add(groupBox1);
|
Controls.Add(groupBox1);
|
||||||
Controls.Add(checkedListBoxConfectionaryType);
|
Controls.Add(checkedListBoxConfectioneryType);
|
||||||
Controls.Add(buttonCancel);
|
Controls.Add(buttonCancel);
|
||||||
Controls.Add(buttonSave);
|
Controls.Add(buttonSave);
|
||||||
Controls.Add(label3);
|
Controls.Add(label3);
|
||||||
@ -189,7 +189,7 @@
|
|||||||
private Label label3;
|
private Label label3;
|
||||||
private Button buttonCancel;
|
private Button buttonCancel;
|
||||||
private Button buttonSave;
|
private Button buttonSave;
|
||||||
private CheckedListBox checkedListBoxConfectionaryType;
|
private CheckedListBox checkedListBoxConfectioneryType;
|
||||||
private GroupBox groupBox1;
|
private GroupBox groupBox1;
|
||||||
private DataGridView dataGridViewComponents;
|
private DataGridView dataGridViewComponents;
|
||||||
private DataGridViewComboBoxColumn ColumnComponent;
|
private DataGridViewComboBoxColumn ColumnComponent;
|
@ -1,10 +1,10 @@
|
|||||||
using Microsoft.VisualBasic.FileIO;
|
using Microsoft.VisualBasic.FileIO;
|
||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
using ProjectConfectionaryFactory.Entities.Enums;
|
using ProjectConfectioneryFactory.Entities.Enums;
|
||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using ProjectConfectionaryFactory.Repositories.Implementations;
|
using ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormProduct : Form
|
public partial class FormProduct : Form
|
||||||
{
|
{
|
||||||
@ -23,11 +23,11 @@ namespace ProjectConfectionaryFactory.Forms
|
|||||||
{
|
{
|
||||||
throw new InvalidDataException(nameof(product));
|
throw new InvalidDataException(nameof(product));
|
||||||
}
|
}
|
||||||
foreach (ConfectionaryType elem in Enum.GetValues(typeof(ConfectionaryType)))
|
foreach (ConfectioneryType elem in Enum.GetValues(typeof(ConfectioneryType)))
|
||||||
{
|
{
|
||||||
if ((elem & product.ConfectionaryType) != 0)
|
if ((elem & product.ConfectioneryType) != 0)
|
||||||
{
|
{
|
||||||
checkedListBoxConfectionaryType.SetItemChecked(checkedListBoxConfectionaryType.Items.IndexOf(elem), true);
|
checkedListBoxConfectioneryType.SetItemChecked(checkedListBoxConfectioneryType.Items.IndexOf(elem), true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
textBoxProductName.Text = product.Name;
|
textBoxProductName.Text = product.Name;
|
||||||
@ -47,9 +47,9 @@ namespace ProjectConfectionaryFactory.Forms
|
|||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
_productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
|
_productRepository = productRepository ?? throw new ArgumentNullException(nameof(productRepository));
|
||||||
|
|
||||||
foreach (var elem in Enum.GetValues(typeof(ConfectionaryType)))
|
foreach (var elem in Enum.GetValues(typeof(ConfectioneryType)))
|
||||||
{
|
{
|
||||||
checkedListBoxConfectionaryType.Items.Add(elem);
|
checkedListBoxConfectioneryType.Items.Add(elem);
|
||||||
}
|
}
|
||||||
|
|
||||||
ColumnComponent.DataSource = componentRepository.ReadComponents();
|
ColumnComponent.DataSource = componentRepository.ReadComponents();
|
||||||
@ -61,7 +61,7 @@ namespace ProjectConfectionaryFactory.Forms
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (checkedListBoxConfectionaryType.CheckedItems.Count == 0 || string.IsNullOrWhiteSpace(textBoxProductName.Text) || dataGridViewComponents.RowCount < 1)
|
if (checkedListBoxConfectioneryType.CheckedItems.Count == 0 || string.IsNullOrWhiteSpace(textBoxProductName.Text) || dataGridViewComponents.RowCount < 1)
|
||||||
{
|
{
|
||||||
throw new Exception("Имеются незаполненные поля");
|
throw new Exception("Имеются незаполненные поля");
|
||||||
}
|
}
|
||||||
@ -102,14 +102,14 @@ namespace ProjectConfectionaryFactory.Forms
|
|||||||
|
|
||||||
private Product CreateProduct(int id)
|
private Product CreateProduct(int id)
|
||||||
{
|
{
|
||||||
ConfectionaryType confectionaryType = ConfectionaryType.None;
|
ConfectioneryType confectioneryType = ConfectioneryType.None;
|
||||||
foreach (var elem in checkedListBoxConfectionaryType.CheckedItems)
|
foreach (var elem in checkedListBoxConfectioneryType.CheckedItems)
|
||||||
{
|
{
|
||||||
confectionaryType |= (ConfectionaryType)elem;
|
confectioneryType |= (ConfectioneryType)elem;
|
||||||
}
|
}
|
||||||
return Product.CreateEntity(
|
return Product.CreateEntity(
|
||||||
id,
|
id,
|
||||||
confectionaryType,
|
confectioneryType,
|
||||||
textBoxProductName.Text,
|
textBoxProductName.Text,
|
||||||
(double)numericUpDownPrice.Value,
|
(double)numericUpDownPrice.Value,
|
||||||
CreateListProductComponentFromDataGrid());
|
CreateListProductComponentFromDataGrid());
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormProducts
|
partial class FormProducts
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using Unity;
|
using Unity;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormProducts : Form
|
public partial class FormProducts : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormSupplier
|
partial class FormSupplier
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormSupplier : Form
|
public partial class FormSupplier : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormSuppliers
|
partial class FormSuppliers
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using Unity;
|
using Unity;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormSuppliers : Form
|
public partial class FormSuppliers : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormSupply
|
partial class FormSupply
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormSupply : Form
|
public partial class FormSupply : Form
|
||||||
{
|
{
|
@ -1,4 +1,4 @@
|
|||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
partial class FormSupplys
|
partial class FormSupplys
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using Unity;
|
using Unity;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Forms
|
namespace ProjectConfectioneryFactory.Forms
|
||||||
{
|
{
|
||||||
public partial class FormSupplys : Form
|
public partial class FormSupplys : Form
|
||||||
{
|
{
|
@ -1,9 +1,9 @@
|
|||||||
using Unity.Lifetime;
|
using Unity.Lifetime;
|
||||||
using Unity;
|
using Unity;
|
||||||
using ProjectConfectionaryFactory.Repositories;
|
using ProjectConfectioneryFactory.Repositories;
|
||||||
using ProjectConfectionaryFactory.Repositories.Implementations;
|
using ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory
|
namespace ProjectConfectioneryFactory
|
||||||
{
|
{
|
||||||
internal static class Program
|
internal static class Program
|
||||||
{
|
{
|
||||||
@ -16,7 +16,7 @@ namespace ProjectConfectionaryFactory
|
|||||||
// To customize application configuration such as set high DPI settings or default font,
|
// To customize application configuration such as set high DPI settings or default font,
|
||||||
// see https://aka.ms/applicationconfiguration.
|
// see https://aka.ms/applicationconfiguration.
|
||||||
ApplicationConfiguration.Initialize();
|
ApplicationConfiguration.Initialize();
|
||||||
Application.Run(CreateContainer().Resolve<FormConfectionaryFactory>());
|
Application.Run(CreateContainer().Resolve<FormConfectioneryFactory>());
|
||||||
}
|
}
|
||||||
|
|
||||||
private static IUnityContainer CreateContainer()
|
private static IUnityContainer CreateContainer()
|
@ -8,7 +8,7 @@
|
|||||||
// </auto-generated>
|
// </auto-generated>
|
||||||
//------------------------------------------------------------------------------
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Properties {
|
namespace ProjectConfectioneryFactory.Properties {
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
|
||||||
@ -39,7 +39,7 @@ namespace ProjectConfectionaryFactory.Properties {
|
|||||||
internal static global::System.Resources.ResourceManager ResourceManager {
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||||
get {
|
get {
|
||||||
if (object.ReferenceEquals(resourceMan, null)) {
|
if (object.ReferenceEquals(resourceMan, null)) {
|
||||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ProjectConfectionaryFactory.Properties.Resources", typeof(Resources).Assembly);
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("ProjectConfectioneryFactory.Properties.Resources", typeof(Resources).Assembly);
|
||||||
resourceMan = temp;
|
resourceMan = temp;
|
||||||
}
|
}
|
||||||
return resourceMan;
|
return resourceMan;
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories;
|
namespace ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
public interface IClientRepository
|
public interface IClientRepository
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories;
|
namespace ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
public interface IComponentRepository
|
public interface IComponentRepository
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories;
|
namespace ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
public interface IOrderRepository
|
public interface IOrderRepository
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories;
|
namespace ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
public interface IProductRepository
|
public interface IProductRepository
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories;
|
namespace ProjectConfectioneryFactory.Repositories;
|
||||||
|
|
||||||
public interface ISupplierRepository
|
public interface ISupplierRepository
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories;
|
namespace ProjectConfectioneryFactory.Repositories;
|
||||||
public interface ISupplyRepository
|
public interface ISupplyRepository
|
||||||
{
|
{
|
||||||
IEnumerable<Supply> ReadSupplys();
|
IEnumerable<Supply> ReadSupplys();
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
namespace ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
public class ClientRepository : IClientRepository
|
public class ClientRepository : IClientRepository
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
namespace ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
public class ComponentRepository : IComponentRepository
|
public class ComponentRepository : IComponentRepository
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
namespace ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
public class OrderRepository : IOrderRepository
|
public class OrderRepository : IOrderRepository
|
||||||
{
|
{
|
@ -1,7 +1,7 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
using ProjectConfectionaryFactory.Entities.Enums;
|
using ProjectConfectioneryFactory.Entities.Enums;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
namespace ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
public class ProductRepository : IProductRepository
|
public class ProductRepository : IProductRepository
|
||||||
{
|
{
|
||||||
@ -15,7 +15,7 @@ public class ProductRepository : IProductRepository
|
|||||||
|
|
||||||
public Product ReadProductById(int id)
|
public Product ReadProductById(int id)
|
||||||
{
|
{
|
||||||
return Product.CreateEntity(0, ConfectionaryType.None, string.Empty, 0, null);
|
return Product.CreateEntity(0, ConfectioneryType.None, string.Empty, 0, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
public IEnumerable<Product> ReadProducts()
|
public IEnumerable<Product> ReadProducts()
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
namespace ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
public class SupplierRepository : ISupplierRepository
|
public class SupplierRepository : ISupplierRepository
|
||||||
{
|
{
|
@ -1,6 +1,6 @@
|
|||||||
using ProjectConfectionaryFactory.Entities;
|
using ProjectConfectioneryFactory.Entities;
|
||||||
|
|
||||||
namespace ProjectConfectionaryFactory.Repositories.Implementations;
|
namespace ProjectConfectioneryFactory.Repositories.Implementations;
|
||||||
|
|
||||||
public class SupplyRepository : ISupplyRepository
|
public class SupplyRepository : ISupplyRepository
|
||||||
{
|
{
|
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 736 KiB After Width: | Height: | Size: 736 KiB |
Before Width: | Height: | Size: 8.5 KiB After Width: | Height: | Size: 8.5 KiB |
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 8.9 KiB |