|
|
@@ -28,12 +28,43 @@
|
|
|
/// </summary>
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
+ this.components = new System.ComponentModel.Container();
|
|
|
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddOrder));
|
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
|
this.label1 = new System.Windows.Forms.Label();
|
|
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
|
|
+ this.CbxIzd = new System.Windows.Forms.ComboBox();
|
|
|
+ this.BsZak = new System.Windows.Forms.BindingSource(this.components);
|
|
|
+ this.sewingFactoryMURDataSet1 = new СУБД_Фабрика.SewingFactoryMURDataSet();
|
|
|
+ this.BsIzd = new System.Windows.Forms.BindingSource(this.components);
|
|
|
+ this.CbxFurn = new System.Windows.Forms.ComboBox();
|
|
|
+ this.BsFur = new System.Windows.Forms.BindingSource(this.components);
|
|
|
+ this.CbxCloth = new System.Windows.Forms.ComboBox();
|
|
|
+ this.BsCloth = new System.Windows.Forms.BindingSource(this.components);
|
|
|
+ this.TbxCountFur = new System.Windows.Forms.TextBox();
|
|
|
+ this.TbxCountIzd = new System.Windows.Forms.TextBox();
|
|
|
+ this.label2 = new System.Windows.Forms.Label();
|
|
|
+ this.label3 = new System.Windows.Forms.Label();
|
|
|
+ this.label4 = new System.Windows.Forms.Label();
|
|
|
+ this.label5 = new System.Windows.Forms.Label();
|
|
|
+ this.label6 = new System.Windows.Forms.Label();
|
|
|
+ this.BtnCreateOrder = new System.Windows.Forms.Button();
|
|
|
+ this.BtnCancel = new System.Windows.Forms.Button();
|
|
|
+ this.ordersTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.OrdersTableAdapter();
|
|
|
+ this.izdeliaTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.IzdeliaTableAdapter();
|
|
|
+ this.clothTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.ClothTableAdapter();
|
|
|
+ this.furnituraTableAdapter = new СУБД_Фабрика.SewingFactoryMURDataSetTableAdapters.FurnituraTableAdapter();
|
|
|
+ this.LblIDMen = new System.Windows.Forms.Label();
|
|
|
+ this.LblIDZak = new System.Windows.Forms.Label();
|
|
|
+ this.LblCountFur = new System.Windows.Forms.Label();
|
|
|
+ this.LblCountIzd = new System.Windows.Forms.Label();
|
|
|
this.panel1.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.BsZak)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.BsIzd)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.BsFur)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.BsCloth)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
// panel1
|
|
|
@@ -45,14 +76,14 @@
|
|
|
this.panel1.Location = new System.Drawing.Point(0, 0);
|
|
|
this.panel1.Margin = new System.Windows.Forms.Padding(4);
|
|
|
this.panel1.Name = "panel1";
|
|
|
- this.panel1.Size = new System.Drawing.Size(627, 91);
|
|
|
+ this.panel1.Size = new System.Drawing.Size(370, 91);
|
|
|
this.panel1.TabIndex = 1;
|
|
|
//
|
|
|
// label1
|
|
|
//
|
|
|
this.label1.AutoSize = true;
|
|
|
this.label1.Font = new System.Drawing.Font("Arial Narrow", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
- this.label1.Location = new System.Drawing.Point(176, 37);
|
|
|
+ this.label1.Location = new System.Drawing.Point(95, 37);
|
|
|
this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
this.label1.Name = "label1";
|
|
|
this.label1.Size = new System.Drawing.Size(134, 23);
|
|
|
@@ -63,7 +94,7 @@
|
|
|
//
|
|
|
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Right;
|
|
|
this.pictureBox1.Image = global::СУБД_Фабрика.Properties.Resources.fabric_logo;
|
|
|
- this.pictureBox1.Location = new System.Drawing.Point(526, 0);
|
|
|
+ this.pictureBox1.Location = new System.Drawing.Point(269, 0);
|
|
|
this.pictureBox1.Margin = new System.Windows.Forms.Padding(4);
|
|
|
this.pictureBox1.Name = "pictureBox1";
|
|
|
this.pictureBox1.Size = new System.Drawing.Size(101, 91);
|
|
|
@@ -71,22 +102,249 @@
|
|
|
this.pictureBox1.TabIndex = 0;
|
|
|
this.pictureBox1.TabStop = false;
|
|
|
//
|
|
|
+ // CbxIzd
|
|
|
+ //
|
|
|
+ this.CbxIzd.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.BsZak, "IDIzd", true));
|
|
|
+ this.CbxIzd.DataSource = this.BsIzd;
|
|
|
+ this.CbxIzd.DisplayMember = "Title";
|
|
|
+ this.CbxIzd.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.CbxIzd.FormattingEnabled = true;
|
|
|
+ this.CbxIzd.Location = new System.Drawing.Point(99, 124);
|
|
|
+ this.CbxIzd.Name = "CbxIzd";
|
|
|
+ this.CbxIzd.Size = new System.Drawing.Size(152, 28);
|
|
|
+ this.CbxIzd.TabIndex = 2;
|
|
|
+ this.CbxIzd.ValueMember = "IDIzd";
|
|
|
+ //
|
|
|
+ // BsZak
|
|
|
+ //
|
|
|
+ this.BsZak.DataMember = "Orders";
|
|
|
+ this.BsZak.DataSource = this.sewingFactoryMURDataSet1;
|
|
|
+ //
|
|
|
+ // sewingFactoryMURDataSet1
|
|
|
+ //
|
|
|
+ this.sewingFactoryMURDataSet1.DataSetName = "SewingFactoryMURDataSet";
|
|
|
+ this.sewingFactoryMURDataSet1.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
+ //
|
|
|
+ // BsIzd
|
|
|
+ //
|
|
|
+ this.BsIzd.DataMember = "Izdelia";
|
|
|
+ this.BsIzd.DataSource = this.sewingFactoryMURDataSet1;
|
|
|
+ //
|
|
|
+ // CbxFurn
|
|
|
+ //
|
|
|
+ this.CbxFurn.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.BsZak, "IDFur", true));
|
|
|
+ this.CbxFurn.DataSource = this.BsFur;
|
|
|
+ this.CbxFurn.DisplayMember = "namefur";
|
|
|
+ this.CbxFurn.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.CbxFurn.FormattingEnabled = true;
|
|
|
+ this.CbxFurn.Location = new System.Drawing.Point(99, 232);
|
|
|
+ this.CbxFurn.Name = "CbxFurn";
|
|
|
+ this.CbxFurn.Size = new System.Drawing.Size(152, 28);
|
|
|
+ this.CbxFurn.TabIndex = 3;
|
|
|
+ this.CbxFurn.ValueMember = "idfur";
|
|
|
+ //
|
|
|
+ // BsFur
|
|
|
+ //
|
|
|
+ this.BsFur.DataMember = "Furnitura";
|
|
|
+ this.BsFur.DataSource = this.sewingFactoryMURDataSet1;
|
|
|
+ //
|
|
|
+ // CbxCloth
|
|
|
+ //
|
|
|
+ this.CbxCloth.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.BsZak, "IDCloth", true));
|
|
|
+ this.CbxCloth.DataSource = this.BsCloth;
|
|
|
+ this.CbxCloth.DisplayMember = "Title";
|
|
|
+ this.CbxCloth.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.CbxCloth.FormattingEnabled = true;
|
|
|
+ this.CbxCloth.Location = new System.Drawing.Point(99, 178);
|
|
|
+ this.CbxCloth.Name = "CbxCloth";
|
|
|
+ this.CbxCloth.Size = new System.Drawing.Size(152, 28);
|
|
|
+ this.CbxCloth.TabIndex = 4;
|
|
|
+ this.CbxCloth.ValueMember = "IDCloth";
|
|
|
+ //
|
|
|
+ // BsCloth
|
|
|
+ //
|
|
|
+ this.BsCloth.DataMember = "Cloth";
|
|
|
+ this.BsCloth.DataSource = this.sewingFactoryMURDataSet1;
|
|
|
+ //
|
|
|
+ // TbxCountFur
|
|
|
+ //
|
|
|
+ this.TbxCountFur.Location = new System.Drawing.Point(99, 290);
|
|
|
+ this.TbxCountFur.Name = "TbxCountFur";
|
|
|
+ this.TbxCountFur.Size = new System.Drawing.Size(152, 26);
|
|
|
+ this.TbxCountFur.TabIndex = 5;
|
|
|
+ //
|
|
|
+ // TbxCountIzd
|
|
|
+ //
|
|
|
+ this.TbxCountIzd.Location = new System.Drawing.Point(99, 350);
|
|
|
+ this.TbxCountIzd.Name = "TbxCountIzd";
|
|
|
+ this.TbxCountIzd.Size = new System.Drawing.Size(152, 26);
|
|
|
+ this.TbxCountIzd.TabIndex = 6;
|
|
|
+ //
|
|
|
+ // label2
|
|
|
+ //
|
|
|
+ this.label2.AutoSize = true;
|
|
|
+ this.label2.Location = new System.Drawing.Point(122, 101);
|
|
|
+ this.label2.Name = "label2";
|
|
|
+ this.label2.Size = new System.Drawing.Size(67, 20);
|
|
|
+ this.label2.TabIndex = 7;
|
|
|
+ this.label2.Text = "Изделие:";
|
|
|
+ //
|
|
|
+ // label3
|
|
|
+ //
|
|
|
+ this.label3.AutoSize = true;
|
|
|
+ this.label3.Location = new System.Drawing.Point(133, 155);
|
|
|
+ this.label3.Name = "label3";
|
|
|
+ this.label3.Size = new System.Drawing.Size(47, 20);
|
|
|
+ this.label3.TabIndex = 8;
|
|
|
+ this.label3.Text = "Ткань:";
|
|
|
+ //
|
|
|
+ // label4
|
|
|
+ //
|
|
|
+ this.label4.AutoSize = true;
|
|
|
+ this.label4.Location = new System.Drawing.Point(122, 209);
|
|
|
+ this.label4.Name = "label4";
|
|
|
+ this.label4.Size = new System.Drawing.Size(79, 20);
|
|
|
+ this.label4.TabIndex = 9;
|
|
|
+ this.label4.Text = "Фурнитура:";
|
|
|
+ //
|
|
|
+ // label5
|
|
|
+ //
|
|
|
+ this.label5.AutoSize = true;
|
|
|
+ this.label5.Location = new System.Drawing.Point(95, 267);
|
|
|
+ this.label5.Name = "label5";
|
|
|
+ this.label5.Size = new System.Drawing.Size(130, 20);
|
|
|
+ this.label5.TabIndex = 10;
|
|
|
+ this.label5.Text = "Кол-во фурнитуры:";
|
|
|
+ //
|
|
|
+ // label6
|
|
|
+ //
|
|
|
+ this.label6.AutoSize = true;
|
|
|
+ this.label6.Location = new System.Drawing.Point(95, 327);
|
|
|
+ this.label6.Name = "label6";
|
|
|
+ this.label6.Size = new System.Drawing.Size(111, 20);
|
|
|
+ this.label6.TabIndex = 11;
|
|
|
+ this.label6.Text = "Кол-во изделий:";
|
|
|
+ //
|
|
|
+ // BtnCreateOrder
|
|
|
+ //
|
|
|
+ this.BtnCreateOrder.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
|
|
|
+ this.BtnCreateOrder.Location = new System.Drawing.Point(23, 441);
|
|
|
+ this.BtnCreateOrder.Name = "BtnCreateOrder";
|
|
|
+ this.BtnCreateOrder.Size = new System.Drawing.Size(135, 31);
|
|
|
+ this.BtnCreateOrder.TabIndex = 19;
|
|
|
+ this.BtnCreateOrder.Text = "Создать заказ";
|
|
|
+ this.BtnCreateOrder.UseVisualStyleBackColor = false;
|
|
|
+ this.BtnCreateOrder.Click += new System.EventHandler(this.BtnCreateOrder_Click);
|
|
|
+ //
|
|
|
+ // BtnCancel
|
|
|
+ //
|
|
|
+ this.BtnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(255)))), ((int)(((byte)(156)))), ((int)(((byte)(26)))));
|
|
|
+ this.BtnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
|
+ this.BtnCancel.Location = new System.Drawing.Point(223, 441);
|
|
|
+ this.BtnCancel.Name = "BtnCancel";
|
|
|
+ this.BtnCancel.Size = new System.Drawing.Size(135, 31);
|
|
|
+ this.BtnCancel.TabIndex = 20;
|
|
|
+ this.BtnCancel.Text = "Отмена";
|
|
|
+ this.BtnCancel.UseVisualStyleBackColor = false;
|
|
|
+ //
|
|
|
+ // ordersTableAdapter
|
|
|
+ //
|
|
|
+ this.ordersTableAdapter.ClearBeforeFill = true;
|
|
|
+ //
|
|
|
+ // izdeliaTableAdapter
|
|
|
+ //
|
|
|
+ this.izdeliaTableAdapter.ClearBeforeFill = true;
|
|
|
+ //
|
|
|
+ // clothTableAdapter
|
|
|
+ //
|
|
|
+ this.clothTableAdapter.ClearBeforeFill = true;
|
|
|
+ //
|
|
|
+ // furnituraTableAdapter
|
|
|
+ //
|
|
|
+ this.furnituraTableAdapter.ClearBeforeFill = true;
|
|
|
+ //
|
|
|
+ // LblIDMen
|
|
|
+ //
|
|
|
+ this.LblIDMen.AutoSize = true;
|
|
|
+ this.LblIDMen.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsZak, "IDMen", true));
|
|
|
+ this.LblIDMen.Location = new System.Drawing.Point(23, 107);
|
|
|
+ this.LblIDMen.Name = "LblIDMen";
|
|
|
+ this.LblIDMen.Size = new System.Drawing.Size(45, 20);
|
|
|
+ this.LblIDMen.TabIndex = 21;
|
|
|
+ this.LblIDMen.Text = "label7";
|
|
|
+ //
|
|
|
+ // LblIDZak
|
|
|
+ //
|
|
|
+ this.LblIDZak.AutoSize = true;
|
|
|
+ this.LblIDZak.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsZak, "IDZak", true));
|
|
|
+ this.LblIDZak.Location = new System.Drawing.Point(300, 113);
|
|
|
+ this.LblIDZak.Name = "LblIDZak";
|
|
|
+ this.LblIDZak.Size = new System.Drawing.Size(45, 20);
|
|
|
+ this.LblIDZak.TabIndex = 22;
|
|
|
+ this.LblIDZak.Text = "label7";
|
|
|
+ //
|
|
|
+ // LblCountFur
|
|
|
+ //
|
|
|
+ this.LblCountFur.AutoSize = true;
|
|
|
+ this.LblCountFur.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsZak, "CountFur", true));
|
|
|
+ this.LblCountFur.Location = new System.Drawing.Point(12, 181);
|
|
|
+ this.LblCountFur.Name = "LblCountFur";
|
|
|
+ this.LblCountFur.Size = new System.Drawing.Size(45, 20);
|
|
|
+ this.LblCountFur.TabIndex = 23;
|
|
|
+ this.LblCountFur.Text = "label7";
|
|
|
+ //
|
|
|
+ // LblCountIzd
|
|
|
+ //
|
|
|
+ this.LblCountIzd.AutoSize = true;
|
|
|
+ this.LblCountIzd.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsZak, "CountIzd", true));
|
|
|
+ this.LblCountIzd.Location = new System.Drawing.Point(285, 186);
|
|
|
+ this.LblCountIzd.Name = "LblCountIzd";
|
|
|
+ this.LblCountIzd.Size = new System.Drawing.Size(45, 20);
|
|
|
+ this.LblCountIzd.TabIndex = 24;
|
|
|
+ this.LblCountIzd.Text = "label7";
|
|
|
+ //
|
|
|
// FormAddOrder
|
|
|
//
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 20F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.BackColor = System.Drawing.Color.White;
|
|
|
- this.ClientSize = new System.Drawing.Size(627, 387);
|
|
|
+ this.ClientSize = new System.Drawing.Size(370, 495);
|
|
|
+ this.Controls.Add(this.LblCountIzd);
|
|
|
+ this.Controls.Add(this.LblCountFur);
|
|
|
+ this.Controls.Add(this.LblIDZak);
|
|
|
+ this.Controls.Add(this.LblIDMen);
|
|
|
+ this.Controls.Add(this.BtnCancel);
|
|
|
+ this.Controls.Add(this.BtnCreateOrder);
|
|
|
+ this.Controls.Add(this.label6);
|
|
|
+ this.Controls.Add(this.label5);
|
|
|
+ this.Controls.Add(this.label4);
|
|
|
+ this.Controls.Add(this.label3);
|
|
|
+ this.Controls.Add(this.label2);
|
|
|
+ this.Controls.Add(this.TbxCountIzd);
|
|
|
+ this.Controls.Add(this.TbxCountFur);
|
|
|
+ this.Controls.Add(this.CbxCloth);
|
|
|
+ this.Controls.Add(this.CbxFurn);
|
|
|
+ this.Controls.Add(this.CbxIzd);
|
|
|
this.Controls.Add(this.panel1);
|
|
|
this.Font = new System.Drawing.Font("Arial Narrow", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
this.Margin = new System.Windows.Forms.Padding(4, 5, 4, 5);
|
|
|
+ this.MinimizeBox = false;
|
|
|
+ this.MinimumSize = new System.Drawing.Size(386, 534);
|
|
|
this.Name = "FormAddOrder";
|
|
|
+ this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
|
|
|
this.Text = "СУБД \"Швейная фабрика\"";
|
|
|
+ this.Load += new System.EventHandler(this.FormAddOrder_Load);
|
|
|
this.panel1.ResumeLayout(false);
|
|
|
this.panel1.PerformLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.BsZak)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.sewingFactoryMURDataSet1)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.BsIzd)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.BsFur)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.BsCloth)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
|
+ this.PerformLayout();
|
|
|
|
|
|
}
|
|
|
|
|
|
@@ -95,5 +353,30 @@
|
|
|
private System.Windows.Forms.Panel panel1;
|
|
|
private System.Windows.Forms.Label label1;
|
|
|
private System.Windows.Forms.PictureBox pictureBox1;
|
|
|
+ private System.Windows.Forms.ComboBox CbxIzd;
|
|
|
+ private System.Windows.Forms.ComboBox CbxFurn;
|
|
|
+ private System.Windows.Forms.ComboBox CbxCloth;
|
|
|
+ private System.Windows.Forms.TextBox TbxCountFur;
|
|
|
+ private System.Windows.Forms.TextBox TbxCountIzd;
|
|
|
+ private System.Windows.Forms.Label label2;
|
|
|
+ private System.Windows.Forms.Label label3;
|
|
|
+ private System.Windows.Forms.Label label4;
|
|
|
+ private System.Windows.Forms.Label label5;
|
|
|
+ private System.Windows.Forms.Label label6;
|
|
|
+ private System.Windows.Forms.Button BtnCreateOrder;
|
|
|
+ private System.Windows.Forms.Button BtnCancel;
|
|
|
+ private SewingFactoryMURDataSet sewingFactoryMURDataSet1;
|
|
|
+ private System.Windows.Forms.BindingSource BsZak;
|
|
|
+ private System.Windows.Forms.BindingSource BsIzd;
|
|
|
+ private System.Windows.Forms.BindingSource BsCloth;
|
|
|
+ private System.Windows.Forms.BindingSource BsFur;
|
|
|
+ private SewingFactoryMURDataSetTableAdapters.OrdersTableAdapter ordersTableAdapter;
|
|
|
+ private SewingFactoryMURDataSetTableAdapters.IzdeliaTableAdapter izdeliaTableAdapter;
|
|
|
+ private SewingFactoryMURDataSetTableAdapters.ClothTableAdapter clothTableAdapter;
|
|
|
+ private SewingFactoryMURDataSetTableAdapters.FurnituraTableAdapter furnituraTableAdapter;
|
|
|
+ private System.Windows.Forms.Label LblIDMen;
|
|
|
+ private System.Windows.Forms.Label LblIDZak;
|
|
|
+ private System.Windows.Forms.Label LblCountFur;
|
|
|
+ private System.Windows.Forms.Label LblCountIzd;
|
|
|
}
|
|
|
}
|