浏览代码

相似颗粒搜索添加搜索数量显示

cxs 4 月之前
父节点
当前提交
aa8efcdb64

+ 1 - 1
Bin/x64/Debug/Config/SysData/OTSReportMgrParam.rpf

@@ -1,7 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <XMLData systype="IncA">
   <Member RegName="Scale" strValue="1000" />
-  <Member RegName="DefaultComputedColName" strValue="Area,EquivalentCircleDiameter,MaxDiameter,MinDiameter,DiameterRatio,FerretDiameter,PERP,PERI,INSCR,MEAN,ELONG,ASPECT_ELONG,Orientation" />
+  <Member RegName="DefaultComputedColName" strValue="" />
   <Member RegName="ElementsColName" strValue="C,O,Al,Fe,F,Ti,Na,Mn,Mg" />
   <Member RegName="PartSizeFile" name="Li1-10.psf" />
   <Member RegName="TRIO_CHART_TYPE" strValue="CaO.SiO₂.Al₂O₃" />

+ 26 - 6
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ListOfSimilarParticles.Designer.cs

@@ -42,6 +42,7 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             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();
@@ -51,10 +52,12 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             // 
             this.dgV_SimilarParticles.AllowUserToAddRows = false;
             this.dgV_SimilarParticles.AllowUserToDeleteRows = false;
+            this.dgV_SimilarParticles.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.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;
@@ -107,9 +110,10 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             // 
             // tB_SimilarRatio
             // 
-            this.tB_SimilarRatio.Location = new System.Drawing.Point(184, 6);
+            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, 21);
+            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;
@@ -117,17 +121,19 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             // 
             // 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(185, 16);
+            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(75, 23);
+            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;
@@ -136,6 +142,7 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             // 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);
@@ -159,17 +166,29 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             // 
             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(276, 7);
+            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);
@@ -206,5 +225,6 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
         private System.Windows.Forms.ContextMenuStrip contextMenuStrip1;
         private System.Windows.Forms.ToolStripMenuItem movetoparticleToolStripMenuItem;
         private System.Windows.Forms.Label label2;
+        private System.Windows.Forms.Label label3;
     }
 }

+ 1 - 0
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ListOfSimilarParticles.cs

@@ -131,6 +131,7 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
                 SetDataGridViewStyle();
                 cBx_All.Checked = false;
                 cBx_All.Checked = true;
+                label3.Text = "共搜索到" + (dgV_SimilarParticles.Rows.Count-1).ToString() + "个相似颗粒";
                 this.Cursor = Cursors.Default;
             }
         }