|
@@ -59,8 +59,9 @@ namespace OTSIncAReportGrids
|
|
|
List<string> NameList = new List<string>() { table["partcletype0"].ToString(), table["partcletype1"].ToString(), table["partcletype2"].ToString(), table["partcletype4"].ToString(), table["partcletype6"].ToString(), table["partcletype7"].ToString(), table["partcletype8"].ToString(), table["partcletype9"].ToString() };
|
|
|
|
|
|
//int idx = m_ReportApp.m_DataMgrFun.GetPropIndexByPropItemName(m_ReportApp.SourceGridData.ConditionItemList, OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
- int sel = m_ReportApp.m_conditionChoose.m_SourceGridData.GetPropIndexByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
+ int sel = m_ReportApp.m_conditionChoose.m_SourceGridData.GetComboDownListIndexByItemName(OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
string filedAndParticl = "";
|
|
|
+ DataTable dt;
|
|
|
if (sel == 1)
|
|
|
{
|
|
|
List<OTSIncAReportApp.DataOperation.Model.Particle> selectParticles = m_ReportApp.GetSelectedParticles();
|
|
@@ -72,8 +73,20 @@ namespace OTSIncAReportGrids
|
|
|
{
|
|
|
filedAndParticl = filedAndParticl + ",";
|
|
|
}
|
|
|
+ if (selectParticles.Count == 0)
|
|
|
+ {
|
|
|
+ dt = new DataTable();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ dt = particledata.GetAreaByAllIncA(filedAndParticl);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ dt = particledata.GetAreaByAllIncA(filedAndParticl);
|
|
|
}
|
|
|
- DataTable dt = particledata.GetAreaByAllIncA(filedAndParticl);
|
|
|
+
|
|
|
|
|
|
for (int i = 0; i < dt.Rows.Count; i++)
|
|
|
{
|
|
@@ -141,8 +154,8 @@ namespace OTSIncAReportGrids
|
|
|
Gview_gz.Rows[add_rowindex].Cells[2].Style.BackColor = Color.Azure;
|
|
|
//Gview_gz.Rows[add_rowindex].Cells[3].Value = Math.Round(small, 2);
|
|
|
Gview_gz.Rows[add_rowindex].Cells[3].Style.BackColor = Color.Azure;
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[4].Value = dt.Rows[i]["con"];
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[4].Style.BackColor = Color.Azure;
|
|
|
+ Gview_gz.Rows[add_rowindex].Cells[3].Value = dt.Rows[i]["con"];
|
|
|
+ //Gview_gz.Rows[add_rowindex].Cells[4].Style.BackColor = Color.Azure;
|
|
|
DataTable dtp = particledata.GetAreaByIncA(dt.Rows[i]["TypeId"].ToString(), filedAndParticl);
|
|
|
for (int j = 4; j < Gview_gz.Columns.Count; j++)
|
|
|
{
|