This commit is contained in:
kamilia 2024-04-06 23:50:52 +04:00
parent 4600eccfd9
commit 81a7d12e28
3 changed files with 172 additions and 106 deletions

View File

@ -15,7 +15,7 @@ namespace AircraftPlantDatabaseImplement
{ {
if (optionsBuilder.IsConfigured == false) if (optionsBuilder.IsConfigured == false)
{ {
optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-6QDRI0N\SQLEXPRESS;Initial Catalog=AircraftPlantDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True"); optionsBuilder.UseSqlServer(@"Data Source=DESKTOP-NFSG25N\SQLEXPRESS;Initial Catalog=AircraftPlantDatabase;Integrated Security=True;MultipleActiveResultSets=True;;TrustServerCertificate=True");
} }
base.OnConfiguring(optionsBuilder); base.OnConfiguring(optionsBuilder);
} }

View File

@ -28,143 +28,149 @@
/// </summary> /// </summary>
private void InitializeComponent() private void InitializeComponent()
{ {
this.dataGridView = new System.Windows.Forms.DataGridView(); dataGridView = new DataGridView();
this.ButtonCreateOrder = new System.Windows.Forms.Button(); ButtonCreateOrder = new Button();
this.ButtonTakeOrderInWork = new System.Windows.Forms.Button(); ButtonTakeOrderInWork = new Button();
this.ButtonOrderReady = new System.Windows.Forms.Button(); ButtonOrderReady = new Button();
this.ButtonIssuedOrder = new System.Windows.Forms.Button(); ButtonIssuedOrder = new Button();
this.ButtonRef = new System.Windows.Forms.Button(); ButtonRef = new Button();
this.menuStrip1 = new System.Windows.Forms.MenuStrip(); menuStrip1 = new MenuStrip();
this.справочникиToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); справочникиToolStripMenuItem = new ToolStripMenuItem();
this.компонентыToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); компонентыToolStripMenuItem = new ToolStripMenuItem();
this.изделияToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); изделияToolStripMenuItem = new ToolStripMenuItem();
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).BeginInit(); ((System.ComponentModel.ISupportInitialize)dataGridView).BeginInit();
this.menuStrip1.SuspendLayout(); menuStrip1.SuspendLayout();
this.SuspendLayout(); SuspendLayout();
// //
// dataGridView // dataGridView
// //
this.dataGridView.AllowUserToAddRows = false; dataGridView.AllowUserToAddRows = false;
this.dataGridView.AllowUserToDeleteRows = false; dataGridView.AllowUserToDeleteRows = false;
this.dataGridView.BackgroundColor = System.Drawing.Color.White; dataGridView.BackgroundColor = Color.White;
this.dataGridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.AutoSize;
this.dataGridView.Dock = System.Windows.Forms.DockStyle.Left; dataGridView.Dock = DockStyle.Left;
this.dataGridView.GridColor = System.Drawing.Color.White; dataGridView.GridColor = Color.White;
this.dataGridView.Location = new System.Drawing.Point(0, 24); dataGridView.Location = new Point(0, 30);
this.dataGridView.MultiSelect = false; dataGridView.Margin = new Padding(3, 4, 3, 4);
this.dataGridView.Name = "dataGridView"; dataGridView.MultiSelect = false;
this.dataGridView.ReadOnly = true; dataGridView.Name = "dataGridView";
this.dataGridView.RowHeadersVisible = false; dataGridView.ReadOnly = true;
this.dataGridView.RowTemplate.Height = 25; dataGridView.RowHeadersVisible = false;
this.dataGridView.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; dataGridView.RowHeadersWidth = 51;
this.dataGridView.Size = new System.Drawing.Size(780, 377); dataGridView.RowTemplate.Height = 25;
this.dataGridView.TabIndex = 0; dataGridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
dataGridView.Size = new Size(891, 505);
dataGridView.TabIndex = 0;
// //
// ButtonCreateOrder // ButtonCreateOrder
// //
this.ButtonCreateOrder.Location = new System.Drawing.Point(804, 42); ButtonCreateOrder.Location = new Point(919, 56);
this.ButtonCreateOrder.Name = "ButtonCreateOrder"; ButtonCreateOrder.Margin = new Padding(3, 4, 3, 4);
this.ButtonCreateOrder.Size = new System.Drawing.Size(153, 23); ButtonCreateOrder.Name = "ButtonCreateOrder";
this.ButtonCreateOrder.TabIndex = 1; ButtonCreateOrder.Size = new Size(213, 31);
this.ButtonCreateOrder.Text = "Создать заказ"; ButtonCreateOrder.TabIndex = 1;
this.ButtonCreateOrder.UseVisualStyleBackColor = true; ButtonCreateOrder.Text = "Создать заказ";
this.ButtonCreateOrder.Click += new System.EventHandler(this.ButtonCreateOrder_Click); ButtonCreateOrder.UseVisualStyleBackColor = true;
ButtonCreateOrder.Click += ButtonCreateOrder_Click;
// //
// ButtonTakeOrderInWork // ButtonTakeOrderInWork
// //
this.ButtonTakeOrderInWork.Location = new System.Drawing.Point(804, 89); ButtonTakeOrderInWork.Location = new Point(919, 119);
this.ButtonTakeOrderInWork.Name = "ButtonTakeOrderInWork"; ButtonTakeOrderInWork.Margin = new Padding(3, 4, 3, 4);
this.ButtonTakeOrderInWork.Size = new System.Drawing.Size(153, 23); ButtonTakeOrderInWork.Name = "ButtonTakeOrderInWork";
this.ButtonTakeOrderInWork.TabIndex = 2; ButtonTakeOrderInWork.Size = new Size(213, 31);
this.ButtonTakeOrderInWork.Text = "Отдать на выполнение"; ButtonTakeOrderInWork.TabIndex = 2;
this.ButtonTakeOrderInWork.UseVisualStyleBackColor = true; ButtonTakeOrderInWork.Text = "Отдать на выполнение";
this.ButtonTakeOrderInWork.Click += new System.EventHandler(this.ButtonTakeOrderInWork_Click); ButtonTakeOrderInWork.UseVisualStyleBackColor = true;
ButtonTakeOrderInWork.Click += ButtonTakeOrderInWork_Click;
// //
// ButtonOrderReady // ButtonOrderReady
// //
this.ButtonOrderReady.Location = new System.Drawing.Point(804, 139); ButtonOrderReady.Location = new Point(919, 185);
this.ButtonOrderReady.Name = "ButtonOrderReady"; ButtonOrderReady.Margin = new Padding(3, 4, 3, 4);
this.ButtonOrderReady.Size = new System.Drawing.Size(153, 23); ButtonOrderReady.Name = "ButtonOrderReady";
this.ButtonOrderReady.TabIndex = 3; ButtonOrderReady.Size = new Size(213, 31);
this.ButtonOrderReady.Text = "Заказ готов"; ButtonOrderReady.TabIndex = 3;
this.ButtonOrderReady.UseVisualStyleBackColor = true; ButtonOrderReady.Text = "Заказ готов";
this.ButtonOrderReady.Click += new System.EventHandler(this.ButtonOrderReady_Click); ButtonOrderReady.UseVisualStyleBackColor = true;
ButtonOrderReady.Click += ButtonOrderReady_Click;
// //
// ButtonIssuedOrder // ButtonIssuedOrder
// //
this.ButtonIssuedOrder.Location = new System.Drawing.Point(804, 187); ButtonIssuedOrder.Location = new Point(919, 249);
this.ButtonIssuedOrder.Name = "ButtonIssuedOrder"; ButtonIssuedOrder.Margin = new Padding(3, 4, 3, 4);
this.ButtonIssuedOrder.Size = new System.Drawing.Size(153, 23); ButtonIssuedOrder.Name = "ButtonIssuedOrder";
this.ButtonIssuedOrder.TabIndex = 4; ButtonIssuedOrder.Size = new Size(213, 31);
this.ButtonIssuedOrder.Text = "Заказ выдан"; ButtonIssuedOrder.TabIndex = 4;
this.ButtonIssuedOrder.UseVisualStyleBackColor = true; ButtonIssuedOrder.Text = "Заказ выдан";
this.ButtonIssuedOrder.Click += new System.EventHandler(this.ButtonIssuedOrder_Click); ButtonIssuedOrder.UseVisualStyleBackColor = true;
ButtonIssuedOrder.Click += ButtonIssuedOrder_Click;
// //
// ButtonRef // ButtonRef
// //
this.ButtonRef.Location = new System.Drawing.Point(804, 236); ButtonRef.Location = new Point(919, 315);
this.ButtonRef.Name = "ButtonRef"; ButtonRef.Margin = new Padding(3, 4, 3, 4);
this.ButtonRef.Size = new System.Drawing.Size(153, 23); ButtonRef.Name = "ButtonRef";
this.ButtonRef.TabIndex = 5; ButtonRef.Size = new Size(213, 31);
this.ButtonRef.Text = "Обновить список"; ButtonRef.TabIndex = 5;
this.ButtonRef.UseVisualStyleBackColor = true; ButtonRef.Text = "Обновить список";
this.ButtonRef.Click += new System.EventHandler(this.ButtonRef_Click); ButtonRef.UseVisualStyleBackColor = true;
ButtonRef.Click += ButtonRef_Click;
// //
// menuStrip1 // menuStrip1
// //
this.menuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { menuStrip1.ImageScalingSize = new Size(20, 20);
this.справочникиToolStripMenuItem}); menuStrip1.Items.AddRange(new ToolStripItem[] { справочникиToolStripMenuItem });
this.menuStrip1.Location = new System.Drawing.Point(0, 0); menuStrip1.Location = new Point(0, 0);
this.menuStrip1.Name = "menuStrip1"; menuStrip1.Name = "menuStrip1";
this.menuStrip1.Size = new System.Drawing.Size(977, 24); menuStrip1.Padding = new Padding(7, 3, 0, 3);
this.menuStrip1.TabIndex = 6; menuStrip1.Size = new Size(1154, 30);
this.menuStrip1.Text = "menuStrip1"; menuStrip1.TabIndex = 6;
menuStrip1.Text = "menuStrip1";
// //
// справочникиToolStripMenuItem // справочникиToolStripMenuItem
// //
this.справочникиToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { справочникиToolStripMenuItem.DropDownItems.AddRange(new ToolStripItem[] { компонентыToolStripMenuItem, изделияToolStripMenuItem });
this.компонентыToolStripMenuItem, справочникиToolStripMenuItem.Name = "справочникиToolStripMenuItem";
this.изделияToolStripMenuItem}); справочникиToolStripMenuItem.Size = new Size(117, 24);
this.справочникиToolStripMenuItem.Name = "справочникиToolStripMenuItem"; справочникиToolStripMenuItem.Text = "Справочники";
this.справочникиToolStripMenuItem.Size = new System.Drawing.Size(94, 20);
this.справочникиToolStripMenuItem.Text = "Справочники";
// //
// компонентыToolStripMenuItem // компонентыToolStripMenuItem
// //
this.компонентыToolStripMenuItem.Name = омпонентыToolStripMenuItem"; компонентыToolStripMenuItem.Name = омпонентыToolStripMenuItem";
this.компонентыToolStripMenuItem.Size = new System.Drawing.Size(145, 22); компонентыToolStripMenuItem.Size = new Size(182, 26);
this.компонентыToolStripMenuItem.Text = "Компоненты"; компонентыToolStripMenuItem.Text = "Компоненты";
this.компонентыToolStripMenuItem.Click += new System.EventHandler(this.КомпонентыToolStripMenuItem_Click); компонентыToolStripMenuItem.Click += КомпонентыToolStripMenuItem_Click;
// //
// изделияToolStripMenuItem // изделияToolStripMenuItem
// //
this.изделияToolStripMenuItem.Name = "изделияToolStripMenuItem"; изделияToolStripMenuItem.Name = "изделияToolStripMenuItem";
this.изделияToolStripMenuItem.Size = new System.Drawing.Size(145, 22); изделияToolStripMenuItem.Size = new Size(182, 26);
this.изделияToolStripMenuItem.Text = "Изделия"; изделияToolStripMenuItem.Text = "Изделия";
this.изделияToolStripMenuItem.Click += new System.EventHandler(this.ИзделияToolStripMenuItem_Click); изделияToolStripMenuItem.Click += ИзделияToolStripMenuItem_Click;
// //
// FormMain // FormMain
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); AutoScaleDimensions = new SizeF(8F, 20F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; AutoScaleMode = AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(977, 401); ClientSize = new Size(1154, 535);
this.Controls.Add(this.ButtonRef); Controls.Add(ButtonRef);
this.Controls.Add(this.ButtonIssuedOrder); Controls.Add(ButtonIssuedOrder);
this.Controls.Add(this.ButtonOrderReady); Controls.Add(ButtonOrderReady);
this.Controls.Add(this.ButtonTakeOrderInWork); Controls.Add(ButtonTakeOrderInWork);
this.Controls.Add(this.ButtonCreateOrder); Controls.Add(ButtonCreateOrder);
this.Controls.Add(this.dataGridView); Controls.Add(dataGridView);
this.Controls.Add(this.menuStrip1); Controls.Add(menuStrip1);
this.MainMenuStrip = this.menuStrip1; MainMenuStrip = menuStrip1;
this.Name = "FormMain"; Margin = new Padding(3, 4, 3, 4);
this.Text = "Авиационный завод"; Name = "FormMain";
this.Load += new System.EventHandler(this.FormMain_Load); Text = "Авиационный завод";
((System.ComponentModel.ISupportInitialize)(this.dataGridView)).EndInit(); Load += FormMain_Load;
this.menuStrip1.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)dataGridView).EndInit();
this.menuStrip1.PerformLayout(); menuStrip1.ResumeLayout(false);
this.ResumeLayout(false); menuStrip1.PerformLayout();
this.PerformLayout(); ResumeLayout(false);
PerformLayout();
} }
#endregion #endregion

View File

@ -1,4 +1,64 @@
<root> <?xml version="1.0" encoding="utf-8"?>
<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">