Browse Source

相似度查询优化

zhangjiaxin 2 months ago
parent
commit
21bf7d3264

+ 196 - 182
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ListOfSimilarParticles.Designer.cs

@@ -30,191 +30,204 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
         /// </summary>
         private void InitializeComponent()
         {
-            this.components = new System.ComponentModel.Container();
-            this.dgV_SimilarParticles = new System.Windows.Forms.DataGridView();
-            this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
-            this.movetoparticleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.从此颗粒之下取消选择ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
-            this.btn_OK = new System.Windows.Forms.Button();
-            this.btn_Cannnel = new System.Windows.Forms.Button();
-            this.tB_SimilarRatio = new System.Windows.Forms.TextBox();
-            this.label1 = new System.Windows.Forms.Label();
-            this.btn_Search = new System.Windows.Forms.Button();
-            this.cBx_All = new System.Windows.Forms.CheckBox();
-            this.panel1 = new System.Windows.Forms.Panel();
-            this.label2 = new System.Windows.Forms.Label();
-            this.label3 = new System.Windows.Forms.Label();
-            ((System.ComponentModel.ISupportInitialize)(this.dgV_SimilarParticles)).BeginInit();
-            this.contextMenuStrip1.SuspendLayout();
-            this.panel1.SuspendLayout();
-            this.SuspendLayout();
-            // 
-            // dgV_SimilarParticles
-            // 
-            this.dgV_SimilarParticles.AllowUserToAddRows = false;
-            this.dgV_SimilarParticles.AllowUserToDeleteRows = false;
-            this.dgV_SimilarParticles.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
-            this.dgV_SimilarParticles.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
-            this.dgV_SimilarParticles.ContextMenuStrip = this.contextMenuStrip1;
-            this.dgV_SimilarParticles.Dock = System.Windows.Forms.DockStyle.Fill;
-            this.dgV_SimilarParticles.Location = new System.Drawing.Point(0, 0);
-            this.dgV_SimilarParticles.Name = "dgV_SimilarParticles";
-            this.dgV_SimilarParticles.ReadOnly = true;
-            this.dgV_SimilarParticles.RowHeadersWidth = 4;
-            this.dgV_SimilarParticles.RowTemplate.Height = 23;
-            this.dgV_SimilarParticles.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
-            this.dgV_SimilarParticles.Size = new System.Drawing.Size(1772, 725);
-            this.dgV_SimilarParticles.TabIndex = 6;
-            this.dgV_SimilarParticles.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgV_SimilarParticles_CellMouseDoubleClick);
-            this.dgV_SimilarParticles.KeyUp += new System.Windows.Forms.KeyEventHandler(this.dgV_SimilarParticles_KeyUp);
-            this.dgV_SimilarParticles.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgV_SimilarParticles_MouseUp);
-            // 
-            // contextMenuStrip1
-            // 
-            this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
+			this.components = new System.ComponentModel.Container();
+			this.dgV_SimilarParticles = new System.Windows.Forms.DataGridView();
+			this.contextMenuStrip1 = new System.Windows.Forms.ContextMenuStrip(this.components);
+			this.movetoparticleToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+			this.从此颗粒之下取消选择ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
+			this.btn_OK = new System.Windows.Forms.Button();
+			this.btn_Cannnel = new System.Windows.Forms.Button();
+			this.tB_SimilarRatio = new System.Windows.Forms.TextBox();
+			this.label1 = new System.Windows.Forms.Label();
+			this.btn_Search = new System.Windows.Forms.Button();
+			this.cBx_All = new System.Windows.Forms.CheckBox();
+			this.panel1 = new System.Windows.Forms.Panel();
+			this.label2 = new System.Windows.Forms.Label();
+			this.label3 = new System.Windows.Forms.Label();
+			this.Scope1 = new System.Windows.Forms.ComboBox();
+			((System.ComponentModel.ISupportInitialize)(this.dgV_SimilarParticles)).BeginInit();
+			this.contextMenuStrip1.SuspendLayout();
+			this.panel1.SuspendLayout();
+			this.SuspendLayout();
+			// 
+			// dgV_SimilarParticles
+			// 
+			this.dgV_SimilarParticles.AllowUserToAddRows = false;
+			this.dgV_SimilarParticles.AllowUserToDeleteRows = false;
+			this.dgV_SimilarParticles.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
+			this.dgV_SimilarParticles.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+			this.dgV_SimilarParticles.ContextMenuStrip = this.contextMenuStrip1;
+			this.dgV_SimilarParticles.Dock = System.Windows.Forms.DockStyle.Fill;
+			this.dgV_SimilarParticles.Location = new System.Drawing.Point(0, 0);
+			this.dgV_SimilarParticles.Name = "dgV_SimilarParticles";
+			this.dgV_SimilarParticles.ReadOnly = true;
+			this.dgV_SimilarParticles.RowHeadersWidth = 4;
+			this.dgV_SimilarParticles.RowTemplate.Height = 23;
+			this.dgV_SimilarParticles.SelectionMode = System.Windows.Forms.DataGridViewSelectionMode.FullRowSelect;
+			this.dgV_SimilarParticles.Size = new System.Drawing.Size(1772, 725);
+			this.dgV_SimilarParticles.TabIndex = 6;
+			this.dgV_SimilarParticles.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.dgV_SimilarParticles_CellMouseDoubleClick);
+			this.dgV_SimilarParticles.KeyUp += new System.Windows.Forms.KeyEventHandler(this.dgV_SimilarParticles_KeyUp);
+			this.dgV_SimilarParticles.MouseUp += new System.Windows.Forms.MouseEventHandler(this.dgV_SimilarParticles_MouseUp);
+			// 
+			// contextMenuStrip1
+			// 
+			this.contextMenuStrip1.Items.AddRange(new System.Windows.Forms.ToolStripItem[] {
             this.movetoparticleToolStripMenuItem,
             this.从此颗粒之下取消选择ToolStripMenuItem});
-            this.contextMenuStrip1.Name = "contextMenuStrip1";
-            this.contextMenuStrip1.Size = new System.Drawing.Size(211, 48);
-            // 
-            // movetoparticleToolStripMenuItem
-            // 
-            this.movetoparticleToolStripMenuItem.Name = "movetoparticleToolStripMenuItem";
-            this.movetoparticleToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
-            this.movetoparticleToolStripMenuItem.Text = "移动SEM到颗粒视域位置";
-            this.movetoparticleToolStripMenuItem.Click += new System.EventHandler(this.movetoparticleToolStripMenuItem_Click);
-            // 
-            // 从此颗粒之下取消选择ToolStripMenuItem
-            // 
-            this.从此颗粒之下取消选择ToolStripMenuItem.Name = "从此颗粒之下取消选择ToolStripMenuItem";
-            this.从此颗粒之下取消选择ToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
-            this.从此颗粒之下取消选择ToolStripMenuItem.Text = "从此颗粒之下取消选择";
-            this.从此颗粒之下取消选择ToolStripMenuItem.Click += new System.EventHandler(this.从此颗粒之下取消选择ToolStripMenuItem_Click);
-            // 
-            // btn_OK
-            // 
-            this.btn_OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btn_OK.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btn_OK.Location = new System.Drawing.Point(866, 776);
-            this.btn_OK.Name = "btn_OK";
-            this.btn_OK.Size = new System.Drawing.Size(99, 33);
-            this.btn_OK.TabIndex = 7;
-            this.btn_OK.Text = "OK";
-            this.btn_OK.UseVisualStyleBackColor = true;
-            this.btn_OK.Click += new System.EventHandler(this.btn_OK_Click);
-            // 
-            // btn_Cannnel
-            // 
-            this.btn_Cannnel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
-            this.btn_Cannnel.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btn_Cannnel.Location = new System.Drawing.Point(997, 776);
-            this.btn_Cannnel.Name = "btn_Cannnel";
-            this.btn_Cannnel.Size = new System.Drawing.Size(107, 33);
-            this.btn_Cannnel.TabIndex = 8;
-            this.btn_Cannnel.Text = "Cancel";
-            this.btn_Cannnel.UseVisualStyleBackColor = true;
-            this.btn_Cannnel.Click += new System.EventHandler(this.btn_Cannnel_Click);
-            // 
-            // tB_SimilarRatio
-            // 
-            this.tB_SimilarRatio.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.tB_SimilarRatio.Location = new System.Drawing.Point(187, 8);
-            this.tB_SimilarRatio.Name = "tB_SimilarRatio";
-            this.tB_SimilarRatio.Size = new System.Drawing.Size(90, 26);
-            this.tB_SimilarRatio.TabIndex = 10;
-            this.tB_SimilarRatio.Text = "97";
-            this.tB_SimilarRatio.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
-            this.tB_SimilarRatio.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tB_SimilarRatio_KeyUp);
-            // 
-            // label1
-            // 
-            this.label1.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label1.Location = new System.Drawing.Point(12, 9);
-            this.label1.Name = "label1";
-            this.label1.Size = new System.Drawing.Size(222, 23);
-            this.label1.TabIndex = 9;
-            this.label1.Text = "请设定搜索相似度(0-100之间)";
-            // 
-            // btn_Search
-            // 
-            this.btn_Search.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.btn_Search.Location = new System.Drawing.Point(302, 5);
-            this.btn_Search.Name = "btn_Search";
-            this.btn_Search.Size = new System.Drawing.Size(112, 30);
-            this.btn_Search.TabIndex = 11;
-            this.btn_Search.Text = "Search";
-            this.btn_Search.UseVisualStyleBackColor = true;
-            this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
-            // 
-            // cBx_All
-            // 
-            this.cBx_All.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.cBx_All.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.cBx_All.Location = new System.Drawing.Point(16, 781);
-            this.cBx_All.Name = "cBx_All";
-            this.cBx_All.Size = new System.Drawing.Size(104, 24);
-            this.cBx_All.TabIndex = 12;
-            this.cBx_All.Text = "全选";
-            this.cBx_All.UseVisualStyleBackColor = true;
-            this.cBx_All.CheckedChanged += new System.EventHandler(this.cBx_All_CheckedChanged);
-            // 
-            // panel1
-            // 
-            this.panel1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) 
+			this.contextMenuStrip1.Name = "contextMenuStrip1";
+			this.contextMenuStrip1.Size = new System.Drawing.Size(211, 48);
+			// 
+			// movetoparticleToolStripMenuItem
+			// 
+			this.movetoparticleToolStripMenuItem.Name = "movetoparticleToolStripMenuItem";
+			this.movetoparticleToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
+			this.movetoparticleToolStripMenuItem.Text = "移动SEM到颗粒视域位置";
+			this.movetoparticleToolStripMenuItem.Click += new System.EventHandler(this.movetoparticleToolStripMenuItem_Click);
+			// 
+			// 从此颗粒之下取消选择ToolStripMenuItem
+			// 
+			this.从此颗粒之下取消选择ToolStripMenuItem.Name = "从此颗粒之下取消选择ToolStripMenuItem";
+			this.从此颗粒之下取消选择ToolStripMenuItem.Size = new System.Drawing.Size(210, 22);
+			this.从此颗粒之下取消选择ToolStripMenuItem.Text = "从此颗粒之下取消选择";
+			this.从此颗粒之下取消选择ToolStripMenuItem.Click += new System.EventHandler(this.从此颗粒之下取消选择ToolStripMenuItem_Click);
+			// 
+			// btn_OK
+			// 
+			this.btn_OK.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+			this.btn_OK.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+			this.btn_OK.Location = new System.Drawing.Point(866, 776);
+			this.btn_OK.Name = "btn_OK";
+			this.btn_OK.Size = new System.Drawing.Size(99, 33);
+			this.btn_OK.TabIndex = 7;
+			this.btn_OK.Text = "OK";
+			this.btn_OK.UseVisualStyleBackColor = true;
+			this.btn_OK.Click += new System.EventHandler(this.btn_OK_Click);
+			// 
+			// btn_Cannnel
+			// 
+			this.btn_Cannnel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+			this.btn_Cannnel.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+			this.btn_Cannnel.Location = new System.Drawing.Point(997, 776);
+			this.btn_Cannnel.Name = "btn_Cannnel";
+			this.btn_Cannnel.Size = new System.Drawing.Size(107, 33);
+			this.btn_Cannnel.TabIndex = 8;
+			this.btn_Cannnel.Text = "Cancel";
+			this.btn_Cannnel.UseVisualStyleBackColor = true;
+			this.btn_Cannnel.Click += new System.EventHandler(this.btn_Cannnel_Click);
+			// 
+			// tB_SimilarRatio
+			// 
+			this.tB_SimilarRatio.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+			this.tB_SimilarRatio.Location = new System.Drawing.Point(187, 8);
+			this.tB_SimilarRatio.Name = "tB_SimilarRatio";
+			this.tB_SimilarRatio.Size = new System.Drawing.Size(90, 26);
+			this.tB_SimilarRatio.TabIndex = 10;
+			this.tB_SimilarRatio.Text = "97";
+			this.tB_SimilarRatio.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
+			this.tB_SimilarRatio.KeyUp += new System.Windows.Forms.KeyEventHandler(this.tB_SimilarRatio_KeyUp);
+			// 
+			// label1
+			// 
+			this.label1.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+			this.label1.Location = new System.Drawing.Point(12, 9);
+			this.label1.Name = "label1";
+			this.label1.Size = new System.Drawing.Size(222, 23);
+			this.label1.TabIndex = 9;
+			this.label1.Text = "请设定搜索相似度(0-100之间)";
+			// 
+			// btn_Search
+			// 
+			this.btn_Search.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+			this.btn_Search.Location = new System.Drawing.Point(302, 5);
+			this.btn_Search.Name = "btn_Search";
+			this.btn_Search.Size = new System.Drawing.Size(112, 30);
+			this.btn_Search.TabIndex = 11;
+			this.btn_Search.Text = "Search";
+			this.btn_Search.UseVisualStyleBackColor = true;
+			this.btn_Search.Click += new System.EventHandler(this.btn_Search_Click);
+			// 
+			// cBx_All
+			// 
+			this.cBx_All.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+			this.cBx_All.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+			this.cBx_All.Location = new System.Drawing.Point(16, 781);
+			this.cBx_All.Name = "cBx_All";
+			this.cBx_All.Size = new System.Drawing.Size(104, 24);
+			this.cBx_All.TabIndex = 12;
+			this.cBx_All.Text = "全选";
+			this.cBx_All.UseVisualStyleBackColor = true;
+			this.cBx_All.CheckedChanged += new System.EventHandler(this.cBx_All_CheckedChanged);
+			// 
+			// panel1
+			// 
+			this.panel1.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.panel1.Controls.Add(this.dgV_SimilarParticles);
-            this.panel1.Location = new System.Drawing.Point(16, 41);
-            this.panel1.Name = "panel1";
-            this.panel1.Size = new System.Drawing.Size(1772, 725);
-            this.panel1.TabIndex = 13;
-            // 
-            // label2
-            // 
-            this.label2.AutoSize = true;
-            this.label2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label2.Location = new System.Drawing.Point(277, 11);
-            this.label2.Name = "label2";
-            this.label2.Size = new System.Drawing.Size(19, 19);
-            this.label2.TabIndex = 14;
-            this.label2.Text = "%";
-            // 
-            // label3
-            // 
-            this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
-            this.label3.AutoSize = true;
-            this.label3.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
-            this.label3.Location = new System.Drawing.Point(94, 782);
-            this.label3.Name = "label3";
-            this.label3.Size = new System.Drawing.Size(76, 21);
-            this.label3.TabIndex = 15;
-            this.label3.Text = "label3";
-            // 
-            // ListOfSimilarParticles
-            // 
-            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
-            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
-            this.ClientSize = new System.Drawing.Size(1800, 817);
-            this.Controls.Add(this.label3);
-            this.Controls.Add(this.label2);
-            this.Controls.Add(this.panel1);
-            this.Controls.Add(this.cBx_All);
-            this.Controls.Add(this.btn_Search);
-            this.Controls.Add(this.tB_SimilarRatio);
-            this.Controls.Add(this.label1);
-            this.Controls.Add(this.btn_Cannnel);
-            this.Controls.Add(this.btn_OK);
-            this.Name = "ListOfSimilarParticles";
-            this.ShowIcon = false;
-            this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
-            this.Text = "SearchSimilarParticles";
-            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
-            this.Load += new System.EventHandler(this.ListOfSimilarParticles_Load);
-            ((System.ComponentModel.ISupportInitialize)(this.dgV_SimilarParticles)).EndInit();
-            this.contextMenuStrip1.ResumeLayout(false);
-            this.panel1.ResumeLayout(false);
-            this.ResumeLayout(false);
-            this.PerformLayout();
+			this.panel1.Controls.Add(this.dgV_SimilarParticles);
+			this.panel1.Location = new System.Drawing.Point(16, 41);
+			this.panel1.Name = "panel1";
+			this.panel1.Size = new System.Drawing.Size(1772, 725);
+			this.panel1.TabIndex = 13;
+			// 
+			// label2
+			// 
+			this.label2.AutoSize = true;
+			this.label2.Font = new System.Drawing.Font("宋体", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+			this.label2.Location = new System.Drawing.Point(277, 11);
+			this.label2.Name = "label2";
+			this.label2.Size = new System.Drawing.Size(19, 19);
+			this.label2.TabIndex = 14;
+			this.label2.Text = "%";
+			// 
+			// label3
+			// 
+			this.label3.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
+			this.label3.AutoSize = true;
+			this.label3.Font = new System.Drawing.Font("宋体", 15.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
+			this.label3.Location = new System.Drawing.Point(94, 782);
+			this.label3.Name = "label3";
+			this.label3.Size = new System.Drawing.Size(76, 21);
+			this.label3.TabIndex = 15;
+			this.label3.Text = "label3";
+			// 
+			// Scope1
+			// 
+			this.Scope1.FormattingEnabled = true;
+			this.Scope1.Items.AddRange(new object[] {
+            "All",
+            "Unrecognized"});
+			this.Scope1.Location = new System.Drawing.Point(435, 11);
+			this.Scope1.Name = "Scope1";
+			this.Scope1.Size = new System.Drawing.Size(112, 20);
+			this.Scope1.TabIndex = 16;
+			// 
+			// ListOfSimilarParticles
+			// 
+			this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
+			this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+			this.ClientSize = new System.Drawing.Size(1800, 817);
+			this.Controls.Add(this.Scope1);
+			this.Controls.Add(this.label3);
+			this.Controls.Add(this.label2);
+			this.Controls.Add(this.panel1);
+			this.Controls.Add(this.cBx_All);
+			this.Controls.Add(this.btn_Search);
+			this.Controls.Add(this.tB_SimilarRatio);
+			this.Controls.Add(this.label1);
+			this.Controls.Add(this.btn_Cannnel);
+			this.Controls.Add(this.btn_OK);
+			this.Name = "ListOfSimilarParticles";
+			this.ShowIcon = false;
+			this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
+			this.Text = "SearchSimilarParticles";
+			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
+			this.Load += new System.EventHandler(this.ListOfSimilarParticles_Load);
+			((System.ComponentModel.ISupportInitialize)(this.dgV_SimilarParticles)).EndInit();
+			this.contextMenuStrip1.ResumeLayout(false);
+			this.panel1.ResumeLayout(false);
+			this.ResumeLayout(false);
+			this.PerformLayout();
 
         }
 
@@ -234,5 +247,6 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
         private System.Windows.Forms.Label label2;
         private System.Windows.Forms.Label label3;
         private System.Windows.Forms.ToolStripMenuItem 从此颗粒之下取消选择ToolStripMenuItem;
-    }
+		private System.Windows.Forms.ComboBox Scope1;
+	}
 }

+ 22 - 4
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ListOfSimilarParticles.cs

@@ -1,4 +1,5 @@
-using OTSCLRINTERFACE;
+using DevExpress.XtraTreeList.Filtering.Provider;
+using OTSCLRINTERFACE;
 using OTSCommon;
 using OTSCommon.DBOperate;
 using OTSCommon.DBOperate.Model;
@@ -96,6 +97,18 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             {
                 this.Cursor = Cursors.WaitCursor;
                 particlesAll = ObtainSourceOfSimilarParticles();
+
+                if (Scope1.SelectedIndex == 1)
+                {
+					for (int i = particlesAll.Rows.Count - 1; i >= 0; i--)
+					{
+						if (Convert.ToInt32(particlesAll.Rows[i]["TypeId"]) > 10)
+						{
+							particlesAll.Rows.RemoveAt(i);
+						}
+					}
+				}
+
                 DataTable elementchemistry = Particledata.GetElementChemistry();
                 for (int i = 0; i < particlesAll.Rows.Count; i++)
                 {
@@ -545,7 +558,8 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
 
         private void ListOfSimilarParticles_Load(object sender, EventArgs e)
         {
-            btn_Search_Click(null, null);
+			Scope1.SelectedIndex = 0;
+			btn_Search_Click(null, null);
         }
 
         private void btn_OK_Click(object sender, EventArgs e)
@@ -716,12 +730,16 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
         {
             CheckBox selectAllCheckBox = (CheckBox)sender;
 
+            bool isNull = true;
             foreach (DataGridViewRow row in dgV_SimilarParticles.Rows)
             {
                 DataGridViewCheckBoxCell checkBox = row.Cells["IsSelected"] as DataGridViewCheckBoxCell;
                 checkBox.Value = selectAllCheckBox.Checked;
-            }
-            dgV_SimilarParticles.Rows[0].Cells[0].Value = true;
+                isNull = false;
+
+			}
+            if (!isNull)
+                dgV_SimilarParticles.Rows[0].Cells[0].Value = true;
         }
 
         DataTable ObtainSourceOfSimilarParticles()