|  | @@ -57,15 +57,7 @@ namespace OTSIncAReportApp
 | 
	
		
			
				|  |  |          public OTSRibbonFun m_RibbonFun = null;                                             //报告菜单相关操作类
 | 
	
		
			
				|  |  |    
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -        //测量结果ID
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          //当前工作结果
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -        public static Dictionary<Guid, DisplayParticle> selectedParticles = new Dictionary<Guid, DisplayParticle>();     //所有选择颗粒
 | 
	
		
			
				|  |  |          public static RectangleF selectedRegion = new RectangleF();
 | 
	
		
			
				|  |  |          public RptConfigFile m_RptConfigFile;
 | 
	
		
			
				|  |  |          public string MoreSource = "";
 | 
	
	
		
			
				|  | @@ -170,48 +162,34 @@ namespace OTSIncAReportApp
 | 
	
		
			
				|  |  |          /// 德标
 | 
	
		
			
				|  |  |          /// </summary>
 | 
	
		
			
				|  |  |          public OTSIncAReportGB.DINStandardABCDDS im_DINStandardABCDDS = null;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  |          public List<Particle> GetSelectedParticles()
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  | -            List<Particle> parts = new List<Particle>();
 | 
	
		
			
				|  |  | -            foreach (var p in selectedParticles.Values)
 | 
	
		
			
				|  |  | -            {
 | 
	
		
			
				|  |  | -                if (!p.IsDeleted)
 | 
	
		
			
				|  |  | -                {
 | 
	
		
			
				|  |  | -                    parts.Add(p.objParticleData);
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -            return parts;
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        protected void DeleteSelectedParticles()
 | 
	
		
			
				|  |  | -        {
 | 
	
		
			
				|  |  | -            foreach (var p in selectedParticles.Values)
 | 
	
		
			
				|  |  | -            {
 | 
	
		
			
				|  |  | -                var dp = (p as DisplayParticle);
 | 
	
		
			
				|  |  | -                dp.IsSelect = false;
 | 
	
		
			
				|  |  | -            }
 | 
	
		
			
				|  |  | -        }
 | 
	
		
			
				|  |  | -        public void AddParticlesToSelectedParticles(List<Particle> value)
 | 
	
		
			
				|  |  | -        {
 | 
	
		
			
				|  |  | -            foreach (var p in im_Control_DrawDistrbutionImageAndBSE.m_list_allDPart)
 | 
	
		
			
				|  |  | +            List<Particle> Particles = new List<Particle>();
 | 
	
		
			
				|  |  | +            int tabIndex = (int)(m_conditionChoose.tabIndex);
 | 
	
		
			
				|  |  | +            switch (tabIndex)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  | -                var dp = p;
 | 
	
		
			
				|  |  | -                foreach (var p2 in value)
 | 
	
		
			
				|  |  | -                {
 | 
	
		
			
				|  |  | -                    if (dp.objParticleData.FieldId == p2.FieldId)
 | 
	
		
			
				|  |  | +                case (int)DisplayPicutureType.AnalyzeImg:
 | 
	
		
			
				|  |  | +                    
 | 
	
		
			
				|  |  | +                    foreach (var dp in im_Control_DrawDistrbutionImageAndBSE.m_list_allDPart)
 | 
	
		
			
				|  |  |                      {
 | 
	
		
			
				|  |  | -                        if (dp.objParticleData.ParticleId == p2.ParticleId)
 | 
	
		
			
				|  |  | +                        if (dp.IsSelect)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  | -                            if (!selectedParticles.ContainsKey(dp.guid))
 | 
	
		
			
				|  |  | -                            {
 | 
	
		
			
				|  |  | -                                dp.IsSelect = true;
 | 
	
		
			
				|  |  | -                                selectedParticles.Add(dp.guid, dp);
 | 
	
		
			
				|  |  | -                                break;
 | 
	
		
			
				|  |  | -                            }
 | 
	
		
			
				|  |  | +                            Particle particle = new Particle();
 | 
	
		
			
				|  |  | +                            particle.FieldId = ((OTSIncAReportGraph.DisplayParticle)dp).FieldId;
 | 
	
		
			
				|  |  | +                            particle.ParticleId = ((OTSIncAReportGraph.DisplayParticle)dp).ParticleId;
 | 
	
		
			
				|  |  | +                            Particles.Add(particle);
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  | -                }
 | 
	
		
			
				|  |  | +                    break;
 | 
	
		
			
				|  |  | +                case (int)DisplayPicutureType.AnalyzeDataTable:
 | 
	
		
			
				|  |  | +                    Particles = im_ParticlesGridDevidePage.GetParticleslist_select();
 | 
	
		
			
				|  |  | +                    break;
 | 
	
		
			
				|  |  | +                default:
 | 
	
		
			
				|  |  | +                    break;
 | 
	
		
			
				|  |  |              }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +            return Particles;
 | 
	
		
			
				|  |  |          }
 | 
	
		
			
				|  |  |          #endregion //--------------------------------------------------------------------------------------------
 | 
	
		
			
				|  |  |  
 | 
	
	
		
			
				|  | @@ -828,7 +806,6 @@ namespace OTSIncAReportApp
 | 
	
		
			
				|  |  |          private void rbCancel_Click(object sender, EventArgs e)
 | 
	
		
			
				|  |  |          {
 | 
	
		
			
				|  |  |              int tabIndex = (int)(m_conditionChoose.tabIndex);
 | 
	
		
			
				|  |  | -            DeleteSelectedParticles();
 | 
	
		
			
				|  |  |              switch (tabIndex)
 | 
	
		
			
				|  |  |              {
 | 
	
		
			
				|  |  |                  case (int)DisplayPicutureType.AnalyzeImg:
 | 
	
	
		
			
				|  | @@ -840,7 +817,6 @@ namespace OTSIncAReportApp
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  |                              //分布图
 | 
	
		
			
				|  |  |                              im_Control_DrawDistrbutionImageAndBSE.DeselectAllParticle();
 | 
	
		
			
				|  |  | -                            selectedParticles.Clear();
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      else
 | 
	
	
		
			
				|  | @@ -848,7 +824,6 @@ namespace OTSIncAReportApp
 | 
	
		
			
				|  |  |                          if (im_Control_DrawDistrbutionSortImage != null)
 | 
	
		
			
				|  |  |                          {
 | 
	
		
			
				|  |  |                              im_Control_DrawDistrbutionSortImage.DeselectAllParticle();
 | 
	
		
			
				|  |  | -                            selectedParticles.Clear();
 | 
	
		
			
				|  |  |                          }
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                      break;
 |