правки

This commit is contained in:
Андрей Байгулов 2024-06-02 23:27:47 +04:00
parent d8e2b0aa2e
commit 56cbd4bfcd
6 changed files with 163 additions and 144 deletions

View File

@ -20,66 +20,66 @@
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Windows Form Designer generated code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
buttonDel = new Button(); buttonDel = new Button();
buttonRef = new Button(); buttonRef = new Button();
dataGridView = new DataGridView(); dataGridView = new DataGridView();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// buttonDel // buttonDel
// //
buttonDel.Location = new Point(382, 12); buttonDel.Location = new Point(610, 12);
buttonDel.Name = "buttonDel"; buttonDel.Name = "buttonDel";
buttonDel.Size = new Size(119, 38); buttonDel.Size = new Size(119, 38);
buttonDel.TabIndex = 0; buttonDel.TabIndex = 0;
buttonDel.Text = "Удалить"; buttonDel.Text = "Удалить";
buttonDel.UseVisualStyleBackColor = true; buttonDel.UseVisualStyleBackColor = true;
buttonDel.Click += buttonDel_Click; buttonDel.Click += buttonDel_Click;
// //
// buttonRef // buttonRef
// //
buttonRef.Location = new Point(382, 56); buttonRef.Location = new Point(610, 56);
buttonRef.Name = "buttonRef"; buttonRef.Name = "buttonRef";
buttonRef.Size = new Size(119, 37); buttonRef.Size = new Size(119, 37);
buttonRef.TabIndex = 1; buttonRef.TabIndex = 1;
buttonRef.Text = "Обновить"; buttonRef.Text = "Обновить";
buttonRef.UseVisualStyleBackColor = true; buttonRef.UseVisualStyleBackColor = true;
buttonRef.Click += buttonRef_Click; buttonRef.Click += buttonRef_Click;
// //
// dataGridView // dataGridView
// //
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(2, 2); dataGridView.Location = new Point(2, 2);
dataGridView.Name = "dataGridView"; dataGridView.Name = "dataGridView";
dataGridView.Size = new Size(374, 447); dataGridView.Size = new Size(602, 447);
dataGridView.TabIndex = 2; dataGridView.TabIndex = 2;
// //
// FormClients // FormClients
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
ClientSize = new Size(513, 450); ClientSize = new Size(741, 450);
Controls.Add(dataGridView); Controls.Add(dataGridView);
Controls.Add(buttonRef); Controls.Add(buttonRef);
Controls.Add(buttonDel); Controls.Add(buttonDel);
Name = "FormClients"; Name = "FormClients";
Text = "Клиенты"; Text = "Клиенты";
Load += FormClients_Load; Load += FormClients_Load;
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false); ResumeLayout(false);
} }
#endregion #endregion
private Button buttonDel; private Button buttonDel;
private Button buttonRef; private Button buttonRef;
private DataGridView dataGridView; private DataGridView dataGridView;
} }

View File

@ -20,90 +20,92 @@
base.Dispose(disposing); base.Dispose(disposing);
} }
#region Windows Form Designer generated code #region Windows Form Designer generated code
/// <summary> /// <summary>
/// Required method for Designer support - do not modify /// Required method for Designer support - do not modify
/// the contents of this method with the code editor. /// the contents of this method with the code editor.
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
dataGridView = new DataGridView(); dataGridView = new DataGridView();
buttonAdd = new Button(); buttonAdd = new Button();
buttonUpd = new Button(); buttonUpd = new Button();
buttonDel = new Button(); buttonDel = new Button();
buttonRef = new Button(); buttonRef = new Button();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
SuspendLayout(); SuspendLayout();
// //
// dataGridView // dataGridView
// //
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.AllowUserToAddRows = false;
dataGridView.Location = new Point(2, 3); dataGridView.AllowUserToDeleteRows = false;
dataGridView.Name = "dataGridView"; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Size = new Size(469, 405); dataGridView.Location = new Point(0, 0);
dataGridView.TabIndex = 0; dataGridView.Name = "dataGridView";
// dataGridView.Size = new Size(679, 411);
// buttonAdd dataGridView.TabIndex = 0;
// //
buttonAdd.Location = new Point(477, 12); // buttonAdd
buttonAdd.Name = "buttonAdd"; //
buttonAdd.Size = new Size(123, 52); buttonAdd.Location = new Point(685, 12);
buttonAdd.TabIndex = 1; buttonAdd.Name = "buttonAdd";
buttonAdd.Text = "Добавить"; buttonAdd.Size = new Size(123, 52);
buttonAdd.UseVisualStyleBackColor = true; buttonAdd.TabIndex = 1;
buttonAdd.Click += buttonAdd_Click; buttonAdd.Text = "Добавить";
// buttonAdd.UseVisualStyleBackColor = true;
// buttonUpd buttonAdd.Click += buttonAdd_Click;
// //
buttonUpd.Location = new Point(477, 70); // buttonUpd
buttonUpd.Name = "buttonUpd"; //
buttonUpd.Size = new Size(123, 52); buttonUpd.Location = new Point(685, 70);
buttonUpd.TabIndex = 2; buttonUpd.Name = "buttonUpd";
buttonUpd.Text = "Изменить"; buttonUpd.Size = new Size(123, 52);
buttonUpd.UseVisualStyleBackColor = true; buttonUpd.TabIndex = 2;
buttonUpd.Click += buttonUpd_Click; buttonUpd.Text = "Изменить";
// buttonUpd.UseVisualStyleBackColor = true;
// buttonDel buttonUpd.Click += buttonUpd_Click;
// //
buttonDel.Location = new Point(477, 128); // buttonDel
buttonDel.Name = "buttonDel"; //
buttonDel.Size = new Size(123, 52); buttonDel.Location = new Point(685, 128);
buttonDel.TabIndex = 3; buttonDel.Name = "buttonDel";
buttonDel.Text = "Удалить"; buttonDel.Size = new Size(123, 52);
buttonDel.UseVisualStyleBackColor = true; buttonDel.TabIndex = 3;
buttonDel.Click += buttonDel_Click; buttonDel.Text = "Удалить";
// buttonDel.UseVisualStyleBackColor = true;
// buttonRef buttonDel.Click += buttonDel_Click;
// //
buttonRef.Location = new Point(477, 186); // buttonRef
buttonRef.Name = "buttonRef"; //
buttonRef.Size = new Size(123, 52); buttonRef.Location = new Point(685, 186);
buttonRef.TabIndex = 4; buttonRef.Name = "buttonRef";
buttonRef.Text = "Обновить"; buttonRef.Size = new Size(123, 52);
buttonRef.UseVisualStyleBackColor = true; buttonRef.TabIndex = 4;
buttonRef.Click += buttonRef_Click; buttonRef.Text = "Обновить";
// buttonRef.UseVisualStyleBackColor = true;
// FormImplementers buttonRef.Click += buttonRef_Click;
// //
AutoScaleDimensions = new SizeF(7F, 15F); // FormImplementers
AutoScaleMode = AutoScaleMode.Font; //
ClientSize = new Size(612, 411); AutoScaleDimensions = new SizeF(7F, 15F);
Controls.Add(buttonRef); AutoScaleMode = AutoScaleMode.Font;
Controls.Add(buttonDel); ClientSize = new Size(820, 411);
Controls.Add(buttonUpd); Controls.Add(buttonRef);
Controls.Add(buttonAdd); Controls.Add(buttonDel);
Controls.Add(dataGridView); Controls.Add(buttonUpd);
Name = "FormImplementers"; Controls.Add(buttonAdd);
Text = "Исполнители"; Controls.Add(dataGridView);
Load += FormImplementers_Load; Name = "FormImplementers";
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); Text = "Исполнители";
ResumeLayout(false); Load += FormImplementers_Load;
} ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
ResumeLayout(false);
}
#endregion #endregion
private DataGridView dataGridView; private DataGridView dataGridView;
private Button buttonAdd; private Button buttonAdd;
private Button buttonUpd; private Button buttonUpd;
private Button buttonDel; private Button buttonDel;

View File

@ -44,6 +44,7 @@
ComponentSushisToolStripMenuItem = new ToolStripMenuItem(); ComponentSushisToolStripMenuItem = new ToolStripMenuItem();
OrdersToolStripMenuItem = new ToolStripMenuItem(); OrdersToolStripMenuItem = new ToolStripMenuItem();
startWorkToolStripMenuItem = new ToolStripMenuItem(); startWorkToolStripMenuItem = new ToolStripMenuItem();
createBackUpToolStripMenuItem = new ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
menuStrip.SuspendLayout(); menuStrip.SuspendLayout();
SuspendLayout(); SuspendLayout();
@ -90,7 +91,7 @@
// //
// menuStrip // menuStrip
// //
menuStrip.Items.AddRange(new ToolStripItem[] { toolStripMenuItem, ReportsToolStripMenuItem, startWorkToolStripMenuItem }); menuStrip.Items.AddRange(new ToolStripItem[] { toolStripMenuItem, ReportsToolStripMenuItem, startWorkToolStripMenuItem, createBackUpToolStripMenuItem });
menuStrip.Location = new Point(0, 0); menuStrip.Location = new Point(0, 0);
menuStrip.Name = "menuStrip"; menuStrip.Name = "menuStrip";
menuStrip.Size = new Size(1381, 24); menuStrip.Size = new Size(1381, 24);
@ -107,35 +108,35 @@
// 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;
// //
// sushiToolStripMenuItem // sushiToolStripMenuItem
// //
sushiToolStripMenuItem.Name = "sushiToolStripMenuItem"; sushiToolStripMenuItem.Name = "sushiToolStripMenuItem";
sushiToolStripMenuItem.Size = new Size(180, 22); sushiToolStripMenuItem.Size = new Size(149, 22);
sushiToolStripMenuItem.Text = "Суши"; sushiToolStripMenuItem.Text = "Суши";
sushiToolStripMenuItem.Click += sushiToolStripMenuItem_Click; sushiToolStripMenuItem.Click += sushiToolStripMenuItem_Click;
// //
// clientToolStripMenuItem // clientToolStripMenuItem
// //
clientToolStripMenuItem.Name = "clientToolStripMenuItem"; clientToolStripMenuItem.Name = "clientToolStripMenuItem";
clientToolStripMenuItem.Size = new Size(180, 22); clientToolStripMenuItem.Size = new Size(149, 22);
clientToolStripMenuItem.Text = "Клиент"; clientToolStripMenuItem.Text = "Клиент";
clientToolStripMenuItem.Click += clientToolStripMenuItem_Click; clientToolStripMenuItem.Click += clientToolStripMenuItem_Click;
// //
// employersToolStripMenuItem // employersToolStripMenuItem
// //
employersToolStripMenuItem.Name = "employersToolStripMenuItem"; employersToolStripMenuItem.Name = "employersToolStripMenuItem";
employersToolStripMenuItem.Size = new Size(180, 22); employersToolStripMenuItem.Size = new Size(149, 22);
employersToolStripMenuItem.Text = "Исполнители"; employersToolStripMenuItem.Text = "Исполнители";
employersToolStripMenuItem.Click += employersToolStripMenuItem_Click; employersToolStripMenuItem.Click += employersToolStripMenuItem_Click;
// //
// mailToolStripMenuItem // mailToolStripMenuItem
// //
mailToolStripMenuItem.Name = "mailToolStripMenuItem"; mailToolStripMenuItem.Name = "mailToolStripMenuItem";
mailToolStripMenuItem.Size = new Size(180, 22); mailToolStripMenuItem.Size = new Size(149, 22);
mailToolStripMenuItem.Text = "Почта"; mailToolStripMenuItem.Text = "Почта";
mailToolStripMenuItem.Click += mailToolStripMenuItem_Click; mailToolStripMenuItem.Click += mailToolStripMenuItem_Click;
// //
@ -174,6 +175,13 @@
startWorkToolStripMenuItem.Text = "Запуск работ"; startWorkToolStripMenuItem.Text = "Запуск работ";
startWorkToolStripMenuItem.Click += startWorkToolStripMenuItem_Click; startWorkToolStripMenuItem.Click += startWorkToolStripMenuItem_Click;
// //
// createBackUpToolStripMenuItem
//
createBackUpToolStripMenuItem.Name = "createBackUpToolStripMenuItem";
createBackUpToolStripMenuItem.Size = new Size(97, 20);
createBackUpToolStripMenuItem.Text = "Создать бекап";
createBackUpToolStripMenuItem.Click += createBackUpToolStripMenuItem_Click;
//
// FormMain // FormMain
// //
AutoScaleDimensions = new SizeF(7F, 15F); AutoScaleDimensions = new SizeF(7F, 15F);
@ -213,5 +221,6 @@
private ToolStripMenuItem startWorkToolStripMenuItem; private ToolStripMenuItem startWorkToolStripMenuItem;
private ToolStripMenuItem employersToolStripMenuItem; private ToolStripMenuItem employersToolStripMenuItem;
private ToolStripMenuItem mailToolStripMenuItem; private ToolStripMenuItem mailToolStripMenuItem;
private ToolStripMenuItem createBackUpToolStripMenuItem;
} }
} }

View File

@ -171,5 +171,10 @@ e)
MessageBoxIcon.Error); MessageBoxIcon.Error);
} }
} }
private void создатьToolStripMenuItem_Click(object sender, EventArgs e)
{
}
} }
} }

View File

@ -13,6 +13,9 @@
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.0" />
<PackageReference Include="NLog.Extensions.Logging" Version="5.3.8" /> <PackageReference Include="NLog.Extensions.Logging" Version="5.3.8" />
<PackageReference Include="ReportViewerCore.WinForms" Version="15.1.19" /> <PackageReference Include="ReportViewerCore.WinForms" Version="15.1.19" />
</ItemGroup> </ItemGroup>