|
@@ -377,8 +377,8 @@ namespace OTSIncAReportGrids
|
|
|
DataTable XRayData = Particledata.GetXRayData();
|
|
DataTable XRayData = Particledata.GetXRayData();
|
|
|
for (int i = 0; i < particlesAll.Rows.Count; i++)
|
|
for (int i = 0; i < particlesAll.Rows.Count; i++)
|
|
|
{
|
|
{
|
|
|
- string subt = particlesAll.Rows[i]["SubParticles"].ToString();
|
|
|
|
|
- if (subt =="")
|
|
|
|
|
|
|
+ string subParticleString = particlesAll.Rows[i]["SubParticles"].ToString();
|
|
|
|
|
+ if (subParticleString =="")
|
|
|
{
|
|
{
|
|
|
particlesAll.Rows[i]["XRayDataCount"] = 0;
|
|
particlesAll.Rows[i]["XRayDataCount"] = 0;
|
|
|
string str = " XrayIndex= " + particlesAll.Rows[i]["particleId"].ToString() + " and fieldid = " + particlesAll.Rows[i]["fieldid"].ToString();
|
|
string str = " XrayIndex= " + particlesAll.Rows[i]["particleId"].ToString() + " and fieldid = " + particlesAll.Rows[i]["fieldid"].ToString();
|
|
@@ -511,28 +511,28 @@ namespace OTSIncAReportGrids
|
|
|
{
|
|
{
|
|
|
if (enl.Current.Key == "ParticleImage")
|
|
if (enl.Current.Key == "ParticleImage")
|
|
|
{
|
|
{
|
|
|
- string subt = particles.Rows[i]["SubParticles"].ToString();
|
|
|
|
|
|
|
+ string subParticleString = particles.Rows[i]["SubParticles"].ToString();
|
|
|
dgV_ParticlesDevidePage.Rows[add_rowindex].Height = 150;
|
|
dgV_ParticlesDevidePage.Rows[add_rowindex].Height = 150;
|
|
|
|
|
|
|
|
|
|
|
|
|
dgV_ParticlesDevidePage.Rows[add_rowindex].Cells[k].Style.BackColor = Color.Azure;
|
|
dgV_ParticlesDevidePage.Rows[add_rowindex].Cells[k].Style.BackColor = Color.Azure;
|
|
|
|
|
|
|
|
Bitmap bmap = null;
|
|
Bitmap bmap = null;
|
|
|
- if (subt != null && subt != "" && subt != "IsSubParticle")
|
|
|
|
|
|
|
+ if (subParticleString != null && subParticleString != "" && subParticleString != "IsSubParticle")
|
|
|
{
|
|
{
|
|
|
double pix = result.GetPixelSize();
|
|
double pix = result.GetPixelSize();
|
|
|
int width = result.GetImageWidth();
|
|
int width = result.GetImageWidth();
|
|
|
int height = result.GetImageHeight();
|
|
int height = result.GetImageHeight();
|
|
|
- string vs = "," + subt.Replace(':', '-') + ",";
|
|
|
|
|
|
|
+ string vs = "," + subParticleString.Replace(':', '-') + ",";
|
|
|
DataTable dataTable = Particledata.GetParticleAllForBig(vs);//组成拼接颗粒的子颗粒
|
|
DataTable dataTable = Particledata.GetParticleAllForBig(vs);//组成拼接颗粒的子颗粒
|
|
|
- bmap = fldImgAccess.GetBitmapForMergedParticle(subt, pix, height, width, dataTable);
|
|
|
|
|
|
|
+ bmap = fldImgAccess.GetBitmapForMergedParticle(subParticleString, pix, height, width, dataTable);
|
|
|
if (bmap != null)
|
|
if (bmap != null)
|
|
|
{
|
|
{
|
|
|
- string[] str = subt.Split(',');
|
|
|
|
|
|
|
+ string[] str = subParticleString.Split(',');
|
|
|
bmap.Tag = new List<string>() { str[0].Split(':')[0], str[0].Split(':')[1] };
|
|
bmap.Tag = new List<string>() { str[0].Split(':')[0], str[0].Split(':')[1] };
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- else if (subt != "IsSubParticle")
|
|
|
|
|
|
|
+ else if (subParticleString != "IsSubParticle")
|
|
|
{
|
|
{
|
|
|
if (!fieldpics.Keys.Contains(particles.Rows[i]["fieldid"].ToString()))
|
|
if (!fieldpics.Keys.Contains(particles.Rows[i]["fieldid"].ToString()))
|
|
|
{
|
|
{
|
|
@@ -2463,8 +2463,8 @@ namespace OTSIncAReportGrids
|
|
|
string str = " particleId= " + dgvr.Cells["particleId"].Value.ToString() + " and fieldid = " + dgvr.Cells["fieldid"].Value.ToString();
|
|
string str = " particleId= " + dgvr.Cells["particleId"].Value.ToString() + " and fieldid = " + dgvr.Cells["fieldid"].Value.ToString();
|
|
|
DataRow[] drs = particles.Select(str);
|
|
DataRow[] drs = particles.Select(str);
|
|
|
DataRow row = drs[0];
|
|
DataRow row = drs[0];
|
|
|
- string subt = row["SubParticles"].ToString();
|
|
|
|
|
- if (subt != ""&& subt != null)
|
|
|
|
|
|
|
+ string subParticleString = row["SubParticles"].ToString();
|
|
|
|
|
+ if (subParticleString != ""&& subParticleString != null)
|
|
|
{
|
|
{
|
|
|
particle = Particledata.GetXrayByParticleTagIDAndFieldID_ForMergeParticle(Convert.ToInt32(dgvr.Cells["particleId"].Value), Convert.ToInt32(dgvr.Cells["fieldid"].Value), out Search_xray, out Analysis_xray);
|
|
particle = Particledata.GetXrayByParticleTagIDAndFieldID_ForMergeParticle(Convert.ToInt32(dgvr.Cells["particleId"].Value), Convert.ToInt32(dgvr.Cells["fieldid"].Value), out Search_xray, out Analysis_xray);
|
|
|
list_celementchemistryclr = particle.ElementList;
|
|
list_celementchemistryclr = particle.ElementList;
|
|
@@ -2496,7 +2496,7 @@ namespace OTSIncAReportGrids
|
|
|
int height = result.GetImageHeight();
|
|
int height = result.GetImageHeight();
|
|
|
Dictionary<string, List<Segment>> segsData = new Dictionary<string, List<Segment>>();
|
|
Dictionary<string, List<Segment>> segsData = new Dictionary<string, List<Segment>>();
|
|
|
|
|
|
|
|
- if (subt == "" || subt == null)
|
|
|
|
|
|
|
+ if (subParticleString == "" || subParticleString == null)
|
|
|
{
|
|
{
|
|
|
int fldid = Convert.ToInt32(dgvr.Cells["fieldid"].Value);
|
|
int fldid = Convert.ToInt32(dgvr.Cells["fieldid"].Value);
|
|
|
int partid = Convert.ToInt32(dgvr.Cells["particleId"].Value);
|
|
int partid = Convert.ToInt32(dgvr.Cells["particleId"].Value);
|
|
@@ -2508,7 +2508,7 @@ namespace OTSIncAReportGrids
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
|
- string vs = "," + subt.Replace(':', '-') + ",";
|
|
|
|
|
|
|
+ string vs = "," + subParticleString.Replace(':', '-') + ",";
|
|
|
dataTable = Particledata.GetParticleAllForBig(vs);//组成拼接颗粒的子颗粒
|
|
dataTable = Particledata.GetParticleAllForBig(vs);//组成拼接颗粒的子颗粒
|
|
|
foreach (DataRow dow in dataTable.Rows)
|
|
foreach (DataRow dow in dataTable.Rows)
|
|
|
{
|
|
{
|
|
@@ -2519,8 +2519,8 @@ namespace OTSIncAReportGrids
|
|
|
segsData.Add(key, listseg);
|
|
segsData.Add(key, listseg);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- Bitmap bmap = fldImgAccess.GetBitmapForParticleAll(subt, dataTable, pix, height, width);
|
|
|
|
|
- Bitmap bmap1 = fldImgAccess.GetBitmapForParticleAllWithBlackAndWhite(subt, dataTable, segsData, pix, height, width);
|
|
|
|
|
|
|
+ Bitmap bmap = fldImgAccess.GetBitmapForParticleAll(subParticleString, dataTable, pix, height, width);
|
|
|
|
|
+ Bitmap bmap1 = fldImgAccess.GetBitmapForParticleAllWithBlackAndWhite(subParticleString, dataTable, segsData, pix, height, width);
|
|
|
control_XRayTable1.SetBitmapOfPictureBox(bmap1, bmap);
|
|
control_XRayTable1.SetBitmapOfPictureBox(bmap1, bmap);
|
|
|
Invalidate();
|
|
Invalidate();
|
|
|
ToolStripMenuItem_SimilarityReclassification.Enabled = true;
|
|
ToolStripMenuItem_SimilarityReclassification.Enabled = true;
|
|
@@ -2644,8 +2644,8 @@ namespace OTSIncAReportGrids
|
|
|
string str = " particleId= " + dgvr.Cells["particleId"].Value.ToString() + " and fieldid = " + dgvr.Cells["fieldid"].Value.ToString();
|
|
string str = " particleId= " + dgvr.Cells["particleId"].Value.ToString() + " and fieldid = " + dgvr.Cells["fieldid"].Value.ToString();
|
|
|
DataRow[] drs = particles.Select(str);
|
|
DataRow[] drs = particles.Select(str);
|
|
|
DataRow row = drs[0];
|
|
DataRow row = drs[0];
|
|
|
- string subt = row["SubParticles"].ToString();
|
|
|
|
|
- if (subt != "" && subt != null)
|
|
|
|
|
|
|
+ string subParticleString = row["SubParticles"].ToString();
|
|
|
|
|
+ if (subParticleString != "" && subParticleString != null)
|
|
|
{
|
|
{
|
|
|
Particledata.GetXrayByParticleTagIDAndFieldID_ForMergeParticle(Convert.ToInt32(dgvr.Cells["particleId"].Value), Convert.ToInt32(dgvr.Cells["fieldid"].Value), out Search_xray, out Analysis_xray);
|
|
Particledata.GetXrayByParticleTagIDAndFieldID_ForMergeParticle(Convert.ToInt32(dgvr.Cells["particleId"].Value), Convert.ToInt32(dgvr.Cells["fieldid"].Value), out Search_xray, out Analysis_xray);
|
|
|
}
|
|
}
|