Your Name 4 月之前
父节点
当前提交
d17d508e1c

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

@@ -126,6 +126,7 @@
             this.tbxPass.TabIndex = 4;
             this.tbxPass.Text = "m2";
             this.tbxPass.UseSystemPasswordChar = true;
+            this.tbxPass.TextChanged += new System.EventHandler(this.tbxPass_TextChanged);
             // 
             // cbxShowPass
             // 

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

@@ -85,6 +85,8 @@ namespace СУБД_Альфапол
             tbxPass.Clear();
             tbxLogin.Focus();
             PanelInputCaptcha.Visible = false;
+            this.managerTableAdapter.Fill(this.dbAlphapolAGDataSet.Manager);
+
         }
 
         private void timerForLogin_Tick(object sender, EventArgs e)
@@ -97,5 +99,10 @@ namespace СУБД_Альфапол
         {
 
         }
+
+        private void tbxPass_TextChanged(object sender, EventArgs e)
+        {
+
+        }
     }
 }

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

@@ -0,0 +1,195 @@
+namespace СУБД_Альфапол
+{
+    partial class FormHistory
+    {
+        /// <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.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormHistory));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.bsHistorySale = new System.Windows.Forms.BindingSource(this.components);
+            this.dbAlphapolAGDataSet = new СУБД_Альфапол.dbAlphapolAGDataSet();
+            this.historySaleTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.HistorySaleTableAdapter();
+            this.dgvHistorySale = new System.Windows.Forms.DataGridView();
+            this.idPartnerDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.nameProductDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.countProductDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.dateSaleDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.bsHistorySale)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvHistorySale)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.LightGray;
+            this.panel1.Controls.Add(this.label1);
+            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(5, 3, 5, 3);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(933, 127);
+            this.panel1.TabIndex = 2;
+            // 
+            // 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(348, 51);
+            this.label1.Margin = new System.Windows.Forms.Padding(5, 0, 5, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(326, 41);
+            this.label1.TabIndex = 1;
+            this.label1.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(5, 3, 5, 3);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(169, 127);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // bsHistorySale
+            // 
+            this.bsHistorySale.DataMember = "HistorySale";
+            this.bsHistorySale.DataSource = this.dbAlphapolAGDataSet;
+            // 
+            // dbAlphapolAGDataSet
+            // 
+            this.dbAlphapolAGDataSet.DataSetName = "dbAlphapolAGDataSet";
+            this.dbAlphapolAGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // historySaleTableAdapter
+            // 
+            this.historySaleTableAdapter.ClearBeforeFill = true;
+            // 
+            // dgvHistorySale
+            // 
+            this.dgvHistorySale.AllowUserToAddRows = false;
+            this.dgvHistorySale.AllowUserToDeleteRows = false;
+            this.dgvHistorySale.AutoGenerateColumns = false;
+            this.dgvHistorySale.BackgroundColor = System.Drawing.Color.White;
+            this.dgvHistorySale.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+            this.dgvHistorySale.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
+            this.idPartnerDataGridViewTextBoxColumn,
+            this.nameProductDataGridViewTextBoxColumn,
+            this.countProductDataGridViewTextBoxColumn,
+            this.dateSaleDataGridViewTextBoxColumn});
+            this.dgvHistorySale.DataSource = this.bsHistorySale;
+            this.dgvHistorySale.GridColor = System.Drawing.Color.White;
+            this.dgvHistorySale.Location = new System.Drawing.Point(70, 146);
+            this.dgvHistorySale.Name = "dgvHistorySale";
+            this.dgvHistorySale.ReadOnly = true;
+            this.dgvHistorySale.RowHeadersVisible = false;
+            this.dgvHistorySale.RowTemplate.DefaultCellStyle.BackColor = System.Drawing.SystemColors.GradientInactiveCaption;
+            this.dgvHistorySale.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+            this.dgvHistorySale.Size = new System.Drawing.Size(809, 263);
+            this.dgvHistorySale.TabIndex = 3;
+            // 
+            // idPartnerDataGridViewTextBoxColumn
+            // 
+            this.idPartnerDataGridViewTextBoxColumn.DataPropertyName = "idPartner";
+            this.idPartnerDataGridViewTextBoxColumn.HeaderText = "idPartner";
+            this.idPartnerDataGridViewTextBoxColumn.Name = "idPartnerDataGridViewTextBoxColumn";
+            this.idPartnerDataGridViewTextBoxColumn.ReadOnly = true;
+            this.idPartnerDataGridViewTextBoxColumn.Visible = false;
+            // 
+            // nameProductDataGridViewTextBoxColumn
+            // 
+            this.nameProductDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
+            this.nameProductDataGridViewTextBoxColumn.DataPropertyName = "NameProduct";
+            this.nameProductDataGridViewTextBoxColumn.HeaderText = "Товар";
+            this.nameProductDataGridViewTextBoxColumn.Name = "nameProductDataGridViewTextBoxColumn";
+            this.nameProductDataGridViewTextBoxColumn.ReadOnly = true;
+            // 
+            // countProductDataGridViewTextBoxColumn
+            // 
+            this.countProductDataGridViewTextBoxColumn.DataPropertyName = "CountProduct";
+            this.countProductDataGridViewTextBoxColumn.HeaderText = "Кол-во продаж";
+            this.countProductDataGridViewTextBoxColumn.Name = "countProductDataGridViewTextBoxColumn";
+            this.countProductDataGridViewTextBoxColumn.ReadOnly = true;
+            // 
+            // dateSaleDataGridViewTextBoxColumn
+            // 
+            this.dateSaleDataGridViewTextBoxColumn.DataPropertyName = "DateSale";
+            this.dateSaleDataGridViewTextBoxColumn.HeaderText = "Даты продаж";
+            this.dateSaleDataGridViewTextBoxColumn.Name = "dateSaleDataGridViewTextBoxColumn";
+            this.dateSaleDataGridViewTextBoxColumn.ReadOnly = true;
+            // 
+            // FormHistory
+            // 
+            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(933, 519);
+            this.Controls.Add(this.dgvHistorySale);
+            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;
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
+            this.MaximizeBox = false;
+            this.MinimizeBox = false;
+            this.Name = "FormHistory";
+            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
+            this.Text = "\"ООО\" Альфапол";
+            this.Load += new System.EventHandler(this.FormHistory_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.bsHistorySale)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dgvHistorySale)).EndInit();
+            this.ResumeLayout(false);
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private dbAlphapolAGDataSet dbAlphapolAGDataSet;
+        private dbAlphapolAGDataSetTableAdapters.HistorySaleTableAdapter historySaleTableAdapter;
+        private System.Windows.Forms.DataGridView dgvHistorySale;
+        private System.Windows.Forms.DataGridViewTextBoxColumn idPartnerDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn nameProductDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn countProductDataGridViewTextBoxColumn;
+        private System.Windows.Forms.DataGridViewTextBoxColumn dateSaleDataGridViewTextBoxColumn;
+        public System.Windows.Forms.BindingSource bsHistorySale;
+    }
+}

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

@@ -0,0 +1,29 @@
+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 FormHistory : Form
+    {
+        public FormHistory()
+        {
+            InitializeComponent();
+        }
+
+        private void FormHistory_Load(object sender, EventArgs e)
+        {
+            // TODO: This line of code loads data into the 'dbAlphapolAGDataSet.HistorySale' table. You can move, or remove it, as needed.
+            this.historySaleTableAdapter.Fill(this.dbAlphapolAGDataSet.HistorySale);
+
+
+            
+        }
+    }
+}

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

@@ -0,0 +1,357 @@
+<?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="bsHistorySale.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>154, 17</value>
+  </metadata>
+  <metadata name="historySaleTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>326, 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>

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

@@ -32,6 +32,7 @@
             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.btnEditProfmanager = new System.Windows.Forms.Button();
             this.lblPhoto = new System.Windows.Forms.Label();
             this.bsUsers = new System.Windows.Forms.BindingSource(this.components);
             this.dbAlphapolAGDataSet = new СУБД_Альфапол.dbAlphapolAGDataSet();
@@ -46,7 +47,7 @@
             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.btnAdd = new System.Windows.Forms.Button();
             this.label2 = new System.Windows.Forms.Label();
             this.tbxFind = new System.Windows.Forms.TextBox();
             this.cbxFindReting = new System.Windows.Forms.CheckBox();
@@ -55,9 +56,10 @@
             this.tbxMinRating = new System.Windows.Forms.TextBox();
             this.tbxMaxReting = new System.Windows.Forms.TextBox();
             this.cmbTypePartner = new System.Windows.Forms.ComboBox();
-            this.label5 = new System.Windows.Forms.Label();
             this.bsTypeForFilter = new System.Windows.Forms.BindingSource(this.components);
+            this.label5 = new System.Windows.Forms.Label();
             this.typeForFilterTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.TypeForFilterTableAdapter();
+            this.btnHistory = new System.Windows.Forms.Button();
             this.panel1.SuspendLayout();
             ((System.ComponentModel.ISupportInitialize)(this.bsUsers)).BeginInit();
             ((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).BeginInit();
@@ -70,6 +72,7 @@
             // panel1
             // 
             this.panel1.BackColor = System.Drawing.Color.LightGray;
+            this.panel1.Controls.Add(this.btnEditProfmanager);
             this.panel1.Controls.Add(this.lblPhoto);
             this.panel1.Controls.Add(this.pbxPhoto);
             this.panel1.Controls.Add(this.lblPatr);
@@ -84,6 +87,19 @@
             this.panel1.Size = new System.Drawing.Size(1016, 125);
             this.panel1.TabIndex = 1;
             // 
+            // btnEditProfmanager
+            // 
+            this.btnEditProfmanager.Anchor = System.Windows.Forms.AnchorStyles.Right;
+            this.btnEditProfmanager.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
+            this.btnEditProfmanager.ForeColor = System.Drawing.SystemColors.Control;
+            this.btnEditProfmanager.Location = new System.Drawing.Point(730, 92);
+            this.btnEditProfmanager.Name = "btnEditProfmanager";
+            this.btnEditProfmanager.Size = new System.Drawing.Size(149, 30);
+            this.btnEditProfmanager.TabIndex = 21;
+            this.btnEditProfmanager.Text = "Профиль менеджера";
+            this.btnEditProfmanager.UseVisualStyleBackColor = false;
+            this.btnEditProfmanager.Click += new System.EventHandler(this.btnEditProfmanager_Click);
+            // 
             // lblPhoto
             // 
             this.lblPhoto.AutoSize = true;
@@ -106,7 +122,7 @@
             // 
             // pbxPhoto
             // 
-            this.pbxPhoto.Dock = System.Windows.Forms.DockStyle.Right;
+            this.pbxPhoto.Anchor = System.Windows.Forms.AnchorStyles.Right;
             this.pbxPhoto.Location = new System.Drawing.Point(885, 0);
             this.pbxPhoto.Name = "pbxPhoto";
             this.pbxPhoto.Size = new System.Drawing.Size(131, 125);
@@ -116,6 +132,7 @@
             // 
             // lblPatr
             // 
+            this.lblPatr.Anchor = System.Windows.Forms.AnchorStyles.Right;
             this.lblPatr.AutoSize = true;
             this.lblPatr.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Patronymic", true));
             this.lblPatr.Location = new System.Drawing.Point(780, 68);
@@ -138,6 +155,7 @@
             // 
             // lblName
             // 
+            this.lblName.Anchor = System.Windows.Forms.AnchorStyles.Right;
             this.lblName.AutoSize = true;
             this.lblName.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Name", true));
             this.lblName.Location = new System.Drawing.Point(780, 42);
@@ -149,6 +167,7 @@
             // 
             // lblFan
             // 
+            this.lblFan.Anchor = System.Windows.Forms.AnchorStyles.Right;
             this.lblFan.AutoSize = true;
             this.lblFan.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Surname", true));
             this.lblFan.Location = new System.Drawing.Point(780, 18);
@@ -178,6 +197,9 @@
             // 
             this.dgvPartner.AllowUserToAddRows = false;
             this.dgvPartner.AllowUserToDeleteRows = false;
+            this.dgvPartner.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+            | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.dgvPartner.BackgroundColor = System.Drawing.Color.White;
             this.dgvPartner.BorderStyle = System.Windows.Forms.BorderStyle.None;
             this.dgvPartner.CellBorderStyle = System.Windows.Forms.DataGridViewCellBorderStyle.SingleHorizontal;
@@ -198,7 +220,7 @@
             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);
+            this.dgvPartner.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dgvPartner_CellDoubleClick);
             // 
             // ID
             // 
@@ -222,20 +244,23 @@
             this.Discount.Name = "Discount";
             this.Discount.ReadOnly = true;
             // 
-            // btnLogin
+            // btnAdd
             // 
-            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(800, 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);
+            this.btnAdd.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnAdd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
+            this.btnAdd.ForeColor = System.Drawing.SystemColors.Control;
+            this.btnAdd.Location = new System.Drawing.Point(800, 131);
+            this.btnAdd.Name = "btnAdd";
+            this.btnAdd.Size = new System.Drawing.Size(204, 30);
+            this.btnAdd.TabIndex = 10;
+            this.btnAdd.Text = "Добавить партнера";
+            this.btnAdd.UseVisualStyleBackColor = false;
+            this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
             // 
             // label2
             // 
+            this.label2.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.label2.AutoSize = true;
             this.label2.Location = new System.Drawing.Point(9, 135);
             this.label2.Name = "label2";
@@ -245,6 +270,8 @@
             // 
             // tbxFind
             // 
+            this.tbxFind.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.tbxFind.Location = new System.Drawing.Point(253, 132);
             this.tbxFind.Name = "tbxFind";
             this.tbxFind.Size = new System.Drawing.Size(139, 21);
@@ -253,6 +280,8 @@
             // 
             // cbxFindReting
             // 
+            this.cbxFindReting.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
             this.cbxFindReting.AutoSize = true;
             this.cbxFindReting.Location = new System.Drawing.Point(240, 156);
             this.cbxFindReting.Name = "cbxFindReting";
@@ -264,6 +293,7 @@
             // 
             // label3
             // 
+            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label3.AutoSize = true;
             this.label3.Location = new System.Drawing.Point(411, 156);
             this.label3.Name = "label3";
@@ -273,6 +303,7 @@
             // 
             // label4
             // 
+            this.label4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label4.AutoSize = true;
             this.label4.Location = new System.Drawing.Point(404, 135);
             this.label4.Name = "label4";
@@ -282,6 +313,7 @@
             // 
             // tbxMinRating
             // 
+            this.tbxMinRating.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.tbxMinRating.Location = new System.Drawing.Point(564, 153);
             this.tbxMinRating.Name = "tbxMinRating";
             this.tbxMinRating.Size = new System.Drawing.Size(49, 21);
@@ -290,6 +322,7 @@
             // 
             // tbxMaxReting
             // 
+            this.tbxMaxReting.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.tbxMaxReting.Location = new System.Drawing.Point(564, 131);
             this.tbxMaxReting.Name = "tbxMaxReting";
             this.tbxMaxReting.Size = new System.Drawing.Size(49, 21);
@@ -298,6 +331,7 @@
             // 
             // cmbTypePartner
             // 
+            this.cmbTypePartner.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.cmbTypePartner.DataSource = this.bsTypeForFilter;
             this.cmbTypePartner.DisplayMember = "Type";
             this.cmbTypePartner.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
@@ -308,8 +342,14 @@
             this.cmbTypePartner.TabIndex = 18;
             this.cmbTypePartner.SelectedIndexChanged += new System.EventHandler(this.cmbTypePartner_SelectedIndexChanged);
             // 
+            // bsTypeForFilter
+            // 
+            this.bsTypeForFilter.DataMember = "TypeForFilter";
+            this.bsTypeForFilter.DataSource = this.dbAlphapolAGDataSet;
+            // 
             // label5
             // 
+            this.label5.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.label5.AutoSize = true;
             this.label5.Location = new System.Drawing.Point(619, 134);
             this.label5.Name = "label5";
@@ -317,21 +357,30 @@
             this.label5.TabIndex = 19;
             this.label5.Text = "Фильтрация по типу:";
             // 
-            // bsTypeForFilter
-            // 
-            this.bsTypeForFilter.DataMember = "TypeForFilter";
-            this.bsTypeForFilter.DataSource = this.dbAlphapolAGDataSet;
-            // 
             // typeForFilterTableAdapter
             // 
             this.typeForFilterTableAdapter.ClearBeforeFill = true;
             // 
+            // btnHistory
+            // 
+            this.btnHistory.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
+            this.btnHistory.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
+            this.btnHistory.ForeColor = System.Drawing.SystemColors.Control;
+            this.btnHistory.Location = new System.Drawing.Point(800, 167);
+            this.btnHistory.Name = "btnHistory";
+            this.btnHistory.Size = new System.Drawing.Size(204, 30);
+            this.btnHistory.TabIndex = 20;
+            this.btnHistory.Text = "История продаж";
+            this.btnHistory.UseVisualStyleBackColor = false;
+            this.btnHistory.Click += new System.EventHandler(this.btnHistory_Click);
+            // 
             // 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.btnHistory);
             this.Controls.Add(this.label5);
             this.Controls.Add(this.cmbTypePartner);
             this.Controls.Add(this.tbxMaxReting);
@@ -341,12 +390,13 @@
             this.Controls.Add(this.cbxFindReting);
             this.Controls.Add(this.tbxFind);
             this.Controls.Add(this.label2);
-            this.Controls.Add(this.btnLogin);
+            this.Controls.Add(this.btnAdd);
             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")));
             this.Margin = new System.Windows.Forms.Padding(4, 3, 4, 3);
+            this.MinimumSize = new System.Drawing.Size(1032, 561);
             this.Name = "FormManager";
             this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
             this.Text = "\"ООО\" Альфапол";
@@ -381,7 +431,7 @@
         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 btnAdd;
         private System.Windows.Forms.Label label2;
         public System.Windows.Forms.TextBox tbxFind;
         private System.Windows.Forms.CheckBox cbxFindReting;
@@ -393,5 +443,7 @@
         private System.Windows.Forms.Label label5;
         private System.Windows.Forms.BindingSource bsTypeForFilter;
         private dbAlphapolAGDataSetTableAdapters.TypeForFilterTableAdapter typeForFilterTableAdapter;
+        private System.Windows.Forms.Button btnHistory;
+        private System.Windows.Forms.Button btnEditProfmanager;
     }
 }

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

@@ -4,6 +4,7 @@ using System.ComponentModel;
 using System.Data;
 using System.Data.SqlClient;
 using System.Drawing;
+using System.Drawing.Imaging;
 using System.Linq;
 using System.Text;
 using System.Threading.Tasks;
@@ -23,7 +24,7 @@ namespace СУБД_Альфапол
         {
             string additionalUslovie = $" where (surname like '{tbxFind.Text}%' or NamePartner like '{tbxFind.Text}%')";
 
-            if(cbxFindReting.Checked && tbxMaxReting.Text != "" && tbxMinRating.Text != "")
+            if(cbxFindReting.Checked)
             {
                 additionalUslovie += $" and Rating >= {tbxMinRating.Text} and Rating <= {tbxMaxReting.Text}";
             }
@@ -32,7 +33,6 @@ namespace СУБД_Альфапол
             {
                 additionalUslovie += $"  and Type = {cmbTypePartner.Text}";
             }
-
             SqlConnection con = new SqlConnection(FormAutorization.txtCon);
             con.Open();
             string txtQuery = $@"
@@ -105,21 +105,7 @@ FROM            Partner INNER JOIN
             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();
-        }
 
         private void tbxFind_TextChanged(object sender, EventArgs e)
         {
@@ -146,5 +132,37 @@ FROM            Partner INNER JOIN
         {
             FillPartner();
         }
+
+        private void dgvPartner_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
+        {
+            FormAddEdit formAddEdit = new FormAddEdit();
+            formAddEdit.lblTitle.Text = "Редaктиpование партнера";
+            formAddEdit.bsPartner.Filter = $"idPartner = {dgvPartner.CurrentRow.Cells[0].Value}";
+            formAddEdit.ShowDialog();
+            FillPartner();
+        }
+
+        private void btnHistory_Click(object sender, EventArgs e)
+        {
+            FormHistory formHistory = new FormHistory();
+            formHistory.bsHistorySale.Filter = $"idPartner = {dgvPartner.CurrentRow.Cells[0].Value}";
+            formHistory.ShowDialog();
+        }
+
+        private void btnAdd_Click(object sender, EventArgs e)
+        {
+            FormAddEdit formAddEdit = new FormAddEdit();
+            formAddEdit.ShowDialog();
+            FillPartner();
+        }
+
+        private void btnEditProfmanager_Click(object sender, EventArgs e)
+        {
+            FormProfile formProfile = new FormProfile();
+            formProfile.bsMeneger.Filter = bsUsers.Filter;
+            formProfile.ShowDialog();
+            this.managerTableAdapter.Fill(this.dbAlphapolAGDataSet.Manager);
+
+        }
     }
 }

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

@@ -0,0 +1,317 @@
+namespace СУБД_Альфапол
+{
+    partial class FormProfile
+    {
+        /// <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 surnameLabel;
+            System.Windows.Forms.Label nameLabel;
+            System.Windows.Forms.Label patronymicLabel;
+            System.Windows.Forms.Label label2;
+            System.Windows.Forms.Label label3;
+            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FormProfile));
+            this.panel1 = new System.Windows.Forms.Panel();
+            this.label1 = new System.Windows.Forms.Label();
+            this.pictureBox1 = new System.Windows.Forms.PictureBox();
+            this.bsMeneger = new System.Windows.Forms.BindingSource(this.components);
+            this.dbAlphapolAGDataSet = new СУБД_Альфапол.dbAlphapolAGDataSet();
+            this.managerTableAdapter = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.ManagerTableAdapter();
+            this.tableAdapterManager = new СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.TableAdapterManager();
+            this.surnameTextBox = new System.Windows.Forms.TextBox();
+            this.nameTextBox = new System.Windows.Forms.TextBox();
+            this.patronymicTextBox = new System.Windows.Forms.TextBox();
+            this.btnClose = new System.Windows.Forms.Button();
+            this.BtnSave = new System.Windows.Forms.Button();
+            this.tbxPass1 = new System.Windows.Forms.TextBox();
+            this.tbxPass2 = new System.Windows.Forms.TextBox();
+            this.cbxShowPass = new System.Windows.Forms.CheckBox();
+            this.lblPass = new System.Windows.Forms.Label();
+            surnameLabel = new System.Windows.Forms.Label();
+            nameLabel = new System.Windows.Forms.Label();
+            patronymicLabel = new System.Windows.Forms.Label();
+            label2 = new System.Windows.Forms.Label();
+            label3 = new System.Windows.Forms.Label();
+            this.panel1.SuspendLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.bsMeneger)).BeginInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).BeginInit();
+            this.SuspendLayout();
+            // 
+            // panel1
+            // 
+            this.panel1.BackColor = System.Drawing.Color.LightGray;
+            this.panel1.Controls.Add(this.label1);
+            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(6, 4, 6, 4);
+            this.panel1.Name = "panel1";
+            this.panel1.Size = new System.Drawing.Size(939, 131);
+            this.panel1.TabIndex = 2;
+            // 
+            // label1
+            // 
+            this.label1.AutoSize = true;
+            this.label1.Font = new System.Drawing.Font("Courier New", 21.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.label1.Location = new System.Drawing.Point(224, 48);
+            this.label1.Margin = new System.Windows.Forms.Padding(6, 0, 6, 0);
+            this.label1.Name = "label1";
+            this.label1.Size = new System.Drawing.Size(559, 33);
+            this.label1.TabIndex = 1;
+            this.label1.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(6, 4, 6, 4);
+            this.pictureBox1.Name = "pictureBox1";
+            this.pictureBox1.Size = new System.Drawing.Size(138, 131);
+            this.pictureBox1.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom;
+            this.pictureBox1.TabIndex = 0;
+            this.pictureBox1.TabStop = false;
+            // 
+            // bsMeneger
+            // 
+            this.bsMeneger.DataMember = "Manager";
+            this.bsMeneger.DataSource = this.dbAlphapolAGDataSet;
+            // 
+            // dbAlphapolAGDataSet
+            // 
+            this.dbAlphapolAGDataSet.DataSetName = "dbAlphapolAGDataSet";
+            this.dbAlphapolAGDataSet.SchemaSerializationMode = System.Data.SchemaSerializationMode.IncludeSchema;
+            // 
+            // managerTableAdapter
+            // 
+            this.managerTableAdapter.ClearBeforeFill = true;
+            // 
+            // tableAdapterManager
+            // 
+            this.tableAdapterManager.BackupDataSetBeforeUpdate = false;
+            this.tableAdapterManager.CityTableAdapter = null;
+            this.tableAdapterManager.IndexPartnerTableAdapter = null;
+            this.tableAdapterManager.ManagerTableAdapter = this.managerTableAdapter;
+            this.tableAdapterManager.PartnerTableAdapter = null;
+            this.tableAdapterManager.ProductPartnerTableAdapter = null;
+            this.tableAdapterManager.ProductsTableAdapter = null;
+            this.tableAdapterManager.RegionTableAdapter = null;
+            this.tableAdapterManager.StreetTableAdapter = null;
+            this.tableAdapterManager.TypeMaterialTableAdapter = null;
+            this.tableAdapterManager.TypePartnerTableAdapter = null;
+            this.tableAdapterManager.TypeProductTableAdapter = null;
+            this.tableAdapterManager.UpdateOrder = СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters.TableAdapterManager.UpdateOrderOption.InsertUpdateDelete;
+            // 
+            // surnameLabel
+            // 
+            surnameLabel.AutoSize = true;
+            surnameLabel.Location = new System.Drawing.Point(12, 145);
+            surnameLabel.Name = "surnameLabel";
+            surnameLabel.Size = new System.Drawing.Size(80, 17);
+            surnameLabel.TabIndex = 2;
+            surnameLabel.Text = "Фамилия:";
+            // 
+            // surnameTextBox
+            // 
+            this.surnameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsMeneger, "Surname", true));
+            this.surnameTextBox.Location = new System.Drawing.Point(98, 138);
+            this.surnameTextBox.Name = "surnameTextBox";
+            this.surnameTextBox.Size = new System.Drawing.Size(100, 24);
+            this.surnameTextBox.TabIndex = 3;
+            // 
+            // nameLabel
+            // 
+            nameLabel.AutoSize = true;
+            nameLabel.Location = new System.Drawing.Point(48, 177);
+            nameLabel.Name = "nameLabel";
+            nameLabel.Size = new System.Drawing.Size(44, 17);
+            nameLabel.TabIndex = 3;
+            nameLabel.Text = "Имя:";
+            // 
+            // nameTextBox
+            // 
+            this.nameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsMeneger, "Name", true));
+            this.nameTextBox.Location = new System.Drawing.Point(98, 174);
+            this.nameTextBox.Name = "nameTextBox";
+            this.nameTextBox.Size = new System.Drawing.Size(100, 24);
+            this.nameTextBox.TabIndex = 4;
+            // 
+            // patronymicLabel
+            // 
+            patronymicLabel.AutoSize = true;
+            patronymicLabel.Location = new System.Drawing.Point(3, 214);
+            patronymicLabel.Name = "patronymicLabel";
+            patronymicLabel.Size = new System.Drawing.Size(89, 17);
+            patronymicLabel.TabIndex = 5;
+            patronymicLabel.Text = "Отчество:";
+            // 
+            // patronymicTextBox
+            // 
+            this.patronymicTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsMeneger, "Patronymic", true));
+            this.patronymicTextBox.Location = new System.Drawing.Point(98, 211);
+            this.patronymicTextBox.Name = "patronymicTextBox";
+            this.patronymicTextBox.Size = new System.Drawing.Size(100, 24);
+            this.patronymicTextBox.TabIndex = 6;
+            // 
+            // btnClose
+            // 
+            this.btnClose.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(161)))), ((int)(((byte)(99)))), ((int)(((byte)(245)))));
+            this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
+            this.btnClose.ForeColor = System.Drawing.SystemColors.Control;
+            this.btnClose.Location = new System.Drawing.Point(723, 496);
+            this.btnClose.Name = "btnClose";
+            this.btnClose.Size = new System.Drawing.Size(204, 30);
+            this.btnClose.TabIndex = 21;
+            this.btnClose.Text = "Отмена";
+            this.btnClose.UseVisualStyleBackColor = false;
+            // 
+            // 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(12, 496);
+            this.BtnSave.Name = "BtnSave";
+            this.BtnSave.Size = new System.Drawing.Size(204, 30);
+            this.BtnSave.TabIndex = 22;
+            this.BtnSave.Text = "Сохранить";
+            this.BtnSave.UseVisualStyleBackColor = false;
+            this.BtnSave.Click += new System.EventHandler(this.BtnSave_Click);
+            // 
+            // tbxPass1
+            // 
+            this.tbxPass1.Location = new System.Drawing.Point(358, 141);
+            this.tbxPass1.Name = "tbxPass1";
+            this.tbxPass1.Size = new System.Drawing.Size(155, 24);
+            this.tbxPass1.TabIndex = 23;
+            this.tbxPass1.UseSystemPasswordChar = true;
+            this.tbxPass1.TextChanged += new System.EventHandler(this.tbxPass1_TextChanged);
+            // 
+            // tbxPass2
+            // 
+            this.tbxPass2.Location = new System.Drawing.Point(356, 171);
+            this.tbxPass2.Name = "tbxPass2";
+            this.tbxPass2.Size = new System.Drawing.Size(157, 24);
+            this.tbxPass2.TabIndex = 24;
+            this.tbxPass2.UseSystemPasswordChar = true;
+            this.tbxPass2.TextChanged += new System.EventHandler(this.tbxPass2_TextChanged);
+            // 
+            // label2
+            // 
+            label2.AutoSize = true;
+            label2.Location = new System.Drawing.Point(225, 145);
+            label2.Name = "label2";
+            label2.Size = new System.Drawing.Size(125, 17);
+            label2.TabIndex = 25;
+            label2.Text = "Новый пароль:";
+            // 
+            // label3
+            // 
+            label3.AutoSize = true;
+            label3.Location = new System.Drawing.Point(216, 174);
+            label3.Name = "label3";
+            label3.Size = new System.Drawing.Size(134, 17);
+            label3.TabIndex = 26;
+            label3.Text = "Повтор пароля:";
+            // 
+            // cbxShowPass
+            // 
+            this.cbxShowPass.AutoSize = true;
+            this.cbxShowPass.Location = new System.Drawing.Point(356, 202);
+            this.cbxShowPass.Name = "cbxShowPass";
+            this.cbxShowPass.Size = new System.Drawing.Size(162, 21);
+            this.cbxShowPass.TabIndex = 27;
+            this.cbxShowPass.Text = "показать пароль";
+            this.cbxShowPass.UseVisualStyleBackColor = true;
+            this.cbxShowPass.CheckedChanged += new System.EventHandler(this.cbxShowPass_CheckedChanged);
+            // 
+            // lblPass
+            // 
+            this.lblPass.AutoSize = true;
+            this.lblPass.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsMeneger, "Password", true));
+            this.lblPass.Location = new System.Drawing.Point(579, 151);
+            this.lblPass.Name = "lblPass";
+            this.lblPass.Size = new System.Drawing.Size(71, 17);
+            this.lblPass.TabIndex = 28;
+            this.lblPass.Text = "lblPass";
+            // 
+            // FormProfile
+            // 
+            this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 17F);
+            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+            this.ClientSize = new System.Drawing.Size(939, 538);
+            this.Controls.Add(this.lblPass);
+            this.Controls.Add(this.cbxShowPass);
+            this.Controls.Add(label3);
+            this.Controls.Add(label2);
+            this.Controls.Add(this.tbxPass2);
+            this.Controls.Add(this.tbxPass1);
+            this.Controls.Add(this.BtnSave);
+            this.Controls.Add(this.btnClose);
+            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(this.panel1);
+            this.Font = new System.Drawing.Font("Courier New", 11.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(204)));
+            this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
+            this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
+            this.Name = "FormProfile";
+            this.Text = "\"ООО\" Альфапол";
+            this.Load += new System.EventHandler(this.FormProfile_Load);
+            this.panel1.ResumeLayout(false);
+            this.panel1.PerformLayout();
+            ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.bsMeneger)).EndInit();
+            ((System.ComponentModel.ISupportInitialize)(this.dbAlphapolAGDataSet)).EndInit();
+            this.ResumeLayout(false);
+            this.PerformLayout();
+
+        }
+
+        #endregion
+
+        private System.Windows.Forms.Panel panel1;
+        private System.Windows.Forms.Label label1;
+        private System.Windows.Forms.PictureBox pictureBox1;
+        private dbAlphapolAGDataSet dbAlphapolAGDataSet;
+        private dbAlphapolAGDataSetTableAdapters.ManagerTableAdapter managerTableAdapter;
+        public System.Windows.Forms.BindingSource bsMeneger;
+        private dbAlphapolAGDataSetTableAdapters.TableAdapterManager tableAdapterManager;
+        private System.Windows.Forms.TextBox surnameTextBox;
+        private System.Windows.Forms.TextBox nameTextBox;
+        private System.Windows.Forms.TextBox patronymicTextBox;
+        private System.Windows.Forms.Button btnClose;
+        private System.Windows.Forms.Button BtnSave;
+        private System.Windows.Forms.TextBox tbxPass1;
+        private System.Windows.Forms.TextBox tbxPass2;
+        private System.Windows.Forms.CheckBox cbxShowPass;
+        private System.Windows.Forms.Label lblPass;
+    }
+}

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

@@ -0,0 +1,62 @@
+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 FormProfile : Form
+    {
+        public FormProfile()
+        {
+            InitializeComponent();
+        }
+
+        private void FormProfile_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);
+            lblPass.Hide();
+
+        }
+
+        private void BtnSave_Click(object sender, EventArgs e)
+        {
+            if (tbxPass1.Text != "")
+            {
+                if (tbxPass1.Text != tbxPass2.Text)
+                {
+                    MessageBox.Show("Пароли должны совпадать!", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
+                    return;
+                }
+                lblPass.Text = tbxPass1.Text;
+            }
+
+            bsMeneger.EndEdit();
+            this.managerTableAdapter.Update(this.dbAlphapolAGDataSet.Manager);
+            Close();
+        }
+
+        private void tbxPass1_TextChanged(object sender, EventArgs e)
+        {
+
+        }
+
+        private void tbxPass2_TextChanged(object sender, EventArgs e)
+        {
+
+        }
+
+        private void cbxShowPass_CheckedChanged(object sender, EventArgs e)
+        {
+            tbxPass1.UseSystemPasswordChar = !cbxShowPass.Checked;
+            tbxPass2.UseSystemPasswordChar = !cbxShowPass.Checked;
+
+        }
+    }
+}

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

@@ -0,0 +1,375 @@
+<?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="bsMeneger.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>130, 17</value>
+  </metadata>
+  <metadata name="managerTableAdapter.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>302, 17</value>
+  </metadata>
+  <metadata name="tableAdapterManager.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+    <value>472, 17</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="label2.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</value>
+  </metadata>
+  <metadata name="label3.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
+    <value>False</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>

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


+ 740 - 49
СУБД Альфапол/dbAlphapolAGDataSet.Designer.cs

@@ -48,6 +48,8 @@ namespace СУБД_Альфапол {
         
         private TypeForFilterDataTable tableTypeForFilter;
         
+        private HistorySaleDataTable tableHistorySale;
+        
         private global::System.Data.DataRelation relationFK_Partner_City;
         
         private global::System.Data.DataRelation relationFK_Partner_IndexPartner;
@@ -64,6 +66,8 @@ namespace СУБД_Альфапол {
         
         private global::System.Data.DataRelation relationFK_Products_TypeProduct;
         
+        private global::System.Data.DataRelation relationFK_ProductPartner_Partner1;
+        
         private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
         
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -128,6 +132,9 @@ namespace СУБД_Альфапол {
                 if ((ds.Tables["TypeForFilter"] != null)) {
                     base.Tables.Add(new TypeForFilterDataTable(ds.Tables["TypeForFilter"]));
                 }
+                if ((ds.Tables["HistorySale"] != null)) {
+                    base.Tables.Add(new HistorySaleDataTable(ds.Tables["HistorySale"]));
+                }
                 this.DataSetName = ds.DataSetName;
                 this.Prefix = ds.Prefix;
                 this.Namespace = ds.Namespace;
@@ -266,6 +273,16 @@ namespace СУБД_Альфапол {
             }
         }
         
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        [global::System.ComponentModel.Browsable(false)]
+        [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
+        public HistorySaleDataTable HistorySale {
+            get {
+                return this.tableHistorySale;
+            }
+        }
+        
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
         [global::System.ComponentModel.BrowsableAttribute(true)]
@@ -369,6 +386,9 @@ namespace СУБД_Альфапол {
                 if ((ds.Tables["TypeForFilter"] != null)) {
                     base.Tables.Add(new TypeForFilterDataTable(ds.Tables["TypeForFilter"]));
                 }
+                if ((ds.Tables["HistorySale"] != null)) {
+                    base.Tables.Add(new HistorySaleDataTable(ds.Tables["HistorySale"]));
+                }
                 this.DataSetName = ds.DataSetName;
                 this.Prefix = ds.Prefix;
                 this.Namespace = ds.Namespace;
@@ -474,6 +494,12 @@ namespace СУБД_Альфапол {
                     this.tableTypeForFilter.InitVars();
                 }
             }
+            this.tableHistorySale = ((HistorySaleDataTable)(base.Tables["HistorySale"]));
+            if ((initTable == true)) {
+                if ((this.tableHistorySale != null)) {
+                    this.tableHistorySale.InitVars();
+                }
+            }
             this.relationFK_Partner_City = this.Relations["FK_Partner_City"];
             this.relationFK_Partner_IndexPartner = this.Relations["FK_Partner_IndexPartner"];
             this.relationFK_Partner_Region = this.Relations["FK_Partner_Region"];
@@ -482,6 +508,7 @@ namespace СУБД_Альфапол {
             this.relationFK_ProductPartner_Partner = this.Relations["FK_ProductPartner_Partner"];
             this.relationFK_ProductPartner_Products = this.Relations["FK_ProductPartner_Products"];
             this.relationFK_Products_TypeProduct = this.Relations["FK_Products_TypeProduct"];
+            this.relationFK_ProductPartner_Partner1 = this.Relations["FK_ProductPartner_Partner1"];
         }
         
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -516,6 +543,8 @@ namespace СУБД_Альфапол {
             base.Tables.Add(this.tableTypeProduct);
             this.tableTypeForFilter = new TypeForFilterDataTable();
             base.Tables.Add(this.tableTypeForFilter);
+            this.tableHistorySale = new HistorySaleDataTable();
+            base.Tables.Add(this.tableHistorySale);
             this.relationFK_Partner_City = new global::System.Data.DataRelation("FK_Partner_City", new global::System.Data.DataColumn[] {
                         this.tableCity.idCityColumn}, new global::System.Data.DataColumn[] {
                         this.tablePartner.idCityColumn}, false);
@@ -548,6 +577,10 @@ namespace СУБД_Альфапол {
                         this.tableTypeProduct.idTypeProductColumn}, new global::System.Data.DataColumn[] {
                         this.tableProducts.idTypeProductColumn}, false);
             this.Relations.Add(this.relationFK_Products_TypeProduct);
+            this.relationFK_ProductPartner_Partner1 = new global::System.Data.DataRelation("FK_ProductPartner_Partner1", new global::System.Data.DataColumn[] {
+                        this.tablePartner.idPartnerColumn}, new global::System.Data.DataColumn[] {
+                        this.tableHistorySale.idPartnerColumn}, false);
+            this.Relations.Add(this.relationFK_ProductPartner_Partner1);
         }
         
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
@@ -622,6 +655,12 @@ namespace СУБД_Альфапол {
             return false;
         }
         
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        private bool ShouldSerializeHistorySale() {
+            return false;
+        }
+        
         [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
         private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
@@ -713,6 +752,9 @@ namespace СУБД_Альфапол {
         [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
         public delegate void TypeForFilterRowChangeEventHandler(object sender, TypeForFilterRowChangeEvent e);
         
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        public delegate void HistorySaleRowChangeEventHandler(object sender, HistorySaleRowChangeEvent e);
+        
         /// <summary>
         ///Represents the strongly named DataTable class.
         ///</summary>
@@ -4398,6 +4440,299 @@ namespace СУБД_Альфапол {
             }
         }
         
+        /// <summary>
+        ///Represents the strongly named DataTable class.
+        ///</summary>
+        [global::System.Serializable()]
+        [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
+        public partial class HistorySaleDataTable : global::System.Data.TypedTableBase<HistorySaleRow> {
+            
+            private global::System.Data.DataColumn columnidPartner;
+            
+            private global::System.Data.DataColumn columnNameProduct;
+            
+            private global::System.Data.DataColumn columnCountProduct;
+            
+            private global::System.Data.DataColumn columnDateSale;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public HistorySaleDataTable() {
+                this.TableName = "HistorySale";
+                this.BeginInit();
+                this.InitClass();
+                this.EndInit();
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            internal HistorySaleDataTable(global::System.Data.DataTable table) {
+                this.TableName = table.TableName;
+                if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
+                    this.CaseSensitive = table.CaseSensitive;
+                }
+                if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
+                    this.Locale = table.Locale;
+                }
+                if ((table.Namespace != table.DataSet.Namespace)) {
+                    this.Namespace = table.Namespace;
+                }
+                this.Prefix = table.Prefix;
+                this.MinimumCapacity = table.MinimumCapacity;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected HistorySaleDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) : 
+                    base(info, context) {
+                this.InitVars();
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn idPartnerColumn {
+                get {
+                    return this.columnidPartner;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn NameProductColumn {
+                get {
+                    return this.columnNameProduct;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn CountProductColumn {
+                get {
+                    return this.columnCountProduct;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataColumn DateSaleColumn {
+                get {
+                    return this.columnDateSale;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            [global::System.ComponentModel.Browsable(false)]
+            public int Count {
+                get {
+                    return this.Rows.Count;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public HistorySaleRow this[int index] {
+                get {
+                    return ((HistorySaleRow)(this.Rows[index]));
+                }
+            }
+            
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public event HistorySaleRowChangeEventHandler HistorySaleRowChanging;
+            
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public event HistorySaleRowChangeEventHandler HistorySaleRowChanged;
+            
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public event HistorySaleRowChangeEventHandler HistorySaleRowDeleting;
+            
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public event HistorySaleRowChangeEventHandler HistorySaleRowDeleted;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void AddHistorySaleRow(HistorySaleRow row) {
+                this.Rows.Add(row);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public HistorySaleRow AddHistorySaleRow(PartnerRow parentPartnerRowByFK_ProductPartner_Partner1, string NameProduct, int CountProduct, System.DateTime DateSale) {
+                HistorySaleRow rowHistorySaleRow = ((HistorySaleRow)(this.NewRow()));
+                object[] columnValuesArray = new object[] {
+                        null,
+                        NameProduct,
+                        CountProduct,
+                        DateSale};
+                if ((parentPartnerRowByFK_ProductPartner_Partner1 != null)) {
+                    columnValuesArray[0] = parentPartnerRowByFK_ProductPartner_Partner1[0];
+                }
+                rowHistorySaleRow.ItemArray = columnValuesArray;
+                this.Rows.Add(rowHistorySaleRow);
+                return rowHistorySaleRow;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public override global::System.Data.DataTable Clone() {
+                HistorySaleDataTable cln = ((HistorySaleDataTable)(base.Clone()));
+                cln.InitVars();
+                return cln;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override global::System.Data.DataTable CreateInstance() {
+                return new HistorySaleDataTable();
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            internal void InitVars() {
+                this.columnidPartner = base.Columns["idPartner"];
+                this.columnNameProduct = base.Columns["NameProduct"];
+                this.columnCountProduct = base.Columns["CountProduct"];
+                this.columnDateSale = base.Columns["DateSale"];
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            private void InitClass() {
+                this.columnidPartner = new global::System.Data.DataColumn("idPartner", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnidPartner);
+                this.columnNameProduct = new global::System.Data.DataColumn("NameProduct", typeof(string), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnNameProduct);
+                this.columnCountProduct = new global::System.Data.DataColumn("CountProduct", typeof(int), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnCountProduct);
+                this.columnDateSale = new global::System.Data.DataColumn("DateSale", typeof(global::System.DateTime), null, global::System.Data.MappingType.Element);
+                base.Columns.Add(this.columnDateSale);
+                this.columnNameProduct.MaxLength = 2147483647;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public HistorySaleRow NewHistorySaleRow() {
+                return ((HistorySaleRow)(this.NewRow()));
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
+                return new HistorySaleRow(builder);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override global::System.Type GetRowType() {
+                return typeof(HistorySaleRow);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
+                base.OnRowChanged(e);
+                if ((this.HistorySaleRowChanged != null)) {
+                    this.HistorySaleRowChanged(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
+                base.OnRowChanging(e);
+                if ((this.HistorySaleRowChanging != null)) {
+                    this.HistorySaleRowChanging(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
+                base.OnRowDeleted(e);
+                if ((this.HistorySaleRowDeleted != null)) {
+                    this.HistorySaleRowDeleted(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
+                base.OnRowDeleting(e);
+                if ((this.HistorySaleRowDeleting != null)) {
+                    this.HistorySaleRowDeleting(this, new HistorySaleRowChangeEvent(((HistorySaleRow)(e.Row)), e.Action));
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void RemoveHistorySaleRow(HistorySaleRow row) {
+                this.Rows.Remove(row);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
+                global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
+                global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
+                dbAlphapolAGDataSet ds = new dbAlphapolAGDataSet();
+                global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
+                any1.Namespace = "http://www.w3.org/2001/XMLSchema";
+                any1.MinOccurs = new decimal(0);
+                any1.MaxOccurs = decimal.MaxValue;
+                any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+                sequence.Items.Add(any1);
+                global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
+                any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
+                any2.MinOccurs = new decimal(1);
+                any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
+                sequence.Items.Add(any2);
+                global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
+                attribute1.Name = "namespace";
+                attribute1.FixedValue = ds.Namespace;
+                type.Attributes.Add(attribute1);
+                global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
+                attribute2.Name = "tableTypeName";
+                attribute2.FixedValue = "HistorySaleDataTable";
+                type.Attributes.Add(attribute2);
+                type.Particle = sequence;
+                global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
+                if (xs.Contains(dsSchema.TargetNamespace)) {
+                    global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
+                    global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
+                    try {
+                        global::System.Xml.Schema.XmlSchema schema = null;
+                        dsSchema.Write(s1);
+                        for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
+                            schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
+                            s2.SetLength(0);
+                            schema.Write(s2);
+                            if ((s1.Length == s2.Length)) {
+                                s1.Position = 0;
+                                s2.Position = 0;
+                                for (; ((s1.Position != s1.Length) 
+                                            && (s1.ReadByte() == s2.ReadByte())); ) {
+                                    ;
+                                }
+                                if ((s1.Position == s1.Length)) {
+                                    return type;
+                                }
+                            }
+                        }
+                    }
+                    finally {
+                        if ((s1 != null)) {
+                            s1.Close();
+                        }
+                        if ((s2 != null)) {
+                            s2.Close();
+                        }
+                    }
+                }
+                xs.Add(dsSchema);
+                return type;
+            }
+        }
+        
         /// <summary>
         ///Represents strongly named DataRow class.
         ///</summary>
@@ -5204,6 +5539,17 @@ namespace СУБД_Альфапол {
                     return ((ProductPartnerRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Partner"])));
                 }
             }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public HistorySaleRow[] GetHistorySaleRows() {
+                if ((this.Table.ChildRelations["FK_ProductPartner_Partner1"] == null)) {
+                    return new HistorySaleRow[0];
+                }
+                else {
+                    return ((HistorySaleRow[])(base.GetChildRows(this.Table.ChildRelations["FK_ProductPartner_Partner1"])));
+                }
+            }
         }
         
         /// <summary>
@@ -5833,109 +6179,247 @@ namespace СУБД_Альфапол {
             public string TypeProduct {
                 get {
                     try {
-                        return ((string)(this[this.tableTypeProduct.TypeProductColumn]));
+                        return ((string)(this[this.tableTypeProduct.TypeProductColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'TypeProduct\' in table \'TypeProduct\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableTypeProduct.TypeProductColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public double Coefficient {
+                get {
+                    try {
+                        return ((double)(this[this.tableTypeProduct.CoefficientColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'Coefficient\' in table \'TypeProduct\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableTypeProduct.CoefficientColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public bool IsTypeProductNull() {
+                return this.IsNull(this.tableTypeProduct.TypeProductColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void SetTypeProductNull() {
+                this[this.tableTypeProduct.TypeProductColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public bool IsCoefficientNull() {
+                return this.IsNull(this.tableTypeProduct.CoefficientColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void SetCoefficientNull() {
+                this[this.tableTypeProduct.CoefficientColumn] = global::System.Convert.DBNull;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public ProductsRow[] GetProductsRows() {
+                if ((this.Table.ChildRelations["FK_Products_TypeProduct"] == null)) {
+                    return new ProductsRow[0];
+                }
+                else {
+                    return ((ProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Products_TypeProduct"])));
+                }
+            }
+        }
+        
+        /// <summary>
+        ///Represents strongly named DataRow class.
+        ///</summary>
+        public partial class TypeForFilterRow : global::System.Data.DataRow {
+            
+            private TypeForFilterDataTable tableTypeForFilter;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            internal TypeForFilterRow(global::System.Data.DataRowBuilder rb) : 
+                    base(rb) {
+                this.tableTypeForFilter = ((TypeForFilterDataTable)(this.Table));
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public string Type {
+                get {
+                    try {
+                        return ((string)(this[this.tableTypeForFilter.TypeColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypeForFilter\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableTypeForFilter.TypeColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public bool IsTypeNull() {
+                return this.IsNull(this.tableTypeForFilter.TypeColumn);
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public void SetTypeNull() {
+                this[this.tableTypeForFilter.TypeColumn] = global::System.Convert.DBNull;
+            }
+        }
+        
+        /// <summary>
+        ///Represents strongly named DataRow class.
+        ///</summary>
+        public partial class HistorySaleRow : global::System.Data.DataRow {
+            
+            private HistorySaleDataTable tableHistorySale;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            internal HistorySaleRow(global::System.Data.DataRowBuilder rb) : 
+                    base(rb) {
+                this.tableHistorySale = ((HistorySaleDataTable)(this.Table));
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public int idPartner {
+                get {
+                    try {
+                        return ((int)(this[this.tableHistorySale.idPartnerColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'idPartner\' in table \'HistorySale\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableHistorySale.idPartnerColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public string NameProduct {
+                get {
+                    try {
+                        return ((string)(this[this.tableHistorySale.NameProductColumn]));
+                    }
+                    catch (global::System.InvalidCastException e) {
+                        throw new global::System.Data.StrongTypingException("The value for column \'NameProduct\' in table \'HistorySale\' is DBNull.", e);
+                    }
+                }
+                set {
+                    this[this.tableHistorySale.NameProductColumn] = value;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public int CountProduct {
+                get {
+                    try {
+                        return ((int)(this[this.tableHistorySale.CountProductColumn]));
                     }
                     catch (global::System.InvalidCastException e) {
-                        throw new global::System.Data.StrongTypingException("The value for column \'TypeProduct\' in table \'TypeProduct\' is DBNull.", e);
+                        throw new global::System.Data.StrongTypingException("The value for column \'CountProduct\' in table \'HistorySale\' is DBNull.", e);
                     }
                 }
                 set {
-                    this[this.tableTypeProduct.TypeProductColumn] = value;
+                    this[this.tableHistorySale.CountProductColumn] = value;
                 }
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public double Coefficient {
+            public System.DateTime DateSale {
                 get {
                     try {
-                        return ((double)(this[this.tableTypeProduct.CoefficientColumn]));
+                        return ((global::System.DateTime)(this[this.tableHistorySale.DateSaleColumn]));
                     }
                     catch (global::System.InvalidCastException e) {
-                        throw new global::System.Data.StrongTypingException("The value for column \'Coefficient\' in table \'TypeProduct\' is DBNull.", e);
+                        throw new global::System.Data.StrongTypingException("The value for column \'DateSale\' in table \'HistorySale\' is DBNull.", e);
                     }
                 }
                 set {
-                    this[this.tableTypeProduct.CoefficientColumn] = value;
+                    this[this.tableHistorySale.DateSaleColumn] = value;
                 }
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public bool IsTypeProductNull() {
-                return this.IsNull(this.tableTypeProduct.TypeProductColumn);
+            public PartnerRow PartnerRow {
+                get {
+                    return ((PartnerRow)(this.GetParentRow(this.Table.ParentRelations["FK_ProductPartner_Partner1"])));
+                }
+                set {
+                    this.SetParentRow(value, this.Table.ParentRelations["FK_ProductPartner_Partner1"]);
+                }
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetTypeProductNull() {
-                this[this.tableTypeProduct.TypeProductColumn] = global::System.Convert.DBNull;
+            public bool IsidPartnerNull() {
+                return this.IsNull(this.tableHistorySale.idPartnerColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public bool IsCoefficientNull() {
-                return this.IsNull(this.tableTypeProduct.CoefficientColumn);
+            public void SetidPartnerNull() {
+                this[this.tableHistorySale.idPartnerColumn] = global::System.Convert.DBNull;
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetCoefficientNull() {
-                this[this.tableTypeProduct.CoefficientColumn] = global::System.Convert.DBNull;
+            public bool IsNameProductNull() {
+                return this.IsNull(this.tableHistorySale.NameProductColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public ProductsRow[] GetProductsRows() {
-                if ((this.Table.ChildRelations["FK_Products_TypeProduct"] == null)) {
-                    return new ProductsRow[0];
-                }
-                else {
-                    return ((ProductsRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Products_TypeProduct"])));
-                }
+            public void SetNameProductNull() {
+                this[this.tableHistorySale.NameProductColumn] = global::System.Convert.DBNull;
             }
-        }
-        
-        /// <summary>
-        ///Represents strongly named DataRow class.
-        ///</summary>
-        public partial class TypeForFilterRow : global::System.Data.DataRow {
-            
-            private TypeForFilterDataTable tableTypeForFilter;
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            internal TypeForFilterRow(global::System.Data.DataRowBuilder rb) : 
-                    base(rb) {
-                this.tableTypeForFilter = ((TypeForFilterDataTable)(this.Table));
+            public bool IsCountProductNull() {
+                return this.IsNull(this.tableHistorySale.CountProductColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public string Type {
-                get {
-                    try {
-                        return ((string)(this[this.tableTypeForFilter.TypeColumn]));
-                    }
-                    catch (global::System.InvalidCastException e) {
-                        throw new global::System.Data.StrongTypingException("The value for column \'Type\' in table \'TypeForFilter\' is DBNull.", e);
-                    }
-                }
-                set {
-                    this[this.tableTypeForFilter.TypeColumn] = value;
-                }
+            public void SetCountProductNull() {
+                this[this.tableHistorySale.CountProductColumn] = global::System.Convert.DBNull;
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public bool IsTypeNull() {
-                return this.IsNull(this.tableTypeForFilter.TypeColumn);
+            public bool IsDateSaleNull() {
+                return this.IsNull(this.tableHistorySale.DateSaleColumn);
             }
             
             [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
             [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
-            public void SetTypeNull() {
-                this[this.tableTypeForFilter.TypeColumn] = global::System.Convert.DBNull;
+            public void SetDateSaleNull() {
+                this[this.tableHistorySale.DateSaleColumn] = global::System.Convert.DBNull;
             }
         }
         
@@ -6346,6 +6830,40 @@ namespace СУБД_Альфапол {
                 }
             }
         }
+        
+        /// <summary>
+        ///Row event argument class
+        ///</summary>
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        public class HistorySaleRowChangeEvent : global::System.EventArgs {
+            
+            private HistorySaleRow eventRow;
+            
+            private global::System.Data.DataRowAction eventAction;
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public HistorySaleRowChangeEvent(HistorySaleRow row, global::System.Data.DataRowAction action) {
+                this.eventRow = row;
+                this.eventAction = action;
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public HistorySaleRow Row {
+                get {
+                    return this.eventRow;
+                }
+            }
+            
+            [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+            [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+            public global::System.Data.DataRowAction Action {
+                get {
+                    return this.eventAction;
+                }
+            }
+        }
     }
 }
 namespace СУБД_Альфапол.dbAlphapolAGDataSetTableAdapters {
@@ -11045,6 +11563,179 @@ SELECT idTypeProduct, TypeProduct, Coefficient FROM TypeProduct WHERE (idTypePro
         }
     }
     
+    /// <summary>
+    ///Represents the connection and commands used to retrieve and save data.
+    ///</summary>
+    [global::System.ComponentModel.DesignerCategoryAttribute("code")]
+    [global::System.ComponentModel.ToolboxItem(true)]
+    [global::System.ComponentModel.DataObjectAttribute(true)]
+    [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
+        ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
+    [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+    public partial class HistorySaleTableAdapter : global::System.ComponentModel.Component {
+        
+        private global::System.Data.SqlClient.SqlDataAdapter _adapter;
+        
+        private global::System.Data.SqlClient.SqlConnection _connection;
+        
+        private global::System.Data.SqlClient.SqlTransaction _transaction;
+        
+        private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
+        
+        private bool _clearBeforeFill;
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        public HistorySaleTableAdapter() {
+            this.ClearBeforeFill = true;
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
+            get {
+                if ((this._adapter == null)) {
+                    this.InitAdapter();
+                }
+                return this._adapter;
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        internal global::System.Data.SqlClient.SqlConnection Connection {
+            get {
+                if ((this._connection == null)) {
+                    this.InitConnection();
+                }
+                return this._connection;
+            }
+            set {
+                this._connection = value;
+                if ((this.Adapter.InsertCommand != null)) {
+                    this.Adapter.InsertCommand.Connection = value;
+                }
+                if ((this.Adapter.DeleteCommand != null)) {
+                    this.Adapter.DeleteCommand.Connection = value;
+                }
+                if ((this.Adapter.UpdateCommand != null)) {
+                    this.Adapter.UpdateCommand.Connection = value;
+                }
+                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+                    if ((this.CommandCollection[i] != null)) {
+                        ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
+                    }
+                }
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        internal global::System.Data.SqlClient.SqlTransaction Transaction {
+            get {
+                return this._transaction;
+            }
+            set {
+                this._transaction = value;
+                for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
+                    this.CommandCollection[i].Transaction = this._transaction;
+                }
+                if (((this.Adapter != null) 
+                            && (this.Adapter.DeleteCommand != null))) {
+                    this.Adapter.DeleteCommand.Transaction = this._transaction;
+                }
+                if (((this.Adapter != null) 
+                            && (this.Adapter.InsertCommand != null))) {
+                    this.Adapter.InsertCommand.Transaction = this._transaction;
+                }
+                if (((this.Adapter != null) 
+                            && (this.Adapter.UpdateCommand != null))) {
+                    this.Adapter.UpdateCommand.Transaction = this._transaction;
+                }
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
+            get {
+                if ((this._commandCollection == null)) {
+                    this.InitCommandCollection();
+                }
+                return this._commandCollection;
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        public bool ClearBeforeFill {
+            get {
+                return this._clearBeforeFill;
+            }
+            set {
+                this._clearBeforeFill = value;
+            }
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        private void InitAdapter() {
+            this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
+            global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
+            tableMapping.SourceTable = "Table";
+            tableMapping.DataSetTable = "HistorySale";
+            tableMapping.ColumnMappings.Add("idPartner", "idPartner");
+            tableMapping.ColumnMappings.Add("NameProduct", "NameProduct");
+            tableMapping.ColumnMappings.Add("CountProduct", "CountProduct");
+            tableMapping.ColumnMappings.Add("DateSale", "DateSale");
+            this._adapter.TableMappings.Add(tableMapping);
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        private void InitConnection() {
+            this._connection = new global::System.Data.SqlClient.SqlConnection();
+            this._connection.ConnectionString = global::СУБД_Альфапол.Properties.Settings.Default.dbAlphapolAGConnectionString;
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        private void InitCommandCollection() {
+            this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
+            this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
+            this._commandCollection[0].Connection = this.Connection;
+            this._commandCollection[0].CommandText = "SELECT        ProductPartner.idPartner, Products.NameProduct, ProductPartner.Coun" +
+                "tProduct, ProductPartner.DateSale\r\nFROM            ProductPartner INNER JOIN\r\n  " +
+                "                       Products ON ProductPartner.idProduct = Products.idProduct" +
+                "";
+            this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
+        public virtual int Fill(dbAlphapolAGDataSet.HistorySaleDataTable dataTable) {
+            this.Adapter.SelectCommand = this.CommandCollection[0];
+            if ((this.ClearBeforeFill == true)) {
+                dataTable.Clear();
+            }
+            int returnValue = this.Adapter.Fill(dataTable);
+            return returnValue;
+        }
+        
+        [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+        [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "17.0.0.0")]
+        [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
+        [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
+        public virtual dbAlphapolAGDataSet.HistorySaleDataTable GetData() {
+            this.Adapter.SelectCommand = this.CommandCollection[0];
+            dbAlphapolAGDataSet.HistorySaleDataTable dataTable = new dbAlphapolAGDataSet.HistorySaleDataTable();
+            this.Adapter.Fill(dataTable);
+            return dataTable;
+        }
+    }
+    
     /// <summary>
     ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
     ///</summary>

+ 48 - 10
СУБД Альфапол/dbAlphapolAGDataSet.xsd

@@ -743,6 +743,27 @@ from TypePartner</CommandText>
             </Mappings>
             <Sources />
           </TableAdapter>
+          <TableAdapter BaseClass="System.ComponentModel.Component" DataAccessorModifier="AutoLayout, AnsiClass, Class, Public" DataAccessorName="HistorySaleTableAdapter" GeneratorDataComponentClassName="HistorySaleTableAdapter" Name="HistorySale" UserDataComponentName="HistorySaleTableAdapter">
+            <MainSource>
+              <DbSource ConnectionRef="dbAlphapolAGConnectionString (Settings)" DbObjectType="Unknown" FillMethodModifier="Public" FillMethodName="Fill" GenerateMethods="Both" GenerateShortCommands="false" GeneratorGetMethodName="GetData" GeneratorSourceName="Fill" GetMethodModifier="Public" GetMethodName="GetData" QueryType="Rowset" ScalarCallRetval="System.Object, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" UseOptimisticConcurrency="true" UserGetMethodName="GetData" UserSourceName="Fill">
+                <SelectCommand>
+                  <DbCommand CommandType="Text" ModifiedByUser="true">
+                    <CommandText>SELECT        ProductPartner.idPartner, Products.NameProduct, ProductPartner.CountProduct, ProductPartner.DateSale
+FROM            ProductPartner INNER JOIN
+                         Products ON ProductPartner.idProduct = Products.idProduct</CommandText>
+                    <Parameters />
+                  </DbCommand>
+                </SelectCommand>
+              </DbSource>
+            </MainSource>
+            <Mappings>
+              <Mapping SourceColumn="idPartner" DataSetColumn="idPartner" />
+              <Mapping SourceColumn="NameProduct" DataSetColumn="NameProduct" />
+              <Mapping SourceColumn="CountProduct" DataSetColumn="CountProduct" />
+              <Mapping SourceColumn="DateSale" DataSetColumn="DateSale" />
+            </Mappings>
+            <Sources />
+          </TableAdapter>
         </Tables>
         <Sources />
       </DataSource>
@@ -997,10 +1018,10 @@ from TypePartner</CommandText>
             </xs:sequence>
           </xs:complexType>
         </xs:element>
-        <xs:element name="TypeForFilter" msprop:Generator_RowEvHandlerName="TypeForFilterRowChangeEventHandler" msprop:Generator_RowDeletedName="TypeForFilterRowDeleted" msprop:Generator_RowDeletingName="TypeForFilterRowDeleting" msprop:Generator_RowEvArgName="TypeForFilterRowChangeEvent" msprop:Generator_TablePropName="TypeForFilter" msprop:Generator_RowChangedName="TypeForFilterRowChanged" msprop:Generator_RowChangingName="TypeForFilterRowChanging" msprop:Generator_TableClassName="TypeForFilterDataTable" msprop:Generator_RowClassName="TypeForFilterRow" msprop:Generator_TableVarName="tableTypeForFilter" msprop:Generator_UserTableName="TypeForFilter">
+        <xs:element name="TypeForFilter" msprop:Generator_RowClassName="TypeForFilterRow" msprop:Generator_RowEvHandlerName="TypeForFilterRowChangeEventHandler" msprop:Generator_RowDeletedName="TypeForFilterRowDeleted" msprop:Generator_RowDeletingName="TypeForFilterRowDeleting" msprop:Generator_RowEvArgName="TypeForFilterRowChangeEvent" msprop:Generator_TablePropName="TypeForFilter" msprop:Generator_RowChangedName="TypeForFilterRowChanged" msprop:Generator_UserTableName="TypeForFilter" msprop:Generator_RowChangingName="TypeForFilterRowChanging" msprop:Generator_TableClassName="TypeForFilterDataTable" msprop:Generator_TableVarName="tableTypeForFilter">
           <xs:complexType>
             <xs:sequence>
-              <xs:element name="Type" msdata:ReadOnly="true" msdata:Caption="Column1" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnPropNameInTable="TypeColumn" msprop:Generator_ColumnVarNameInTable="columnType" msprop:Generator_UserColumnName="Type" minOccurs="0">
+              <xs:element name="Type" msdata:ReadOnly="true" msdata:Caption="Column1" msprop:Generator_UserColumnName="Type" msprop:Generator_ColumnPropNameInTable="TypeColumn" msprop:Generator_ColumnPropNameInRow="Type" msprop:Generator_ColumnVarNameInTable="columnType" minOccurs="0">
                 <xs:simpleType>
                   <xs:restriction base="xs:string">
                     <xs:maxLength value="50" />
@@ -1010,6 +1031,22 @@ from TypePartner</CommandText>
             </xs:sequence>
           </xs:complexType>
         </xs:element>
+        <xs:element name="HistorySale" msprop:Generator_RowEvHandlerName="HistorySaleRowChangeEventHandler" msprop:Generator_RowDeletedName="HistorySaleRowDeleted" msprop:Generator_RowDeletingName="HistorySaleRowDeleting" msprop:Generator_RowEvArgName="HistorySaleRowChangeEvent" msprop:Generator_TablePropName="HistorySale" msprop:Generator_RowChangedName="HistorySaleRowChanged" msprop:Generator_RowChangingName="HistorySaleRowChanging" msprop:Generator_TableClassName="HistorySaleDataTable" msprop:Generator_RowClassName="HistorySaleRow" msprop:Generator_TableVarName="tableHistorySale" msprop:Generator_UserTableName="HistorySale">
+          <xs:complexType>
+            <xs:sequence>
+              <xs:element name="idPartner" msprop:Generator_ColumnPropNameInRow="idPartner" msprop:Generator_ColumnPropNameInTable="idPartnerColumn" msprop:Generator_ColumnVarNameInTable="columnidPartner" msprop:Generator_UserColumnName="idPartner" type="xs:int" minOccurs="0" />
+              <xs:element name="NameProduct" msprop:Generator_ColumnPropNameInRow="NameProduct" msprop:Generator_ColumnPropNameInTable="NameProductColumn" msprop:Generator_ColumnVarNameInTable="columnNameProduct" msprop:Generator_UserColumnName="NameProduct" minOccurs="0">
+                <xs:simpleType>
+                  <xs:restriction base="xs:string">
+                    <xs:maxLength value="2147483647" />
+                  </xs:restriction>
+                </xs:simpleType>
+              </xs:element>
+              <xs:element name="CountProduct" msprop:Generator_ColumnPropNameInRow="CountProduct" msprop:Generator_ColumnPropNameInTable="CountProductColumn" msprop:Generator_ColumnVarNameInTable="columnCountProduct" msprop:Generator_UserColumnName="CountProduct" type="xs:int" minOccurs="0" />
+              <xs:element name="DateSale" msprop:Generator_ColumnPropNameInRow="DateSale" msprop:Generator_ColumnPropNameInTable="DateSaleColumn" msprop:Generator_ColumnVarNameInTable="columnDateSale" msprop:Generator_UserColumnName="DateSale" type="xs:dateTime" minOccurs="0" />
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
       </xs:choice>
     </xs:complexType>
     <xs:unique name="Constraint1" msdata:PrimaryKey="true">
@@ -1059,14 +1096,15 @@ from TypePartner</CommandText>
   </xs:element>
   <xs:annotation>
     <xs:appinfo>
-      <msdata:Relationship name="FK_Partner_City" msdata:parent="City" msdata:child="Partner" msdata:parentkey="idCity" msdata:childkey="idCity" msprop:Generator_UserParentTable="City" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_City" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_UserRelationName="FK_Partner_City" msprop:Generator_ParentPropName="CityRow" />
-      <msdata:Relationship name="FK_Partner_IndexPartner" msdata:parent="IndexPartner" msdata:child="Partner" msdata:parentkey="idIndex" msdata:childkey="idIndex" msprop:Generator_UserParentTable="IndexPartner" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_IndexPartner" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_UserRelationName="FK_Partner_IndexPartner" msprop:Generator_ParentPropName="IndexPartnerRow" />
-      <msdata:Relationship name="FK_Partner_Region" msdata:parent="Region" msdata:child="Partner" msdata:parentkey="idRegion" msdata:childkey="idRegion" msprop:Generator_UserParentTable="Region" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_Region" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="RegionRow" msprop:Generator_UserRelationName="FK_Partner_Region" />
-      <msdata:Relationship name="FK_Partner_Street" msdata:parent="Street" msdata:child="Partner" msdata:parentkey="idStreet" msdata:childkey="idStreet" msprop:Generator_UserParentTable="Street" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_Street" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="StreetRow" msprop:Generator_UserRelationName="FK_Partner_Street" />
-      <msdata:Relationship name="FK_Partner_TypePartner" msdata:parent="TypePartner" msdata:child="Partner" msdata:parentkey="idTypePartner" msdata:childkey="idTypePartner" msprop:Generator_UserParentTable="TypePartner" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_TypePartner" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="TypePartnerRow" msprop:Generator_UserRelationName="FK_Partner_TypePartner" />
-      <msdata:Relationship name="FK_ProductPartner_Partner" msdata:parent="Partner" msdata:child="ProductPartner" msdata:parentkey="idPartner" msdata:childkey="idPartner" msprop:Generator_UserParentTable="Partner" msprop:Generator_UserChildTable="ProductPartner" msprop:Generator_RelationVarName="relationFK_ProductPartner_Partner" msprop:Generator_ChildPropName="GetProductPartnerRows" msprop:Generator_UserRelationName="FK_ProductPartner_Partner" msprop:Generator_ParentPropName="PartnerRow" />
-      <msdata:Relationship name="FK_ProductPartner_Products" msdata:parent="Products" msdata:child="ProductPartner" msdata:parentkey="idProduct" msdata:childkey="idProduct" msprop:Generator_UserParentTable="Products" msprop:Generator_UserChildTable="ProductPartner" msprop:Generator_RelationVarName="relationFK_ProductPartner_Products" msprop:Generator_ChildPropName="GetProductPartnerRows" msprop:Generator_ParentPropName="ProductsRow" msprop:Generator_UserRelationName="FK_ProductPartner_Products" />
-      <msdata:Relationship name="FK_Products_TypeProduct" msdata:parent="TypeProduct" msdata:child="Products" msdata:parentkey="idTypeProduct" msdata:childkey="idTypeProduct" msprop:Generator_UserParentTable="TypeProduct" msprop:Generator_UserChildTable="Products" msprop:Generator_RelationVarName="relationFK_Products_TypeProduct" msprop:Generator_ChildPropName="GetProductsRows" msprop:Generator_ParentPropName="TypeProductRow" msprop:Generator_UserRelationName="FK_Products_TypeProduct" />
+      <msdata:Relationship name="FK_Partner_City" msdata:parent="City" msdata:child="Partner" msdata:parentkey="idCity" msdata:childkey="idCity" msprop:Generator_UserParentTable="City" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_City" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="CityRow" msprop:Generator_UserRelationName="FK_Partner_City" />
+      <msdata:Relationship name="FK_Partner_IndexPartner" msdata:parent="IndexPartner" msdata:child="Partner" msdata:parentkey="idIndex" msdata:childkey="idIndex" msprop:Generator_UserParentTable="IndexPartner" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_IndexPartner" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_ParentPropName="IndexPartnerRow" msprop:Generator_UserRelationName="FK_Partner_IndexPartner" />
+      <msdata:Relationship name="FK_Partner_Region" msdata:parent="Region" msdata:child="Partner" msdata:parentkey="idRegion" msdata:childkey="idRegion" msprop:Generator_UserParentTable="Region" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_Region" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_UserRelationName="FK_Partner_Region" msprop:Generator_ParentPropName="RegionRow" />
+      <msdata:Relationship name="FK_Partner_Street" msdata:parent="Street" msdata:child="Partner" msdata:parentkey="idStreet" msdata:childkey="idStreet" msprop:Generator_UserParentTable="Street" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_Street" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_UserRelationName="FK_Partner_Street" msprop:Generator_ParentPropName="StreetRow" />
+      <msdata:Relationship name="FK_Partner_TypePartner" msdata:parent="TypePartner" msdata:child="Partner" msdata:parentkey="idTypePartner" msdata:childkey="idTypePartner" msprop:Generator_UserParentTable="TypePartner" msprop:Generator_UserChildTable="Partner" msprop:Generator_RelationVarName="relationFK_Partner_TypePartner" msprop:Generator_ChildPropName="GetPartnerRows" msprop:Generator_UserRelationName="FK_Partner_TypePartner" msprop:Generator_ParentPropName="TypePartnerRow" />
+      <msdata:Relationship name="FK_ProductPartner_Partner" msdata:parent="Partner" msdata:child="ProductPartner" msdata:parentkey="idPartner" msdata:childkey="idPartner" msprop:Generator_UserParentTable="Partner" msprop:Generator_UserChildTable="ProductPartner" msprop:Generator_RelationVarName="relationFK_ProductPartner_Partner" msprop:Generator_ChildPropName="GetProductPartnerRows" msprop:Generator_ParentPropName="PartnerRow" msprop:Generator_UserRelationName="FK_ProductPartner_Partner" />
+      <msdata:Relationship name="FK_ProductPartner_Products" msdata:parent="Products" msdata:child="ProductPartner" msdata:parentkey="idProduct" msdata:childkey="idProduct" msprop:Generator_UserParentTable="Products" msprop:Generator_UserChildTable="ProductPartner" msprop:Generator_RelationVarName="relationFK_ProductPartner_Products" msprop:Generator_ChildPropName="GetProductPartnerRows" msprop:Generator_UserRelationName="FK_ProductPartner_Products" msprop:Generator_ParentPropName="ProductsRow" />
+      <msdata:Relationship name="FK_Products_TypeProduct" msdata:parent="TypeProduct" msdata:child="Products" msdata:parentkey="idTypeProduct" msdata:childkey="idTypeProduct" msprop:Generator_UserParentTable="TypeProduct" msprop:Generator_UserChildTable="Products" msprop:Generator_RelationVarName="relationFK_Products_TypeProduct" msprop:Generator_ChildPropName="GetProductsRows" msprop:Generator_UserRelationName="FK_Products_TypeProduct" msprop:Generator_ParentPropName="TypeProductRow" />
+      <msdata:Relationship name="FK_ProductPartner_Partner1" msdata:parent="Partner" msdata:child="HistorySale" msdata:parentkey="idPartner" msdata:childkey="idPartner" msprop:Generator_UserParentTable="Partner" msprop:Generator_UserChildTable="HistorySale" msprop:Generator_RelationVarName="relationFK_ProductPartner_Partner1" msprop:Generator_ChildPropName="GetHistorySaleRows" msprop:Generator_ParentPropName="PartnerRow" msprop:Generator_UserRelationName="FK_ProductPartner_Partner1" />
     </xs:appinfo>
   </xs:annotation>
 </xs:schema>

+ 38 - 21
СУБД Альфапол/dbAlphapolAGDataSet.xss

@@ -4,23 +4,24 @@
      Changes to this file may cause incorrect behavior and will be lost if
      the code is regenerated.
 </autogenerated>-->
-<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="-10" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
+<DiagramLayout xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" ex:showrelationlabel="False" ViewPortX="132" ViewPortY="-47" xmlns:ex="urn:schemas-microsoft-com:xml-msdatasource-layout-extended" xmlns="urn:schemas-microsoft-com:xml-msdatasource-layout">
   <Shapes>
-    <Shape ID="DesignTable:City" ZOrder="20" X="327" Y="70" Height="115" Width="167" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
-    <Shape ID="DesignTable:IndexPartner" ZOrder="19" X="327" Y="255" Height="115" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
-    <Shape ID="DesignTable:Manager" ZOrder="18" X="1185" Y="70" Height="210" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
-    <Shape ID="DesignTable:Partner" ZOrder="17" X="70" Y="70" Height="305" Width="187" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
-    <Shape ID="DesignTable:ProductPartner" ZOrder="16" X="327" Y="995" Height="172" Width="233" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
-    <Shape ID="DesignTable:Products" ZOrder="15" X="630" Y="995" Height="172" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
-    <Shape ID="DesignTable:Region" ZOrder="14" X="327" Y="440" Height="115" Width="185" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
-    <Shape ID="DesignTable:Street" ZOrder="13" X="327" Y="625" Height="115" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
-    <Shape ID="DesignTable:TypeMaterial" ZOrder="12" X="1451" Y="70" Height="134" Width="221" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
-    <Shape ID="DesignTable:TypePartner" ZOrder="11" X="327" Y="810" Height="115" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
-    <Shape ID="DesignTable:TypeProduct" ZOrder="10" X="896" Y="995" Height="134" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
-    <Shape ID="DesignTable:TypeForFilter" ZOrder="1" X="824" Y="226" Height="96" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
+    <Shape ID="DesignTable:City" ZOrder="22" X="327" Y="70" Height="115" Width="167" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
+    <Shape ID="DesignTable:IndexPartner" ZOrder="21" X="327" Y="255" Height="115" Width="220" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
+    <Shape ID="DesignTable:Manager" ZOrder="20" X="1018" Y="3" Height="210" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="159" />
+    <Shape ID="DesignTable:Partner" ZOrder="19" X="70" Y="70" Height="305" Width="187" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="254" />
+    <Shape ID="DesignTable:ProductPartner" ZOrder="18" X="327" Y="995" Height="172" Width="233" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
+    <Shape ID="DesignTable:Products" ZOrder="17" X="630" Y="995" Height="172" Width="196" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="121" />
+    <Shape ID="DesignTable:Region" ZOrder="16" X="327" Y="440" Height="115" Width="185" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
+    <Shape ID="DesignTable:Street" ZOrder="15" X="327" Y="625" Height="115" Width="179" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
+    <Shape ID="DesignTable:TypeMaterial" ZOrder="14" X="1451" Y="70" Height="134" Width="221" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
+    <Shape ID="DesignTable:TypePartner" ZOrder="13" X="327" Y="810" Height="115" Width="216" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="64" />
+    <Shape ID="DesignTable:TypeProduct" ZOrder="12" X="896" Y="995" Height="134" Width="219" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="83" />
+    <Shape ID="DesignTable:TypeForFilter" ZOrder="3" X="824" Y="226" Height="96" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="46" />
+    <Shape ID="DesignTable:HistorySale" ZOrder="2" X="733" Y="395" Height="153" Width="210" AdapterExpanded="true" DataTableExpanded="true" OldAdapterHeight="0" OldDataTableHeight="0" SplitterPosition="102" />
   </Shapes>
   <Connectors>
-    <Connector ID="DesignRelation:FK_Partner_City" ZOrder="9" LineWidth="11">
+    <Connector ID="DesignRelation:FK_Partner_City" ZOrder="11" LineWidth="11">
       <RoutePoints>
         <Point>
           <X>327</X>
@@ -32,7 +33,7 @@
         </Point>
       </RoutePoints>
     </Connector>
-    <Connector ID="DesignRelation:FK_Partner_IndexPartner" ZOrder="8" LineWidth="11">
+    <Connector ID="DesignRelation:FK_Partner_IndexPartner" ZOrder="10" LineWidth="11">
       <RoutePoints>
         <Point>
           <X>327</X>
@@ -44,7 +45,7 @@
         </Point>
       </RoutePoints>
     </Connector>
-    <Connector ID="DesignRelation:FK_Partner_Region" ZOrder="7" LineWidth="11">
+    <Connector ID="DesignRelation:FK_Partner_Region" ZOrder="9" LineWidth="11">
       <RoutePoints>
         <Point>
           <X>327</X>
@@ -60,7 +61,7 @@
         </Point>
       </RoutePoints>
     </Connector>
-    <Connector ID="DesignRelation:FK_Partner_Street" ZOrder="6" LineWidth="11">
+    <Connector ID="DesignRelation:FK_Partner_Street" ZOrder="8" LineWidth="11">
       <RoutePoints>
         <Point>
           <X>327</X>
@@ -76,7 +77,7 @@
         </Point>
       </RoutePoints>
     </Connector>
-    <Connector ID="DesignRelation:FK_Partner_TypePartner" ZOrder="5" LineWidth="11">
+    <Connector ID="DesignRelation:FK_Partner_TypePartner" ZOrder="7" LineWidth="11">
       <RoutePoints>
         <Point>
           <X>327</X>
@@ -92,7 +93,7 @@
         </Point>
       </RoutePoints>
     </Connector>
-    <Connector ID="DesignRelation:FK_ProductPartner_Partner" ZOrder="4" LineWidth="11">
+    <Connector ID="DesignRelation:FK_ProductPartner_Partner" ZOrder="6" LineWidth="11">
       <RoutePoints>
         <Point>
           <X>216</X>
@@ -108,7 +109,7 @@
         </Point>
       </RoutePoints>
     </Connector>
-    <Connector ID="DesignRelation:FK_ProductPartner_Products" ZOrder="3" LineWidth="11">
+    <Connector ID="DesignRelation:FK_ProductPartner_Products" ZOrder="5" LineWidth="11">
       <RoutePoints>
         <Point>
           <X>630</X>
@@ -120,7 +121,7 @@
         </Point>
       </RoutePoints>
     </Connector>
-    <Connector ID="DesignRelation:FK_Products_TypeProduct" ZOrder="2" LineWidth="11">
+    <Connector ID="DesignRelation:FK_Products_TypeProduct" ZOrder="4" LineWidth="11">
       <RoutePoints>
         <Point>
           <X>896</X>
@@ -132,5 +133,21 @@
         </Point>
       </RoutePoints>
     </Connector>
+    <Connector ID="DesignRelation:FK_ProductPartner_Partner1" ZOrder="1" LineWidth="11">
+      <RoutePoints>
+        <Point>
+          <X>208</X>
+          <Y>375</Y>
+        </Point>
+        <Point>
+          <X>208</X>
+          <Y>412</Y>
+        </Point>
+        <Point>
+          <X>733</X>
+          <Y>412</Y>
+        </Point>
+      </RoutePoints>
+    </Connector>
   </Connectors>
 </DiagramLayout>

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

@@ -66,12 +66,24 @@
     <Compile Include="FormAutorization.Designer.cs">
       <DependentUpon>FormAutorization.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormHistory.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormHistory.Designer.cs">
+      <DependentUpon>FormHistory.cs</DependentUpon>
+    </Compile>
     <Compile Include="FormManager.cs">
       <SubType>Form</SubType>
     </Compile>
     <Compile Include="FormManager.Designer.cs">
       <DependentUpon>FormManager.cs</DependentUpon>
     </Compile>
+    <Compile Include="FormProfile.cs">
+      <SubType>Form</SubType>
+    </Compile>
+    <Compile Include="FormProfile.Designer.cs">
+      <DependentUpon>FormProfile.cs</DependentUpon>
+    </Compile>
     <Compile Include="Program.cs" />
     <Compile Include="Properties\AssemblyInfo.cs" />
     <EmbeddedResource Include="FormAddEdit.resx">
@@ -80,9 +92,15 @@
     <EmbeddedResource Include="FormAutorization.resx">
       <DependentUpon>FormAutorization.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormHistory.resx">
+      <DependentUpon>FormHistory.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="FormManager.resx">
       <DependentUpon>FormManager.cs</DependentUpon>
     </EmbeddedResource>
+    <EmbeddedResource Include="FormProfile.resx">
+      <DependentUpon>FormProfile.cs</DependentUpon>
+    </EmbeddedResource>
     <EmbeddedResource Include="Properties\Resources.resx">
       <Generator>ResXFileCodeGenerator</Generator>
       <LastGenOutput>Resources.Designer.cs</LastGenOutput>