Your Name 4 months ago
parent
commit
598b64c95c

+ 590 - 0
СУБД Альфапол/FormAddEdit.Designer.cs

@@ -0,0 +1,590 @@
+namespace СУБД_Альфапол
+{
+    partial class FormAddEdit
+    {
+        /// <summary>
+        /// Required designer variable.
+        /// </summary>
+        private System.ComponentModel.IContainer components = null;
+
+        /// <summary>
+        /// Clean up any resources being used.
+        /// </summary>
+        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+        protected override void Dispose(bool disposing)
+        {
+            if (disposing && (components != null))
+            {
+                components.Dispose();
+            }
+            base.Dispose(disposing);
+        }
+
+        #region Windows Form Designer generated code
+
+        /// <summary>
+        /// Required method for Designer support - do not modify
+        /// the contents of this method with the code editor.
+        /// </summary>
+        private void InitializeComponent()
+        {
+            this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.Label namePartnerLabel;
+            System.Windows.Forms.Label surnameLabel;
+            System.Windows.Forms.Label nameLabel;
+            System.Windows.Forms.Label patronymicLabel;
+            System.Windows.Forms.Label phoneLabel;
+            System.Windows.Forms.Label ratingLabel;
+            System.Windows.Forms.Label houseLabel;
+            System.Windows.Forms.Label emailLabel;
+            System.Windows.Forms.Label label1;
+            System.Windows.Forms.Label label2;
+            System.Windows.Forms.Label label3;
+            System.Windows.Forms.Label label4;
+            System.Windows.Forms.Label label5;
+            System.Windows.Forms.Label label6;
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormAddEdit));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.lblTitle = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.bsPartner = new System.Windows.Forms.BindingSource(this.components);
+            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.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.bsIndex = new System.Windows.Forms.BindingSource(this.components);
+            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();
+            surnameLabel = new System.Windows.Forms.Label();
+            nameLabel = new System.Windows.Forms.Label();
+            patronymicLabel = new System.Windows.Forms.Label();
+            phoneLabel = new System.Windows.Forms.Label();
+            ratingLabel = new System.Windows.Forms.Label();
+            houseLabel = new System.Windows.Forms.Label();
+            emailLabel = new System.Windows.Forms.Label();
+            label1 = new System.Windows.Forms.Label();
+            label2 = new System.Windows.Forms.Label();
+            label3 = new System.Windows.Forms.Label();
+            label4 = new System.Windows.Forms.Label();
+            label5 = new System.Windows.Forms.Label();
+            label6 = new System.Windows.Forms.Label();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((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.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;
+            namePartnerLabel.Location = new System.Drawing.Point(40, 183);
+            namePartnerLabel.Name = "namePartnerLabel";
+            namePartnerLabel.Size = new System.Drawing.Size(111, 16);
+            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;
+            surnameLabel.Location = new System.Drawing.Point(426, 186);
+            surnameLabel.Name = "surnameLabel";
+            surnameLabel.Size = new System.Drawing.Size(71, 16);
+            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;
+            nameLabel.Location = new System.Drawing.Point(457, 211);
+            nameLabel.Name = "nameLabel";
+            nameLabel.Size = new System.Drawing.Size(39, 16);
+            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;
+            patronymicLabel.Location = new System.Drawing.Point(418, 237);
+            patronymicLabel.Name = "patronymicLabel";
+            patronymicLabel.Size = new System.Drawing.Size(79, 16);
+            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;
+            phoneLabel.Location = new System.Drawing.Point(425, 287);
+            phoneLabel.Name = "phoneLabel";
+            phoneLabel.Size = new System.Drawing.Size(71, 16);
+            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;
+            ratingLabel.Location = new System.Drawing.Point(78, 374);
+            ratingLabel.Name = "ratingLabel";
+            ratingLabel.Size = new System.Drawing.Size(71, 16);
+            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;
+            houseLabel.Location = new System.Drawing.Point(38, 416);
+            houseLabel.Name = "houseLabel";
+            houseLabel.Size = new System.Drawing.Size(111, 16);
+            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;
+            emailLabel.Location = new System.Drawing.Point(442, 315);
+            emailLabel.Name = "emailLabel";
+            emailLabel.Size = new System.Drawing.Size(55, 16);
+            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;
+            label1.Location = new System.Drawing.Point(493, 150);
+            label1.Name = "label1";
+            label1.Size = new System.Drawing.Size(71, 16);
+            label1.TabIndex = 17;
+            label1.Text = "Директор";
+            // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new System.Drawing.Point(112, 214);
+            label2.Name = "label2";
+            label2.Size = new System.Drawing.Size(39, 16);
+            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;
+            label3.Location = new System.Drawing.Point(88, 243);
+            label3.Name = "label3";
+            label3.Size = new System.Drawing.Size(63, 16);
+            label3.TabIndex = 20;
+            label3.Text = "Регион:";
+            // 
+            // label4
+            // 
+            label4.AutoSize = true;
+            label4.Location = new System.Drawing.Point(96, 271);
+            label4.Name = "label4";
+            label4.Size = new System.Drawing.Size(55, 16);
+            label4.TabIndex = 21;
+            label4.Text = "Город:";
+            // 
+            // label5
+            // 
+            label5.AutoSize = true;
+            label5.Location = new System.Drawing.Point(88, 301);
+            label5.Name = "label5";
+            label5.Size = new System.Drawing.Size(63, 16);
+            label5.TabIndex = 22;
+            label5.Text = "Индекс:";
+            // 
+            // label6
+            // 
+            label6.AutoSize = true;
+            label6.Location = new System.Drawing.Point(94, 331);
+            label6.Name = "label6";
+            label6.Size = new System.Drawing.Size(55, 16);
+            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";
+            // 
+            // bsRegion
+            // 
+            this.bsRegion.DataMember = "Region";
+            this.bsRegion.DataSource = this.dbAlphapolAGDataSet;
+            // 
+            // bsCity
+            // 
+            this.bsCity.DataMember = "City";
+            this.bsCity.DataSource = this.dbAlphapolAGDataSet;
+            // 
+            // bsIndex
+            // 
+            this.bsIndex.DataMember = "IndexPartner";
+            this.bsIndex.DataSource = this.dbAlphapolAGDataSet;
+            // 
+            // bsStreet
+            // 
+            this.bsStreet.DataMember = "Street";
+            this.bsStreet.DataSource = this.dbAlphapolAGDataSet;
+            // 
+            // regionTableAdapter
+            // 
+            this.regionTableAdapter.ClearBeforeFill = true;
+            // 
+            // cityTableAdapter
+            // 
+            this.cityTableAdapter.ClearBeforeFill = true;
+            // 
+            // indexPartnerTableAdapter
+            // 
+            this.indexPartnerTableAdapter.ClearBeforeFill = true;
+            // 
+            // streetTableAdapter
+            // 
+            this.streetTableAdapter.ClearBeforeFill = true;
+            // 
+            // btnSave
+            // 
+            this.btnSave.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
+            this.btnSave.ForeColor = System.Drawing.SystemColors.Control;
+            this.btnSave.Location = new System.Drawing.Point(115, 496);
+            this.btnSave.Name = "btnSave";
+            this.btnSave.Size = new System.Drawing.Size(204, 30);
+            this.btnSave.TabIndex = 28;
+            this.btnSave.Text = "Сохранить";
+            this.btnSave.UseVisualStyleBackColor = false;
+            this.btnSave.Click += new System.EventHandler(this.btnSave_Click);
+            // 
+            // btnCancel
+            // 
+            this.btnCancel.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
+            this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+            this.btnCancel.ForeColor = System.Drawing.SystemColors.Control;
+            this.btnCancel.Location = new System.Drawing.Point(572, 496);
+            this.btnCancel.Name = "btnCancel";
+            this.btnCancel.Size = new System.Drawing.Size(204, 30);
+            this.btnCancel.TabIndex = 29;
+            this.btnCancel.Text = "Отмена";
+            this.btnCancel.UseVisualStyleBackColor = false;
+            // 
+            // FormAddEdit
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.BackColor = System.Drawing.Color.White;
+            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(label6);
+            this.Controls.Add(label5);
+            this.Controls.Add(label4);
+            this.Controls.Add(label3);
+            this.Controls.Add(this.cbxTypePartner);
+            this.Controls.Add(label2);
+            this.Controls.Add(label1);
+            this.Controls.Add(emailLabel);
+            this.Controls.Add(this.emailTextBox);
+            this.Controls.Add(houseLabel);
+            this.Controls.Add(this.houseTextBox);
+            this.Controls.Add(ratingLabel);
+            this.Controls.Add(this.ratingTextBox);
+            this.Controls.Add(phoneLabel);
+            this.Controls.Add(this.phoneTextBox);
+            this.Controls.Add(patronymicLabel);
+            this.Controls.Add(this.patronymicTextBox);
+            this.Controls.Add(nameLabel);
+            this.Controls.Add(this.nameTextBox);
+            this.Controls.Add(surnameLabel);
+            this.Controls.Add(this.surnameTextBox);
+            this.Controls.Add(namePartnerLabel);
+            this.Controls.Add(this.namePartnerTextBox);
+            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.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "FormAddEdit";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "\"ООО\" Альфапол";
+            this.Load += new System.EventHandler(this.FormAddEdit_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((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.bsStreet)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        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.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.BindingSource bsRegion;
+        private System.Windows.Forms.BindingSource bsCity;
+        private System.Windows.Forms.BindingSource bsIndex;
+        private System.Windows.Forms.BindingSource bsStreet;
+        private dbAlphapolAGDataSetTableAdapters.CityTableAdapter cityTableAdapter;
+        private dbAlphapolAGDataSetTableAdapters.IndexPartnerTableAdapter indexPartnerTableAdapter;
+        private dbAlphapolAGDataSetTableAdapters.StreetTableAdapter streetTableAdapter;
+        private System.Windows.Forms.Button btnSave;
+        private System.Windows.Forms.Button btnCancel;
+        public System.Windows.Forms.Label lblTitle;
+        public System.Windows.Forms.BindingSource bsPartner;
+    }
+}

+ 49 - 0
СУБД Альфапол/FormAddEdit.cs

@@ -0,0 +1,49 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using System.Windows.Forms;
+
+namespace СУБД_Альфапол
+{
+    public partial class FormAddEdit : Form
+    {
+        public FormAddEdit()
+        {
+            InitializeComponent();
+        }
+
+        private void FormAddEdit_Load(object sender, EventArgs e)
+        {
+            // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.Street' table. You can move, or remove it, as needed.
+            this.streetTableAdapter.Fill(this.dbAlphapolAGDataSet.Street);
+            // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.IndexPartner' table. You can move, or remove it, as needed.
+            this.indexPartnerTableAdapter.Fill(this.dbAlphapolAGDataSet.IndexPartner);
+            // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.City' table. You can move, or remove it, as needed.
+            this.cityTableAdapter.Fill(this.dbAlphapolAGDataSet.City);
+            // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.Region' table. You can move, or remove it, as needed.
+            this.regionTableAdapter.Fill(this.dbAlphapolAGDataSet.Region);
+            // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.TypePartner' table. You can move, or remove it, as needed.
+            this.typePartnerTableAdapter.Fill(this.dbAlphapolAGDataSet.TypePartner);
+            // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.Partner' table. You can move, or remove it, as needed.
+            this.partnerTableAdapter.Fill(this.dbAlphapolAGDataSet.Partner);
+
+            if(lblTitle.Text == "Добавление партнера")
+            {
+                bsPartner.AddNew();
+            }
+
+        }
+
+        private void btnSave_Click(object sender, EventArgs e)
+        {
+            bsPartner.EndEdit();
+            this.partnerTableAdapter.Update(this.dbAlphapolAGDataSet.Partner);
+            Close();
+        }
+    }
+}

+ 432 - 0
СУБД Альфапол/FormAddEdit.resx

@@ -0,0 +1,432 @@
+<?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:import namespace="http://www.w3.org/XML/1998/namespace" />
+    <xsd:element name="root" msdata:IsDataSet="true">
+      <xsd:complexType>
+        <xsd:choice maxOccurs="unbounded">
+          <xsd:element name="metadata">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" />
+              </xsd:sequence>
+              <xsd:attribute name="name" use="required" type="xsd:string" />
+              <xsd:attribute name="type" type="xsd:string" />
+              <xsd:attribute name="mimetype" type="xsd:string" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="assembly">
+            <xsd:complexType>
+              <xsd:attribute name="alias" type="xsd:string" />
+              <xsd:attribute name="name" type="xsd:string" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="data">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+                <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
+              <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+              <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+              <xsd:attribute ref="xml:space" />
+            </xsd:complexType>
+          </xsd:element>
+          <xsd:element name="resheader">
+            <xsd:complexType>
+              <xsd:sequence>
+                <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+              </xsd:sequence>
+              <xsd:attribute name="name" type="xsd:string" use="required" />
+            </xsd:complexType>
+          </xsd:element>
+        </xsd:choice>
+      </xsd:complexType>
+    </xsd:element>
+  </xsd:schema>
+  <resheader name="resmimetype">
+    <value>text/microsoft-resx</value>
+  </resheader>
+  <resheader name="version">
+    <value>2.0</value>
+  </resheader>
+  <resheader name="reader">
+    <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <resheader name="writer">
+    <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+  </resheader>
+  <metadata name="bsPartner.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 17</value>
+  </metadata>
+  <metadata name="dbAlphapolAGDataSet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>121, 17</value>
+  </metadata>
+  <metadata name="partnerTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>293, 17</value>
+  </metadata>
+  <metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>454, 17</value>
+  </metadata>
+  <metadata name="cityTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>174, 54</value>
+  </metadata>
+  <metadata name="indexPartnerTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>316, 54</value>
+  </metadata>
+  <metadata name="regionTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>17, 54</value>
+  </metadata>
+  <metadata name="streetTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>506, 54</value>
+  </metadata>
+  <metadata name="typePartnerTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>751, 17</value>
+  </metadata>
+  <metadata name="namePartnerLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="surnameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="nameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="patronymicLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="phoneLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="ratingLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="houseLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="emailLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label1.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="bsTypePartner.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>623, 17</value>
+  </metadata>
+  <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label4.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label5.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label6.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="bsIndex.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>1209, 17</value>
+  </metadata>
+  <metadata name="bsCity.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>1072, 17</value>
+  </metadata>
+  <metadata name="bsRegion.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>935, 17</value>
+  </metadata>
+  <metadata name="bsStreet.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>1346, 17</value>
+  </metadata>
+  <assembly alias="System.Drawing" name="System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
+  <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+    <value>
+        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
+        /X+wU6NATQjbEgAAAABJRU5ErkJggg==
+</value>
+  </data>
+</root>

+ 0 - 13
СУБД Альфапол/FormAutorization.Designer.cs

@@ -51,7 +51,6 @@
             this.LblC2 = new System.Windows.Forms.Label();
             this.LblC1 = new System.Windows.Forms.Label();
             this.timerForLogin = new System.Windows.Forms.Timer(this.components);
-            this.lblIdManager = new System.Windows.Forms.Label();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.BsUsers)).BeginInit();
@@ -254,23 +253,12 @@
             this.timerForLogin.Interval = 10000;
             this.timerForLogin.Tick += new System.EventHandler(this.timerForLogin_Tick);
             // 
-            // lblIdManager
-            // 
-            this.lblIdManager.AutoSize = true;
-            this.lblIdManager.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.BsUsers, "idManager", true));
-            this.lblIdManager.Location = new System.Drawing.Point(306, 186);
-            this.lblIdManager.Name = "lblIdManager";
-            this.lblIdManager.Size = new System.Drawing.Size(128, 18);
-            this.lblIdManager.TabIndex = 2;
-            this.lblIdManager.Text = "lblIdManager";
-            // 
             // FormAutorization
             // 
             this.AutoScaleDimensions = new System.Drawing.SizeF(10F, 18F);
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
             this.BackColor = System.Drawing.SystemColors.Window;
             this.ClientSize = new System.Drawing.Size(446, 484);
-            this.Controls.Add(this.lblIdManager);
             this.Controls.Add(this.PanelInputCaptcha);
             this.Controls.Add(this.btnLogin);
             this.Controls.Add(this.cbxShowPass);
@@ -326,7 +314,6 @@
         private System.Windows.Forms.Label LblC2;
         private System.Windows.Forms.Label LblC1;
         private System.Windows.Forms.Timer timerForLogin;
-        public System.Windows.Forms.Label lblIdManager;
     }
 }
 

+ 4 - 3
СУБД Альфапол/FormAutorization.cs

@@ -17,7 +17,9 @@ namespace СУБД_Альфапол
             InitializeComponent();
         }
 
-        public static string Captcha, id;
+
+        public static string txtCon = "Data Source=213.155.192.79,3002;Initial Catalog=dbAlphapolAG;Persist Security Info=True;User ID=u22grozdev;Password=ft9k;Encrypt=False;TrustServerCertificate=True";
+        string Captcha;
 
         void GetCaptcha()
         {
@@ -34,7 +36,6 @@ namespace СУБД_Альфапол
         {
             // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.Manager' table. You can move, or remove it, as needed.
             this.managerTableAdapter.Fill(this.dbAlphapolAGDataSet.Manager);
-            lblIdManager.Hide();
         }
 
         private void cbxShowPass_CheckedChanged(object sender, EventArgs e)
@@ -46,7 +47,6 @@ namespace СУБД_Альфапол
         {
 
             BsUsers.Filter = $"Login = '{tbxLogin.Text}' and Password = '{tbxPass.Text}'";
-            id = lblIdManager.Text;
             if (PanelInputCaptcha.Visible)
             {
                 if (TbxCaptcha.Text != Captcha)
@@ -78,6 +78,7 @@ namespace СУБД_Альфапол
             }
             this.Hide();
             FormManager frmManager = new FormManager();
+            frmManager.bsUsers.Filter = BsUsers.Filter;
             frmManager.ShowDialog();
             this.Show();
             tbxLogin.Clear();

+ 104 - 91
СУБД Альфапол/FormManager.Designer.cs

@@ -29,30 +29,31 @@
         private void InitializeComponent()
         {
             this.components = new System.ComponentModel.Container();
+            System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormManager));
             this.panel1 = new System.Windows.Forms.Panel();
-            this.label1 = new System.Windows.Forms.Label();
-            this.btnLogin = new System.Windows.Forms.Button();
-            this.button1 = new System.Windows.Forms.Button();
-            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.lblPhoto = new System.Windows.Forms.Label();
+            this.bsUsers = new System.Windows.Forms.BindingSource(this.components);
+            this.dbAlphapolAGDataSet = new СУБД_Альфапол.dbAlphapolAGDataSet();
             this.lblPatr = new System.Windows.Forms.Label();
+            this.label1 = new System.Windows.Forms.Label();
             this.lblName = new System.Windows.Forms.Label();
             this.lblFan = new System.Windows.Forms.Label();
-            this.bsUsers = new System.Windows.Forms.BindingSource(this.components);
-            this.dbAlphapolAGDataSet = new СУБД_Альфапол.dbAlphapolAGDataSet();
             this.managerTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.ManagerTableAdapter();
-            this.pbxPhoto = new System.Windows.Forms.PictureBox();
-            this.lblPhoto = new System.Windows.Forms.Label();
             this.dgvPartner = new System.Windows.Forms.DataGridView();
             this.ID = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Info = new System.Windows.Forms.DataGridViewTextBoxColumn();
             this.Discount = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.btnLogin = new System.Windows.Forms.Button();
+            this.button1 = new System.Windows.Forms.Button();
+            this.pbxPhoto = new System.Windows.Forms.PictureBox();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
             this.panel1.SuspendLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.bsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).BeginInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvPartner)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
             this.SuspendLayout();
             // 
             // panel1
@@ -72,52 +73,25 @@
             this.panel1.Size = new System.Drawing.Size(1016, 125);
             this.panel1.TabIndex = 1;
             // 
-            // label1
-            // 
-            this.label1.AutoSize = true;
-            this.label1.Font = new System.Drawing.Font("Courier New", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
-            this.label1.Location = new System.Drawing.Point(211, 42);
-            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(524, 41);
-            this.label1.TabIndex = 1;
-            this.label1.Text = "Рабочее место менеджера";
-            // 
-            // btnLogin
+            // lblPhoto
             // 
-            this.btnLogin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
-            this.btnLogin.ForeColor = System.Drawing.SystemColors.Control;
-            this.btnLogin.Location = new System.Drawing.Point(14, 471);
-            this.btnLogin.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
-            this.btnLogin.Name = "btnLogin";
-            this.btnLogin.Size = new System.Drawing.Size(238, 35);
-            this.btnLogin.TabIndex = 7;
-            this.btnLogin.Text = "ОК";
-            this.btnLogin.UseVisualStyleBackColor = false;
+            this.lblPhoto.AutoSize = true;
+            this.lblPhoto.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Photo", true));
+            this.lblPhoto.Location = new System.Drawing.Point(189, 9);
+            this.lblPhoto.Name = "lblPhoto";
+            this.lblPhoto.Size = new System.Drawing.Size(63, 15);
+            this.lblPhoto.TabIndex = 10;
+            this.lblPhoto.Text = "lblPhoto";
             // 
-            // button1
+            // bsUsers
             // 
-            this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
-            this.button1.ForeColor = System.Drawing.SystemColors.Control;
-            this.button1.Location = new System.Drawing.Point(765, 471);
-            this.button1.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
-            this.button1.Name = "button1";
-            this.button1.Size = new System.Drawing.Size(238, 35);
-            this.button1.TabIndex = 8;
-            this.button1.Text = "Отмена";
-            this.button1.UseVisualStyleBackColor = false;
+            this.bsUsers.DataMember = "Manager";
+            this.bsUsers.DataSource = this.dbAlphapolAGDataSet;
             // 
-            // pictureBox1
+            // dbAlphapolAGDataSet
             // 
-            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, 3, 4, 3);
-            this.pictureBox1.Name = "pictureBox1";
-            this.pictureBox1.Size = new System.Drawing.Size(145, 125);
-            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pictureBox1.TabIndex = 0;
-            this.pictureBox1.TabStop = false;
+            this.dbAlphapolAGDataSet.DataSetName = "dbAlphapolAGDataSet";
+            this.dbAlphapolAGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
             // 
             // lblPatr
             // 
@@ -130,6 +104,17 @@
             this.lblPatr.TabIndex = 11;
             this.lblPatr.Text = "label6";
             // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Courier New", 27.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(211, 42);
+            this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(524, 41);
+            this.label1.TabIndex = 1;
+            this.label1.Text = "Рабочее место менеджера";
+            // 
             // lblName
             // 
             this.lblName.AutoSize = true;
@@ -152,65 +137,48 @@
             this.lblFan.TabIndex = 9;
             this.lblFan.Text = "label4";
             // 
-            // bsUsers
-            // 
-            this.bsUsers.DataMember = "Manager";
-            this.bsUsers.DataSource = this.dbAlphapolAGDataSet;
-            // 
-            // dbAlphapolAGDataSet
-            // 
-            this.dbAlphapolAGDataSet.DataSetName = "dbAlphapolAGDataSet";
-            this.dbAlphapolAGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
-            // 
             // managerTableAdapter
             // 
             this.managerTableAdapter.ClearBeforeFill = true;
             // 
-            // pbxPhoto
-            // 
-            this.pbxPhoto.Dock = System.Windows.Forms.DockStyle.Right;
-            this.pbxPhoto.Location = new System.Drawing.Point(885, 0);
-            this.pbxPhoto.Name = "pbxPhoto";
-            this.pbxPhoto.Size = new System.Drawing.Size(131, 125);
-            this.pbxPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
-            this.pbxPhoto.TabIndex = 12;
-            this.pbxPhoto.TabStop = false;
-            // 
-            // lblPhoto
-            // 
-            this.lblPhoto.AutoSize = true;
-            this.lblPhoto.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Photo", true));
-            this.lblPhoto.Location = new System.Drawing.Point(518, 94);
-            this.lblPhoto.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
-            this.lblPhoto.Name = "lblPhoto";
-            this.lblPhoto.Size = new System.Drawing.Size(63, 15);
-            this.lblPhoto.TabIndex = 13;
-            this.lblPhoto.Text = "lblPhoto";
-            // 
             // dgvPartner
             // 
             this.dgvPartner.AllowUserToAddRows = false;
             this.dgvPartner.AllowUserToDeleteRows = false;
+            this.dgvPartner.BackgroundColor = System.Drawing.Color.White;
+            this.dgvPartner.BorderStyle = System.Windows.Forms.BorderStyle.None;
+            this.dgvPartner.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleHorizontal;
             this.dgvPartner.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.dgvPartner.ColumnHeadersVisible = false;
             this.dgvPartner.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
             this.ID,
             this.Info,
             this.Discount});
-            this.dgvPartner.Location = new System.Drawing.Point(26, 213);
+            this.dgvPartner.GridColor = System.Drawing.Color.White;
+            this.dgvPartner.Location = new System.Drawing.Point(12, 211);
             this.dgvPartner.Name = "dgvPartner";
             this.dgvPartner.ReadOnly = true;
-            this.dgvPartner.Size = new System.Drawing.Size(965, 252);
+            this.dgvPartner.RowHeadersVisible = false;
+            this.dgvPartner.RowTemplate.DefaultCellStyle.BackColor = System.Drawing.Color.PaleGoldenrod;
+            this.dgvPartner.RowTemplate.DividerHeight = 10;
+            this.dgvPartner.RowTemplate.Height = 75;
+            this.dgvPartner.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.dgvPartner.Size = new System.Drawing.Size(992, 299);
             this.dgvPartner.TabIndex = 9;
+            this.dgvPartner.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPartner_CellClick);
             // 
             // ID
             // 
             this.ID.HeaderText = "ID";
             this.ID.Name = "ID";
             this.ID.ReadOnly = true;
+            this.ID.Visible = false;
             // 
             // Info
             // 
             this.Info.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+            dataGridViewCellStyle1.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+            this.Info.DefaultCellStyle = dataGridViewCellStyle1;
             this.Info.HeaderText = "Info";
             this.Info.Name = "Info";
             this.Info.ReadOnly = true;
@@ -221,15 +189,60 @@
             this.Discount.Name = "Discount";
             this.Discount.ReadOnly = true;
             // 
+            // btnLogin
+            // 
+            this.btnLogin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
+            this.btnLogin.ForeColor = System.Drawing.SystemColors.Control;
+            this.btnLogin.Location = new System.Drawing.Point(12, 131);
+            this.btnLogin.Name = "btnLogin";
+            this.btnLogin.Size = new System.Drawing.Size(204, 30);
+            this.btnLogin.TabIndex = 10;
+            this.btnLogin.Text = "Добавить партнера";
+            this.btnLogin.UseVisualStyleBackColor = false;
+            this.btnLogin.Click += new System.EventHandler(this.btnLogin_Click);
+            // 
+            // button1
+            // 
+            this.button1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
+            this.button1.ForeColor = System.Drawing.SystemColors.Control;
+            this.button1.Location = new System.Drawing.Point(222, 131);
+            this.button1.Name = "button1";
+            this.button1.Size = new System.Drawing.Size(204, 30);
+            this.button1.TabIndex = 11;
+            this.button1.Text = "Редактировать партнера";
+            this.button1.UseVisualStyleBackColor = false;
+            // 
+            // pbxPhoto
+            // 
+            this.pbxPhoto.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pbxPhoto.Location = new System.Drawing.Point(885, 0);
+            this.pbxPhoto.Name = "pbxPhoto";
+            this.pbxPhoto.Size = new System.Drawing.Size(131, 125);
+            this.pbxPhoto.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pbxPhoto.TabIndex = 12;
+            this.pbxPhoto.TabStop = false;
+            // 
+            // 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, 3, 4, 3);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(145, 125);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
             // FormManager
             // 
             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(1016, 522);
-            this.Controls.Add(this.dgvPartner);
             this.Controls.Add(this.button1);
             this.Controls.Add(this.btnLogin);
+            this.Controls.Add(this.dgvPartner);
             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.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
@@ -240,11 +253,11 @@
             this.Load += new System.EventHandler(this.FormManager_Load);
             this.panel1.ResumeLayout(false);
             this.panel1.PerformLayout();
-            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.bsUsers)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).EndInit();
-            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).EndInit();
             ((System.ComponentModel.ISupportInitialize)(this.dgvPartner)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pbxPhoto)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
             this.ResumeLayout(false);
 
         }
@@ -254,19 +267,19 @@
         private System.Windows.Forms.Panel panel1;
         private System.Windows.Forms.Label label1;
         private System.Windows.Forms.PictureBox pictureBox1;
-        private System.Windows.Forms.Button btnLogin;
-        private System.Windows.Forms.Button button1;
         private System.Windows.Forms.Label lblPatr;
         private System.Windows.Forms.Label lblName;
         private System.Windows.Forms.Label lblFan;
-        private System.Windows.Forms.BindingSource bsUsers;
         private dbAlphapolAGDataSet dbAlphapolAGDataSet;
         private dbAlphapolAGDataSetTableAdapters.ManagerTableAdapter managerTableAdapter;
         private System.Windows.Forms.PictureBox pbxPhoto;
-        private System.Windows.Forms.Label lblPhoto;
         private System.Windows.Forms.DataGridView dgvPartner;
+        public System.Windows.Forms.BindingSource bsUsers;
+        private System.Windows.Forms.Label lblPhoto;
         private System.Windows.Forms.DataGridViewTextBoxColumn ID;
         private System.Windows.Forms.DataGridViewTextBoxColumn Info;
         private System.Windows.Forms.DataGridViewTextBoxColumn Discount;
+        private System.Windows.Forms.Button btnLogin;
+        private System.Windows.Forms.Button button1;
     }
 }

+ 69 - 2
СУБД Альфапол/FormManager.cs

@@ -2,6 +2,7 @@
 using System.Collections.Generic;
 using System.ComponentModel;
 using System.Data;
+using System.Data.SqlClient;
 using System.Drawing;
 using System.Linq;
 using System.Text;
@@ -16,18 +17,84 @@ namespace СУБД_Альфапол
         {
             InitializeComponent();
         }
+
+        void FillPartner()
+        {
+            SqlConnection con = new SqlConnection(FormAutorization.txtCon);
+            con.Open();
+            string txtQuery = $@"
+SELECT        Partner.idPartner, TypePartner.Type, Partner.NamePartner, Partner.Surname, Partner.Name, Partner.Patronymic, 
+Partner.Phone, Partner.Rating, (SELECT        sum(CountProduct)
+FROM            ProductPartner where idPartner = Partner.idPartner) as CountSale
+FROM            Partner INNER JOIN
+                         TypePartner ON Partner.idTypePartner = TypePartner.idTypePartner";
+            SqlCommand query = new SqlCommand(txtQuery, con);
+            SqlDataReader res = query.ExecuteReader();
+
+            dgvPartner.Rows.Clear();
+            while (res.Read())
+            {
+                string info = $@"{res["Type"]} | {res["NamePartner"]}
+Директор: {res["Surname"]} {res["Name"]} {res["Patronymic"]}
+{res["Phone"]}
+Рейтинг: {res["Rating"]}";
+                string Percent = "0%";
+                try
+                {
+                    int countSale = int.Parse(res["CountSale"].ToString());
+
+                    if (countSale < 10000)
+                    {
+                        Percent = "0%";
+                    }
+                    else if (countSale < 50000)
+                    {
+                        Percent = "5%";
+                    }
+                    else if (countSale < 300000)
+                    {
+                        Percent = "10%";
+                    }
+                    else
+                    {
+                        Percent = "15%";
+                    }
+                }
+                catch { }
+                dgvPartner.Rows.Add(res["idPartner"], info, Percent);
+            }
+
+
+            con.Close();
+        }
+
         private void FormManager_Load(object sender, EventArgs e)
         {
             // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.Manager' table. You can move, or remove it, as needed.
             this.managerTableAdapter.Fill(this.dbAlphapolAGDataSet.Manager);
-            bsUsers.Filter = $"idManager = {FormAutorization.id}";
-            lblPhoto.Hide();
             try
             {
                 pbxPhoto.Image = Image.FromFile(Application.StartupPath + "\\photo\\" + lblPhoto.Text);
             }
             catch { }
+            lblPhoto.Hide();
+            FillPartner();
+        }
 
+        private void btnLogin_Click(object sender, EventArgs e)
+        {
+            FormAddEdit formAddEdit = new FormAddEdit();
+            formAddEdit.ShowDialog();
+            FillPartner();
+        }
+
+        private void dgvPartner_CellClick(object sender, DataGridViewCellEventArgs e)
+        {
+            FormAddEdit formAddEdit = new FormAddEdit();
+            formAddEdit.lblTitle.Text = "Редактирование партнера";
+            formAddEdit.bsPartner.Filter = $"idPartner = {dgvPartner.CurrentRow.Cells[0].Value}";
+            formAddEdit.ShowDialog();
+            FillPartner();
         }
     }
 }

BIN
СУБД Альфапол/bin/Debug/СУБД Альфапол.exe


+ 9 - 0
СУБД Альфапол/СУБД Альфапол.csproj

@@ -54,6 +54,12 @@
       <DesignTime>True</DesignTime>
       <DependentUpon>dbAlphapolAGDataSet.xsd</DependentUpon>
     </Compile>
+    <Compile Include="FormAddEdit.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormAddEdit.Designer.cs">
+      <DependentUpon>FormAddEdit.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormAutorization.cs">
       <SubType>Form</SubType>
     </Compile>
@@ -68,6 +74,9 @@
     </Compile>
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
+    <EmbeddedResource Include="FormAddEdit.resx">
+      <DependentUpon>FormAddEdit.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormAutorization.resx">
       <DependentUpon>FormAutorization.cs</DependentUpon>
     </EmbeddedResource>