浏览代码

处理bug

cxs 1 年之前
父节点
当前提交
75f1522aa4

+ 1 - 1
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ParticlesGridDevidePage.Designer.cs

@@ -319,7 +319,7 @@
             // lblTotalCount
             // 
             this.lblTotalCount.AutoSize = true;
-            this.lblTotalCount.Location = new System.Drawing.Point(24, 13);
+            this.lblTotalCount.Location = new System.Drawing.Point(25, 13);
             this.lblTotalCount.Name = "lblTotalCount";
             this.lblTotalCount.Size = new System.Drawing.Size(17, 12);
             this.lblTotalCount.TabIndex = 34;

+ 3 - 6
OTSIncAReportApp/1-UI/Control_Grids/ParticlesGridDevidePage/ParticlesGridDevidePage.cs

@@ -264,7 +264,7 @@ namespace OTSIncAReportGrids
         bool UpdateTable()
         {
             int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.PARTICE_LIST);
-            if (sel == 1)
+            if (sel == (int)SelItem.selectParticles)
             {
                 List<Particle> selectParticles = m_ReportApp.GetSelectedParticles();
                 DataTable dtUelect = new DataTable();
@@ -2414,14 +2414,11 @@ namespace OTSIncAReportGrids
                         Bitmap ls_bp = (Bitmap)dgvr.Cells[2].Value;
                         List<string> list_str = (List<string>)ls_bp.Tag;
                     }
-                    else
-                    {
-                        //contextMenuStrip1.Items[10].Visible = false;
-                    }
+                    ToolStripMenuItemDelete_Particle.Visible = true;
                 }
                 else
                 {
-                    //contextMenuStrip1.Items[10].Visible = false;
+                    ToolStripMenuItemDelete_Particle.Visible = false;
                 }
             }
         }