|
@@ -29,7 +29,6 @@
|
|
|
private void InitializeComponent()
|
|
|
{
|
|
|
this.components = new System.ComponentModel.Container();
|
|
|
- System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddEdit));
|
|
|
System.Windows.Forms.Label namepartnerLabel;
|
|
|
System.Windows.Forms.Label surnameLabel;
|
|
|
System.Windows.Forms.Label nameLabel;
|
|
@@ -41,39 +40,42 @@
|
|
|
System.Windows.Forms.Label label3;
|
|
|
System.Windows.Forms.Label label4;
|
|
|
System.Windows.Forms.Label label5;
|
|
|
+ System.Windows.Forms.Label houseLabel;
|
|
|
+ System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddEdit));
|
|
|
this.panel1 = new System.Windows.Forms.Panel();
|
|
|
+ this.lblIdPartner = new System.Windows.Forms.Label();
|
|
|
this.pictureBox1 = new System.Windows.Forms.PictureBox();
|
|
|
this.lblTitleForm = new System.Windows.Forms.Label();
|
|
|
this.alfafloorGDVDataSet1 = new СУБД_Альфапол.AlfafloorGDVDataSet();
|
|
|
this.bsPartner = new System.Windows.Forms.BindingSource(this.components);
|
|
|
this.partnerTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.PartnerTableAdapter();
|
|
|
this.tableAdapterManager = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.TableAdapterManager();
|
|
|
- this.namepartnerTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.surnameTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.nameTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.patronomycTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.emailTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.phoneTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.ratingTextBox = new System.Windows.Forms.TextBox();
|
|
|
- this.lblIdPartner = new System.Windows.Forms.Label();
|
|
|
+ this.cityTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.CityTableAdapter();
|
|
|
+ this.postCodeTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.PostCodeTableAdapter();
|
|
|
+ this.regionTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.RegionTableAdapter();
|
|
|
+ this.streetTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.StreetTableAdapter();
|
|
|
+ this.typePartnerTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.TypePartnerTableAdapter();
|
|
|
+ this.tbxNamepartner = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxSurname = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxName = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxPatronomyc = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxEmail = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxPhone = new System.Windows.Forms.TextBox();
|
|
|
+ this.tbxRating = new System.Windows.Forms.TextBox();
|
|
|
this.btnSave = new System.Windows.Forms.Button();
|
|
|
this.bntCancel = new System.Windows.Forms.Button();
|
|
|
this.cmbTypePartner = new System.Windows.Forms.ComboBox();
|
|
|
- this.label1 = new System.Windows.Forms.Label();
|
|
|
this.bsTypePartner = new System.Windows.Forms.BindingSource(this.components);
|
|
|
- this.typePartnerTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.TypePartnerTableAdapter();
|
|
|
+ this.label1 = new System.Windows.Forms.Label();
|
|
|
this.bsRegion = new System.Windows.Forms.BindingSource(this.components);
|
|
|
this.bsCity = new System.Windows.Forms.BindingSource(this.components);
|
|
|
this.bsStreet = new System.Windows.Forms.BindingSource(this.components);
|
|
|
this.bsPostCode = new System.Windows.Forms.BindingSource(this.components);
|
|
|
- this.regionTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.RegionTableAdapter();
|
|
|
- this.cityTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.CityTableAdapter();
|
|
|
- this.streetTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.StreetTableAdapter();
|
|
|
- this.postCodeTableAdapter = new СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.PostCodeTableAdapter();
|
|
|
this.cmbRegion = new System.Windows.Forms.ComboBox();
|
|
|
this.cmbCity = new System.Windows.Forms.ComboBox();
|
|
|
this.cmbStreet = new System.Windows.Forms.ComboBox();
|
|
|
this.cmbPostCode = new System.Windows.Forms.ComboBox();
|
|
|
+ this.tbxHouse = new System.Windows.Forms.TextBox();
|
|
|
namepartnerLabel = new System.Windows.Forms.Label();
|
|
|
surnameLabel = new System.Windows.Forms.Label();
|
|
|
nameLabel = new System.Windows.Forms.Label();
|
|
@@ -85,6 +87,7 @@
|
|
|
label3 = new System.Windows.Forms.Label();
|
|
|
label4 = new System.Windows.Forms.Label();
|
|
|
label5 = new System.Windows.Forms.Label();
|
|
|
+ houseLabel = new System.Windows.Forms.Label();
|
|
|
this.panel1.SuspendLayout();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
|
|
|
((System.ComponentModel.ISupportInitialize)(this.alfafloorGDVDataSet1)).BeginInit();
|
|
@@ -96,6 +99,114 @@
|
|
|
((System.ComponentModel.ISupportInitialize)(this.bsPostCode)).BeginInit();
|
|
|
this.SuspendLayout();
|
|
|
//
|
|
|
+ // namepartnerLabel
|
|
|
+ //
|
|
|
+ namepartnerLabel.AutoSize = true;
|
|
|
+ namepartnerLabel.Location = new System.Drawing.Point(20, 175);
|
|
|
+ namepartnerLabel.Name = "namepartnerLabel";
|
|
|
+ namepartnerLabel.Size = new System.Drawing.Size(98, 15);
|
|
|
+ namepartnerLabel.TabIndex = 7;
|
|
|
+ namepartnerLabel.Text = "Наименование:";
|
|
|
+ //
|
|
|
+ // surnameLabel
|
|
|
+ //
|
|
|
+ surnameLabel.AutoSize = true;
|
|
|
+ surnameLabel.Location = new System.Drawing.Point(373, 172);
|
|
|
+ surnameLabel.Name = "surnameLabel";
|
|
|
+ surnameLabel.Size = new System.Drawing.Size(63, 15);
|
|
|
+ surnameLabel.TabIndex = 8;
|
|
|
+ surnameLabel.Text = "Фамилия:";
|
|
|
+ //
|
|
|
+ // nameLabel
|
|
|
+ //
|
|
|
+ nameLabel.AutoSize = true;
|
|
|
+ nameLabel.Location = new System.Drawing.Point(401, 199);
|
|
|
+ nameLabel.Name = "nameLabel";
|
|
|
+ nameLabel.Size = new System.Drawing.Size(35, 15);
|
|
|
+ nameLabel.TabIndex = 9;
|
|
|
+ nameLabel.Text = "Имя:";
|
|
|
+ //
|
|
|
+ // patronomycLabel
|
|
|
+ //
|
|
|
+ patronomycLabel.AutoSize = true;
|
|
|
+ patronomycLabel.Location = new System.Drawing.Point(366, 226);
|
|
|
+ patronomycLabel.Name = "patronomycLabel";
|
|
|
+ patronomycLabel.Size = new System.Drawing.Size(70, 15);
|
|
|
+ patronomycLabel.TabIndex = 10;
|
|
|
+ patronomycLabel.Text = "Отчество:";
|
|
|
+ //
|
|
|
+ // emailLabel
|
|
|
+ //
|
|
|
+ emailLabel.AutoSize = true;
|
|
|
+ emailLabel.Location = new System.Drawing.Point(380, 312);
|
|
|
+ emailLabel.Name = "emailLabel";
|
|
|
+ emailLabel.Size = new System.Drawing.Size(56, 15);
|
|
|
+ emailLabel.TabIndex = 11;
|
|
|
+ emailLabel.Text = "E-mail:";
|
|
|
+ //
|
|
|
+ // phoneLabel
|
|
|
+ //
|
|
|
+ phoneLabel.AutoSize = true;
|
|
|
+ phoneLabel.Location = new System.Drawing.Point(373, 288);
|
|
|
+ phoneLabel.Name = "phoneLabel";
|
|
|
+ phoneLabel.Size = new System.Drawing.Size(63, 15);
|
|
|
+ phoneLabel.TabIndex = 12;
|
|
|
+ phoneLabel.Text = "Телефон:";
|
|
|
+ //
|
|
|
+ // ratingLabel
|
|
|
+ //
|
|
|
+ ratingLabel.AutoSize = true;
|
|
|
+ ratingLabel.Location = new System.Drawing.Point(55, 229);
|
|
|
+ ratingLabel.Name = "ratingLabel";
|
|
|
+ ratingLabel.Size = new System.Drawing.Size(63, 15);
|
|
|
+ ratingLabel.TabIndex = 13;
|
|
|
+ ratingLabel.Text = "Рейтинг:";
|
|
|
+ //
|
|
|
+ // label2
|
|
|
+ //
|
|
|
+ label2.AutoSize = true;
|
|
|
+ label2.Location = new System.Drawing.Point(62, 259);
|
|
|
+ label2.Name = "label2";
|
|
|
+ label2.Size = new System.Drawing.Size(56, 15);
|
|
|
+ label2.TabIndex = 25;
|
|
|
+ label2.Text = "Регион:";
|
|
|
+ //
|
|
|
+ // label3
|
|
|
+ //
|
|
|
+ label3.AutoSize = true;
|
|
|
+ label3.Location = new System.Drawing.Point(69, 288);
|
|
|
+ label3.Name = "label3";
|
|
|
+ label3.Size = new System.Drawing.Size(49, 15);
|
|
|
+ label3.TabIndex = 26;
|
|
|
+ label3.Text = "Город:";
|
|
|
+ //
|
|
|
+ // label4
|
|
|
+ //
|
|
|
+ label4.AutoSize = true;
|
|
|
+ label4.Location = new System.Drawing.Point(69, 317);
|
|
|
+ label4.Name = "label4";
|
|
|
+ label4.Size = new System.Drawing.Size(49, 15);
|
|
|
+ label4.TabIndex = 27;
|
|
|
+ label4.Text = "Улица:";
|
|
|
+ //
|
|
|
+ // label5
|
|
|
+ //
|
|
|
+ label5.AutoSize = true;
|
|
|
+ label5.Location = new System.Drawing.Point(-1, 346);
|
|
|
+ label5.Name = "label5";
|
|
|
+ label5.Size = new System.Drawing.Size(119, 15);
|
|
|
+ label5.TabIndex = 28;
|
|
|
+ label5.Text = "Почтовый индекс:";
|
|
|
+ //
|
|
|
+ // houseLabel
|
|
|
+ //
|
|
|
+ houseLabel.AutoSize = true;
|
|
|
+ houseLabel.Location = new System.Drawing.Point(69, 375);
|
|
|
+ houseLabel.Name = "houseLabel";
|
|
|
+ houseLabel.Size = new System.Drawing.Size(35, 15);
|
|
|
+ houseLabel.TabIndex = 28;
|
|
|
+ houseLabel.Text = "Дом:";
|
|
|
+ //
|
|
|
// panel1
|
|
|
//
|
|
|
this.panel1.BackColor = System.Drawing.Color.LightGray;
|
|
@@ -106,9 +217,18 @@
|
|
|
this.panel1.Location = new System.Drawing.Point(0, 0);
|
|
|
this.panel1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
|
|
|
this.panel1.Name = "panel1";
|
|
|
- this.panel1.Size = new System.Drawing.Size(646, 132);
|
|
|
+ this.panel1.Size = new System.Drawing.Size(654, 132);
|
|
|
this.panel1.TabIndex = 2;
|
|
|
//
|
|
|
+ // lblIdPartner
|
|
|
+ //
|
|
|
+ this.lblIdPartner.AutoSize = true;
|
|
|
+ this.lblIdPartner.Location = new System.Drawing.Point(514, 102);
|
|
|
+ this.lblIdPartner.Name = "lblIdPartner";
|
|
|
+ this.lblIdPartner.Size = new System.Drawing.Size(91, 15);
|
|
|
+ this.lblIdPartner.TabIndex = 2;
|
|
|
+ this.lblIdPartner.Text = "lblIdPartner";
|
|
|
+ //
|
|
|
// pictureBox1
|
|
|
//
|
|
|
this.pictureBox1.Dock = System.Windows.Forms.DockStyle.Left;
|
|
@@ -162,142 +282,91 @@
|
|
|
this.tableAdapterManager.TypePartnerTableAdapter = this.typePartnerTableAdapter;
|
|
|
this.tableAdapterManager.UpdateOrder = СУБД_Альфапол.AlfafloorGDVDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
|
|
|
//
|
|
|
- // namepartnerLabel
|
|
|
- //
|
|
|
- namepartnerLabel.AutoSize = true;
|
|
|
- namepartnerLabel.Location = new System.Drawing.Point(20, 175);
|
|
|
- namepartnerLabel.Name = "namepartnerLabel";
|
|
|
- namepartnerLabel.Size = new System.Drawing.Size(98, 15);
|
|
|
- namepartnerLabel.TabIndex = 7;
|
|
|
- namepartnerLabel.Text = "Наименование:";
|
|
|
- //
|
|
|
- // namepartnerTextBox
|
|
|
- //
|
|
|
- this.namepartnerTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Namepartner", true));
|
|
|
- this.namepartnerTextBox.Location = new System.Drawing.Point(124, 175);
|
|
|
- this.namepartnerTextBox.Name = "namepartnerTextBox";
|
|
|
- this.namepartnerTextBox.Size = new System.Drawing.Size(163, 21);
|
|
|
- this.namepartnerTextBox.TabIndex = 8;
|
|
|
- //
|
|
|
- // surnameLabel
|
|
|
- //
|
|
|
- surnameLabel.AutoSize = true;
|
|
|
- surnameLabel.Location = new System.Drawing.Point(373, 172);
|
|
|
- surnameLabel.Name = "surnameLabel";
|
|
|
- surnameLabel.Size = new System.Drawing.Size(63, 15);
|
|
|
- surnameLabel.TabIndex = 8;
|
|
|
- surnameLabel.Text = "Фамилия:";
|
|
|
+ // cityTableAdapter
|
|
|
//
|
|
|
- // surnameTextBox
|
|
|
+ this.cityTableAdapter.ClearBeforeFill = true;
|
|
|
//
|
|
|
- this.surnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Surname", true));
|
|
|
- this.surnameTextBox.Location = new System.Drawing.Point(442, 169);
|
|
|
- this.surnameTextBox.Name = "surnameTextBox";
|
|
|
- this.surnameTextBox.Size = new System.Drawing.Size(163, 21);
|
|
|
- this.surnameTextBox.TabIndex = 9;
|
|
|
+ // postCodeTableAdapter
|
|
|
//
|
|
|
- // nameLabel
|
|
|
+ this.postCodeTableAdapter.ClearBeforeFill = true;
|
|
|
//
|
|
|
- nameLabel.AutoSize = true;
|
|
|
- nameLabel.Location = new System.Drawing.Point(401, 199);
|
|
|
- nameLabel.Name = "nameLabel";
|
|
|
- nameLabel.Size = new System.Drawing.Size(35, 15);
|
|
|
- nameLabel.TabIndex = 9;
|
|
|
- nameLabel.Text = "Имя:";
|
|
|
+ // regionTableAdapter
|
|
|
//
|
|
|
- // nameTextBox
|
|
|
+ this.regionTableAdapter.ClearBeforeFill = true;
|
|
|
//
|
|
|
- this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Name", true));
|
|
|
- this.nameTextBox.Location = new System.Drawing.Point(442, 196);
|
|
|
- this.nameTextBox.Name = "nameTextBox";
|
|
|
- this.nameTextBox.Size = new System.Drawing.Size(163, 21);
|
|
|
- this.nameTextBox.TabIndex = 10;
|
|
|
+ // streetTableAdapter
|
|
|
//
|
|
|
- // patronomycLabel
|
|
|
+ this.streetTableAdapter.ClearBeforeFill = true;
|
|
|
//
|
|
|
- patronomycLabel.AutoSize = true;
|
|
|
- patronomycLabel.Location = new System.Drawing.Point(366, 226);
|
|
|
- patronomycLabel.Name = "patronomycLabel";
|
|
|
- patronomycLabel.Size = new System.Drawing.Size(70, 15);
|
|
|
- patronomycLabel.TabIndex = 10;
|
|
|
- patronomycLabel.Text = "Отчество:";
|
|
|
+ // typePartnerTableAdapter
|
|
|
//
|
|
|
- // patronomycTextBox
|
|
|
+ this.typePartnerTableAdapter.ClearBeforeFill = true;
|
|
|
//
|
|
|
- this.patronomycTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Patronomyc", true));
|
|
|
- this.patronomycTextBox.Location = new System.Drawing.Point(442, 223);
|
|
|
- this.patronomycTextBox.Name = "patronomycTextBox";
|
|
|
- this.patronomycTextBox.Size = new System.Drawing.Size(163, 21);
|
|
|
- this.patronomycTextBox.TabIndex = 11;
|
|
|
+ // tbxNamepartner
|
|
|
//
|
|
|
- // emailLabel
|
|
|
+ this.tbxNamepartner.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Namepartner", true));
|
|
|
+ this.tbxNamepartner.Location = new System.Drawing.Point(124, 175);
|
|
|
+ this.tbxNamepartner.Name = "tbxNamepartner";
|
|
|
+ this.tbxNamepartner.Size = new System.Drawing.Size(163, 21);
|
|
|
+ this.tbxNamepartner.TabIndex = 1;
|
|
|
//
|
|
|
- emailLabel.AutoSize = true;
|
|
|
- emailLabel.Location = new System.Drawing.Point(380, 312);
|
|
|
- emailLabel.Name = "emailLabel";
|
|
|
- emailLabel.Size = new System.Drawing.Size(56, 15);
|
|
|
- emailLabel.TabIndex = 11;
|
|
|
- emailLabel.Text = "E-mail:";
|
|
|
+ // tbxSurname
|
|
|
//
|
|
|
- // emailTextBox
|
|
|
+ this.tbxSurname.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Surname", true));
|
|
|
+ this.tbxSurname.Location = new System.Drawing.Point(442, 169);
|
|
|
+ this.tbxSurname.Name = "tbxSurname";
|
|
|
+ this.tbxSurname.Size = new System.Drawing.Size(163, 21);
|
|
|
+ this.tbxSurname.TabIndex = 9;
|
|
|
//
|
|
|
- this.emailTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Email", true));
|
|
|
- this.emailTextBox.Location = new System.Drawing.Point(442, 309);
|
|
|
- this.emailTextBox.Name = "emailTextBox";
|
|
|
- this.emailTextBox.Size = new System.Drawing.Size(163, 21);
|
|
|
- this.emailTextBox.TabIndex = 12;
|
|
|
+ // tbxName
|
|
|
//
|
|
|
- // phoneLabel
|
|
|
+ this.tbxName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Name", true));
|
|
|
+ this.tbxName.Location = new System.Drawing.Point(442, 196);
|
|
|
+ this.tbxName.Name = "tbxName";
|
|
|
+ this.tbxName.Size = new System.Drawing.Size(163, 21);
|
|
|
+ this.tbxName.TabIndex = 10;
|
|
|
//
|
|
|
- phoneLabel.AutoSize = true;
|
|
|
- phoneLabel.Location = new System.Drawing.Point(373, 288);
|
|
|
- phoneLabel.Name = "phoneLabel";
|
|
|
- phoneLabel.Size = new System.Drawing.Size(63, 15);
|
|
|
- phoneLabel.TabIndex = 12;
|
|
|
- phoneLabel.Text = "Телефон:";
|
|
|
+ // tbxPatronomyc
|
|
|
//
|
|
|
- // phoneTextBox
|
|
|
+ this.tbxPatronomyc.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Patronomyc", true));
|
|
|
+ this.tbxPatronomyc.Location = new System.Drawing.Point(442, 223);
|
|
|
+ this.tbxPatronomyc.Name = "tbxPatronomyc";
|
|
|
+ this.tbxPatronomyc.Size = new System.Drawing.Size(163, 21);
|
|
|
+ this.tbxPatronomyc.TabIndex = 11;
|
|
|
//
|
|
|
- this.phoneTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Phone", true));
|
|
|
- this.phoneTextBox.Location = new System.Drawing.Point(442, 282);
|
|
|
- this.phoneTextBox.Name = "phoneTextBox";
|
|
|
- this.phoneTextBox.Size = new System.Drawing.Size(163, 21);
|
|
|
- this.phoneTextBox.TabIndex = 13;
|
|
|
+ // tbxEmail
|
|
|
//
|
|
|
- // ratingLabel
|
|
|
+ this.tbxEmail.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Email", true));
|
|
|
+ this.tbxEmail.Location = new System.Drawing.Point(442, 309);
|
|
|
+ this.tbxEmail.Name = "tbxEmail";
|
|
|
+ this.tbxEmail.Size = new System.Drawing.Size(163, 21);
|
|
|
+ this.tbxEmail.TabIndex = 13;
|
|
|
//
|
|
|
- ratingLabel.AutoSize = true;
|
|
|
- ratingLabel.Location = new System.Drawing.Point(55, 229);
|
|
|
- ratingLabel.Name = "ratingLabel";
|
|
|
- ratingLabel.Size = new System.Drawing.Size(63, 15);
|
|
|
- ratingLabel.TabIndex = 13;
|
|
|
- ratingLabel.Text = "Рейтинг:";
|
|
|
+ // tbxPhone
|
|
|
//
|
|
|
- // ratingTextBox
|
|
|
+ this.tbxPhone.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Phone", true));
|
|
|
+ this.tbxPhone.Location = new System.Drawing.Point(442, 282);
|
|
|
+ this.tbxPhone.Name = "tbxPhone";
|
|
|
+ this.tbxPhone.Size = new System.Drawing.Size(163, 21);
|
|
|
+ this.tbxPhone.TabIndex = 12;
|
|
|
//
|
|
|
- this.ratingTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Rating", true));
|
|
|
- this.ratingTextBox.Location = new System.Drawing.Point(124, 229);
|
|
|
- this.ratingTextBox.Name = "ratingTextBox";
|
|
|
- this.ratingTextBox.Size = new System.Drawing.Size(163, 21);
|
|
|
- this.ratingTextBox.TabIndex = 14;
|
|
|
+ // tbxRating
|
|
|
//
|
|
|
- // lblIdPartner
|
|
|
- //
|
|
|
- this.lblIdPartner.AutoSize = true;
|
|
|
- this.lblIdPartner.Location = new System.Drawing.Point(514, 102);
|
|
|
- this.lblIdPartner.Name = "lblIdPartner";
|
|
|
- this.lblIdPartner.Size = new System.Drawing.Size(91, 15);
|
|
|
- this.lblIdPartner.TabIndex = 2;
|
|
|
- this.lblIdPartner.Text = "lblIdPartner";
|
|
|
+ this.tbxRating.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "Rating", true));
|
|
|
+ this.tbxRating.Location = new System.Drawing.Point(124, 229);
|
|
|
+ this.tbxRating.Name = "tbxRating";
|
|
|
+ this.tbxRating.Size = new System.Drawing.Size(163, 21);
|
|
|
+ this.tbxRating.TabIndex = 3;
|
|
|
+ this.tbxRating.Validating += new System.ComponentModel.CancelEventHandler(this.tbxRating_Validating);
|
|
|
//
|
|
|
// btnSave
|
|
|
//
|
|
|
this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
|
|
|
this.btnSave.ForeColor = System.Drawing.Color.GhostWhite;
|
|
|
- this.btnSave.Location = new System.Drawing.Point(22, 390);
|
|
|
+ this.btnSave.Location = new System.Drawing.Point(12, 415);
|
|
|
this.btnSave.Name = "btnSave";
|
|
|
this.btnSave.Size = new System.Drawing.Size(163, 36);
|
|
|
- this.btnSave.TabIndex = 17;
|
|
|
+ this.btnSave.TabIndex = 14;
|
|
|
this.btnSave.Text = "Сохранить";
|
|
|
this.btnSave.UseVisualStyleBackColor = false;
|
|
|
this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
|
|
@@ -307,10 +376,10 @@
|
|
|
this.bntCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
|
|
|
this.bntCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
|
|
this.bntCancel.ForeColor = System.Drawing.Color.GhostWhite;
|
|
|
- this.bntCancel.Location = new System.Drawing.Point(442, 390);
|
|
|
+ this.bntCancel.Location = new System.Drawing.Point(471, 415);
|
|
|
this.bntCancel.Name = "bntCancel";
|
|
|
this.bntCancel.Size = new System.Drawing.Size(163, 36);
|
|
|
- this.bntCancel.TabIndex = 18;
|
|
|
+ this.bntCancel.TabIndex = 15;
|
|
|
this.bntCancel.Text = "Отменить";
|
|
|
this.bntCancel.UseVisualStyleBackColor = false;
|
|
|
//
|
|
@@ -324,9 +393,14 @@
|
|
|
this.cmbTypePartner.Location = new System.Drawing.Point(124, 202);
|
|
|
this.cmbTypePartner.Name = "cmbTypePartner";
|
|
|
this.cmbTypePartner.Size = new System.Drawing.Size(163, 23);
|
|
|
- this.cmbTypePartner.TabIndex = 19;
|
|
|
+ this.cmbTypePartner.TabIndex = 2;
|
|
|
this.cmbTypePartner.ValueMember = "IDTypePartner";
|
|
|
//
|
|
|
+ // bsTypePartner
|
|
|
+ //
|
|
|
+ this.bsTypePartner.DataMember = "TypePartner";
|
|
|
+ this.bsTypePartner.DataSource = this.alfafloorGDVDataSet1;
|
|
|
+ //
|
|
|
// label1
|
|
|
//
|
|
|
this.label1.AutoSize = true;
|
|
@@ -336,15 +410,6 @@
|
|
|
this.label1.TabIndex = 20;
|
|
|
this.label1.Text = "Тип партнера:";
|
|
|
//
|
|
|
- // bsTypePartner
|
|
|
- //
|
|
|
- this.bsTypePartner.DataMember = "TypePartner";
|
|
|
- this.bsTypePartner.DataSource = this.alfafloorGDVDataSet1;
|
|
|
- //
|
|
|
- // typePartnerTableAdapter
|
|
|
- //
|
|
|
- this.typePartnerTableAdapter.ClearBeforeFill = true;
|
|
|
- //
|
|
|
// bsRegion
|
|
|
//
|
|
|
this.bsRegion.DataMember = "Region";
|
|
@@ -365,22 +430,6 @@
|
|
|
this.bsPostCode.DataMember = "PostCode";
|
|
|
this.bsPostCode.DataSource = this.alfafloorGDVDataSet1;
|
|
|
//
|
|
|
- // regionTableAdapter
|
|
|
- //
|
|
|
- this.regionTableAdapter.ClearBeforeFill = true;
|
|
|
- //
|
|
|
- // cityTableAdapter
|
|
|
- //
|
|
|
- this.cityTableAdapter.ClearBeforeFill = true;
|
|
|
- //
|
|
|
- // streetTableAdapter
|
|
|
- //
|
|
|
- this.streetTableAdapter.ClearBeforeFill = true;
|
|
|
- //
|
|
|
- // postCodeTableAdapter
|
|
|
- //
|
|
|
- this.postCodeTableAdapter.ClearBeforeFill = true;
|
|
|
- //
|
|
|
// cmbRegion
|
|
|
//
|
|
|
this.cmbRegion.DataBindings.Add(new System.Windows.Forms.Binding("SelectedValue", this.bsPartner, "IDRegion", true));
|
|
@@ -391,7 +440,7 @@
|
|
|
this.cmbRegion.Location = new System.Drawing.Point(124, 256);
|
|
|
this.cmbRegion.Name = "cmbRegion";
|
|
|
this.cmbRegion.Size = new System.Drawing.Size(163, 23);
|
|
|
- this.cmbRegion.TabIndex = 21;
|
|
|
+ this.cmbRegion.TabIndex = 4;
|
|
|
this.cmbRegion.ValueMember = "IDRegion";
|
|
|
//
|
|
|
// cmbCity
|
|
@@ -404,7 +453,7 @@
|
|
|
this.cmbCity.Location = new System.Drawing.Point(124, 285);
|
|
|
this.cmbCity.Name = "cmbCity";
|
|
|
this.cmbCity.Size = new System.Drawing.Size(163, 23);
|
|
|
- this.cmbCity.TabIndex = 22;
|
|
|
+ this.cmbCity.TabIndex = 5;
|
|
|
this.cmbCity.ValueMember = "IDCity";
|
|
|
//
|
|
|
// cmbStreet
|
|
@@ -417,7 +466,7 @@
|
|
|
this.cmbStreet.Location = new System.Drawing.Point(124, 314);
|
|
|
this.cmbStreet.Name = "cmbStreet";
|
|
|
this.cmbStreet.Size = new System.Drawing.Size(163, 23);
|
|
|
- this.cmbStreet.TabIndex = 23;
|
|
|
+ this.cmbStreet.TabIndex = 6;
|
|
|
this.cmbStreet.ValueMember = "IDStreet";
|
|
|
//
|
|
|
// cmbPostCode
|
|
@@ -430,51 +479,27 @@
|
|
|
this.cmbPostCode.Location = new System.Drawing.Point(124, 343);
|
|
|
this.cmbPostCode.Name = "cmbPostCode";
|
|
|
this.cmbPostCode.Size = new System.Drawing.Size(163, 23);
|
|
|
- this.cmbPostCode.TabIndex = 24;
|
|
|
+ this.cmbPostCode.TabIndex = 7;
|
|
|
this.cmbPostCode.ValueMember = "IDPostCode";
|
|
|
//
|
|
|
- // label2
|
|
|
+ // tbxHouse
|
|
|
//
|
|
|
- label2.AutoSize = true;
|
|
|
- label2.Location = new System.Drawing.Point(62, 259);
|
|
|
- label2.Name = "label2";
|
|
|
- label2.Size = new System.Drawing.Size(56, 15);
|
|
|
- label2.TabIndex = 25;
|
|
|
- label2.Text = "Регион:";
|
|
|
- //
|
|
|
- // label3
|
|
|
- //
|
|
|
- label3.AutoSize = true;
|
|
|
- label3.Location = new System.Drawing.Point(69, 288);
|
|
|
- label3.Name = "label3";
|
|
|
- label3.Size = new System.Drawing.Size(49, 15);
|
|
|
- label3.TabIndex = 26;
|
|
|
- label3.Text = "Город:";
|
|
|
- //
|
|
|
- // label4
|
|
|
- //
|
|
|
- label4.AutoSize = true;
|
|
|
- label4.Location = new System.Drawing.Point(69, 317);
|
|
|
- label4.Name = "label4";
|
|
|
- label4.Size = new System.Drawing.Size(49, 15);
|
|
|
- label4.TabIndex = 27;
|
|
|
- label4.Text = "Улица:";
|
|
|
- //
|
|
|
- // label5
|
|
|
- //
|
|
|
- label5.AutoSize = true;
|
|
|
- label5.Location = new System.Drawing.Point(-1, 346);
|
|
|
- label5.Name = "label5";
|
|
|
- label5.Size = new System.Drawing.Size(119, 15);
|
|
|
- label5.TabIndex = 28;
|
|
|
- label5.Text = "Почтовый индекс:";
|
|
|
+ this.tbxHouse.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsPartner, "House", true));
|
|
|
+ this.tbxHouse.Location = new System.Drawing.Point(124, 372);
|
|
|
+ this.tbxHouse.Name = "tbxHouse";
|
|
|
+ this.tbxHouse.Size = new System.Drawing.Size(163, 21);
|
|
|
+ this.tbxHouse.TabIndex = 8;
|
|
|
//
|
|
|
// FormAddEdit
|
|
|
//
|
|
|
+ this.AcceptButton = this.btnSave;
|
|
|
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F);
|
|
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
|
|
this.BackColor = System.Drawing.Color.White;
|
|
|
- this.ClientSize = new System.Drawing.Size(646, 463);
|
|
|
+ this.CancelButton = this.bntCancel;
|
|
|
+ this.ClientSize = new System.Drawing.Size(654, 471);
|
|
|
+ this.Controls.Add(houseLabel);
|
|
|
+ this.Controls.Add(this.tbxHouse);
|
|
|
this.Controls.Add(label5);
|
|
|
this.Controls.Add(label4);
|
|
|
this.Controls.Add(label3);
|
|
@@ -488,19 +513,19 @@
|
|
|
this.Controls.Add(this.bntCancel);
|
|
|
this.Controls.Add(this.btnSave);
|
|
|
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(emailLabel);
|
|
|
- this.Controls.Add(this.emailTextBox);
|
|
|
+ this.Controls.Add(this.tbxEmail);
|
|
|
this.Controls.Add(patronomycLabel);
|
|
|
- this.Controls.Add(this.patronomycTextBox);
|
|
|
+ this.Controls.Add(this.tbxPatronomyc);
|
|
|
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.Font = new System.Drawing.Font("Courier New", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
|
|
|
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
|
|
@@ -533,13 +558,13 @@
|
|
|
private AlfafloorGDVDataSet alfafloorGDVDataSet1;
|
|
|
private AlfafloorGDVDataSetTableAdapters.PartnerTableAdapter partnerTableAdapter;
|
|
|
private AlfafloorGDVDataSetTableAdapters.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 patronomycTextBox;
|
|
|
- private System.Windows.Forms.TextBox emailTextBox;
|
|
|
- private System.Windows.Forms.TextBox phoneTextBox;
|
|
|
- private System.Windows.Forms.TextBox ratingTextBox;
|
|
|
+ private System.Windows.Forms.TextBox tbxNamepartner;
|
|
|
+ private System.Windows.Forms.TextBox tbxSurname;
|
|
|
+ private System.Windows.Forms.TextBox tbxName;
|
|
|
+ private System.Windows.Forms.TextBox tbxPatronomyc;
|
|
|
+ private System.Windows.Forms.TextBox tbxEmail;
|
|
|
+ private System.Windows.Forms.TextBox tbxPhone;
|
|
|
+ private System.Windows.Forms.TextBox tbxRating;
|
|
|
public System.Windows.Forms.Label lblIdPartner;
|
|
|
private System.Windows.Forms.Button btnSave;
|
|
|
private System.Windows.Forms.Button bntCancel;
|
|
@@ -560,5 +585,6 @@
|
|
|
private System.Windows.Forms.ComboBox cmbCity;
|
|
|
private System.Windows.Forms.ComboBox cmbStreet;
|
|
|
private System.Windows.Forms.ComboBox cmbPostCode;
|
|
|
+ private System.Windows.Forms.TextBox tbxHouse;
|
|
|
}
|
|
|
}
|