Kaynağa Gözat

更新优化清洁度报告模板有新增颗粒时显示不完全的问题

zhangjiaxin 3 ay önce
ebeveyn
işleme
2041e89f2e

+ 9 - 0
OTSIncAReportApp/1-UI/OTSReportExport/OTSReport_Template_CleannessA.cs

@@ -36,6 +36,8 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
         private List<string> list_MainPriority = new List<string>();
 
 		ParticleData fielddata;
+
+        bool isRefresh = false;
 		#endregion
 
 		#region 构造函数及窗体加载
@@ -877,6 +879,13 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
 
         private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
         {
+            if (!isRefresh)
+            {
+                isRefresh = true;
+                return;
+
+			}
+
             if (CurrentDatabase != comboBox1.Text)
             {
                 CurrentDatabase = comboBox1.Text;