浏览代码

颗粒列表元素自动选择优化

cxs 1 年之前
父节点
当前提交
cdf8cb2d3f

+ 7 - 2
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ParticlesGridDevidePage.cs

@@ -2561,8 +2561,13 @@ namespace OTSIncAReportGrids
                 for (int j = 0; j < strcbo.Length; j++)
                 {
                     string[] str = strcbo[j].Split('-');
-                    if (!ele.Contains(str[0])&& str[0]!="")
-                    { ele.Add(str[0]); }
+                    
+                        if (!ele.Contains(str[0]) && str[0] != "")
+                        { 
+                            if (str[1] != ""&&double.Parse(str[1]) != 0)  //咨询demo后,元素含量返回值为零时一般去除此元素
+                            {ele.Add(str[0]);}
+                        }
+                    
                 }
             }
             foreach(var el in ele)

+ 2 - 0
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ParticlesGridDevidePageShowConfig.Designer.cs

@@ -138,6 +138,7 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             // 
             // btn_xsys
             // 
+            this.btn_xsys.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.btn_xsys.Location = new System.Drawing.Point(406, 19);
             this.btn_xsys.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.btn_xsys.Name = "btn_xsys";
@@ -365,6 +366,7 @@ namespace OTSIncAReportApp._1_UI.Control_Grids.ParticlesGridDevidePage
             // 
             // btn_auto
             // 
+            this.btn_auto.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
             this.btn_auto.Location = new System.Drawing.Point(472, 19);
             this.btn_auto.Margin = new System.Windows.Forms.Padding(2, 1, 2, 1);
             this.btn_auto.Name = "btn_auto";