|
@@ -342,10 +342,20 @@ namespace OTSIncAReportGrids
|
|
|
{
|
|
|
//particlesAll = Particledata.GetInfoForPartucleDevidePage2(condition);
|
|
|
particlesAll = Particledata.GetInfoForPartucleDevidePage_analyticalParticle(condition);
|
|
|
+ DataTable mergeParticles = Particledata.GetInfoForPartucleDevidePage_mergeParticles(condition);
|
|
|
+ if(mergeParticles!=null&& mergeParticles.Rows.Count>0)
|
|
|
+ {
|
|
|
+ RemoveMergeParticles(ref particlesAll, mergeParticles);
|
|
|
+ }
|
|
|
}
|
|
|
if (sel == (int)SelItem.otherParticles)
|
|
|
{
|
|
|
particlesAll = Particledata.GetInfoForPartucleDevidePage_otherParticle(condition);
|
|
|
+ DataTable mergeParticles = Particledata.GetInfoForPartucleDevidePage_mergeParticles(condition);
|
|
|
+ if (mergeParticles != null && mergeParticles.Rows.Count > 0)
|
|
|
+ {
|
|
|
+ RemoveMergeParticles(ref particlesAll, mergeParticles);
|
|
|
+ }
|
|
|
}
|
|
|
if (sel == (int)SelItem.MergeParticles)
|
|
|
{
|
|
@@ -2478,6 +2488,37 @@ namespace OTSIncAReportGrids
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ /// <summary>
|
|
|
+ /// 去除拼接颗粒组成颗粒
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="dataTable_Particle"></param>
|
|
|
+ /// <param name="dataTable_MergeParticles"></param>
|
|
|
+ void RemoveMergeParticles(ref DataTable dataTable_Particle, DataTable dataTable_MergeParticles)
|
|
|
+ {
|
|
|
+ foreach (DataRow row in dataTable_Particle.Rows)
|
|
|
+ {
|
|
|
+ foreach (DataRow MergeParticlesRow in dataTable_MergeParticles.Rows)
|
|
|
+ {
|
|
|
+ string subt = MergeParticlesRow["SubParticles"].ToString();
|
|
|
+ string[] sub = subt.Split(',');
|
|
|
+ if (row.RowState == DataRowState.Deleted)
|
|
|
+ {
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ if (row["fieldid"].ToString() == Convert.ToString(sub[0]).Split(':')[0] && row["ParticleId"].ToString() == Convert.ToString(sub[0]).Split(':')[1])
|
|
|
+ {
|
|
|
+ row.Delete();
|
|
|
+ break;
|
|
|
+ }
|
|
|
+ if (row["fieldid"].ToString() == Convert.ToString(sub[1]).Split(':')[0] && row["ParticleId"].ToString() == Convert.ToString(sub[1]).Split(':')[1])
|
|
|
+ {
|
|
|
+ row.Delete();
|
|
|
+ break; ;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ dataTable_Particle.AcceptChanges();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|