2024-06-23 17:04:26 +04:00
|
|
|
|
namespace WinFormsApp
|
|
|
|
|
{
|
|
|
|
|
partial class FormSuppliers
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required designer variable.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private System.ComponentModel.IContainer components = null;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Clean up any resources being used.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
|
|
|
|
protected override void Dispose(bool disposing)
|
|
|
|
|
{
|
|
|
|
|
if (disposing && (components != null))
|
|
|
|
|
{
|
|
|
|
|
components.Dispose();
|
|
|
|
|
}
|
|
|
|
|
base.Dispose(disposing);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#region Windows Form Designer generated code
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Required method for Designer support - do not modify
|
|
|
|
|
/// the contents of this method with the code editor.
|
|
|
|
|
/// </summary>
|
|
|
|
|
private void InitializeComponent()
|
|
|
|
|
{
|
|
|
|
|
groupBoxCreateSupplier = new GroupBox();
|
2024-06-23 18:55:46 +04:00
|
|
|
|
label4 = new Label();
|
|
|
|
|
label3 = new Label();
|
|
|
|
|
numericUpDownDeals = new NumericUpDown();
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxSupplierProducts = new GroupBox();
|
2024-06-23 19:31:00 +04:00
|
|
|
|
buttonDeleteProduct = new Button();
|
2024-06-23 17:04:26 +04:00
|
|
|
|
label2 = new Label();
|
|
|
|
|
buttonCancel = new Button();
|
|
|
|
|
label1 = new Label();
|
|
|
|
|
buttonSaveSupplier = new Button();
|
|
|
|
|
numericUpDownCount = new NumericUpDown();
|
|
|
|
|
comboBoxProducts = new ComboBox();
|
|
|
|
|
dataGridViewProducts = new DataGridView();
|
|
|
|
|
buttonAddSupplierProduct = new Button();
|
|
|
|
|
textBoxName = new TextBox();
|
|
|
|
|
groupBoxControls = new GroupBox();
|
|
|
|
|
buttonDeleteSupplier = new Button();
|
|
|
|
|
buttonUpdateSupplier = new Button();
|
|
|
|
|
buttonCreateSupplier = new Button();
|
|
|
|
|
dataGridView = new DataGridView();
|
2024-06-23 19:31:00 +04:00
|
|
|
|
ColumnId = new DataGridViewTextBoxColumn();
|
|
|
|
|
Column = new DataGridViewTextBoxColumn();
|
|
|
|
|
Column2 = new DataGridViewTextBoxColumn();
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxCreateSupplier.SuspendLayout();
|
2024-06-23 18:55:46 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownDeals).BeginInit();
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxSupplierProducts.SuspendLayout();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownCount).BeginInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridViewProducts).BeginInit();
|
|
|
|
|
groupBoxControls.SuspendLayout();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
|
|
|
|
SuspendLayout();
|
|
|
|
|
//
|
|
|
|
|
// groupBoxCreateSupplier
|
|
|
|
|
//
|
|
|
|
|
groupBoxCreateSupplier.BackColor = Color.Transparent;
|
|
|
|
|
groupBoxCreateSupplier.Controls.Add(label4);
|
|
|
|
|
groupBoxCreateSupplier.Controls.Add(label3);
|
|
|
|
|
groupBoxCreateSupplier.Controls.Add(numericUpDownDeals);
|
|
|
|
|
groupBoxCreateSupplier.Controls.Add(groupBoxSupplierProducts);
|
|
|
|
|
groupBoxCreateSupplier.Controls.Add(textBoxName);
|
|
|
|
|
groupBoxCreateSupplier.Dock = DockStyle.Right;
|
|
|
|
|
groupBoxCreateSupplier.Location = new Point(288, 0);
|
|
|
|
|
groupBoxCreateSupplier.Name = "groupBoxCreateSupplier";
|
|
|
|
|
groupBoxCreateSupplier.Size = new Size(367, 637);
|
|
|
|
|
groupBoxCreateSupplier.TabIndex = 6;
|
|
|
|
|
groupBoxCreateSupplier.TabStop = false;
|
|
|
|
|
groupBoxCreateSupplier.Text = "Создание/изменение поставщика";
|
|
|
|
|
//
|
2024-06-23 18:55:46 +04:00
|
|
|
|
// label4
|
|
|
|
|
//
|
|
|
|
|
label4.AutoSize = true;
|
|
|
|
|
label4.Location = new Point(17, 93);
|
|
|
|
|
label4.Name = "label4";
|
|
|
|
|
label4.Size = new Size(87, 15);
|
|
|
|
|
label4.TabIndex = 15;
|
|
|
|
|
label4.Text = "Кол-во сделок";
|
|
|
|
|
//
|
|
|
|
|
// label3
|
|
|
|
|
//
|
|
|
|
|
label3.AutoSize = true;
|
|
|
|
|
label3.Location = new Point(6, 54);
|
|
|
|
|
label3.Name = "label3";
|
|
|
|
|
label3.Size = new Size(101, 15);
|
|
|
|
|
label3.TabIndex = 14;
|
|
|
|
|
label3.Text = "Имя поставщика";
|
|
|
|
|
//
|
|
|
|
|
// numericUpDownDeals
|
|
|
|
|
//
|
|
|
|
|
numericUpDownDeals.Location = new Point(110, 91);
|
|
|
|
|
numericUpDownDeals.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
|
|
|
|
|
numericUpDownDeals.Name = "numericUpDownDeals";
|
|
|
|
|
numericUpDownDeals.Size = new Size(245, 23);
|
|
|
|
|
numericUpDownDeals.TabIndex = 14;
|
|
|
|
|
//
|
2024-06-23 17:04:26 +04:00
|
|
|
|
// groupBoxSupplierProducts
|
|
|
|
|
//
|
2024-06-23 19:31:00 +04:00
|
|
|
|
groupBoxSupplierProducts.Controls.Add(buttonDeleteProduct);
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxSupplierProducts.Controls.Add(label2);
|
|
|
|
|
groupBoxSupplierProducts.Controls.Add(buttonCancel);
|
|
|
|
|
groupBoxSupplierProducts.Controls.Add(label1);
|
|
|
|
|
groupBoxSupplierProducts.Controls.Add(buttonSaveSupplier);
|
|
|
|
|
groupBoxSupplierProducts.Controls.Add(numericUpDownCount);
|
|
|
|
|
groupBoxSupplierProducts.Controls.Add(comboBoxProducts);
|
|
|
|
|
groupBoxSupplierProducts.Controls.Add(dataGridViewProducts);
|
|
|
|
|
groupBoxSupplierProducts.Controls.Add(buttonAddSupplierProduct);
|
|
|
|
|
groupBoxSupplierProducts.Location = new Point(0, 149);
|
|
|
|
|
groupBoxSupplierProducts.Name = "groupBoxSupplierProducts";
|
|
|
|
|
groupBoxSupplierProducts.Size = new Size(361, 482);
|
|
|
|
|
groupBoxSupplierProducts.TabIndex = 10;
|
|
|
|
|
groupBoxSupplierProducts.TabStop = false;
|
|
|
|
|
groupBoxSupplierProducts.Text = "Доступные товары поставщика";
|
|
|
|
|
//
|
2024-06-23 19:31:00 +04:00
|
|
|
|
// buttonDeleteProduct
|
2024-06-23 18:55:46 +04:00
|
|
|
|
//
|
2024-06-23 19:31:00 +04:00
|
|
|
|
buttonDeleteProduct.Location = new Point(58, 307);
|
|
|
|
|
buttonDeleteProduct.Name = "buttonDeleteProduct";
|
|
|
|
|
buttonDeleteProduct.Size = new Size(81, 23);
|
|
|
|
|
buttonDeleteProduct.TabIndex = 15;
|
|
|
|
|
buttonDeleteProduct.Text = "Удалить";
|
|
|
|
|
buttonDeleteProduct.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonDeleteProduct.Click += buttonDeleteProduct_Click;
|
2024-06-23 18:55:46 +04:00
|
|
|
|
//
|
2024-06-23 17:04:26 +04:00
|
|
|
|
// label2
|
|
|
|
|
//
|
|
|
|
|
label2.AutoSize = true;
|
|
|
|
|
label2.Location = new Point(6, 251);
|
|
|
|
|
label2.Name = "label2";
|
|
|
|
|
label2.Size = new Size(46, 15);
|
|
|
|
|
label2.TabIndex = 13;
|
|
|
|
|
label2.Text = "Кол-во";
|
|
|
|
|
//
|
|
|
|
|
// buttonCancel
|
|
|
|
|
//
|
|
|
|
|
buttonCancel.Location = new Point(262, 453);
|
|
|
|
|
buttonCancel.Name = "buttonCancel";
|
|
|
|
|
buttonCancel.Size = new Size(75, 23);
|
|
|
|
|
buttonCancel.TabIndex = 5;
|
|
|
|
|
buttonCancel.Text = "Отмена";
|
|
|
|
|
buttonCancel.UseVisualStyleBackColor = true;
|
2024-06-23 18:55:46 +04:00
|
|
|
|
buttonCancel.Click += buttonCancel_Click;
|
2024-06-23 17:04:26 +04:00
|
|
|
|
//
|
|
|
|
|
// label1
|
|
|
|
|
//
|
|
|
|
|
label1.AutoSize = true;
|
|
|
|
|
label1.Location = new Point(13, 223);
|
|
|
|
|
label1.Name = "label1";
|
|
|
|
|
label1.Size = new Size(39, 15);
|
|
|
|
|
label1.TabIndex = 12;
|
|
|
|
|
label1.Text = "Товар";
|
|
|
|
|
//
|
|
|
|
|
// buttonSaveSupplier
|
|
|
|
|
//
|
|
|
|
|
buttonSaveSupplier.Location = new Point(29, 453);
|
|
|
|
|
buttonSaveSupplier.Name = "buttonSaveSupplier";
|
|
|
|
|
buttonSaveSupplier.Size = new Size(75, 23);
|
|
|
|
|
buttonSaveSupplier.TabIndex = 4;
|
|
|
|
|
buttonSaveSupplier.Text = "Сохранить";
|
|
|
|
|
buttonSaveSupplier.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonSaveSupplier.Click += buttonSaveProduct_Click;
|
|
|
|
|
//
|
|
|
|
|
// numericUpDownCount
|
|
|
|
|
//
|
|
|
|
|
numericUpDownCount.Location = new Point(58, 249);
|
|
|
|
|
numericUpDownCount.Maximum = new decimal(new int[] { 100000, 0, 0, 0 });
|
|
|
|
|
numericUpDownCount.Name = "numericUpDownCount";
|
|
|
|
|
numericUpDownCount.Size = new Size(297, 23);
|
|
|
|
|
numericUpDownCount.TabIndex = 11;
|
|
|
|
|
//
|
|
|
|
|
// comboBoxProducts
|
|
|
|
|
//
|
|
|
|
|
comboBoxProducts.FormattingEnabled = true;
|
|
|
|
|
comboBoxProducts.Location = new Point(58, 220);
|
|
|
|
|
comboBoxProducts.Name = "comboBoxProducts";
|
|
|
|
|
comboBoxProducts.Size = new Size(297, 23);
|
|
|
|
|
comboBoxProducts.TabIndex = 10;
|
|
|
|
|
//
|
|
|
|
|
// dataGridViewProducts
|
|
|
|
|
//
|
|
|
|
|
dataGridViewProducts.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
2024-06-23 19:31:00 +04:00
|
|
|
|
dataGridViewProducts.Columns.AddRange(new DataGridViewColumn[] { ColumnId, Column, Column2 });
|
2024-06-23 17:04:26 +04:00
|
|
|
|
dataGridViewProducts.Dock = DockStyle.Top;
|
|
|
|
|
dataGridViewProducts.Location = new Point(3, 19);
|
|
|
|
|
dataGridViewProducts.Name = "dataGridViewProducts";
|
|
|
|
|
dataGridViewProducts.Size = new Size(355, 195);
|
|
|
|
|
dataGridViewProducts.TabIndex = 8;
|
|
|
|
|
//
|
|
|
|
|
// buttonAddSupplierProduct
|
|
|
|
|
//
|
|
|
|
|
buttonAddSupplierProduct.Location = new Point(58, 278);
|
|
|
|
|
buttonAddSupplierProduct.Name = "buttonAddSupplierProduct";
|
|
|
|
|
buttonAddSupplierProduct.Size = new Size(81, 23);
|
|
|
|
|
buttonAddSupplierProduct.TabIndex = 9;
|
|
|
|
|
buttonAddSupplierProduct.Text = "Добавить";
|
|
|
|
|
buttonAddSupplierProduct.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonAddSupplierProduct.Click += buttonAddSupplierProduct_Click;
|
|
|
|
|
//
|
|
|
|
|
// textBoxName
|
|
|
|
|
//
|
|
|
|
|
textBoxName.Location = new Point(110, 51);
|
|
|
|
|
textBoxName.Name = "textBoxName";
|
|
|
|
|
textBoxName.Size = new Size(245, 23);
|
|
|
|
|
textBoxName.TabIndex = 0;
|
|
|
|
|
//
|
|
|
|
|
// groupBoxControls
|
|
|
|
|
//
|
|
|
|
|
groupBoxControls.BackColor = Color.Transparent;
|
|
|
|
|
groupBoxControls.Controls.Add(buttonDeleteSupplier);
|
|
|
|
|
groupBoxControls.Controls.Add(buttonUpdateSupplier);
|
|
|
|
|
groupBoxControls.Controls.Add(buttonCreateSupplier);
|
|
|
|
|
groupBoxControls.Dock = DockStyle.Right;
|
|
|
|
|
groupBoxControls.Location = new Point(655, 0);
|
|
|
|
|
groupBoxControls.Name = "groupBoxControls";
|
|
|
|
|
groupBoxControls.Size = new Size(264, 637);
|
|
|
|
|
groupBoxControls.TabIndex = 5;
|
|
|
|
|
groupBoxControls.TabStop = false;
|
|
|
|
|
groupBoxControls.Text = "Действия";
|
|
|
|
|
//
|
|
|
|
|
// buttonDeleteSupplier
|
|
|
|
|
//
|
|
|
|
|
buttonDeleteSupplier.Location = new Point(69, 120);
|
|
|
|
|
buttonDeleteSupplier.Name = "buttonDeleteSupplier";
|
|
|
|
|
buttonDeleteSupplier.Size = new Size(139, 23);
|
|
|
|
|
buttonDeleteSupplier.TabIndex = 3;
|
|
|
|
|
buttonDeleteSupplier.Text = "Удалить поставщика";
|
|
|
|
|
buttonDeleteSupplier.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonDeleteSupplier.Click += buttonDeleteSupplier_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonUpdateSupplier
|
|
|
|
|
//
|
|
|
|
|
buttonUpdateSupplier.Location = new Point(46, 51);
|
|
|
|
|
buttonUpdateSupplier.Name = "buttonUpdateSupplier";
|
|
|
|
|
buttonUpdateSupplier.Size = new Size(179, 63);
|
|
|
|
|
buttonUpdateSupplier.TabIndex = 2;
|
|
|
|
|
buttonUpdateSupplier.Text = "Редактировать информацию о поставщике";
|
|
|
|
|
buttonUpdateSupplier.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonUpdateSupplier.Click += buttonUpdateSupplier_Click;
|
|
|
|
|
//
|
|
|
|
|
// buttonCreateSupplier
|
|
|
|
|
//
|
|
|
|
|
buttonCreateSupplier.Location = new Point(69, 22);
|
|
|
|
|
buttonCreateSupplier.Name = "buttonCreateSupplier";
|
|
|
|
|
buttonCreateSupplier.Size = new Size(139, 23);
|
|
|
|
|
buttonCreateSupplier.TabIndex = 1;
|
|
|
|
|
buttonCreateSupplier.Text = "Добавить поставщика";
|
|
|
|
|
buttonCreateSupplier.UseVisualStyleBackColor = true;
|
|
|
|
|
buttonCreateSupplier.Click += buttonCreateSupplier_Click;
|
|
|
|
|
//
|
|
|
|
|
// dataGridView
|
|
|
|
|
//
|
|
|
|
|
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
|
|
dataGridView.Dock = DockStyle.Left;
|
|
|
|
|
dataGridView.Location = new Point(0, 0);
|
|
|
|
|
dataGridView.Name = "dataGridView";
|
|
|
|
|
dataGridView.Size = new Size(392, 637);
|
|
|
|
|
dataGridView.TabIndex = 4;
|
|
|
|
|
//
|
2024-06-23 19:31:00 +04:00
|
|
|
|
// ColumnId
|
|
|
|
|
//
|
|
|
|
|
ColumnId.HeaderText = "Id";
|
|
|
|
|
ColumnId.Name = "ColumnId";
|
|
|
|
|
ColumnId.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// Column
|
|
|
|
|
//
|
|
|
|
|
Column.AutoSizeMode = DataGridViewAutoSizeColumnMode.Fill;
|
|
|
|
|
Column.HeaderText = "Продукт";
|
|
|
|
|
Column.Name = "Column";
|
|
|
|
|
Column.ReadOnly = true;
|
|
|
|
|
//
|
|
|
|
|
// Column2
|
|
|
|
|
//
|
|
|
|
|
Column2.HeaderText = "Кол-во";
|
|
|
|
|
Column2.Name = "Column2";
|
|
|
|
|
Column2.ReadOnly = true;
|
|
|
|
|
//
|
2024-06-23 17:04:26 +04:00
|
|
|
|
// FormSuppliers
|
|
|
|
|
//
|
|
|
|
|
AutoScaleDimensions = new SizeF(7F, 15F);
|
|
|
|
|
AutoScaleMode = AutoScaleMode.Font;
|
|
|
|
|
ClientSize = new Size(919, 637);
|
|
|
|
|
Controls.Add(groupBoxCreateSupplier);
|
|
|
|
|
Controls.Add(groupBoxControls);
|
|
|
|
|
Controls.Add(dataGridView);
|
|
|
|
|
Name = "FormSuppliers";
|
|
|
|
|
Text = "FormSuppliers";
|
|
|
|
|
Load += FormSuppliers_Load;
|
|
|
|
|
groupBoxCreateSupplier.ResumeLayout(false);
|
|
|
|
|
groupBoxCreateSupplier.PerformLayout();
|
2024-06-23 18:55:46 +04:00
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownDeals).EndInit();
|
2024-06-23 17:04:26 +04:00
|
|
|
|
groupBoxSupplierProducts.ResumeLayout(false);
|
|
|
|
|
groupBoxSupplierProducts.PerformLayout();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)numericUpDownCount).EndInit();
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridViewProducts).EndInit();
|
|
|
|
|
groupBoxControls.ResumeLayout(false);
|
|
|
|
|
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
|
|
|
|
|
ResumeLayout(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
private GroupBox groupBoxCreateSupplier;
|
|
|
|
|
private Button buttonCancel;
|
|
|
|
|
private Button buttonSaveSupplier;
|
|
|
|
|
private TextBox textBoxName;
|
|
|
|
|
private GroupBox groupBoxControls;
|
|
|
|
|
private Button buttonDeleteSupplier;
|
|
|
|
|
private Button buttonUpdateSupplier;
|
|
|
|
|
private Button buttonCreateSupplier;
|
|
|
|
|
private DataGridView dataGridView;
|
|
|
|
|
private DataGridView dataGridViewProducts;
|
|
|
|
|
private GroupBox groupBoxSupplierProducts;
|
|
|
|
|
private Button buttonAddSupplierProduct;
|
|
|
|
|
private ComboBox comboBoxProducts;
|
|
|
|
|
private Label label2;
|
|
|
|
|
private Label label1;
|
|
|
|
|
private NumericUpDown numericUpDownCount;
|
|
|
|
|
private Label label4;
|
|
|
|
|
private Label label3;
|
|
|
|
|
private NumericUpDown numericUpDownDeals;
|
2024-06-23 19:31:00 +04:00
|
|
|
|
private Button buttonDeleteProduct;
|
|
|
|
|
private DataGridViewTextBoxColumn ColumnId;
|
|
|
|
|
private DataGridViewTextBoxColumn Column;
|
|
|
|
|
private DataGridViewTextBoxColumn Column2;
|
2024-06-23 17:04:26 +04:00
|
|
|
|
}
|
|
|
|
|
}
|