diff --git a/DepartmentPortal/Common/ToolsDesktop/MainControls/GenericControlEntityList.cs b/DepartmentPortal/Common/ToolsDesktop/MainControls/GenericControlEntityList.cs index cc2d15d..575255f 100644 --- a/DepartmentPortal/Common/ToolsDesktop/MainControls/GenericControlEntityList.cs +++ b/DepartmentPortal/Common/ToolsDesktop/MainControls/GenericControlEntityList.cs @@ -265,6 +265,7 @@ namespace ToolsDesktop.Controls // Открытие через родительский элемент if (_openMode == ControlOpenMode.Child) { + dataGridViewList.MultiSelect = true; panelHeader.Visible = false; toolStripButtonClose.Visible = false; toolStripSeparator6.Visible = false; diff --git a/DepartmentPortal/Common/ToolsDesktop/MainControls/MainControlViewEntityList.Designer.cs b/DepartmentPortal/Common/ToolsDesktop/MainControls/MainControlViewEntityList.Designer.cs index f743d9c..f02e57c 100644 --- a/DepartmentPortal/Common/ToolsDesktop/MainControls/MainControlViewEntityList.Designer.cs +++ b/DepartmentPortal/Common/ToolsDesktop/MainControls/MainControlViewEntityList.Designer.cs @@ -3,10 +3,6 @@ namespace ToolsDesktop.Controls { partial class MainControlViewEntityList { - /// - /// Обязательная переменная конструктора. - /// - protected System.ComponentModel.IContainer components = null; /// /// Освободить все используемые ресурсы. @@ -29,360 +25,362 @@ namespace ToolsDesktop.Controls /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); - this.toolStripMenu = new System.Windows.Forms.ToolStrip(); - this.toolStripButtonAdd = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripButtonUpd = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripButtonDel = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripButtonSearch = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripButtonRef = new System.Windows.Forms.ToolStripButton(); - this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripSplitButtonActions = new System.Windows.Forms.ToolStripSplitButton(); - this.toolStripButtonClose = new System.Windows.Forms.ToolStripButton(); - this.labelTitle = new System.Windows.Forms.Label(); - this.panelHeader = new System.Windows.Forms.Panel(); - this.panelSearch = new System.Windows.Forms.Panel(); - this.panelSearchControls = new System.Windows.Forms.Panel(); - this.panelSearchActions = new System.Windows.Forms.Panel(); - this.buttonSearch = new System.Windows.Forms.Button(); - this.buttonCancelSearch = new System.Windows.Forms.Button(); - this.toolStripFooter = new System.Windows.Forms.ToolStrip(); - this.toolStripButtonPrev = new System.Windows.Forms.ToolStripButton(); - this.toolStripLabelPage = new System.Windows.Forms.ToolStripLabel(); - this.toolStripTextBoxPage = new System.Windows.Forms.ToolStripTextBox(); - this.toolStripLabelCountPages = new System.Windows.Forms.ToolStripLabel(); - this.toolStripLabelCountRecords = new System.Windows.Forms.ToolStripLabel(); - this.toolStripTextBoxCountRecords = new System.Windows.Forms.ToolStripTextBox(); - this.toolStripButtonNext = new System.Windows.Forms.ToolStripButton(); - this.toolStripLabelPageName = new System.Windows.Forms.ToolStripLabel(); - this.toolStripComboBoxPageNames = new System.Windows.Forms.ToolStripComboBox(); - this.dataGridViewList = new System.Windows.Forms.DataGridView(); - this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); - this.toolStripButtonSelect = new System.Windows.Forms.ToolStripButton(); - this.contextMenuStripDataGrid = new System.Windows.Forms.ContextMenuStrip(this.components); - this.toolStripMenu.SuspendLayout(); - this.panelHeader.SuspendLayout(); - this.panelSearch.SuspendLayout(); - this.panelSearchActions.SuspendLayout(); - this.toolStripFooter.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dataGridViewList)).BeginInit(); - this.SuspendLayout(); - // - // toolStripMenu - // - this.toolStripMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripButtonAdd, - this.toolStripSeparator1, - this.toolStripButtonUpd, - this.toolStripSeparator2, - this.toolStripButtonDel, - this.toolStripSeparator3, - this.toolStripButtonSearch, - this.toolStripSeparator4, - this.toolStripButtonRef, - this.toolStripSeparator5, - this.toolStripSplitButtonActions, - this.toolStripSeparator6, - this.toolStripButtonSelect, - this.toolStripButtonClose}); - this.toolStripMenu.Location = new System.Drawing.Point(0, 30); - this.toolStripMenu.Name = "toolStripMenu"; - this.toolStripMenu.Size = new System.Drawing.Size(1000, 25); - this.toolStripMenu.TabIndex = 0; - this.toolStripMenu.Text = "Главное меню"; - // - // toolStripButtonAdd - // - this.toolStripButtonAdd.Image = global::ToolsDesktop.Properties.Resources.Add; - this.toolStripButtonAdd.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonAdd.Name = "toolStripButtonAdd"; - this.toolStripButtonAdd.Size = new System.Drawing.Size(79, 22); - this.toolStripButtonAdd.Text = "Добавить"; - // - // toolStripSeparator1 - // - this.toolStripSeparator1.Name = "toolStripSeparator1"; - this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); - // - // toolStripButtonUpd - // - this.toolStripButtonUpd.Image = global::ToolsDesktop.Properties.Resources.Upd; - this.toolStripButtonUpd.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonUpd.Name = "toolStripButtonUpd"; - this.toolStripButtonUpd.Size = new System.Drawing.Size(81, 22); - this.toolStripButtonUpd.Text = "Изменить"; - // - // toolStripSeparator2 - // - this.toolStripSeparator2.Name = "toolStripSeparator2"; - this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); - // - // toolStripButtonDel - // - this.toolStripButtonDel.Image = global::ToolsDesktop.Properties.Resources.Del; - this.toolStripButtonDel.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonDel.Name = "toolStripButtonDel"; - this.toolStripButtonDel.Size = new System.Drawing.Size(71, 22); - this.toolStripButtonDel.Text = "Удалить"; - // - // toolStripSeparator3 - // - this.toolStripSeparator3.Name = "toolStripSeparator3"; - this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); - // - // toolStripButtonSearch - // - this.toolStripButtonSearch.Image = global::ToolsDesktop.Properties.Resources.Search; - this.toolStripButtonSearch.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonSearch.Name = "toolStripButtonSearch"; - this.toolStripButtonSearch.Size = new System.Drawing.Size(62, 22); - this.toolStripButtonSearch.Text = "Поиск"; - // - // toolStripSeparator4 - // - this.toolStripSeparator4.Name = "toolStripSeparator4"; - this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25); - // - // toolStripButtonRef - // - this.toolStripButtonRef.Image = global::ToolsDesktop.Properties.Resources.Ref; - this.toolStripButtonRef.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonRef.Name = "toolStripButtonRef"; - this.toolStripButtonRef.Size = new System.Drawing.Size(81, 22); - this.toolStripButtonRef.Text = "Обновить"; - // - // toolStripSeparator5 - // - this.toolStripSeparator5.Name = "toolStripSeparator5"; - this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25); - // - // toolStripSplitButtonActions - // - this.toolStripSplitButtonActions.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.toolStripSplitButtonActions.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripSplitButtonActions.Name = "toolStripSplitButtonActions"; - this.toolStripSplitButtonActions.Size = new System.Drawing.Size(74, 22); - this.toolStripSplitButtonActions.Text = "Действия"; - // - // toolStripButtonClose - // - this.toolStripButtonClose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; - this.toolStripButtonClose.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.toolStripButtonClose.Image = global::ToolsDesktop.Properties.Resources.Close; - this.toolStripButtonClose.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonClose.Name = "toolStripButtonClose"; - this.toolStripButtonClose.Size = new System.Drawing.Size(23, 22); - this.toolStripButtonClose.Text = "Закрть"; - // - // labelTitle - // - this.labelTitle.Dock = System.Windows.Forms.DockStyle.Fill; - this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); - this.labelTitle.Location = new System.Drawing.Point(0, 0); - this.labelTitle.Name = "labelTitle"; - this.labelTitle.Size = new System.Drawing.Size(1000, 30); - this.labelTitle.TabIndex = 0; - this.labelTitle.Text = "Сущность"; - this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // panelHeader - // - this.panelHeader.Controls.Add(this.labelTitle); - this.panelHeader.Dock = System.Windows.Forms.DockStyle.Top; - this.panelHeader.Location = new System.Drawing.Point(0, 0); - this.panelHeader.Name = "panelHeader"; - this.panelHeader.Size = new System.Drawing.Size(1000, 30); - this.panelHeader.TabIndex = 1; - // - // panelSearch - // - this.panelSearch.Controls.Add(this.panelSearchControls); - this.panelSearch.Controls.Add(this.panelSearchActions); - this.panelSearch.Dock = System.Windows.Forms.DockStyle.Top; - this.panelSearch.Location = new System.Drawing.Point(0, 55); - this.panelSearch.Name = "panelSearch"; - this.panelSearch.Size = new System.Drawing.Size(1000, 87); - this.panelSearch.TabIndex = 1; - this.panelSearch.Visible = false; - // - // panelSearchControls - // - this.panelSearchControls.Dock = System.Windows.Forms.DockStyle.Fill; - this.panelSearchControls.Location = new System.Drawing.Point(118, 0); - this.panelSearchControls.Name = "panelSearchControls"; - this.panelSearchControls.Size = new System.Drawing.Size(882, 87); - this.panelSearchControls.TabIndex = 1; - // - // panelSearchActions - // - this.panelSearchActions.Controls.Add(this.buttonSearch); - this.panelSearchActions.Controls.Add(this.buttonCancelSearch); - this.panelSearchActions.Dock = System.Windows.Forms.DockStyle.Left; - this.panelSearchActions.Location = new System.Drawing.Point(0, 0); - this.panelSearchActions.Name = "panelSearchActions"; - this.panelSearchActions.Size = new System.Drawing.Size(118, 87); - this.panelSearchActions.TabIndex = 0; - // - // buttonSearch - // - this.buttonSearch.Location = new System.Drawing.Point(13, 14); - this.buttonSearch.Name = "buttonSearch"; - this.buttonSearch.Size = new System.Drawing.Size(89, 24); - this.buttonSearch.TabIndex = 0; - this.buttonSearch.Text = "Запуск"; - this.buttonSearch.UseVisualStyleBackColor = true; - // - // buttonCancelSearch - // - this.buttonCancelSearch.Location = new System.Drawing.Point(13, 48); - this.buttonCancelSearch.Name = "buttonCancelSearch"; - this.buttonCancelSearch.Size = new System.Drawing.Size(89, 24); - this.buttonCancelSearch.TabIndex = 1; - this.buttonCancelSearch.Text = "Скрыть"; - this.buttonCancelSearch.UseVisualStyleBackColor = true; - // - // toolStripFooter - // - this.toolStripFooter.Dock = System.Windows.Forms.DockStyle.Bottom; - this.toolStripFooter.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { - this.toolStripButtonPrev, - this.toolStripLabelPage, - this.toolStripTextBoxPage, - this.toolStripLabelCountPages, - this.toolStripLabelCountRecords, - this.toolStripTextBoxCountRecords, - this.toolStripButtonNext, - this.toolStripLabelPageName, - this.toolStripComboBoxPageNames}); - this.toolStripFooter.Location = new System.Drawing.Point(0, 775); - this.toolStripFooter.Name = "toolStripFooter"; - this.toolStripFooter.Size = new System.Drawing.Size(1000, 25); - this.toolStripFooter.TabIndex = 2; - this.toolStripFooter.Text = "Пагинация"; - // - // toolStripButtonPrev - // - this.toolStripButtonPrev.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.toolStripButtonPrev.Image = global::ToolsDesktop.Properties.Resources.Left; - this.toolStripButtonPrev.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonPrev.Name = "toolStripButtonPrev"; - this.toolStripButtonPrev.Size = new System.Drawing.Size(23, 22); - this.toolStripButtonPrev.Text = "Назад"; - // - // toolStripLabelPage - // - this.toolStripLabelPage.Name = "toolStripLabelPage"; - this.toolStripLabelPage.Size = new System.Drawing.Size(60, 22); - this.toolStripLabelPage.Text = "Страница"; - // - // toolStripTextBoxPage - // - this.toolStripTextBoxPage.Name = "toolStripTextBoxPage"; - this.toolStripTextBoxPage.Size = new System.Drawing.Size(30, 25); - this.toolStripTextBoxPage.Text = "1"; - // - // toolStripLabelCountPages - // - this.toolStripLabelCountPages.Name = "toolStripLabelCountPages"; - this.toolStripLabelCountPages.Size = new System.Drawing.Size(28, 22); - this.toolStripLabelCountPages.Text = "из 0"; - // - // toolStripLabelCountRecords - // - this.toolStripLabelCountRecords.Name = "toolStripLabelCountRecords"; - this.toolStripLabelCountRecords.Size = new System.Drawing.Size(21, 22); - this.toolStripLabelCountRecords.Text = "по"; - // - // toolStripTextBoxCountRecords - // - this.toolStripTextBoxCountRecords.Name = "toolStripTextBoxCountRecords"; - this.toolStripTextBoxCountRecords.Size = new System.Drawing.Size(30, 25); - this.toolStripTextBoxCountRecords.Text = "1"; - // - // toolStripButtonNext - // - this.toolStripButtonNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; - this.toolStripButtonNext.Image = global::ToolsDesktop.Properties.Resources.Right; - this.toolStripButtonNext.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonNext.Name = "toolStripButtonNext"; - this.toolStripButtonNext.Size = new System.Drawing.Size(23, 22); - this.toolStripButtonNext.Text = "Вперед"; - // - // toolStripLabelPageName - // - this.toolStripLabelPageName.Name = "toolStripLabelPageName"; - this.toolStripLabelPageName.Size = new System.Drawing.Size(62, 22); - this.toolStripLabelPageName.Text = "Параметр"; - // - // toolStripComboBoxPageNames - // - this.toolStripComboBoxPageNames.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.toolStripComboBoxPageNames.Name = "toolStripComboBoxPageNames"; - this.toolStripComboBoxPageNames.Size = new System.Drawing.Size(200, 25); - // - // dataGridViewList - // - this.dataGridViewList.AllowUserToAddRows = false; - this.dataGridViewList.AllowUserToDeleteRows = false; - this.dataGridViewList.AllowUserToResizeRows = false; - this.dataGridViewList.BackgroundColor = System.Drawing.SystemColors.ControlLightLight; - this.dataGridViewList.ContextMenuStrip = this.contextMenuStripDataGrid; - this.dataGridViewList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.dataGridViewList.Dock = System.Windows.Forms.DockStyle.Fill; - this.dataGridViewList.Location = new System.Drawing.Point(0, 142); - this.dataGridViewList.Name = "dataGridViewList"; - this.dataGridViewList.ReadOnly = true; - this.dataGridViewList.RowHeadersVisible = false; - this.dataGridViewList.RowTemplate.Height = 25; - this.dataGridViewList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; - this.dataGridViewList.Size = new System.Drawing.Size(1000, 633); - this.dataGridViewList.TabIndex = 3; - // - // toolStripSeparator6 - // - this.toolStripSeparator6.Name = "toolStripSeparator6"; - this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25); - this.toolStripSeparator6.Visible = false; - // - // toolStripButtonSelect - // - this.toolStripButtonSelect.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; - this.toolStripButtonSelect.ImageTransparentColor = System.Drawing.Color.Magenta; - this.toolStripButtonSelect.Name = "toolStripButtonSelect"; - this.toolStripButtonSelect.Size = new System.Drawing.Size(58, 22); - this.toolStripButtonSelect.Text = "Выбрать"; - this.toolStripButtonSelect.Visible = false; - // - // contextMenuStripDataGrid - // - this.contextMenuStripDataGrid.Name = "contextMenuStripDataGrid"; - this.contextMenuStripDataGrid.Size = new System.Drawing.Size(61, 4); - // - // ControlViewEntityList - // - this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.Controls.Add(this.dataGridViewList); - this.Controls.Add(this.toolStripFooter); - this.Controls.Add(this.panelSearch); - this.Controls.Add(this.toolStripMenu); - this.Controls.Add(this.panelHeader); - this.Name = "ControlViewEntityList"; - this.Size = new System.Drawing.Size(1000, 800); - this.toolStripMenu.ResumeLayout(false); - this.toolStripMenu.PerformLayout(); - this.panelHeader.ResumeLayout(false); - this.panelSearch.ResumeLayout(false); - this.panelSearchActions.ResumeLayout(false); - this.toolStripFooter.ResumeLayout(false); - this.toolStripFooter.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.dataGridViewList)).EndInit(); - this.ResumeLayout(false); - this.PerformLayout(); + this.components = new System.ComponentModel.Container(); + this.toolStripMenu = new System.Windows.Forms.ToolStrip(); + this.toolStripButtonAdd = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator1 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButtonUpd = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator2 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButtonDel = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator3 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButtonSearch = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator4 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButtonRef = new System.Windows.Forms.ToolStripButton(); + this.toolStripSeparator5 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripSplitButtonActions = new System.Windows.Forms.ToolStripSplitButton(); + this.toolStripSeparator6 = new System.Windows.Forms.ToolStripSeparator(); + this.toolStripButtonSelect = new System.Windows.Forms.ToolStripButton(); + this.toolStripButtonClose = new System.Windows.Forms.ToolStripButton(); + this.labelTitle = new System.Windows.Forms.Label(); + this.panelHeader = new System.Windows.Forms.Panel(); + this.panelSearch = new System.Windows.Forms.Panel(); + this.panelSearchControls = new System.Windows.Forms.Panel(); + this.panelSearchActions = new System.Windows.Forms.Panel(); + this.buttonSearch = new System.Windows.Forms.Button(); + this.buttonCancelSearch = new System.Windows.Forms.Button(); + this.toolStripFooter = new System.Windows.Forms.ToolStrip(); + this.toolStripButtonPrev = new System.Windows.Forms.ToolStripButton(); + this.toolStripLabelPage = new System.Windows.Forms.ToolStripLabel(); + this.toolStripTextBoxPage = new System.Windows.Forms.ToolStripTextBox(); + this.toolStripLabelCountPages = new System.Windows.Forms.ToolStripLabel(); + this.toolStripLabelCountRecords = new System.Windows.Forms.ToolStripLabel(); + this.toolStripTextBoxCountRecords = new System.Windows.Forms.ToolStripTextBox(); + this.toolStripButtonNext = new System.Windows.Forms.ToolStripButton(); + this.toolStripLabelPageName = new System.Windows.Forms.ToolStripLabel(); + this.toolStripComboBoxPageNames = new System.Windows.Forms.ToolStripComboBox(); + this.dataGridViewList = new System.Windows.Forms.DataGridView(); + this.contextMenuStripDataGrid = new System.Windows.Forms.ContextMenuStrip(this.components); + this.toolStripMenu.SuspendLayout(); + this.panelHeader.SuspendLayout(); + this.panelSearch.SuspendLayout(); + this.panelSearchActions.SuspendLayout(); + this.toolStripFooter.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewList)).BeginInit(); + this.SuspendLayout(); + // + // toolStripMenu + // + this.toolStripMenu.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripButtonAdd, + this.toolStripSeparator1, + this.toolStripButtonUpd, + this.toolStripSeparator2, + this.toolStripButtonDel, + this.toolStripSeparator3, + this.toolStripButtonSearch, + this.toolStripSeparator4, + this.toolStripButtonRef, + this.toolStripSeparator5, + this.toolStripSplitButtonActions, + this.toolStripSeparator6, + this.toolStripButtonSelect, + this.toolStripButtonClose}); + this.toolStripMenu.Location = new System.Drawing.Point(0, 30); + this.toolStripMenu.Name = "toolStripMenu"; + this.toolStripMenu.Size = new System.Drawing.Size(1000, 25); + this.toolStripMenu.TabIndex = 0; + this.toolStripMenu.Text = "Главное меню"; + // + // toolStripButtonAdd + // + this.toolStripButtonAdd.Image = global::ToolsDesktop.Properties.Resources.Add; + this.toolStripButtonAdd.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonAdd.Name = "toolStripButtonAdd"; + this.toolStripButtonAdd.Size = new System.Drawing.Size(79, 22); + this.toolStripButtonAdd.Text = "Добавить"; + // + // toolStripSeparator1 + // + this.toolStripSeparator1.Name = "toolStripSeparator1"; + this.toolStripSeparator1.Size = new System.Drawing.Size(6, 25); + // + // toolStripButtonUpd + // + this.toolStripButtonUpd.Image = global::ToolsDesktop.Properties.Resources.Upd; + this.toolStripButtonUpd.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonUpd.Name = "toolStripButtonUpd"; + this.toolStripButtonUpd.Size = new System.Drawing.Size(81, 22); + this.toolStripButtonUpd.Text = "Изменить"; + // + // toolStripSeparator2 + // + this.toolStripSeparator2.Name = "toolStripSeparator2"; + this.toolStripSeparator2.Size = new System.Drawing.Size(6, 25); + // + // toolStripButtonDel + // + this.toolStripButtonDel.Image = global::ToolsDesktop.Properties.Resources.Del; + this.toolStripButtonDel.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonDel.Name = "toolStripButtonDel"; + this.toolStripButtonDel.Size = new System.Drawing.Size(71, 22); + this.toolStripButtonDel.Text = "Удалить"; + // + // toolStripSeparator3 + // + this.toolStripSeparator3.Name = "toolStripSeparator3"; + this.toolStripSeparator3.Size = new System.Drawing.Size(6, 25); + // + // toolStripButtonSearch + // + this.toolStripButtonSearch.Image = global::ToolsDesktop.Properties.Resources.Search; + this.toolStripButtonSearch.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonSearch.Name = "toolStripButtonSearch"; + this.toolStripButtonSearch.Size = new System.Drawing.Size(62, 22); + this.toolStripButtonSearch.Text = "Поиск"; + // + // toolStripSeparator4 + // + this.toolStripSeparator4.Name = "toolStripSeparator4"; + this.toolStripSeparator4.Size = new System.Drawing.Size(6, 25); + // + // toolStripButtonRef + // + this.toolStripButtonRef.Image = global::ToolsDesktop.Properties.Resources.Ref; + this.toolStripButtonRef.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonRef.Name = "toolStripButtonRef"; + this.toolStripButtonRef.Size = new System.Drawing.Size(81, 22); + this.toolStripButtonRef.Text = "Обновить"; + // + // toolStripSeparator5 + // + this.toolStripSeparator5.Name = "toolStripSeparator5"; + this.toolStripSeparator5.Size = new System.Drawing.Size(6, 25); + // + // toolStripSplitButtonActions + // + this.toolStripSplitButtonActions.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.toolStripSplitButtonActions.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripSplitButtonActions.Name = "toolStripSplitButtonActions"; + this.toolStripSplitButtonActions.Size = new System.Drawing.Size(74, 22); + this.toolStripSplitButtonActions.Text = "Действия"; + // + // toolStripSeparator6 + // + this.toolStripSeparator6.Name = "toolStripSeparator6"; + this.toolStripSeparator6.Size = new System.Drawing.Size(6, 25); + this.toolStripSeparator6.Visible = false; + // + // toolStripButtonSelect + // + this.toolStripButtonSelect.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Text; + this.toolStripButtonSelect.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonSelect.Name = "toolStripButtonSelect"; + this.toolStripButtonSelect.Size = new System.Drawing.Size(58, 22); + this.toolStripButtonSelect.Text = "Выбрать"; + this.toolStripButtonSelect.Visible = false; + // + // toolStripButtonClose + // + this.toolStripButtonClose.Alignment = System.Windows.Forms.ToolStripItemAlignment.Right; + this.toolStripButtonClose.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButtonClose.Image = global::ToolsDesktop.Properties.Resources.Close; + this.toolStripButtonClose.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonClose.Name = "toolStripButtonClose"; + this.toolStripButtonClose.Size = new System.Drawing.Size(23, 22); + this.toolStripButtonClose.Text = "Закрть"; + // + // labelTitle + // + this.labelTitle.Dock = System.Windows.Forms.DockStyle.Fill; + this.labelTitle.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point); + this.labelTitle.Location = new System.Drawing.Point(0, 0); + this.labelTitle.Name = "labelTitle"; + this.labelTitle.Size = new System.Drawing.Size(1000, 30); + this.labelTitle.TabIndex = 0; + this.labelTitle.Text = "Сущность"; + this.labelTitle.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // panelHeader + // + this.panelHeader.Controls.Add(this.labelTitle); + this.panelHeader.Dock = System.Windows.Forms.DockStyle.Top; + this.panelHeader.Location = new System.Drawing.Point(0, 0); + this.panelHeader.Name = "panelHeader"; + this.panelHeader.Size = new System.Drawing.Size(1000, 30); + this.panelHeader.TabIndex = 1; + // + // panelSearch + // + this.panelSearch.Controls.Add(this.panelSearchControls); + this.panelSearch.Controls.Add(this.panelSearchActions); + this.panelSearch.Dock = System.Windows.Forms.DockStyle.Top; + this.panelSearch.Location = new System.Drawing.Point(0, 55); + this.panelSearch.Name = "panelSearch"; + this.panelSearch.Size = new System.Drawing.Size(1000, 87); + this.panelSearch.TabIndex = 1; + this.panelSearch.Visible = false; + // + // panelSearchControls + // + this.panelSearchControls.Dock = System.Windows.Forms.DockStyle.Fill; + this.panelSearchControls.Location = new System.Drawing.Point(118, 0); + this.panelSearchControls.Name = "panelSearchControls"; + this.panelSearchControls.Size = new System.Drawing.Size(882, 87); + this.panelSearchControls.TabIndex = 1; + // + // panelSearchActions + // + this.panelSearchActions.Controls.Add(this.buttonSearch); + this.panelSearchActions.Controls.Add(this.buttonCancelSearch); + this.panelSearchActions.Dock = System.Windows.Forms.DockStyle.Left; + this.panelSearchActions.Location = new System.Drawing.Point(0, 0); + this.panelSearchActions.Name = "panelSearchActions"; + this.panelSearchActions.Size = new System.Drawing.Size(118, 87); + this.panelSearchActions.TabIndex = 0; + // + // buttonSearch + // + this.buttonSearch.Location = new System.Drawing.Point(13, 14); + this.buttonSearch.Name = "buttonSearch"; + this.buttonSearch.Size = new System.Drawing.Size(89, 24); + this.buttonSearch.TabIndex = 0; + this.buttonSearch.Text = "Запуск"; + this.buttonSearch.UseVisualStyleBackColor = true; + // + // buttonCancelSearch + // + this.buttonCancelSearch.Location = new System.Drawing.Point(13, 48); + this.buttonCancelSearch.Name = "buttonCancelSearch"; + this.buttonCancelSearch.Size = new System.Drawing.Size(89, 24); + this.buttonCancelSearch.TabIndex = 1; + this.buttonCancelSearch.Text = "Скрыть"; + this.buttonCancelSearch.UseVisualStyleBackColor = true; + // + // toolStripFooter + // + this.toolStripFooter.Dock = System.Windows.Forms.DockStyle.Bottom; + this.toolStripFooter.Items.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.toolStripButtonPrev, + this.toolStripLabelPage, + this.toolStripTextBoxPage, + this.toolStripLabelCountPages, + this.toolStripLabelCountRecords, + this.toolStripTextBoxCountRecords, + this.toolStripButtonNext, + this.toolStripLabelPageName, + this.toolStripComboBoxPageNames}); + this.toolStripFooter.Location = new System.Drawing.Point(0, 775); + this.toolStripFooter.Name = "toolStripFooter"; + this.toolStripFooter.Size = new System.Drawing.Size(1000, 25); + this.toolStripFooter.TabIndex = 2; + this.toolStripFooter.Text = "Пагинация"; + // + // toolStripButtonPrev + // + this.toolStripButtonPrev.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButtonPrev.Image = global::ToolsDesktop.Properties.Resources.Left; + this.toolStripButtonPrev.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonPrev.Name = "toolStripButtonPrev"; + this.toolStripButtonPrev.Size = new System.Drawing.Size(23, 22); + this.toolStripButtonPrev.Text = "Назад"; + // + // toolStripLabelPage + // + this.toolStripLabelPage.Name = "toolStripLabelPage"; + this.toolStripLabelPage.Size = new System.Drawing.Size(60, 22); + this.toolStripLabelPage.Text = "Страница"; + // + // toolStripTextBoxPage + // + this.toolStripTextBoxPage.Name = "toolStripTextBoxPage"; + this.toolStripTextBoxPage.Size = new System.Drawing.Size(30, 25); + this.toolStripTextBoxPage.Text = "1"; + // + // toolStripLabelCountPages + // + this.toolStripLabelCountPages.Name = "toolStripLabelCountPages"; + this.toolStripLabelCountPages.Size = new System.Drawing.Size(28, 22); + this.toolStripLabelCountPages.Text = "из 0"; + // + // toolStripLabelCountRecords + // + this.toolStripLabelCountRecords.Name = "toolStripLabelCountRecords"; + this.toolStripLabelCountRecords.Size = new System.Drawing.Size(21, 22); + this.toolStripLabelCountRecords.Text = "по"; + // + // toolStripTextBoxCountRecords + // + this.toolStripTextBoxCountRecords.Name = "toolStripTextBoxCountRecords"; + this.toolStripTextBoxCountRecords.Size = new System.Drawing.Size(30, 25); + this.toolStripTextBoxCountRecords.Text = "1"; + // + // toolStripButtonNext + // + this.toolStripButtonNext.DisplayStyle = System.Windows.Forms.ToolStripItemDisplayStyle.Image; + this.toolStripButtonNext.Image = global::ToolsDesktop.Properties.Resources.Right; + this.toolStripButtonNext.ImageTransparentColor = System.Drawing.Color.Magenta; + this.toolStripButtonNext.Name = "toolStripButtonNext"; + this.toolStripButtonNext.Size = new System.Drawing.Size(23, 22); + this.toolStripButtonNext.Text = "Вперед"; + // + // toolStripLabelPageName + // + this.toolStripLabelPageName.Name = "toolStripLabelPageName"; + this.toolStripLabelPageName.Size = new System.Drawing.Size(62, 22); + this.toolStripLabelPageName.Text = "Параметр"; + // + // toolStripComboBoxPageNames + // + this.toolStripComboBoxPageNames.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.toolStripComboBoxPageNames.Name = "toolStripComboBoxPageNames"; + this.toolStripComboBoxPageNames.Size = new System.Drawing.Size(200, 25); + // + // dataGridViewList + // + this.dataGridViewList.AllowUserToAddRows = false; + this.dataGridViewList.AllowUserToDeleteRows = false; + this.dataGridViewList.AllowUserToResizeColumns = false; + this.dataGridViewList.AllowUserToResizeRows = false; + this.dataGridViewList.BackgroundColor = System.Drawing.SystemColors.ControlLightLight; + this.dataGridViewList.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.dataGridViewList.ContextMenuStrip = this.contextMenuStripDataGrid; + this.dataGridViewList.Dock = System.Windows.Forms.DockStyle.Fill; + this.dataGridViewList.Location = new System.Drawing.Point(0, 142); + this.dataGridViewList.Name = "dataGridViewList"; + this.dataGridViewList.ReadOnly = true; + this.dataGridViewList.RowHeadersVisible = false; + this.dataGridViewList.RowTemplate.Height = 25; + this.dataGridViewList.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect; + this.dataGridViewList.Size = new System.Drawing.Size(1000, 633); + this.dataGridViewList.TabIndex = 3; + // + // contextMenuStripDataGrid + // + this.contextMenuStripDataGrid.Name = "contextMenuStripDataGrid"; + this.contextMenuStripDataGrid.Size = new System.Drawing.Size(61, 4); + // + // MainControlViewEntityList + // + this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 15F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.Controls.Add(this.dataGridViewList); + this.Controls.Add(this.toolStripFooter); + this.Controls.Add(this.panelSearch); + this.Controls.Add(this.toolStripMenu); + this.Controls.Add(this.panelHeader); + this.Name = "MainControlViewEntityList"; + this.Size = new System.Drawing.Size(1000, 800); + this.toolStripMenu.ResumeLayout(false); + this.toolStripMenu.PerformLayout(); + this.panelHeader.ResumeLayout(false); + this.panelSearch.ResumeLayout(false); + this.panelSearchActions.ResumeLayout(false); + this.toolStripFooter.ResumeLayout(false); + this.toolStripFooter.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)(this.dataGridViewList)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + } #endregion @@ -421,5 +419,6 @@ namespace ToolsDesktop.Controls protected System.Windows.Forms.Panel panelSearchControls; protected System.Windows.Forms.ToolStripSeparator toolStripSeparator6; protected System.Windows.Forms.ToolStripButton toolStripButtonSelect; - } + protected System.ComponentModel.IContainer components; + } } diff --git a/DepartmentPortal/Common/ToolsDesktop/MainControls/MainControlViewEntityList.resx b/DepartmentPortal/Common/ToolsDesktop/MainControls/MainControlViewEntityList.resx index f298a7b..61df2d1 100644 --- a/DepartmentPortal/Common/ToolsDesktop/MainControls/MainControlViewEntityList.resx +++ b/DepartmentPortal/Common/ToolsDesktop/MainControls/MainControlViewEntityList.resx @@ -57,4 +57,13 @@ System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + 17, 17 + + + 147, 17 + + + 281, 17 + \ No newline at end of file