Изменения на форме

This commit is contained in:
prodigygirl 2023-03-25 22:15:01 +04:00
parent 04a57f1a2b
commit d5bfbdfd58
2 changed files with 75 additions and 33 deletions

View File

@ -38,12 +38,15 @@
this.справочникиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.справочникиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.компонентыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.компонентыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.изделияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.изделияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.магазиныToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.пополнениеМагазинаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.отчетыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.отчетыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.FurnituresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.FurnituresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.FurnituresComponentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.FurnituresComponentsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.списокЗаказовToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.списокЗаказовToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.магазиныToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ShopsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.пополнениеМагазинаToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.ShopsFurnituresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.OrderDateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
this.buttonSell = new System.Windows.Forms.Button(); this.buttonSell = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
this.menuStrip1.SuspendLayout(); this.menuStrip1.SuspendLayout();
@ -144,37 +147,6 @@
this.изделияToolStripMenuItem.Text = "Изделия"; this.изделияToolStripMenuItem.Text = "Изделия";
this.изделияToolStripMenuItem.Click += new System.EventHandler(this.ИзделияToolStripMenuItem_Click); this.изделияToolStripMenuItem.Click += new System.EventHandler(this.ИзделияToolStripMenuItem_Click);
// //
// отчетыToolStripMenuItem
//
this.отчетыToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.FurnituresToolStripMenuItem,
this.FurnituresComponentsToolStripMenuItem,
this.списокЗаказовToolStripMenuItem});
this.отчетыToolStripMenuItem.Name = "отчетыToolStripMenuItem";
this.отчетыToolStripMenuItem.Size = new System.Drawing.Size(60, 20);
this.отчетыToolStripMenuItem.Text = "Отчеты";
//
// FurnituresToolStripMenuItem
//
this.FurnituresToolStripMenuItem.Name = "FurnituresToolStripMenuItem";
this.FurnituresToolStripMenuItem.Size = new System.Drawing.Size(218, 22);
this.FurnituresToolStripMenuItem.Text = "Список изделий";
this.FurnituresToolStripMenuItem.Click += new System.EventHandler(this.FurnituresToolStripMenuItem_Click);
//
// FurnituresComponentsToolStripMenuItem
//
this.FurnituresComponentsToolStripMenuItem.Name = "FurnituresComponentsToolStripMenuItem";
this.FurnituresComponentsToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
this.FurnituresComponentsToolStripMenuItem.Text = "Изделия по компонентам";
this.FurnituresComponentsToolStripMenuItem.Click += new System.EventHandler(this.FurnitureComponentsToolStripMenuItem_Click);
//
// списокЗаказовToolStripMenuItem
//
this.списокЗаказовToolStripMenuItem.Name = "списокЗаказовToolStripMenuItem";
this.списокЗаказовToolStripMenuItem.Size = new System.Drawing.Size(218, 22);
this.списокЗаказовToolStripMenuItem.Text = "Список заказов";
this.списокЗаказовToolStripMenuItem.Click += new System.EventHandler(this.OrdersToolStripMenuItem_Click);
//
// магазиныToolStripMenuItem // магазиныToolStripMenuItem
// //
this.магазиныToolStripMenuItem.Name = агазиныToolStripMenuItem"; this.магазиныToolStripMenuItem.Name = агазиныToolStripMenuItem";
@ -189,6 +161,59 @@
this.пополнениеМагазинаToolStripMenuItem.Text = "Пополнение магазина"; this.пополнениеМагазинаToolStripMenuItem.Text = "Пополнение магазина";
this.пополнениеМагазинаToolStripMenuItem.Click += new System.EventHandler(this.ReplenishmentToolStripMenuItem_Click); this.пополнениеМагазинаToolStripMenuItem.Click += new System.EventHandler(this.ReplenishmentToolStripMenuItem_Click);
// //
// отчетыToolStripMenuItem
//
this.отчетыToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
this.FurnituresToolStripMenuItem,
this.FurnituresComponentsToolStripMenuItem,
this.списокЗаказовToolStripMenuItem,
this.ShopsToolStripMenuItem,
this.ShopsFurnituresToolStripMenuItem,
this.OrderDateToolStripMenuItem});
this.отчетыToolStripMenuItem.Name = "отчетыToolStripMenuItem";
this.отчетыToolStripMenuItem.Size = new System.Drawing.Size(60, 20);
this.отчетыToolStripMenuItem.Text = "Отчеты";
//
// FurnituresToolStripMenuItem
//
this.FurnituresToolStripMenuItem.Name = "FurnituresToolStripMenuItem";
this.FurnituresToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
this.FurnituresToolStripMenuItem.Text = "Список изделий";
this.FurnituresToolStripMenuItem.Click += new System.EventHandler(this.FurnituresToolStripMenuItem_Click);
//
// FurnituresComponentsToolStripMenuItem
//
this.FurnituresComponentsToolStripMenuItem.Name = "FurnituresComponentsToolStripMenuItem";
this.FurnituresComponentsToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
this.FurnituresComponentsToolStripMenuItem.Text = "Изделия по компонентам";
this.FurnituresComponentsToolStripMenuItem.Click += new System.EventHandler(this.FurnitureComponentsToolStripMenuItem_Click);
//
// списокЗаказовToolStripMenuItem
//
this.списокЗаказовToolStripMenuItem.Name = "списокЗаказовToolStripMenuItem";
this.списокЗаказовToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
this.списокЗаказовToolStripMenuItem.Text = "Список заказов";
this.списокЗаказовToolStripMenuItem.Click += new System.EventHandler(this.OrdersToolStripMenuItem_Click);
//
// ShopsToolStripMenuItem
//
this.ShopsToolStripMenuItem.Name = "ShopsToolStripMenuItem";
this.ShopsToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
this.ShopsToolStripMenuItem.Text = "Список магазинов";
this.ShopsToolStripMenuItem.Click += new System.EventHandler(this.ShopsToolStripMenuItem_Click_1);
//
// ShopsFurnituresToolStripMenuItem
//
this.ShopsFurnituresToolStripMenuItem.Name = "ShopsFurnituresToolStripMenuItem";
this.ShopsFurnituresToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
this.ShopsFurnituresToolStripMenuItem.Text = "Изделия в магазинах";
//
// OrderDateToolStripMenuItem
//
this.OrderDateToolStripMenuItem.Name = "OrderDateToolStripMenuItem";
this.OrderDateToolStripMenuItem.Size = new System.Drawing.Size(216, 22);
this.OrderDateToolStripMenuItem.Text = "Список заказов по датам";
//
// buttonSell // buttonSell
// //
this.buttonSell.Location = new System.Drawing.Point(902, 324); this.buttonSell.Location = new System.Drawing.Point(902, 324);
@ -243,5 +268,8 @@
private ToolStripMenuItem магазиныToolStripMenuItem; private ToolStripMenuItem магазиныToolStripMenuItem;
private ToolStripMenuItem пополнениеМагазинаToolStripMenuItem; private ToolStripMenuItem пополнениеМагазинаToolStripMenuItem;
private Button buttonSell; private Button buttonSell;
private ToolStripMenuItem ShopsToolStripMenuItem;
private ToolStripMenuItem ShopsFurnituresToolStripMenuItem;
private ToolStripMenuItem OrderDateToolStripMenuItem;
} }
} }

View File

@ -220,5 +220,19 @@ namespace FurnitureAssembly
form.ShowDialog(); form.ShowDialog();
} }
} }
private void ShopsToolStripMenuItem_Click_1(object sender, EventArgs e)
{
using var dialog = new SaveFileDialog { Filter = "docx|*.docx" };
if (dialog.ShowDialog() == DialogResult.OK)
{
_reportLogic.SaveShopsToWordFile(new ReportBindingModel
{
FileName = dialog.FileName
});
MessageBox.Show("Выполнено", "Успех", MessageBoxButtons.OK,
MessageBoxIcon.Information);
}
}
} }
} }