|
@@ -42,10 +42,6 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
//数据图类型:常用夹杂物分类CommonlyUsedClassify ,颗粒成分PComponent,元素成分EComponent,颗粒尺寸分布PSize
|
|
//数据图类型:常用夹杂物分类CommonlyUsedClassify ,颗粒成分PComponent,元素成分EComponent,颗粒尺寸分布PSize
|
|
|
string ComSel { get; set; }
|
|
string ComSel { get; set; }
|
|
|
public bool Report { get; set; }
|
|
public bool Report { get; set; }
|
|
|
- /// <summary>
|
|
|
|
|
- /// 选择颗粒范围(true为全部颗粒false为选择颗粒)
|
|
|
|
|
- /// </summary>
|
|
|
|
|
- public bool ParticleRange { set; get; }
|
|
|
|
|
frmReportApp m_ReportApp;
|
|
frmReportApp m_ReportApp;
|
|
|
List<int> FLID = new List<int>() { 0, 1, 2, 4, 6, 7, 8, 9 };
|
|
List<int> FLID = new List<int>() { 0, 1, 2, 4, 6, 7, 8, 9 };
|
|
|
List<string> NameList = new List<string>() { "过小颗粒", "过大颗粒", "亮度不在分析范围内的颗粒", "低计数率颗粒", "不含分析元素的颗粒", "非夹杂物颗粒SiC", "非夹杂物颗粒FeO", "未识别颗粒" };
|
|
List<string> NameList = new List<string>() { "过小颗粒", "过大颗粒", "亮度不在分析范围内的颗粒", "低计数率颗粒", "不含分析元素的颗粒", "非夹杂物颗粒SiC", "非夹杂物颗粒FeO", "未识别颗粒" };
|
|
@@ -79,13 +75,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
if (Report)
|
|
if (Report)
|
|
|
{
|
|
{
|
|
|
sou = m_DataMgr.ResultFilesList[m_DataMgr.getSelectedIndex()].anotherFileName.ToString();
|
|
sou = m_DataMgr.ResultFilesList[m_DataMgr.getSelectedIndex()].anotherFileName.ToString();
|
|
|
- if(ParticleRange)
|
|
|
|
|
- {
|
|
|
|
|
- sel = 0;
|
|
|
|
|
- }else
|
|
|
|
|
- {
|
|
|
|
|
- sel = 1;
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ sel = 0;
|
|
|
}
|
|
}
|
|
|
else
|
|
else
|
|
|
{
|
|
{
|
|
@@ -170,62 +160,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
//int sel = m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
//int sel = m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
DataTable dt = new DataTable();
|
|
DataTable dt = new DataTable();
|
|
|
- if (sel == 1)
|
|
|
|
|
- {
|
|
|
|
|
-
|
|
|
|
|
- List<Particle> particles = m_ReportApp.GetSelectedParticles();
|
|
|
|
|
- int SPINEL = 0;
|
|
|
|
|
- int OXIDE = 0;
|
|
|
|
|
- int SULFIDE_OXIDE = 0;
|
|
|
|
|
- int NITRIDE = 0;
|
|
|
|
|
- int SULFIDE = 0;
|
|
|
|
|
- for (int i = 0; i < m_ReportApp.GetSelectedParticles().Count; i++)
|
|
|
|
|
- {
|
|
|
|
|
- //SPINEL
|
|
|
|
|
- if ((particles[i].TypeId >= 10100 || particles[i].TypeId <= 10199) || (particles[i].TypeId >= 12200 || particles[i].TypeId <= 12299) || (particles[i].TypeId >= 11300 || particles[i].TypeId <= 11299))
|
|
|
|
|
- {
|
|
|
|
|
- SPINEL = SPINEL + 1;
|
|
|
|
|
- }
|
|
|
|
|
- //OXIDE
|
|
|
|
|
- if (particles[i].TypeId >= 10000 || particles[i].TypeId <= 10999)
|
|
|
|
|
- {
|
|
|
|
|
- OXIDE = OXIDE + 1;
|
|
|
|
|
- }
|
|
|
|
|
- //SULFIDE_OXIDE
|
|
|
|
|
- if ((particles[i].TypeId >= 11200 || particles[i].TypeId <= 11299) || (particles[i].TypeId >= 11400 || particles[i].TypeId <= 11499) || (particles[i].TypeId >= 11200 || particles[i].TypeId <= 11599))
|
|
|
|
|
- {
|
|
|
|
|
- SULFIDE_OXIDE = SULFIDE_OXIDE + 1;
|
|
|
|
|
- }
|
|
|
|
|
- //NITRIDE
|
|
|
|
|
- if (particles[i].TypeId >= 12000 || particles[i].TypeId <= 12999)
|
|
|
|
|
- {
|
|
|
|
|
- NITRIDE = NITRIDE + 1;
|
|
|
|
|
- }
|
|
|
|
|
- //SULFIDE
|
|
|
|
|
- if (particles[i].TypeId >= 11000 || particles[i].TypeId <= 11999)
|
|
|
|
|
- {
|
|
|
|
|
- SULFIDE = SULFIDE + 1;
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- DataTable dataTable = new DataTable();
|
|
|
|
|
- dataTable.Columns.Add("SPINEL", typeof(String));
|
|
|
|
|
- dataTable.Columns.Add("OXIDE", typeof(String));
|
|
|
|
|
- dataTable.Columns.Add("SULFIDE_OXIDE", typeof(String));
|
|
|
|
|
- dataTable.Columns.Add("NITRIDE", typeof(String));
|
|
|
|
|
- dataTable.Columns.Add("SULFIDE", typeof(String));
|
|
|
|
|
- dataTable.Rows.Add();
|
|
|
|
|
- dataTable.Rows[0]["SPINEL"] = SPINEL.ToString();
|
|
|
|
|
- dataTable.Rows[0]["OXIDE"] = OXIDE.ToString();
|
|
|
|
|
- dataTable.Rows[0]["SULFIDE_OXIDE"] = SULFIDE_OXIDE.ToString();
|
|
|
|
|
- dataTable.Rows[0]["NITRIDE"] = NITRIDE.ToString();
|
|
|
|
|
- dataTable.Rows[0]["SULFIDE"] = SULFIDE.ToString();
|
|
|
|
|
- dt = dataTable;
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- dt = particledata.GetCommonlyUsedClassifyData();
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ dt = particledata.GetCommonlyUsedClassifyData();
|
|
|
|
|
|
|
|
|
|
|
|
|
//DataTable dt = dataTable;
|
|
//DataTable dt = dataTable;
|
|
@@ -304,16 +239,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
|
|
|
|
|
|
|
|
|
|
DataTable data = new DataTable();
|
|
DataTable data = new DataTable();
|
|
|
- if (sel == 0)
|
|
|
|
|
- {
|
|
|
|
|
- data = particledata.GetAreaByAllIncA("");//获取所有分类面积和数量信息
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- DataTable AllInca = particledata.GetAreaByAllIncA("");
|
|
|
|
|
- DataTable SelectParticl = SelectParticleData();
|
|
|
|
|
- data = GetParticleListForParticlSize(SelectParticl, AllInca);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ data = particledata.GetAreaByAllIncA("");//获取所有分类面积和数量信息
|
|
|
|
|
|
|
|
|
|
|
|
|
//DataTable data = particledata.GetAreaByAllIncA("");
|
|
//DataTable data = particledata.GetAreaByAllIncA("");
|
|
@@ -410,16 +336,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
|
|
|
|
|
DataOperation.DataAccess.ParticleData particledata = new DataOperation.DataAccess.ParticleData(path);
|
|
DataOperation.DataAccess.ParticleData particledata = new DataOperation.DataAccess.ParticleData(path);
|
|
|
DataTable data = new DataTable();
|
|
DataTable data = new DataTable();
|
|
|
- if (sel==0)
|
|
|
|
|
- {
|
|
|
|
|
- data = particledata.GetAreaByAllIncA("");//获取所有分类面积和数量信息
|
|
|
|
|
- }
|
|
|
|
|
- else
|
|
|
|
|
- {
|
|
|
|
|
- DataTable AllInca = particledata.GetAreaByAllIncA("");
|
|
|
|
|
- DataTable SelectParticl = SelectParticleData();
|
|
|
|
|
- data = GetParticleListForParticlSize(SelectParticl, AllInca);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ data = particledata.GetAreaByAllIncA("");//获取所有分类面积和数量信息
|
|
|
|
|
|
|
|
|
|
|
|
|
DataTable AreaInformationOfAllElements = ConSolidateInvalid(data);
|
|
DataTable AreaInformationOfAllElements = ConSolidateInvalid(data);
|
|
@@ -585,49 +502,6 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
}
|
|
}
|
|
|
return dt_Partick;
|
|
return dt_Partick;
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- #region 读取选择颗粒数据
|
|
|
|
|
- private DataTable SelectParticleData()
|
|
|
|
|
- {
|
|
|
|
|
- List<Particle> selectParticles = m_ReportApp.GetSelectedParticles();
|
|
|
|
|
-
|
|
|
|
|
- #region Datatable数据表格式
|
|
|
|
|
- DataTable dtUelect = new DataTable();
|
|
|
|
|
- dtUelect.Columns.Add("fieldid");
|
|
|
|
|
- dtUelect.Columns.Add("particleid");
|
|
|
|
|
- dtUelect.Columns.Add("AveGray");
|
|
|
|
|
- dtUelect.Columns.Add("RectLeft");
|
|
|
|
|
- dtUelect.Columns.Add("RectTop");
|
|
|
|
|
- dtUelect.Columns.Add("RectWidth");
|
|
|
|
|
- dtUelect.Columns.Add("RectHeight");
|
|
|
|
|
- dtUelect.Columns.Add("Area");
|
|
|
|
|
- dtUelect.Columns.Add("PosX");
|
|
|
|
|
- dtUelect.Columns.Add("PosY");
|
|
|
|
|
- dtUelect.Columns.Add("TypeId");
|
|
|
|
|
- dtUelect.Columns.Add("SegmentNum");
|
|
|
|
|
- dtUelect.Columns.Add("SEMPosX");
|
|
|
|
|
- dtUelect.Columns.Add("SEMPosY");
|
|
|
|
|
- dtUelect.Columns.Add("XrayId");
|
|
|
|
|
- dtUelect.Columns.Add("DMAX");
|
|
|
|
|
- dtUelect.Columns.Add("DMIN");
|
|
|
|
|
- dtUelect.Columns.Add("DPERP");
|
|
|
|
|
- dtUelect.Columns.Add("PERIMETER");
|
|
|
|
|
- dtUelect.Columns.Add("ORIENTATION");
|
|
|
|
|
- dtUelect.Columns.Add("DINSCR");
|
|
|
|
|
- dtUelect.Columns.Add("DMEAN");
|
|
|
|
|
- dtUelect.Columns.Add("DELONG");
|
|
|
|
|
- dtUelect.Columns.Add("DFERET");
|
|
|
|
|
- dtUelect.Columns.Add("TypeName");
|
|
|
|
|
- dtUelect.Columns.Add("TypeColor");
|
|
|
|
|
-
|
|
|
|
|
- #endregion
|
|
|
|
|
- for (int i = 0; i < selectParticles.Count; i++)
|
|
|
|
|
- {
|
|
|
|
|
- dtUelect.Rows.Add(selectParticles[i].FieldId, selectParticles[i].ParticleId, selectParticles[i].AveGray, selectParticles[i].RectLeft, selectParticles[i].RectTop, selectParticles[i].RectWidth, selectParticles[i].RectHeight, selectParticles[i].Area, selectParticles[i].PosX, selectParticles[i].PosX, selectParticles[i].TypeId, /*selectParticles[i].ElementNum,*/ selectParticles[i].SegmentNum, selectParticles[i].SEMPosX, selectParticles[i].SEMPosY, selectParticles[i].ParticleId, selectParticles[i].DMAX, selectParticles[i].DMIN, selectParticles[i].DPERP, selectParticles[i].PERIMETER, selectParticles[i].ORIENTATION, selectParticles[i].DINSCR, selectParticles[i].DMEAN, selectParticles[i].DELONG, selectParticles[i].DFERET, selectParticles[i].TypeName, selectParticles[i].TypeColor);
|
|
|
|
|
- }
|
|
|
|
|
- return dtUelect;
|
|
|
|
|
- }
|
|
|
|
|
- #endregion
|
|
|
|
|
private DataTable ConSolidateInvalid(DataTable dt)
|
|
private DataTable ConSolidateInvalid(DataTable dt)
|
|
|
{
|
|
{
|
|
|
|
|
|
|
@@ -664,18 +538,7 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
|
|
|
|
|
string filedAndParticl = "";
|
|
string filedAndParticl = "";
|
|
|
- if (sel == 1)
|
|
|
|
|
- {
|
|
|
|
|
- List<Particle> selectParticles = m_ReportApp.GetSelectedParticles();
|
|
|
|
|
- foreach (var item in selectParticles)
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + "," + (item.FieldId.ToString() + "-" + item.ParticleId.ToString());
|
|
|
|
|
- }
|
|
|
|
|
- if (filedAndParticl != "")
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + ",";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
DataTable dt = particledata.GetParticleListForParticlSize("area", filedAndParticl);
|
|
DataTable dt = particledata.GetParticleListForParticlSize("area", filedAndParticl);
|
|
|
//设置标签名称
|
|
//设置标签名称
|
|
@@ -754,18 +617,6 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
//int sel = m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
//int sel = m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
string filedAndParticl = "";
|
|
string filedAndParticl = "";
|
|
|
- if (sel == 1)
|
|
|
|
|
- {
|
|
|
|
|
- List<Particle> selectParticles = m_ReportApp.GetSelectedParticles();
|
|
|
|
|
- foreach (var item in selectParticles)
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + "," + (item.FieldId.ToString() + "-" + item.ParticleId.ToString());
|
|
|
|
|
- }
|
|
|
|
|
- if (filedAndParticl != "")
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + ",";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
DataTable dt = particledata.GetElementForArea(filedAndParticl);
|
|
DataTable dt = particledata.GetElementForArea(filedAndParticl);
|
|
|
|
|
|
|
@@ -844,18 +695,6 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
//int sel = m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
//int sel = m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
string filedAndParticl = "";
|
|
string filedAndParticl = "";
|
|
|
- if (sel == 1)
|
|
|
|
|
- {
|
|
|
|
|
- List<Particle> selectParticles = m_ReportApp.GetSelectedParticles();
|
|
|
|
|
- foreach (var item in selectParticles)
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + "," + (item.FieldId.ToString() + "-" + item.ParticleId.ToString());
|
|
|
|
|
- }
|
|
|
|
|
- if (filedAndParticl != "")
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + ",";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
//idx = m_ReportApp.m_DataMgrFun.GetPropIndexByPropItemName(m_ReportApp.SourceGridData.ConditionItemList, OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE);
|
|
//idx = m_ReportApp.m_DataMgrFun.GetPropIndexByPropItemName(m_ReportApp.SourceGridData.ConditionItemList, OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE);
|
|
|
//string con = m_ReportApp.SourceGridData.ConditionItemList[idx].itemVal.ToString();
|
|
//string con = m_ReportApp.SourceGridData.ConditionItemList[idx].itemVal.ToString();
|
|
@@ -937,18 +776,6 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
//int sel = m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
//int sel = m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
int sel = m_ReportApp.m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
string filedAndParticl = "";
|
|
string filedAndParticl = "";
|
|
|
- if (sel == 1)
|
|
|
|
|
- {
|
|
|
|
|
- List<Particle> selectParticles = m_ReportApp.GetSelectedParticles();
|
|
|
|
|
- foreach (var item in selectParticles)
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + "," + (item.FieldId.ToString() + "-" + item.ParticleId.ToString());
|
|
|
|
|
- }
|
|
|
|
|
- if (filedAndParticl != "")
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + ",";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
//idx = m_ReportApp.m_DataMgrFun.GetPropIndexByPropItemName(m_ReportApp.SourceGridData.ConditionItemList, OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE);
|
|
//idx = m_ReportApp.m_DataMgrFun.GetPropIndexByPropItemName(m_ReportApp.SourceGridData.ConditionItemList, OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.SIZE_CAL_METHOD_TYPE);
|
|
|
//string con = m_ReportApp.SourceGridData.ConditionItemList[idx].itemVal.ToString();
|
|
//string con = m_ReportApp.SourceGridData.ConditionItemList[idx].itemVal.ToString();
|
|
@@ -1080,18 +907,6 @@ namespace OTSIncAReportApp.Control_ECharts
|
|
|
|
|
|
|
|
int sel = m_conditionChoose.m_conditionData.ProItemProIndex();
|
|
int sel = m_conditionChoose.m_conditionData.ProItemProIndex();
|
|
|
string filedAndParticl = "";
|
|
string filedAndParticl = "";
|
|
|
- if (sel == 1)
|
|
|
|
|
- {
|
|
|
|
|
- List<Particle> selectParticles = m_ReportApp.GetSelectedParticles();
|
|
|
|
|
- foreach (var item in selectParticles)
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + "," + (item.FieldId.ToString() + "-" + item.ParticleId.ToString());
|
|
|
|
|
- }
|
|
|
|
|
- if (filedAndParticl != "")
|
|
|
|
|
- {
|
|
|
|
|
- filedAndParticl = filedAndParticl + ",";
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
DataOperation.DataAccess.ParticleData particledata = null;
|
|
DataOperation.DataAccess.ParticleData particledata = null;
|
|
|
DataTable dt = new DataTable();
|
|
DataTable dt = new DataTable();
|
|
|
|
|
|