|
@@ -51,29 +51,29 @@
|
|
|
this.dbAlphapolAGDataSet = new СУБД_Альфапол.dbAlphapolAGDataSet();
|
|
|
this.partnerTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.PartnerTableAdapter();
|
|
|
this.tableAdapterManager = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.TableAdapterManager();
|
|
|
- this.namePartnerTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.surnameTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.nameTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.patronymicTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.phoneTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.ratingTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.houseTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.emailTextBox = new System.Windows.Forms.TextBox();
|
|
|
+ this.cityTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.CityTableAdapter();
|
|
|
+ this.indexPartnerTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.IndexPartnerTableAdapter();
|
|
|
+ this.regionTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.RegionTableAdapter();
|
|
|
+ this.streetTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.StreetTableAdapter();
|
|
|
+ this.typePartnerTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.TypePartnerTableAdapter();
|
|
|
+ this.tbxNamePartner = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxSurname = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxName = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxPatronymic = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxPhone = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxRating = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxHouse = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxEmail = new System.Windows.Forms.TextBox();
|
|
|
this.cbxTypePartner = new System.Windows.Forms.ComboBox();
|
|
|
this.bsTypePartner = new System.Windows.Forms.BindingSource(this.components);
|
|
|
- this.typePartnerTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.TypePartnerTableAdapter();
|
|
|
- this.comboBox1 = new System.Windows.Forms.ComboBox();
|
|
|
- this.comboBox2 = new System.Windows.Forms.ComboBox();
|
|
|
- this.comboBox3 = new System.Windows.Forms.ComboBox();
|
|
|
- this.comboBox4 = new System.Windows.Forms.ComboBox();
|
|
|
- this.bsRegion = new System.Windows.Forms.BindingSource(this.components);
|
|
|
- this.bsCity = new System.Windows.Forms.BindingSource(this.components);
|
|
|
+ this.cbxIndex = new System.Windows.Forms.ComboBox();
|
|
|
this.bsIndex = new System.Windows.Forms.BindingSource(this.components);
|
|
|
+ this.cbxCity = new System.Windows.Forms.ComboBox();
|
|
|
+ this.bsCity = new System.Windows.Forms.BindingSource(this.components);
|
|
|
+ this.cbxRegion = new System.Windows.Forms.ComboBox();
|
|
|
+ this.bsRegion = new System.Windows.Forms.BindingSource(this.components);
|
|
|
+ this.cbxStreet = new System.Windows.Forms.ComboBox();
|
|
|
this.bsStreet = new System.Windows.Forms.BindingSource(this.components);
|
|
|
- this.regionTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.RegionTableAdapter();
|
|
|
- this.cityTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.CityTableAdapter();
|
|
|
- this.indexPartnerTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.IndexPartnerTableAdapter();
|
|
|
- this.streetTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.StreetTableAdapter();
|
|
|
this.btnSave = new System.Windows.Forms.Button();
|
|
|
this.btnCancel = new System.Windows.Forms.Button();
|
|
|
namePartnerLabel = new System.Windows.Forms.Label();
|
|
@@ -95,77 +95,12 @@
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsPartner)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsTypePartner)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.bsRegion)).BeginInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.bsCity)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsIndex)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.bsCity)).BeginInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.bsRegion)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsStreet)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
- // panel1
|
|
|
- //
|
|
|
- this.panel1.BackColor = System.Drawing.Color.LightGray;
|
|
|
- this.panel1.Controls.Add(this.lblTitle);
|
|
|
- this.panel1.Controls.Add(this.pictureBox1);
|
|
|
- this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
|
- this.panel1.Location = new System.Drawing.Point(0, 0);
|
|
|
- this.panel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
|
- this.panel1.Name = "panel1";
|
|
|
- this.panel1.Size = new System.Drawing.Size(870, 133);
|
|
|
- this.panel1.TabIndex = 1;
|
|
|
- //
|
|
|
- // lblTitle
|
|
|
- //
|
|
|
- this.lblTitle.AutoSize = true;
|
|
|
- this.lblTitle.Font = new System.Drawing.Font("Courier New", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
- this.lblTitle.Location = new System.Drawing.Point(275, 39);
|
|
|
- this.lblTitle.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
- this.lblTitle.Name = "lblTitle";
|
|
|
- this.lblTitle.Size = new System.Drawing.Size(436, 41);
|
|
|
- this.lblTitle.TabIndex = 1;
|
|
|
- this.lblTitle.Text = "Добавление партнера";
|
|
|
- //
|
|
|
- // pictureBox1
|
|
|
- //
|
|
|
- this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
|
|
|
- this.pictureBox1.Image = global::СУБД_Альфапол.Properties.Resources.Альфапол;
|
|
|
- this.pictureBox1.Location = new System.Drawing.Point(0, 0);
|
|
|
- this.pictureBox1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
|
- this.pictureBox1.Name = "pictureBox1";
|
|
|
- this.pictureBox1.Size = new System.Drawing.Size(165, 133);
|
|
|
- this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
|
|
- this.pictureBox1.TabIndex = 0;
|
|
|
- this.pictureBox1.TabStop = false;
|
|
|
- //
|
|
|
- // bsPartner
|
|
|
- //
|
|
|
- this.bsPartner.DataMember = "Partner";
|
|
|
- this.bsPartner.DataSource = this.dbAlphapolAGDataSet;
|
|
|
- //
|
|
|
- // dbAlphapolAGDataSet
|
|
|
- //
|
|
|
- this.dbAlphapolAGDataSet.DataSetName = "dbAlphapolAGDataSet";
|
|
|
- this.dbAlphapolAGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
- //
|
|
|
- // partnerTableAdapter
|
|
|
- //
|
|
|
- this.partnerTableAdapter.ClearBeforeFill = true;
|
|
|
- //
|
|
|
- // tableAdapterManager
|
|
|
- //
|
|
|
- this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
|
|
|
- this.tableAdapterManager.CityTableAdapter = this.cityTableAdapter;
|
|
|
- this.tableAdapterManager.IndexPartnerTableAdapter = this.indexPartnerTableAdapter;
|
|
|
- this.tableAdapterManager.ManagerTableAdapter = null;
|
|
|
- this.tableAdapterManager.PartnerTableAdapter = this.partnerTableAdapter;
|
|
|
- this.tableAdapterManager.ProductPartnerTableAdapter = null;
|
|
|
- this.tableAdapterManager.ProductsTableAdapter = null;
|
|
|
- this.tableAdapterManager.RegionTableAdapter = this.regionTableAdapter;
|
|
|
- this.tableAdapterManager.StreetTableAdapter = this.streetTableAdapter;
|
|
|
- this.tableAdapterManager.TypeMaterialTableAdapter = null;
|
|
|
- this.tableAdapterManager.TypePartnerTableAdapter = this.typePartnerTableAdapter;
|
|
|
- this.tableAdapterManager.TypeProductTableAdapter = null;
|
|
|
- this.tableAdapterManager.UpdateOrder = СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
|
|
|
- //
|
|
|
// namePartnerLabel
|
|
|
//
|
|
|
namePartnerLabel.AutoSize = true;
|
|
@@ -175,14 +110,6 @@
|
|
|
namePartnerLabel.TabIndex = 1;
|
|
|
namePartnerLabel.Text = "Наименование:";
|
|
|
//
|
|
|
- // namePartnerTextBox
|
|
|
- //
|
|
|
- this.namePartnerTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "NamePartner", true));
|
|
|
- this.namePartnerTextBox.Location = new System.Drawing.Point(157, 180);
|
|
|
- this.namePartnerTextBox.Name = "namePartnerTextBox";
|
|
|
- this.namePartnerTextBox.Size = new System.Drawing.Size(143, 22);
|
|
|
- this.namePartnerTextBox.TabIndex = 2;
|
|
|
- //
|
|
|
// surnameLabel
|
|
|
//
|
|
|
surnameLabel.AutoSize = true;
|
|
@@ -192,14 +119,6 @@
|
|
|
surnameLabel.TabIndex = 3;
|
|
|
surnameLabel.Text = "Фамилия:";
|
|
|
//
|
|
|
- // surnameTextBox
|
|
|
- //
|
|
|
- this.surnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Surname", true));
|
|
|
- this.surnameTextBox.Location = new System.Drawing.Point(511, 180);
|
|
|
- this.surnameTextBox.Name = "surnameTextBox";
|
|
|
- this.surnameTextBox.Size = new System.Drawing.Size(200, 22);
|
|
|
- this.surnameTextBox.TabIndex = 4;
|
|
|
- //
|
|
|
// nameLabel
|
|
|
//
|
|
|
nameLabel.AutoSize = true;
|
|
@@ -209,14 +128,6 @@
|
|
|
nameLabel.TabIndex = 5;
|
|
|
nameLabel.Text = "Имя:";
|
|
|
//
|
|
|
- // nameTextBox
|
|
|
- //
|
|
|
- this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Name", true));
|
|
|
- this.nameTextBox.Location = new System.Drawing.Point(511, 208);
|
|
|
- this.nameTextBox.Name = "nameTextBox";
|
|
|
- this.nameTextBox.Size = new System.Drawing.Size(200, 22);
|
|
|
- this.nameTextBox.TabIndex = 6;
|
|
|
- //
|
|
|
// patronymicLabel
|
|
|
//
|
|
|
patronymicLabel.AutoSize = true;
|
|
@@ -226,14 +137,6 @@
|
|
|
patronymicLabel.TabIndex = 7;
|
|
|
patronymicLabel.Text = "Отчество:";
|
|
|
//
|
|
|
- // patronymicTextBox
|
|
|
- //
|
|
|
- this.patronymicTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Patronymic", true));
|
|
|
- this.patronymicTextBox.Location = new System.Drawing.Point(511, 237);
|
|
|
- this.patronymicTextBox.Name = "patronymicTextBox";
|
|
|
- this.patronymicTextBox.Size = new System.Drawing.Size(200, 22);
|
|
|
- this.patronymicTextBox.TabIndex = 8;
|
|
|
- //
|
|
|
// phoneLabel
|
|
|
//
|
|
|
phoneLabel.AutoSize = true;
|
|
@@ -243,14 +146,6 @@
|
|
|
phoneLabel.TabIndex = 9;
|
|
|
phoneLabel.Text = "Телефон:";
|
|
|
//
|
|
|
- // phoneTextBox
|
|
|
- //
|
|
|
- this.phoneTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Phone", true));
|
|
|
- this.phoneTextBox.Location = new System.Drawing.Point(511, 281);
|
|
|
- this.phoneTextBox.Name = "phoneTextBox";
|
|
|
- this.phoneTextBox.Size = new System.Drawing.Size(200, 22);
|
|
|
- this.phoneTextBox.TabIndex = 10;
|
|
|
- //
|
|
|
// ratingLabel
|
|
|
//
|
|
|
ratingLabel.AutoSize = true;
|
|
@@ -260,14 +155,6 @@
|
|
|
ratingLabel.TabIndex = 11;
|
|
|
ratingLabel.Text = "Рейтинг:";
|
|
|
//
|
|
|
- // ratingTextBox
|
|
|
- //
|
|
|
- this.ratingTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Rating", true));
|
|
|
- this.ratingTextBox.Location = new System.Drawing.Point(157, 368);
|
|
|
- this.ratingTextBox.Name = "ratingTextBox";
|
|
|
- this.ratingTextBox.Size = new System.Drawing.Size(143, 22);
|
|
|
- this.ratingTextBox.TabIndex = 12;
|
|
|
- //
|
|
|
// houseLabel
|
|
|
//
|
|
|
houseLabel.AutoSize = true;
|
|
@@ -277,14 +164,6 @@
|
|
|
houseLabel.TabIndex = 13;
|
|
|
houseLabel.Text = "Дом/квартира:";
|
|
|
//
|
|
|
- // houseTextBox
|
|
|
- //
|
|
|
- this.houseTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "House", true));
|
|
|
- this.houseTextBox.Location = new System.Drawing.Point(155, 413);
|
|
|
- this.houseTextBox.Name = "houseTextBox";
|
|
|
- this.houseTextBox.Size = new System.Drawing.Size(143, 22);
|
|
|
- this.houseTextBox.TabIndex = 14;
|
|
|
- //
|
|
|
// emailLabel
|
|
|
//
|
|
|
emailLabel.AutoSize = true;
|
|
@@ -294,14 +173,6 @@
|
|
|
emailLabel.TabIndex = 15;
|
|
|
emailLabel.Text = "Email:";
|
|
|
//
|
|
|
- // emailTextBox
|
|
|
- //
|
|
|
- this.emailTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Email", true));
|
|
|
- this.emailTextBox.Location = new System.Drawing.Point(511, 309);
|
|
|
- this.emailTextBox.Name = "emailTextBox";
|
|
|
- this.emailTextBox.Size = new System.Drawing.Size(200, 22);
|
|
|
- this.emailTextBox.TabIndex = 16;
|
|
|
- //
|
|
|
// label1
|
|
|
//
|
|
|
label1.AutoSize = true;
|
|
@@ -320,28 +191,6 @@
|
|
|
label2.TabIndex = 18;
|
|
|
label2.Text = "Тип:";
|
|
|
//
|
|
|
- // cbxTypePartner
|
|
|
- //
|
|
|
- this.cbxTypePartner.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idTypePartner", true));
|
|
|
- this.cbxTypePartner.DataSource = this.bsTypePartner;
|
|
|
- this.cbxTypePartner.DisplayMember = "Type";
|
|
|
- this.cbxTypePartner.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
- this.cbxTypePartner.FormattingEnabled = true;
|
|
|
- this.cbxTypePartner.Location = new System.Drawing.Point(157, 211);
|
|
|
- this.cbxTypePartner.Name = "cbxTypePartner";
|
|
|
- this.cbxTypePartner.Size = new System.Drawing.Size(202, 24);
|
|
|
- this.cbxTypePartner.TabIndex = 19;
|
|
|
- this.cbxTypePartner.ValueMember = "idTypePartner";
|
|
|
- //
|
|
|
- // bsTypePartner
|
|
|
- //
|
|
|
- this.bsTypePartner.DataMember = "TypePartner";
|
|
|
- this.bsTypePartner.DataSource = this.dbAlphapolAGDataSet;
|
|
|
- //
|
|
|
- // typePartnerTableAdapter
|
|
|
- //
|
|
|
- this.typePartnerTableAdapter.ClearBeforeFill = true;
|
|
|
- //
|
|
|
// label3
|
|
|
//
|
|
|
label3.AutoSize = true;
|
|
@@ -378,81 +227,70 @@
|
|
|
label6.TabIndex = 23;
|
|
|
label6.Text = "Улица:";
|
|
|
//
|
|
|
- // comboBox1
|
|
|
- //
|
|
|
- this.comboBox1.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idIndex", true));
|
|
|
- this.comboBox1.DataSource = this.bsIndex;
|
|
|
- this.comboBox1.DisplayMember = "CodePartner";
|
|
|
- this.comboBox1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
- this.comboBox1.FormattingEnabled = true;
|
|
|
- this.comboBox1.Location = new System.Drawing.Point(155, 298);
|
|
|
- this.comboBox1.Name = "comboBox1";
|
|
|
- this.comboBox1.Size = new System.Drawing.Size(202, 24);
|
|
|
- this.comboBox1.TabIndex = 24;
|
|
|
- this.comboBox1.ValueMember = "idIndex";
|
|
|
- //
|
|
|
- // comboBox2
|
|
|
- //
|
|
|
- this.comboBox2.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idCity", true));
|
|
|
- this.comboBox2.DataSource = this.bsCity;
|
|
|
- this.comboBox2.DisplayMember = "City";
|
|
|
- this.comboBox2.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
- this.comboBox2.FormattingEnabled = true;
|
|
|
- this.comboBox2.Location = new System.Drawing.Point(155, 268);
|
|
|
- this.comboBox2.Name = "comboBox2";
|
|
|
- this.comboBox2.Size = new System.Drawing.Size(202, 24);
|
|
|
- this.comboBox2.TabIndex = 25;
|
|
|
- this.comboBox2.ValueMember = "idCity";
|
|
|
- //
|
|
|
- // comboBox3
|
|
|
- //
|
|
|
- this.comboBox3.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idRegion", true));
|
|
|
- this.comboBox3.DataSource = this.bsRegion;
|
|
|
- this.comboBox3.DisplayMember = "Region";
|
|
|
- this.comboBox3.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
- this.comboBox3.FormattingEnabled = true;
|
|
|
- this.comboBox3.Location = new System.Drawing.Point(157, 240);
|
|
|
- this.comboBox3.Name = "comboBox3";
|
|
|
- this.comboBox3.Size = new System.Drawing.Size(202, 24);
|
|
|
- this.comboBox3.TabIndex = 26;
|
|
|
- this.comboBox3.ValueMember = "idRegion";
|
|
|
- //
|
|
|
- // comboBox4
|
|
|
- //
|
|
|
- this.comboBox4.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idStreet", true));
|
|
|
- this.comboBox4.DataSource = this.bsStreet;
|
|
|
- this.comboBox4.DisplayMember = "Street";
|
|
|
- this.comboBox4.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
- this.comboBox4.FormattingEnabled = true;
|
|
|
- this.comboBox4.Location = new System.Drawing.Point(155, 328);
|
|
|
- this.comboBox4.Name = "comboBox4";
|
|
|
- this.comboBox4.Size = new System.Drawing.Size(202, 24);
|
|
|
- this.comboBox4.TabIndex = 27;
|
|
|
- this.comboBox4.ValueMember = "idStreet";
|
|
|
+ // panel1
|
|
|
//
|
|
|
- // bsRegion
|
|
|
+ this.panel1.BackColor = System.Drawing.Color.LightGray;
|
|
|
+ this.panel1.Controls.Add(this.lblTitle);
|
|
|
+ this.panel1.Controls.Add(this.pictureBox1);
|
|
|
+ this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
|
|
|
+ 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(870, 133);
|
|
|
+ this.panel1.TabIndex = 1;
|
|
|
//
|
|
|
- this.bsRegion.DataMember = "Region";
|
|
|
- this.bsRegion.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ // lblTitle
|
|
|
//
|
|
|
- // bsCity
|
|
|
+ this.lblTitle.AutoSize = true;
|
|
|
+ this.lblTitle.Font = new System.Drawing.Font("Courier New", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
+ this.lblTitle.Location = new System.Drawing.Point(275, 39);
|
|
|
+ this.lblTitle.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
|
|
|
+ this.lblTitle.Name = "lblTitle";
|
|
|
+ this.lblTitle.Size = new System.Drawing.Size(436, 41);
|
|
|
+ this.lblTitle.TabIndex = 1;
|
|
|
+ this.lblTitle.Text = "Добавление партнера";
|
|
|
//
|
|
|
- this.bsCity.DataMember = "City";
|
|
|
- this.bsCity.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ // pictureBox1
|
|
|
//
|
|
|
- // bsIndex
|
|
|
+ this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
|
|
|
+ this.pictureBox1.Image = global::СУБД_Альфапол.Properties.Resources.Альфапол;
|
|
|
+ this.pictureBox1.Location = new System.Drawing.Point(0, 0);
|
|
|
+ this.pictureBox1.Margin = new System.Windows.Forms.Padding(4);
|
|
|
+ this.pictureBox1.Name = "pictureBox1";
|
|
|
+ this.pictureBox1.Size = new System.Drawing.Size(165, 133);
|
|
|
+ this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
|
|
|
+ this.pictureBox1.TabIndex = 0;
|
|
|
+ this.pictureBox1.TabStop = false;
|
|
|
//
|
|
|
- this.bsIndex.DataMember = "IndexPartner";
|
|
|
- this.bsIndex.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ // bsPartner
|
|
|
//
|
|
|
- // bsStreet
|
|
|
+ this.bsPartner.DataMember = "Partner";
|
|
|
+ this.bsPartner.DataSource = this.dbAlphapolAGDataSet;
|
|
|
//
|
|
|
- this.bsStreet.DataMember = "Street";
|
|
|
- this.bsStreet.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ // dbAlphapolAGDataSet
|
|
|
//
|
|
|
- // regionTableAdapter
|
|
|
+ this.dbAlphapolAGDataSet.DataSetName = "dbAlphapolAGDataSet";
|
|
|
+ this.dbAlphapolAGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
|
|
|
//
|
|
|
- this.regionTableAdapter.ClearBeforeFill = true;
|
|
|
+ // partnerTableAdapter
|
|
|
+ //
|
|
|
+ this.partnerTableAdapter.ClearBeforeFill = true;
|
|
|
+ //
|
|
|
+ // tableAdapterManager
|
|
|
+ //
|
|
|
+ this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
|
|
|
+ this.tableAdapterManager.CityTableAdapter = this.cityTableAdapter;
|
|
|
+ this.tableAdapterManager.IndexPartnerTableAdapter = this.indexPartnerTableAdapter;
|
|
|
+ this.tableAdapterManager.ManagerTableAdapter = null;
|
|
|
+ this.tableAdapterManager.PartnerTableAdapter = this.partnerTableAdapter;
|
|
|
+ this.tableAdapterManager.ProductPartnerTableAdapter = null;
|
|
|
+ this.tableAdapterManager.ProductsTableAdapter = null;
|
|
|
+ this.tableAdapterManager.RegionTableAdapter = this.regionTableAdapter;
|
|
|
+ this.tableAdapterManager.StreetTableAdapter = this.streetTableAdapter;
|
|
|
+ this.tableAdapterManager.TypeMaterialTableAdapter = null;
|
|
|
+ this.tableAdapterManager.TypePartnerTableAdapter = this.typePartnerTableAdapter;
|
|
|
+ this.tableAdapterManager.TypeProductTableAdapter = null;
|
|
|
+ this.tableAdapterManager.UpdateOrder = СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
|
|
|
//
|
|
|
// cityTableAdapter
|
|
|
//
|
|
@@ -462,10 +300,173 @@
|
|
|
//
|
|
|
this.indexPartnerTableAdapter.ClearBeforeFill = true;
|
|
|
//
|
|
|
+ // regionTableAdapter
|
|
|
+ //
|
|
|
+ this.regionTableAdapter.ClearBeforeFill = true;
|
|
|
+ //
|
|
|
// streetTableAdapter
|
|
|
//
|
|
|
this.streetTableAdapter.ClearBeforeFill = true;
|
|
|
//
|
|
|
+ // typePartnerTableAdapter
|
|
|
+ //
|
|
|
+ this.typePartnerTableAdapter.ClearBeforeFill = true;
|
|
|
+ //
|
|
|
+ // tbxNamePartner
|
|
|
+ //
|
|
|
+ this.tbxNamePartner.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "NamePartner", true));
|
|
|
+ this.tbxNamePartner.Location = new System.Drawing.Point(157, 180);
|
|
|
+ this.tbxNamePartner.Name = "tbxNamePartner";
|
|
|
+ this.tbxNamePartner.Size = new System.Drawing.Size(143, 22);
|
|
|
+ this.tbxNamePartner.TabIndex = 2;
|
|
|
+ //
|
|
|
+ // tbxSurname
|
|
|
+ //
|
|
|
+ this.tbxSurname.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Surname", true));
|
|
|
+ this.tbxSurname.Location = new System.Drawing.Point(511, 180);
|
|
|
+ this.tbxSurname.Name = "tbxSurname";
|
|
|
+ this.tbxSurname.Size = new System.Drawing.Size(200, 22);
|
|
|
+ this.tbxSurname.TabIndex = 4;
|
|
|
+ //
|
|
|
+ // tbxName
|
|
|
+ //
|
|
|
+ this.tbxName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Name", true));
|
|
|
+ this.tbxName.Location = new System.Drawing.Point(511, 208);
|
|
|
+ this.tbxName.Name = "tbxName";
|
|
|
+ this.tbxName.Size = new System.Drawing.Size(200, 22);
|
|
|
+ this.tbxName.TabIndex = 6;
|
|
|
+ //
|
|
|
+ // tbxPatronymic
|
|
|
+ //
|
|
|
+ this.tbxPatronymic.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Patronymic", true));
|
|
|
+ this.tbxPatronymic.Location = new System.Drawing.Point(511, 237);
|
|
|
+ this.tbxPatronymic.Name = "tbxPatronymic";
|
|
|
+ this.tbxPatronymic.Size = new System.Drawing.Size(200, 22);
|
|
|
+ this.tbxPatronymic.TabIndex = 8;
|
|
|
+ //
|
|
|
+ // tbxPhone
|
|
|
+ //
|
|
|
+ this.tbxPhone.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Phone", true));
|
|
|
+ this.tbxPhone.Location = new System.Drawing.Point(511, 281);
|
|
|
+ this.tbxPhone.Name = "tbxPhone";
|
|
|
+ this.tbxPhone.Size = new System.Drawing.Size(200, 22);
|
|
|
+ this.tbxPhone.TabIndex = 10;
|
|
|
+ //
|
|
|
+ // tbxRating
|
|
|
+ //
|
|
|
+ this.tbxRating.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Rating", true));
|
|
|
+ this.tbxRating.Location = new System.Drawing.Point(157, 368);
|
|
|
+ this.tbxRating.Name = "tbxRating";
|
|
|
+ this.tbxRating.Size = new System.Drawing.Size(143, 22);
|
|
|
+ this.tbxRating.TabIndex = 12;
|
|
|
+ this.tbxRating.Validating += new System.ComponentModel.CancelEventHandler(this.tbxRating_Validating);
|
|
|
+ //
|
|
|
+ // tbxHouse
|
|
|
+ //
|
|
|
+ this.tbxHouse.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "House", true));
|
|
|
+ this.tbxHouse.Location = new System.Drawing.Point(155, 413);
|
|
|
+ this.tbxHouse.Name = "tbxHouse";
|
|
|
+ this.tbxHouse.Size = new System.Drawing.Size(143, 22);
|
|
|
+ this.tbxHouse.TabIndex = 14;
|
|
|
+ //
|
|
|
+ // tbxEmail
|
|
|
+ //
|
|
|
+ this.tbxEmail.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Email", true));
|
|
|
+ this.tbxEmail.Location = new System.Drawing.Point(511, 309);
|
|
|
+ this.tbxEmail.Name = "tbxEmail";
|
|
|
+ this.tbxEmail.Size = new System.Drawing.Size(200, 22);
|
|
|
+ this.tbxEmail.TabIndex = 16;
|
|
|
+ //
|
|
|
+ // cbxTypePartner
|
|
|
+ //
|
|
|
+ this.cbxTypePartner.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idTypePartner", true));
|
|
|
+ this.cbxTypePartner.DataSource = this.bsTypePartner;
|
|
|
+ this.cbxTypePartner.DisplayMember = "Type";
|
|
|
+ this.cbxTypePartner.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.cbxTypePartner.FormattingEnabled = true;
|
|
|
+ this.cbxTypePartner.Location = new System.Drawing.Point(157, 211);
|
|
|
+ this.cbxTypePartner.Name = "cbxTypePartner";
|
|
|
+ this.cbxTypePartner.Size = new System.Drawing.Size(202, 24);
|
|
|
+ this.cbxTypePartner.TabIndex = 19;
|
|
|
+ this.cbxTypePartner.ValueMember = "idTypePartner";
|
|
|
+ //
|
|
|
+ // bsTypePartner
|
|
|
+ //
|
|
|
+ this.bsTypePartner.DataMember = "TypePartner";
|
|
|
+ this.bsTypePartner.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ //
|
|
|
+ // cbxIndex
|
|
|
+ //
|
|
|
+ this.cbxIndex.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idIndex", true));
|
|
|
+ this.cbxIndex.DataSource = this.bsIndex;
|
|
|
+ this.cbxIndex.DisplayMember = "CodePartner";
|
|
|
+ this.cbxIndex.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.cbxIndex.FormattingEnabled = true;
|
|
|
+ this.cbxIndex.Location = new System.Drawing.Point(155, 298);
|
|
|
+ this.cbxIndex.Name = "cbxIndex";
|
|
|
+ this.cbxIndex.Size = new System.Drawing.Size(202, 24);
|
|
|
+ this.cbxIndex.TabIndex = 24;
|
|
|
+ this.cbxIndex.ValueMember = "idIndex";
|
|
|
+ //
|
|
|
+ // bsIndex
|
|
|
+ //
|
|
|
+ this.bsIndex.DataMember = "IndexPartner";
|
|
|
+ this.bsIndex.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ //
|
|
|
+ // cbxCity
|
|
|
+ //
|
|
|
+ this.cbxCity.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idCity", true));
|
|
|
+ this.cbxCity.DataSource = this.bsCity;
|
|
|
+ this.cbxCity.DisplayMember = "City";
|
|
|
+ this.cbxCity.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.cbxCity.FormattingEnabled = true;
|
|
|
+ this.cbxCity.Location = new System.Drawing.Point(155, 268);
|
|
|
+ this.cbxCity.Name = "cbxCity";
|
|
|
+ this.cbxCity.Size = new System.Drawing.Size(202, 24);
|
|
|
+ this.cbxCity.TabIndex = 25;
|
|
|
+ this.cbxCity.ValueMember = "idCity";
|
|
|
+ //
|
|
|
+ // bsCity
|
|
|
+ //
|
|
|
+ this.bsCity.DataMember = "City";
|
|
|
+ this.bsCity.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ //
|
|
|
+ // cbxRegion
|
|
|
+ //
|
|
|
+ this.cbxRegion.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idRegion", true));
|
|
|
+ this.cbxRegion.DataSource = this.bsRegion;
|
|
|
+ this.cbxRegion.DisplayMember = "Region";
|
|
|
+ this.cbxRegion.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.cbxRegion.FormattingEnabled = true;
|
|
|
+ this.cbxRegion.Location = new System.Drawing.Point(157, 240);
|
|
|
+ this.cbxRegion.Name = "cbxRegion";
|
|
|
+ this.cbxRegion.Size = new System.Drawing.Size(202, 24);
|
|
|
+ this.cbxRegion.TabIndex = 26;
|
|
|
+ this.cbxRegion.ValueMember = "idRegion";
|
|
|
+ //
|
|
|
+ // bsRegion
|
|
|
+ //
|
|
|
+ this.bsRegion.DataMember = "Region";
|
|
|
+ this.bsRegion.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ //
|
|
|
+ // cbxStreet
|
|
|
+ //
|
|
|
+ this.cbxStreet.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "idStreet", true));
|
|
|
+ this.cbxStreet.DataSource = this.bsStreet;
|
|
|
+ this.cbxStreet.DisplayMember = "Street";
|
|
|
+ this.cbxStreet.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
|
|
|
+ this.cbxStreet.FormattingEnabled = true;
|
|
|
+ this.cbxStreet.Location = new System.Drawing.Point(155, 328);
|
|
|
+ this.cbxStreet.Name = "cbxStreet";
|
|
|
+ this.cbxStreet.Size = new System.Drawing.Size(202, 24);
|
|
|
+ this.cbxStreet.TabIndex = 27;
|
|
|
+ this.cbxStreet.ValueMember = "idStreet";
|
|
|
+ //
|
|
|
+ // bsStreet
|
|
|
+ //
|
|
|
+ this.bsStreet.DataMember = "Street";
|
|
|
+ this.bsStreet.DataSource = this.dbAlphapolAGDataSet;
|
|
|
+ //
|
|
|
// btnSave
|
|
|
//
|
|
|
this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
|
|
@@ -498,10 +499,10 @@
|
|
|
this.ClientSize = new System.Drawing.Size(870, 554);
|
|
|
this.Controls.Add(this.btnCancel);
|
|
|
this.Controls.Add(this.btnSave);
|
|
|
- this.Controls.Add(this.comboBox4);
|
|
|
- this.Controls.Add(this.comboBox3);
|
|
|
- this.Controls.Add(this.comboBox2);
|
|
|
- this.Controls.Add(this.comboBox1);
|
|
|
+ this.Controls.Add(this.cbxStreet);
|
|
|
+ this.Controls.Add(this.cbxRegion);
|
|
|
+ this.Controls.Add(this.cbxCity);
|
|
|
+ this.Controls.Add(this.cbxIndex);
|
|
|
this.Controls.Add(label6);
|
|
|
this.Controls.Add(label5);
|
|
|
this.Controls.Add(label4);
|
|
@@ -510,27 +511,27 @@
|
|
|
this.Controls.Add(label2);
|
|
|
this.Controls.Add(label1);
|
|
|
this.Controls.Add(emailLabel);
|
|
|
- this.Controls.Add(this.emailTextBox);
|
|
|
+ this.Controls.Add(this.tbxEmail);
|
|
|
this.Controls.Add(houseLabel);
|
|
|
- this.Controls.Add(this.houseTextBox);
|
|
|
+ this.Controls.Add(this.tbxHouse);
|
|
|
this.Controls.Add(ratingLabel);
|
|
|
- this.Controls.Add(this.ratingTextBox);
|
|
|
+ this.Controls.Add(this.tbxRating);
|
|
|
this.Controls.Add(phoneLabel);
|
|
|
- this.Controls.Add(this.phoneTextBox);
|
|
|
+ this.Controls.Add(this.tbxPhone);
|
|
|
this.Controls.Add(patronymicLabel);
|
|
|
- this.Controls.Add(this.patronymicTextBox);
|
|
|
+ this.Controls.Add(this.tbxPatronymic);
|
|
|
this.Controls.Add(nameLabel);
|
|
|
- this.Controls.Add(this.nameTextBox);
|
|
|
+ this.Controls.Add(this.tbxName);
|
|
|
this.Controls.Add(surnameLabel);
|
|
|
- this.Controls.Add(this.surnameTextBox);
|
|
|
+ this.Controls.Add(this.tbxSurname);
|
|
|
this.Controls.Add(namePartnerLabel);
|
|
|
- this.Controls.Add(this.namePartnerTextBox);
|
|
|
+ this.Controls.Add(this.tbxNamePartner);
|
|
|
this.Controls.Add(this.panel1);
|
|
|
this.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsTypePartner, "Type", true));
|
|
|
this.Font = new System.Drawing.Font("Courier New", 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D;
|
|
|
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
|
|
|
- this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
|
|
|
+ this.Margin = new System.Windows.Forms.Padding(4);
|
|
|
this.MaximizeBox = false;
|
|
|
this.MinimizeBox = false;
|
|
|
this.Name = "FormAddEdit";
|
|
@@ -543,9 +544,9 @@
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsPartner)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsTypePartner)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.bsRegion)).EndInit();
|
|
|
- ((System.ComponentModel.ISupportInitialize)(this.bsCity)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsIndex)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.bsCity)).EndInit();
|
|
|
+ ((System.ComponentModel.ISupportInitialize)(this.bsRegion)).EndInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsStreet)).EndInit();
|
|
|
this.ResumeLayout(false);
|
|
|
this.PerformLayout();
|
|
@@ -559,22 +560,22 @@
|
|
|
private dbAlphapolAGDataSet dbAlphapolAGDataSet;
|
|
|
private dbAlphapolAGDataSetTableAdapters.PartnerTableAdapter partnerTableAdapter;
|
|
|
private dbAlphapolAGDataSetTableAdapters.TableAdapterManager tableAdapterManager;
|
|
|
- private System.Windows.Forms.TextBox namePartnerTextBox;
|
|
|
- private System.Windows.Forms.TextBox surnameTextBox;
|
|
|
- private System.Windows.Forms.TextBox nameTextBox;
|
|
|
- private System.Windows.Forms.TextBox patronymicTextBox;
|
|
|
- private System.Windows.Forms.TextBox phoneTextBox;
|
|
|
- private System.Windows.Forms.TextBox ratingTextBox;
|
|
|
- private System.Windows.Forms.TextBox houseTextBox;
|
|
|
- private System.Windows.Forms.TextBox emailTextBox;
|
|
|
+ private System.Windows.Forms.TextBox tbxNamePartner;
|
|
|
+ private System.Windows.Forms.TextBox tbxSurname;
|
|
|
+ private System.Windows.Forms.TextBox tbxName;
|
|
|
+ private System.Windows.Forms.TextBox tbxPatronymic;
|
|
|
+ private System.Windows.Forms.TextBox tbxPhone;
|
|
|
+ private System.Windows.Forms.TextBox tbxRating;
|
|
|
+ private System.Windows.Forms.TextBox tbxHouse;
|
|
|
+ private System.Windows.Forms.TextBox tbxEmail;
|
|
|
private System.Windows.Forms.ComboBox cbxTypePartner;
|
|
|
private dbAlphapolAGDataSetTableAdapters.TypePartnerTableAdapter typePartnerTableAdapter;
|
|
|
private System.Windows.Forms.BindingSource bsTypePartner;
|
|
|
private dbAlphapolAGDataSetTableAdapters.RegionTableAdapter regionTableAdapter;
|
|
|
- private System.Windows.Forms.ComboBox comboBox1;
|
|
|
- private System.Windows.Forms.ComboBox comboBox2;
|
|
|
- private System.Windows.Forms.ComboBox comboBox3;
|
|
|
- private System.Windows.Forms.ComboBox comboBox4;
|
|
|
+ private System.Windows.Forms.ComboBox cbxIndex;
|
|
|
+ private System.Windows.Forms.ComboBox cbxCity;
|
|
|
+ private System.Windows.Forms.ComboBox cbxRegion;
|
|
|
+ private System.Windows.Forms.ComboBox cbxStreet;
|
|
|
private System.Windows.Forms.BindingSource bsRegion;
|
|
|
private System.Windows.Forms.BindingSource bsCity;
|
|
|
private System.Windows.Forms.BindingSource bsIndex;
|