|
@@ -352,29 +352,33 @@ namespace OTSIncAReportGrids
|
|
|
}
|
|
|
particlesAll.Rows[i]["Element"] = ConcatenatedString;
|
|
|
}
|
|
|
- DataTable XRayData = Particledata.GetXRayData();
|
|
|
- particlesAll.Columns.Add("XRayDataCount");
|
|
|
- for (int i = 0; i < particlesAll.Rows.Count; i++)
|
|
|
+ if (sel!=(int)SelItem.MergeParticles)
|
|
|
{
|
|
|
- if (int.Parse(particlesAll.Rows[i]["particleId"].ToString()) > -1)
|
|
|
+
|
|
|
+ DataTable XRayData = Particledata.GetXRayData();
|
|
|
+ particlesAll.Columns.Add("XRayDataCount");
|
|
|
+ for (int i = 0; i < particlesAll.Rows.Count; i++)
|
|
|
{
|
|
|
- string str = " XrayIndex= " + particlesAll.Rows[i]["particleId"].ToString() + " and fieldid = " + particlesAll.Rows[i]["fieldid"].ToString();
|
|
|
- DataRow[] drs = XRayData.Select(str);
|
|
|
- uint xraycount = 0;
|
|
|
- if (drs != null)
|
|
|
+ if (int.Parse(particlesAll.Rows[i]["particleId"].ToString()) > -1)
|
|
|
{
|
|
|
- uint[] Analysis_xray = new uint[2000];
|
|
|
- for (int j = 0; j < 2000; j++)
|
|
|
+ string str = " XrayIndex= " + particlesAll.Rows[i]["particleId"].ToString() + " and fieldid = " + particlesAll.Rows[i]["fieldid"].ToString();
|
|
|
+ DataRow[] drs = XRayData.Select(str);
|
|
|
+ uint xraycount = 0;
|
|
|
+ if (drs != null)
|
|
|
{
|
|
|
- Analysis_xray[j] = BitConverter.ToUInt32((byte[])drs[0][2], j * 4);
|
|
|
- }
|
|
|
- for (int j = 0; j < 2000; j++)
|
|
|
- {
|
|
|
- xraycount += Analysis_xray[j];
|
|
|
+ uint[] Analysis_xray = new uint[2000];
|
|
|
+ for (int j = 0; j < 2000; j++)
|
|
|
+ {
|
|
|
+ Analysis_xray[j] = BitConverter.ToUInt32((byte[])drs[0][2], j * 4);
|
|
|
+ }
|
|
|
+ for (int j = 0; j < 2000; j++)
|
|
|
+ {
|
|
|
+ xraycount += Analysis_xray[j];
|
|
|
+ }
|
|
|
+ particlesAll.Rows[i]["XRayDataCount"] = xraycount;
|
|
|
}
|
|
|
- particlesAll.Rows[i]["XRayDataCount"] = xraycount;
|
|
|
- }
|
|
|
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
return true;
|