готовая 7 лаб

This commit is contained in:
platoff aeeee 2024-06-21 17:29:57 +04:00
parent e8d9ca4710
commit a54010df45
2 changed files with 134 additions and 192 deletions

View File

@ -28,194 +28,196 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
dataGridView = new DataGridView(); this.dataGridView = new System.Windows.Forms.DataGridView();
buttonCreateOrder = new Button(); this.buttonCreateOrder = new System.Windows.Forms.Button();
buttonIssuedOrder = new Button(); this.buttonIssuedOrder = new System.Windows.Forms.Button();
buttonRefresh = new Button(); this.buttonRefresh = new System.Windows.Forms.Button();
menuStrip = new MenuStrip(); this.menuStrip = new System.Windows.Forms.MenuStrip();
toolStripMenuItem = new ToolStripMenuItem(); this.toolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
workPieceToolStripMenuItem = new ToolStripMenuItem(); this.workPieceToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
furnitureToolStripMenuItem = new ToolStripMenuItem(); this.furnitureToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
mailsToolStripMenuItem = new ToolStripMenuItem(); this.mailsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
reportsToolStripMenuItem = new ToolStripMenuItem(); this.reportsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
workPiecesToolStripMenuItem = new ToolStripMenuItem(); this.workPiecesToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
workPieceFurnituresToolStripMenuItem = new ToolStripMenuItem(); this.workPieceFurnituresToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
ordersToolStripMenuItem = new ToolStripMenuItem(); this.ordersToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
workWithClientsToolStripMenuItem = new ToolStripMenuItem(); this.workWithClientsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
clientsToolStripMenuItem = new ToolStripMenuItem(); this.clientsToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
workWithImplementerToolStripMenuItem = new ToolStripMenuItem(); this.workWithImplementerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
implementerToolStripMenuItem = new ToolStripMenuItem(); this.implementerToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
startingWorkToolStripMenuItem = new ToolStripMenuItem(); this.startingWorkToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit();
menuStrip.SuspendLayout(); this.menuStrip.SuspendLayout();
SuspendLayout(); this.SuspendLayout();
// //
// dataGridView // dataGridView
// //
dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize; this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
dataGridView.Location = new Point(10, 27); this.dataGridView.Location = new System.Drawing.Point(10, 27);
dataGridView.Margin = new Padding(3, 2, 3, 2); this.dataGridView.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
dataGridView.Name = "dataGridView"; this.dataGridView.Name = "dataGridView";
dataGridView.RowHeadersWidth = 51; this.dataGridView.RowHeadersWidth = 51;
dataGridView.RowTemplate.Height = 29; this.dataGridView.RowTemplate.Height = 29;
dataGridView.Size = new Size(820, 302); this.dataGridView.Size = new System.Drawing.Size(820, 302);
dataGridView.TabIndex = 0; this.dataGridView.TabIndex = 0;
// //
// buttonCreateOrder // buttonCreateOrder
// //
buttonCreateOrder.Location = new Point(887, 50); this.buttonCreateOrder.Location = new System.Drawing.Point(887, 50);
buttonCreateOrder.Margin = new Padding(3, 2, 3, 2); this.buttonCreateOrder.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
buttonCreateOrder.Name = "buttonCreateOrder"; this.buttonCreateOrder.Name = "buttonCreateOrder";
buttonCreateOrder.Size = new Size(206, 34); this.buttonCreateOrder.Size = new System.Drawing.Size(206, 34);
buttonCreateOrder.TabIndex = 1; this.buttonCreateOrder.TabIndex = 1;
buttonCreateOrder.Text = "Создать заказ"; this.buttonCreateOrder.Text = "Создать заказ";
buttonCreateOrder.UseVisualStyleBackColor = true; this.buttonCreateOrder.UseVisualStyleBackColor = true;
buttonCreateOrder.Click += ButtonCreateOrder_Click;
// //
// buttonIssuedOrder // buttonIssuedOrder
// //
buttonIssuedOrder.Location = new Point(887, 100); this.buttonIssuedOrder.Location = new System.Drawing.Point(887, 100);
buttonIssuedOrder.Margin = new Padding(3, 2, 3, 2); this.buttonIssuedOrder.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
buttonIssuedOrder.Name = "buttonIssuedOrder"; this.buttonIssuedOrder.Name = "buttonIssuedOrder";
buttonIssuedOrder.Size = new Size(206, 33); this.buttonIssuedOrder.Size = new System.Drawing.Size(206, 33);
buttonIssuedOrder.TabIndex = 4; this.buttonIssuedOrder.TabIndex = 4;
buttonIssuedOrder.Text = "Заказ выдан"; this.buttonIssuedOrder.Text = "Заказ выдан";
buttonIssuedOrder.UseVisualStyleBackColor = true; this.buttonIssuedOrder.UseVisualStyleBackColor = true;
buttonIssuedOrder.Click += ButtonIssuedOrder_Click;
// //
// buttonRefresh // buttonRefresh
// //
buttonRefresh.Location = new Point(887, 152); this.buttonRefresh.Location = new System.Drawing.Point(887, 152);
buttonRefresh.Margin = new Padding(3, 2, 3, 2); this.buttonRefresh.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
buttonRefresh.Name = "buttonRefresh"; this.buttonRefresh.Name = "buttonRefresh";
buttonRefresh.Size = new Size(206, 29); this.buttonRefresh.Size = new System.Drawing.Size(206, 29);
buttonRefresh.TabIndex = 5; this.buttonRefresh.TabIndex = 5;
buttonRefresh.Text = "Обновить"; this.buttonRefresh.Text = "Обновить";
buttonRefresh.UseVisualStyleBackColor = true; this.buttonRefresh.UseVisualStyleBackColor = true;
buttonRefresh.Click += ButtonRef_Click;
// //
// menuStrip // menuStrip
// //
menuStrip.ImageScalingSize = new Size(20, 20); this.menuStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
menuStrip.Items.AddRange(new ToolStripItem[] { toolStripMenuItem, reportsToolStripMenuItem, workWithClientsToolStripMenuItem, workWithImplementerToolStripMenuItem, startingWorkToolStripMenuItem }); this.menuStrip.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
menuStrip.Location = new Point(0, 0); this.toolStripMenuItem,
menuStrip.Name = "menuStrip"; this.reportsToolStripMenuItem,
menuStrip.Padding = new Padding(5, 2, 0, 2); this.workWithClientsToolStripMenuItem,
menuStrip.Size = new Size(1135, 24); this.workWithImplementerToolStripMenuItem,
menuStrip.TabIndex = 6; this.startingWorkToolStripMenuItem});
menuStrip.Text = "menuStrip"; this.menuStrip.Location = new System.Drawing.Point(0, 0);
this.menuStrip.Name = "menuStrip";
this.menuStrip.Padding = new System.Windows.Forms.Padding(5, 2, 0, 2);
this.menuStrip.Size = new System.Drawing.Size(1135, 24);
this.menuStrip.TabIndex = 6;
this.menuStrip.Text = "menuStrip";
// //
// toolStripMenuItem // toolStripMenuItem
// //
toolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { workPieceToolStripMenuItem, furnitureToolStripMenuItem, mailsToolStripMenuItem }); this.toolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
toolStripMenuItem.Name = "toolStripMenuItem"; this.workPieceToolStripMenuItem,
toolStripMenuItem.Size = new Size(94, 20); this.furnitureToolStripMenuItem,
toolStripMenuItem.Text = "Справочники"; this.mailsToolStripMenuItem});
this.toolStripMenuItem.Name = "toolStripMenuItem";
this.toolStripMenuItem.Size = new System.Drawing.Size(94, 20);
this.toolStripMenuItem.Text = "Справочники";
// //
// workPieceToolStripMenuItem // workPieceToolStripMenuItem
// //
workPieceToolStripMenuItem.Name = "workPieceToolStripMenuItem"; this.workPieceToolStripMenuItem.Name = "workPieceToolStripMenuItem";
workPieceToolStripMenuItem.Size = new Size(180, 22); this.workPieceToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
workPieceToolStripMenuItem.Text = "Заготовки"; this.workPieceToolStripMenuItem.Text = "Заготовки";
workPieceToolStripMenuItem.Click += WorkPieceToolStripMenuItem_Click;
// //
// furnitureToolStripMenuItem // furnitureToolStripMenuItem
// //
furnitureToolStripMenuItem.Name = "furnitureToolStripMenuItem"; this.furnitureToolStripMenuItem.Name = "furnitureToolStripMenuItem";
furnitureToolStripMenuItem.Size = new Size(180, 22); this.furnitureToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
furnitureToolStripMenuItem.Text = "Изделия"; this.furnitureToolStripMenuItem.Text = "Изделия";
furnitureToolStripMenuItem.Click += FurnitureToolStripMenuItem_Click;
// //
// mailsToolStripMenuItem // mailsToolStripMenuItem
// //
mailsToolStripMenuItem.Name = "mailsToolStripMenuItem"; this.mailsToolStripMenuItem.Name = "mailsToolStripMenuItem";
mailsToolStripMenuItem.Size = new Size(180, 22); this.mailsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
mailsToolStripMenuItem.Text = "Письма"; this.mailsToolStripMenuItem.Text = "Письма";
mailsToolStripMenuItem.Click += MailsToolStripMenuItem_Click; this.mailsToolStripMenuItem.Click += new System.EventHandler(this.MailsToolStripMenuItem_Click);
// //
// reportsToolStripMenuItem // reportsToolStripMenuItem
// //
reportsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { workPiecesToolStripMenuItem, workPieceFurnituresToolStripMenuItem, ordersToolStripMenuItem }); this.reportsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
reportsToolStripMenuItem.Name = "reportsToolStripMenuItem"; this.workPiecesToolStripMenuItem,
reportsToolStripMenuItem.Size = new Size(60, 20); this.workPieceFurnituresToolStripMenuItem,
reportsToolStripMenuItem.Text = "Отчёты"; this.ordersToolStripMenuItem});
this.reportsToolStripMenuItem.Name = "reportsToolStripMenuItem";
this.reportsToolStripMenuItem.Size = new System.Drawing.Size(60, 20);
this.reportsToolStripMenuItem.Text = "Отчёты";
// //
// workPiecesToolStripMenuItem // workPiecesToolStripMenuItem
// //
workPiecesToolStripMenuItem.Name = "workPiecesToolStripMenuItem"; this.workPiecesToolStripMenuItem.Name = "workPiecesToolStripMenuItem";
workPiecesToolStripMenuItem.Size = new Size(203, 22); this.workPiecesToolStripMenuItem.Size = new System.Drawing.Size(203, 22);
workPiecesToolStripMenuItem.Text = "Список заготовок"; this.workPiecesToolStripMenuItem.Text = "Список заготовок";
workPiecesToolStripMenuItem.Click += WorkPiecesToolStripMenuItem_Click;
// //
// workPieceFurnituresToolStripMenuItem // workPieceFurnituresToolStripMenuItem
// //
workPieceFurnituresToolStripMenuItem.Name = "workPieceFurnituresToolStripMenuItem"; this.workPieceFurnituresToolStripMenuItem.Name = "workPieceFurnituresToolStripMenuItem";
workPieceFurnituresToolStripMenuItem.Size = new Size(203, 22); this.workPieceFurnituresToolStripMenuItem.Size = new System.Drawing.Size(203, 22);
workPieceFurnituresToolStripMenuItem.Text = "Заготовки по изделиям"; this.workPieceFurnituresToolStripMenuItem.Text = "Заготовки по изделиям";
workPieceFurnituresToolStripMenuItem.Click += WorkPieceFurnituresToolStripMenuItem_Click;
// //
// ordersToolStripMenuItem // ordersToolStripMenuItem
// //
ordersToolStripMenuItem.Name = "ordersToolStripMenuItem"; this.ordersToolStripMenuItem.Name = "ordersToolStripMenuItem";
ordersToolStripMenuItem.Size = new Size(203, 22); this.ordersToolStripMenuItem.Size = new System.Drawing.Size(203, 22);
ordersToolStripMenuItem.Text = "Список заказов"; this.ordersToolStripMenuItem.Text = "Список заказов";
ordersToolStripMenuItem.Click += OrdersToolStripMenuItem_Click;
// //
// workWithClientsToolStripMenuItem // workWithClientsToolStripMenuItem
// //
workWithClientsToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { clientsToolStripMenuItem }); this.workWithClientsToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
workWithClientsToolStripMenuItem.Name = "workWithClientsToolStripMenuItem"; this.clientsToolStripMenuItem});
workWithClientsToolStripMenuItem.Size = new Size(129, 20); this.workWithClientsToolStripMenuItem.Name = "workWithClientsToolStripMenuItem";
workWithClientsToolStripMenuItem.Text = "Работа с клиентами"; this.workWithClientsToolStripMenuItem.Size = new System.Drawing.Size(129, 20);
this.workWithClientsToolStripMenuItem.Text = "Работа с клиентами";
// //
// clientsToolStripMenuItem // clientsToolStripMenuItem
// //
clientsToolStripMenuItem.Name = "clientsToolStripMenuItem"; this.clientsToolStripMenuItem.Name = "clientsToolStripMenuItem";
clientsToolStripMenuItem.Size = new Size(122, 22); this.clientsToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
clientsToolStripMenuItem.Text = "Клиенты"; this.clientsToolStripMenuItem.Text = "Клиенты";
clientsToolStripMenuItem.Click += ClientsToolStripMenuItem_Click;
// //
// workWithImplementerToolStripMenuItem // workWithImplementerToolStripMenuItem
// //
workWithImplementerToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { implementerToolStripMenuItem }); this.workWithImplementerToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
workWithImplementerToolStripMenuItem.Name = "workWithImplementerToolStripMenuItem"; this.implementerToolStripMenuItem});
workWithImplementerToolStripMenuItem.Size = new Size(157, 20); this.workWithImplementerToolStripMenuItem.Name = "workWithImplementerToolStripMenuItem";
workWithImplementerToolStripMenuItem.Text = "Работа с исполнителями"; this.workWithImplementerToolStripMenuItem.Size = new System.Drawing.Size(157, 20);
this.workWithImplementerToolStripMenuItem.Text = "Работа с исполнителями";
// //
// implementerToolStripMenuItem // implementerToolStripMenuItem
// //
implementerToolStripMenuItem.Name = "implementerToolStripMenuItem"; this.implementerToolStripMenuItem.Name = "implementerToolStripMenuItem";
implementerToolStripMenuItem.Size = new Size(149, 22); this.implementerToolStripMenuItem.Size = new System.Drawing.Size(180, 22);
implementerToolStripMenuItem.Text = "Исполнители"; this.implementerToolStripMenuItem.Text = "Исполнители";
implementerToolStripMenuItem.Click += ImplementerToolStripMenuItem_Click;
// //
// startingWorkToolStripMenuItem // startingWorkToolStripMenuItem
// //
startingWorkToolStripMenuItem.Name = "startingWorkToolStripMenuItem"; this.startingWorkToolStripMenuItem.Name = "startingWorkToolStripMenuItem";
startingWorkToolStripMenuItem.Size = new Size(92, 20); this.startingWorkToolStripMenuItem.Size = new System.Drawing.Size(92, 20);
startingWorkToolStripMenuItem.Text = "Запуск работ"; this.startingWorkToolStripMenuItem.Text = "Запуск работ";
startingWorkToolStripMenuItem.Click += StartingWorkToolStripMenuItem_Click;
// //
// FormMain // FormMain
// //
AutoScaleDimensions = new SizeF(7F, 15F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
AutoScaleMode = AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
ClientSize = new Size(1135, 338); this.ClientSize = new System.Drawing.Size(1135, 338);
Controls.Add(buttonRefresh); this.Controls.Add(this.buttonRefresh);
Controls.Add(buttonIssuedOrder); this.Controls.Add(this.buttonIssuedOrder);
Controls.Add(buttonCreateOrder); this.Controls.Add(this.buttonCreateOrder);
Controls.Add(dataGridView); this.Controls.Add(this.dataGridView);
Controls.Add(menuStrip); this.Controls.Add(this.menuStrip);
MainMenuStrip = menuStrip; this.MainMenuStrip = this.menuStrip;
Margin = new Padding(3, 2, 3, 2); this.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2);
Name = "FormMain"; this.Name = "FormMain";
Text = "Сборка мебели"; this.Text = "Сборка мебели";
Load += FormMain_Load; ((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit();
((System.ComponentModel.ISupportInitialize)dataGridView).EndInit(); this.menuStrip.ResumeLayout(false);
menuStrip.ResumeLayout(false); this.menuStrip.PerformLayout();
menuStrip.PerformLayout(); this.ResumeLayout(false);
ResumeLayout(false); this.PerformLayout();
PerformLayout();
} }
#endregion #endregion

View File

@ -1,64 +1,4 @@
<?xml version="1.0" encoding="utf-8"?> <root>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"> <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" /> <xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true"> <xsd:element name="root" msdata:IsDataSet="true">