Лабораторная_6
This commit is contained in:
parent
a1f91406fa
commit
c700cbe44c
42
RenovationWork/RenovationWork/FormMain.Designer.cs
generated
42
RenovationWork/RenovationWork/FormMain.Designer.cs
generated
@ -33,25 +33,25 @@
|
||||
componentsToolStripMenuItem = new ToolStripMenuItem();
|
||||
JobTypeToolStripMenuItem = new ToolStripMenuItem();
|
||||
ClientsToolStripMenuItem = new ToolStripMenuItem();
|
||||
ImplementersToolStripMenuItem = new ToolStripMenuItem();
|
||||
отчетыToolStripMenuItem = new ToolStripMenuItem();
|
||||
listComponentsToolStripMenuItem = new ToolStripMenuItem();
|
||||
componentRepairsПоИзделиямToolStripMenuItem = new ToolStripMenuItem();
|
||||
OrdersToolStripMenuItem = new ToolStripMenuItem();
|
||||
StartWorkingToolStripMenuItem = new ToolStripMenuItem();
|
||||
dataGridView = new DataGridView();
|
||||
buttonCreateOrder = new Button();
|
||||
buttonTakeOrderInWork = new Button();
|
||||
buttonOrderReady = new Button();
|
||||
buttonIssuedOrder = new Button();
|
||||
buttonRef = new Button();
|
||||
ImplementersToolStripMenuItem = new ToolStripMenuItem();
|
||||
StartWorkingToolStripMenuItem = new ToolStripMenuItem();
|
||||
menuStrip.SuspendLayout();
|
||||
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
|
||||
SuspendLayout();
|
||||
//
|
||||
// menuStrip
|
||||
//
|
||||
menuStrip.Items.AddRange(new ToolStripItem[] { refbooksToolStripMenuItem, отчетыToolStripMenuItem });
|
||||
menuStrip.Items.AddRange(new ToolStripItem[] { refbooksToolStripMenuItem, отчетыToolStripMenuItem, StartWorkingToolStripMenuItem });
|
||||
menuStrip.Location = new Point(0, 0);
|
||||
menuStrip.Name = "menuStrip";
|
||||
menuStrip.Size = new Size(1129, 24);
|
||||
@ -60,7 +60,7 @@
|
||||
//
|
||||
// refbooksToolStripMenuItem
|
||||
//
|
||||
refbooksToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { componentsToolStripMenuItem, JobTypeToolStripMenuItem, ClientsToolStripMenuItem, ImplementersToolStripMenuItem, StartWorkingToolStripMenuItem });
|
||||
refbooksToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { componentsToolStripMenuItem, JobTypeToolStripMenuItem, ClientsToolStripMenuItem, ImplementersToolStripMenuItem });
|
||||
refbooksToolStripMenuItem.Name = "refbooksToolStripMenuItem";
|
||||
refbooksToolStripMenuItem.Size = new Size(94, 20);
|
||||
refbooksToolStripMenuItem.Text = "Справочники";
|
||||
@ -68,24 +68,31 @@
|
||||
// componentsToolStripMenuItem
|
||||
//
|
||||
componentsToolStripMenuItem.Name = "componentsToolStripMenuItem";
|
||||
componentsToolStripMenuItem.Size = new Size(180, 22);
|
||||
componentsToolStripMenuItem.Size = new Size(149, 22);
|
||||
componentsToolStripMenuItem.Text = "Компоненты";
|
||||
componentsToolStripMenuItem.Click += componentsToolStripMenuItem_Click;
|
||||
//
|
||||
// JobTypeToolStripMenuItem
|
||||
//
|
||||
JobTypeToolStripMenuItem.Name = "JobTypeToolStripMenuItem";
|
||||
JobTypeToolStripMenuItem.Size = new Size(180, 22);
|
||||
JobTypeToolStripMenuItem.Size = new Size(149, 22);
|
||||
JobTypeToolStripMenuItem.Text = "Вид работы";
|
||||
JobTypeToolStripMenuItem.Click += JobTypeToolStripMenuItem_Click;
|
||||
//
|
||||
// ClientsToolStripMenuItem
|
||||
//
|
||||
ClientsToolStripMenuItem.Name = "ClientsToolStripMenuItem";
|
||||
ClientsToolStripMenuItem.Size = new Size(180, 22);
|
||||
ClientsToolStripMenuItem.Size = new Size(149, 22);
|
||||
ClientsToolStripMenuItem.Text = "Клиенты";
|
||||
ClientsToolStripMenuItem.Click += ClientsToolStripMenuItem_Click;
|
||||
//
|
||||
// ImplementersToolStripMenuItem
|
||||
//
|
||||
ImplementersToolStripMenuItem.Name = "ImplementersToolStripMenuItem";
|
||||
ImplementersToolStripMenuItem.Size = new Size(149, 22);
|
||||
ImplementersToolStripMenuItem.Text = "Исполнители";
|
||||
ImplementersToolStripMenuItem.Click += ImplementersToolStripMenuItem_Click;
|
||||
//
|
||||
// отчетыToolStripMenuItem
|
||||
//
|
||||
отчетыToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { listComponentsToolStripMenuItem, componentRepairsПоИзделиямToolStripMenuItem, OrdersToolStripMenuItem });
|
||||
@ -114,6 +121,13 @@
|
||||
OrdersToolStripMenuItem.Text = "Список заказов";
|
||||
OrdersToolStripMenuItem.Click += OrdersToolStripMenuItem_Click;
|
||||
//
|
||||
// StartWorkingToolStripMenuItem
|
||||
//
|
||||
StartWorkingToolStripMenuItem.Name = "StartWorkingToolStripMenuItem";
|
||||
StartWorkingToolStripMenuItem.Size = new Size(92, 20);
|
||||
StartWorkingToolStripMenuItem.Text = "Запуск работ";
|
||||
StartWorkingToolStripMenuItem.Click += StartWorkingToolStripMenuItem_Click_1;
|
||||
//
|
||||
// dataGridView
|
||||
//
|
||||
dataGridView.BackgroundColor = SystemColors.ControlLightLight;
|
||||
@ -174,20 +188,6 @@
|
||||
buttonRef.UseVisualStyleBackColor = true;
|
||||
buttonRef.Click += buttonRef_Click;
|
||||
//
|
||||
// ImplementersToolStripMenuItem
|
||||
//
|
||||
ImplementersToolStripMenuItem.Name = "ImplementersToolStripMenuItem";
|
||||
ImplementersToolStripMenuItem.Size = new Size(180, 22);
|
||||
ImplementersToolStripMenuItem.Text = "Исполнители";
|
||||
ImplementersToolStripMenuItem.Click += ImplementersToolStripMenuItem_Click;
|
||||
//
|
||||
// StartWorkingToolStripMenuItem
|
||||
//
|
||||
StartWorkingToolStripMenuItem.Name = "StartWorkingToolStripMenuItem";
|
||||
StartWorkingToolStripMenuItem.Size = new Size(180, 22);
|
||||
StartWorkingToolStripMenuItem.Text = "Старт работ";
|
||||
StartWorkingToolStripMenuItem.Click += StartWorkingToolStripMenuItem_Click;
|
||||
//
|
||||
// FormMain
|
||||
//
|
||||
AutoScaleDimensions = new SizeF(7F, 15F);
|
||||
|
@ -214,7 +214,7 @@ namespace RenovationWorkView
|
||||
}
|
||||
}
|
||||
|
||||
private void StartWorkingToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
private void StartWorkingToolStripMenuItem_Click_1(object sender, EventArgs e)
|
||||
{
|
||||
_workProcess.DoWork((Program.ServiceProvider?.GetService(typeof(IImplementerLogic)) as IImplementerLogic)!, _orderLogic);
|
||||
MessageBox.Show("Процесс обработки запущен", "Сообщение", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||||
|
@ -15,7 +15,7 @@ namespace RenovationWorkDatabaseImplement
|
||||
{
|
||||
if (!optionsBuilder.IsConfigured)
|
||||
{
|
||||
optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS;Initial Catalog=RenovationWorkDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
optionsBuilder.UseSqlServer(@"Data Source=localhost\SQLEXPRESS;Initial Catalog=RenovationWorkDatabase_6;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
|
||||
}
|
||||
base.OnConfiguring(optionsBuilder);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user