This commit is contained in:
Вячеслав Иванов 2024-04-02 21:59:50 +04:00
parent efd2cfe82d
commit a130ea2164

View File

@ -28,176 +28,219 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
menuStrip1 = new MenuStrip(); this.menuStrip1 = new System.Windows.Forms.MenuStrip();
bookToolStripMenuItem = new ToolStripMenuItem(); this.bookToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
ingridientsToolStripMenuItem = new ToolStripMenuItem(); this.ingridientsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
pizzasToolStripMenuItem = new ToolStripMenuItem(); this.pizzasToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
клиентToolStripMenuItem = new ToolStripMenuItem(); this.клиентToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
исполнителиToolStripMenuItem = new ToolStripMenuItem(); this.исполнителиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
отчётыToolStripMenuItem = new ToolStripMenuItem(); this.отчётыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
componentsToolStripMenuItem1 = new ToolStripMenuItem(); this.componentsToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
componentPizzaToolStripMenuItem1 = new ToolStripMenuItem(); this.componentPizzaToolStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem();
ordersToolStripMenuItem = new ToolStripMenuItem(); this.ordersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
запускРаботToolStripMenuItem = new ToolStripMenuItem(); this.запускРаботToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
dataGridView = new DataGridView(); this.dataGridView = new System.Windows.Forms.DataGridView();
buttonCreateOrder = new Button(); this.buttonCreateOrder = new System.Windows.Forms.Button();
buttonIssuedOrder = new Button(); this.buttonTakeOrderInWork = new System.Windows.Forms.Button();
buttonRef = new Button(); this.buttonOrderReady = new System.Windows.Forms.Button();
почтаToolStripMenuItem = new ToolStripMenuItem(); this.buttonIssuedOrder = new System.Windows.Forms.Button();
menuStrip1.SuspendLayout(); this.buttonRef = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); this.почтаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
SuspendLayout(); this.menuStrip1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
this.SuspendLayout();
// //
// menuStrip1 // menuStrip1
// //
menuStrip1.ImageScalingSize = new Size(20, 20); this.menuStrip1.ImageScalingSize = new System.Drawing.Size(20, 20);
menuStrip1.Items.AddRange(new ToolStripItem[] { bookToolStripMenuItem, отчётыToolStripMenuItem, запускРаботToolStripMenuItem, почтаToolStripMenuItem }); this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
menuStrip1.Location = new Point(0, 0); this.bookToolStripMenuItem,
menuStrip1.Name = "menuStrip1"; this.отчётыToolStripMenuItem,
menuStrip1.Padding = new Padding(6, 3, 0, 3); this.запускРаботToolStripMenuItem,
menuStrip1.Size = new Size(1550, 30); this.почтаToolStripMenuItem});
menuStrip1.TabIndex = 0; this.menuStrip1.Location = new System.Drawing.Point(0, 0);
menuStrip1.Text = "menuStrip1"; this.menuStrip1.Name = "menuStrip1";
this.menuStrip1.Padding = new System.Windows.Forms.Padding(5, 2, 0, 2);
this.menuStrip1.Size = new System.Drawing.Size(1356, 24);
this.menuStrip1.TabIndex = 0;
this.menuStrip1.Text = "menuStrip1";
// //
// bookToolStripMenuItem // bookToolStripMenuItem
// //
bookToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { ingridientsToolStripMenuItem, pizzasToolStripMenuItem, клиентToolStripMenuItem, исполнителиToolStripMenuItem }); this.bookToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
bookToolStripMenuItem.Name = "bookToolStripMenuItem"; this.ingridientsToolStripMenuItem,
bookToolStripMenuItem.Size = new Size(108, 24); this.pizzasToolStripMenuItem,
bookToolStripMenuItem.Text = "Справочник"; this.клиентToolStripMenuItem,
this.исполнителиToolStripMenuItem});
this.bookToolStripMenuItem.Name = "bookToolStripMenuItem";
this.bookToolStripMenuItem.Size = new System.Drawing.Size(87, 20);
this.bookToolStripMenuItem.Text = "Справочник";
// //
// ingridientsToolStripMenuItem // ingridientsToolStripMenuItem
// //
ingridientsToolStripMenuItem.Name = "ingridientsToolStripMenuItem"; this.ingridientsToolStripMenuItem.Name = "ingridientsToolStripMenuItem";
ingridientsToolStripMenuItem.Size = new Size(186, 26); this.ingridientsToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
ingridientsToolStripMenuItem.Text = "Ингредиенты"; this.ingridientsToolStripMenuItem.Text = "Ингредиенты";
ingridientsToolStripMenuItem.Click += IngridentsToolStripMenuItem_Click; this.ingridientsToolStripMenuItem.Click += new System.EventHandler(this.IngridentsToolStripMenuItem_Click);
// //
// pizzasToolStripMenuItem // pizzasToolStripMenuItem
// //
pizzasToolStripMenuItem.Name = "pizzasToolStripMenuItem"; this.pizzasToolStripMenuItem.Name = "pizzasToolStripMenuItem";
pizzasToolStripMenuItem.Size = new Size(186, 26); this.pizzasToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
pizzasToolStripMenuItem.Text = "Пиццы"; this.pizzasToolStripMenuItem.Text = "Пиццы";
pizzasToolStripMenuItem.Click += PizzasToolStripMenuItem_Click; this.pizzasToolStripMenuItem.Click += new System.EventHandler(this.PizzasToolStripMenuItem_Click);
// //
// клиентToolStripMenuItem // клиентToolStripMenuItem
// //
клиентToolStripMenuItem.Name = "клиентToolStripMenuItem"; this.клиентToolStripMenuItem.Name = "клиентToolStripMenuItem";
клиентToolStripMenuItem.Size = new Size(186, 26); this.клиентToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
клиентToolStripMenuItem.Text = "Клиент"; this.клиентToolStripMenuItem.Text = "Клиент";
клиентToolStripMenuItem.Click += ClientToolStripMenuItem_Click; this.клиентToolStripMenuItem.Click += new System.EventHandler(this.ClientToolStripMenuItem_Click);
// //
// исполнителиToolStripMenuItem // исполнителиToolStripMenuItem
// //
исполнителиToolStripMenuItem.Name = сполнителиToolStripMenuItem"; this.исполнителиToolStripMenuItem.Name = сполнителиToolStripMenuItem";
исполнителиToolStripMenuItem.Size = new Size(186, 26); this.исполнителиToolStripMenuItem.Size = new System.Drawing.Size(149, 22);
исполнителиToolStripMenuItem.Text = "Исполнители"; this.исполнителиToolStripMenuItem.Text = "Исполнители";
исполнителиToolStripMenuItem.Click += employersToolStripMenuItem_Click; this.исполнителиToolStripMenuItem.Click += new System.EventHandler(this.employersToolStripMenuItem_Click);
// //
// отчётыToolStripMenuItem // отчётыToolStripMenuItem
// //
отчётыToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { componentsToolStripMenuItem1, componentPizzaToolStripMenuItem1, ordersToolStripMenuItem }); this.отчётыToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
отчётыToolStripMenuItem.Name = "отчётыToolStripMenuItem"; this.componentsToolStripMenuItem1,
отчётыToolStripMenuItem.Size = new Size(73, 24); this.componentPizzaToolStripMenuItem1,
отчётыToolStripMenuItem.Text = "Отчёты"; this.ordersToolStripMenuItem});
this.отчётыToolStripMenuItem.Name = "отчётыToolStripMenuItem";
this.отчётыToolStripMenuItem.Size = new System.Drawing.Size(60, 20);
this.отчётыToolStripMenuItem.Text = "Отчёты";
// //
// componentsToolStripMenuItem1 // componentsToolStripMenuItem1
// //
componentsToolStripMenuItem1.Name = "componentsToolStripMenuItem1"; this.componentsToolStripMenuItem1.Name = "componentsToolStripMenuItem1";
componentsToolStripMenuItem1.Size = new Size(258, 26); this.componentsToolStripMenuItem1.Size = new System.Drawing.Size(205, 22);
componentsToolStripMenuItem1.Text = "Пиццы"; this.componentsToolStripMenuItem1.Text = "Пиццы";
componentsToolStripMenuItem1.Click += ComponentsToolStripMenuItem_Click; this.componentsToolStripMenuItem1.Click += new System.EventHandler(this.ComponentsToolStripMenuItem_Click);
// //
// componentPizzaToolStripMenuItem1 // componentPizzaToolStripMenuItem1
// //
componentPizzaToolStripMenuItem1.Name = "componentPizzaToolStripMenuItem1"; this.componentPizzaToolStripMenuItem1.Name = "componentPizzaToolStripMenuItem1";
componentPizzaToolStripMenuItem1.Size = new Size(258, 26); this.componentPizzaToolStripMenuItem1.Size = new System.Drawing.Size(205, 22);
componentPizzaToolStripMenuItem1.Text = "Пицца с компонентами"; this.componentPizzaToolStripMenuItem1.Text = "Пицца с компонентами";
componentPizzaToolStripMenuItem1.Click += ComponentPizzaToolStripMenuItem_Click; this.componentPizzaToolStripMenuItem1.Click += new System.EventHandler(this.ComponentPizzaToolStripMenuItem_Click);
// //
// ordersToolStripMenuItem // ordersToolStripMenuItem
// //
ordersToolStripMenuItem.Name = "ordersToolStripMenuItem"; this.ordersToolStripMenuItem.Name = "ordersToolStripMenuItem";
ordersToolStripMenuItem.Size = new Size(258, 26); this.ordersToolStripMenuItem.Size = new System.Drawing.Size(205, 22);
ordersToolStripMenuItem.Text = "Заказы"; this.ordersToolStripMenuItem.Text = "Заказы";
ordersToolStripMenuItem.Click += OrdersToolStripMenuItem_Click; this.ordersToolStripMenuItem.Click += new System.EventHandler(this.OrdersToolStripMenuItem_Click);
// //
// запускРаботToolStripMenuItem // запускРаботToolStripMenuItem
// //
запускРаботToolStripMenuItem.Name = апускРаботToolStripMenuItem"; this.запускРаботToolStripMenuItem.Name = апускРаботToolStripMenuItem";
запускРаботToolStripMenuItem.Size = new Size(114, 24); this.запускРаботToolStripMenuItem.Size = new System.Drawing.Size(92, 20);
запускРаботToolStripMenuItem.Text = "Запуск работ"; this.запускРаботToolStripMenuItem.Text = "Запуск работ";
запускРаботToolStripMenuItem.Click += startWorkToolStripMenuItem_Click; this.запускРаботToolStripMenuItem.Click += new System.EventHandler(this.startWorkToolStripMenuItem_Click);
// //
// dataGridView // dataGridView
// //
dataGridView.AllowUserToAddRows = false; this.dataGridView.AllowUserToAddRows = false;
dataGridView.AllowUserToDeleteRows = false; this.dataGridView.AllowUserToDeleteRows = false;
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(11, 31); this.dataGridView.Location = new System.Drawing.Point(10, 23);
dataGridView.Name = "dataGridView"; this.dataGridView.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
dataGridView.ReadOnly = true; this.dataGridView.Name = "dataGridView";
dataGridView.RowHeadersWidth = 51; this.dataGridView.ReadOnly = true;
dataGridView.RowTemplate.Height = 29; this.dataGridView.RowHeadersWidth = 51;
dataGridView.Size = new Size(1255, 381); this.dataGridView.RowTemplate.Height = 29;
dataGridView.TabIndex = 1; this.dataGridView.Size = new System.Drawing.Size(1098, 286);
this.dataGridView.TabIndex = 1;
// //
// buttonCreateOrder // buttonCreateOrder
// //
buttonCreateOrder.Location = new Point(1289, 79); this.buttonCreateOrder.Location = new System.Drawing.Point(1128, 59);
buttonCreateOrder.Name = "buttonCreateOrder"; this.buttonCreateOrder.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
buttonCreateOrder.Size = new Size(247, 29); this.buttonCreateOrder.Name = "buttonCreateOrder";
buttonCreateOrder.TabIndex = 2; this.buttonCreateOrder.Size = new System.Drawing.Size(216, 22);
buttonCreateOrder.Text = "Создать заказ"; this.buttonCreateOrder.TabIndex = 2;
buttonCreateOrder.UseVisualStyleBackColor = true; this.buttonCreateOrder.Text = "Создать заказ";
buttonCreateOrder.Click += ButtonCreateOrder_Click; this.buttonCreateOrder.UseVisualStyleBackColor = true;
this.buttonCreateOrder.Click += new System.EventHandler(this.ButtonCreateOrder_Click);
//
// buttonTakeOrderInWork
//
this.buttonTakeOrderInWork.Location = new System.Drawing.Point(1128, 98);
this.buttonTakeOrderInWork.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonTakeOrderInWork.Name = "buttonTakeOrderInWork";
this.buttonTakeOrderInWork.Size = new System.Drawing.Size(216, 22);
this.buttonTakeOrderInWork.TabIndex = 3;
this.buttonTakeOrderInWork.Text = "Отдать на выполнение";
this.buttonTakeOrderInWork.UseVisualStyleBackColor = true;
this.buttonTakeOrderInWork.Click += new System.EventHandler(this.ButtonTakeOrderInWork_Click);
//
// buttonOrderReady
//
this.buttonOrderReady.Location = new System.Drawing.Point(1128, 135);
this.buttonOrderReady.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
this.buttonOrderReady.Name = "buttonOrderReady";
this.buttonOrderReady.Size = new System.Drawing.Size(216, 22);
this.buttonOrderReady.TabIndex = 4;
this.buttonOrderReady.Text = "Заказ готов";
this.buttonOrderReady.UseVisualStyleBackColor = true;
this.buttonOrderReady.Click += new System.EventHandler(this.ButtonOrderReady_Click);
// //
// buttonIssuedOrder // buttonIssuedOrder
// //
buttonIssuedOrder.Location = new Point(1289, 134); this.buttonIssuedOrder.Location = new System.Drawing.Point(1128, 175);
buttonIssuedOrder.Name = "buttonIssuedOrder"; this.buttonIssuedOrder.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
buttonIssuedOrder.Size = new Size(247, 29); this.buttonIssuedOrder.Name = "buttonIssuedOrder";
buttonIssuedOrder.TabIndex = 5; this.buttonIssuedOrder.Size = new System.Drawing.Size(216, 22);
buttonIssuedOrder.Text = "Заказ выдан"; this.buttonIssuedOrder.TabIndex = 5;
buttonIssuedOrder.UseVisualStyleBackColor = true; this.buttonIssuedOrder.Text = "Заказ выдан";
buttonIssuedOrder.Click += ButtonIssuedOrder_Click; this.buttonIssuedOrder.UseVisualStyleBackColor = true;
this.buttonIssuedOrder.Click += new System.EventHandler(this.ButtonIssuedOrder_Click);
// //
// buttonRef // buttonRef
// //
buttonRef.Location = new Point(1291, 201); this.buttonRef.Location = new System.Drawing.Point(1128, 216);
buttonRef.Name = "buttonRef"; this.buttonRef.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
buttonRef.Size = new Size(247, 29); this.buttonRef.Name = "buttonRef";
buttonRef.TabIndex = 6; this.buttonRef.Size = new System.Drawing.Size(216, 22);
buttonRef.Text = "Обновить список"; this.buttonRef.TabIndex = 6;
buttonRef.UseVisualStyleBackColor = true; this.buttonRef.Text = "Обновить список";
buttonRef.Click += ButtonRef_Click; this.buttonRef.UseVisualStyleBackColor = true;
// this.buttonRef.Click += new System.EventHandler(this.ButtonRef_Click);
// почтаToolStripMenuItem //
// // почтаToolStripMenuItem
почтаToolStripMenuItem.Name = "почтаToolStripMenuItem"; //
почтаToolStripMenuItem.Size = new Size(53, 20); this.почтаToolStripMenuItem.Name = "почтаToolStripMenuItem";
почтаToolStripMenuItem.Text = "Почта"; this.почтаToolStripMenuItem.Size = new System.Drawing.Size(53, 20);
почтаToolStripMenuItem.Click += mailToolStripMenuItem_Click; this.почтаToolStripMenuItem.Text = "Почта";
// this.почтаToolStripMenuItem.Click += new System.EventHandler(this.mailToolStripMenuItem_Click);
// FormMain //
// // FormMain
AutoScaleDimensions = new SizeF(8F, 20F); //
AutoScaleMode = AutoScaleMode.Font; this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
ClientSize = new Size(1550, 425); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
Controls.Add(buttonRef); this.ClientSize = new System.Drawing.Size(1356, 319);
Controls.Add(buttonIssuedOrder); this.Controls.Add(this.buttonRef);
Controls.Add(buttonCreateOrder); this.Controls.Add(this.buttonIssuedOrder);
Controls.Add(dataGridView); this.Controls.Add(this.buttonOrderReady);
Controls.Add(menuStrip1); this.Controls.Add(this.buttonTakeOrderInWork);
MainMenuStrip = menuStrip1; this.Controls.Add(this.buttonCreateOrder);
Name = "FormMain"; this.Controls.Add(this.dataGridView);
Text = "Пиццерия"; this.Controls.Add(this.menuStrip1);
Load += FormMain_Load; this.MainMenuStrip = this.menuStrip1;
menuStrip1.ResumeLayout(false); this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
menuStrip1.PerformLayout(); this.Name = "FormMain";
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); this.Text = "Пиццерия";
ResumeLayout(false); this.Load += new System.EventHandler(this.FormMain_Load);
PerformLayout(); this.menuStrip1.ResumeLayout(false);
this.menuStrip1.PerformLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
this.ResumeLayout(false);
this.PerformLayout();
} }
#endregion #endregion
@ -208,6 +251,8 @@
private ToolStripMenuItem pizzasToolStripMenuItem; private ToolStripMenuItem pizzasToolStripMenuItem;
private DataGridView dataGridView; private DataGridView dataGridView;
private Button buttonCreateOrder; private Button buttonCreateOrder;
private Button buttonTakeOrderInWork;
private Button buttonOrderReady;
private Button buttonIssuedOrder; private Button buttonIssuedOrder;
private Button buttonRef; private Button buttonRef;
private ToolStripMenuItem отчётыToolStripMenuItem; private ToolStripMenuItem отчётыToolStripMenuItem;
@ -217,6 +262,6 @@
private ToolStripMenuItem клиентToolStripMenuItem; private ToolStripMenuItem клиентToolStripMenuItem;
private ToolStripMenuItem исполнителиToolStripMenuItem; private ToolStripMenuItem исполнителиToolStripMenuItem;
private ToolStripMenuItem запускРаботToolStripMenuItem; private ToolStripMenuItem запускРаботToolStripMenuItem;
private ToolStripMenuItem почтаToolStripMenuItem; private ToolStripMenuItem почтаToolStripMenuItem;
} }
} }