Изменения на форме
This commit is contained in:
parent
04a57f1a2b
commit
d5bfbdfd58
@ -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.FurnituresToolStripMenuItem = 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.ShopsFurnituresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.OrderDateToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.buttonSell = new System.Windows.Forms.Button();
|
||||
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
@ -144,37 +147,6 @@
|
||||
this.изделияToolStripMenuItem.Text = "Изделия";
|
||||
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
|
||||
//
|
||||
this.магазиныToolStripMenuItem.Name = "магазиныToolStripMenuItem";
|
||||
@ -189,6 +161,59 @@
|
||||
this.пополнениеМагазинаToolStripMenuItem.Text = "Пополнение магазина";
|
||||
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
|
||||
//
|
||||
this.buttonSell.Location = new System.Drawing.Point(902, 324);
|
||||
@ -243,5 +268,8 @@
|
||||
private ToolStripMenuItem магазиныToolStripMenuItem;
|
||||
private ToolStripMenuItem пополнениеМагазинаToolStripMenuItem;
|
||||
private Button buttonSell;
|
||||
private ToolStripMenuItem ShopsToolStripMenuItem;
|
||||
private ToolStripMenuItem ShopsFurnituresToolStripMenuItem;
|
||||
private ToolStripMenuItem OrderDateToolStripMenuItem;
|
||||
}
|
||||
}
|
@ -220,5 +220,19 @@ namespace FurnitureAssembly
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user