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