|
@@ -92,7 +92,6 @@ namespace OTSIncAReportGrids
|
|
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>() { table["partcletype0"].ToString(), table["partcletype1"].ToString(), table["partcletype2"].ToString(), table["partcletype4"].ToString(), table["partcletype6"].ToString(), table["partcletype7"].ToString(), table["partcletype8"].ToString(), table["partcletype9"].ToString() };
|
|
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);
|
|
|
|
string filedAndParticl = "";
|
|
string filedAndParticl = "";
|
|
gridView.MergeColumnNames.Add(filename);
|
|
gridView.MergeColumnNames.Add(filename);
|
|
gridView.AddSpanHeader(1, gridView.Columns.Count - 1, filename);
|
|
gridView.AddSpanHeader(1, gridView.Columns.Count - 1, filename);
|
|
@@ -255,10 +254,7 @@ namespace OTSIncAReportGrids
|
|
gridView.ContextMenuStrip = this.contextMenuStrip1;
|
|
gridView.ContextMenuStrip = this.contextMenuStrip1;
|
|
gridView.BorderStyle = 0;
|
|
gridView.BorderStyle = 0;
|
|
|
|
|
|
- //gridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
|
- //gridView.Location = new System.Drawing.Point(0, 0);
|
|
|
|
int outpos = gridwidth;
|
|
int outpos = gridwidth;
|
|
- //gridView.Location = new System.Drawing.Point(0, gridheight);
|
|
|
|
gridView.Location = new System.Drawing.Point(gridwidth, 0);
|
|
gridView.Location = new System.Drawing.Point(gridwidth, 0);
|
|
gridView.Margin = new System.Windows.Forms.Padding(2);
|
|
gridView.Margin = new System.Windows.Forms.Padding(2);
|
|
gridView.MergeColumnHeaderBackColor = System.Drawing.SystemColors.ButtonHighlight;
|
|
gridView.MergeColumnHeaderBackColor = System.Drawing.SystemColors.ButtonHighlight;
|
|
@@ -275,10 +271,8 @@ namespace OTSIncAReportGrids
|
|
gridView_Width = gridView_Width + gridView.Columns[i].Width;
|
|
gridView_Width = gridView_Width + gridView.Columns[i].Width;
|
|
|
|
|
|
}
|
|
}
|
|
- //gridView.Size = new System.Drawing.Size(667, 520);
|
|
|
|
- //gridView.Size = new System.Drawing.Size(gridView.ColumnCount * 100 + 60, gridView.RowCount * 30 + 30);
|
|
|
|
|
|
+
|
|
gridView.Size = new System.Drawing.Size(gridView_Width+60, gridView.RowCount * 30);
|
|
gridView.Size = new System.Drawing.Size(gridView_Width+60, gridView.RowCount * 30);
|
|
- //gridheight = gridheight + gridView.RowCount * 30 + 80;
|
|
|
|
gridheight = gridheight + gridView.RowCount * 30 + 5;
|
|
gridheight = gridheight + gridView.RowCount * 30 + 5;
|
|
gridwidth = gridwidth + gridView.ColumnCount * 100;
|
|
gridwidth = gridwidth + gridView.ColumnCount * 100;
|
|
gridView.TabIndex = 0;
|
|
gridView.TabIndex = 0;
|
|
@@ -335,7 +329,6 @@ namespace OTSIncAReportGrids
|
|
}
|
|
}
|
|
Report = false;
|
|
Report = false;
|
|
|
|
|
|
- //string sou = m_ReportApp.m_conditionChoose.m_SourceGridData.GetPropItemDisplayValueByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE).ToString();
|
|
|
|
list_fileName.Clear();
|
|
list_fileName.Clear();
|
|
|
|
|
|
|
|
|
|
@@ -362,21 +355,8 @@ namespace OTSIncAReportGrids
|
|
list_fileName.Add(m_ReportApp.m_rstDataMgr.ResultFilesList[i].anotherFileName);
|
|
list_fileName.Add(m_ReportApp.m_rstDataMgr.ResultFilesList[i].anotherFileName);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
- //BindDataGridView(m_ReportApp.m_rstDataMgr.ResultFilesList[m_ReportApp.m_rstDataMgr.GetWorkingResult()].FilePath, 0, m_ReportApp.m_rstDataMgr.ResultFilesList[m_ReportApp.m_rstDataMgr.GetWorkingResult()].FileName);
|
|
|
|
- ////设置grid风格
|
|
|
|
- //SetDataGridViewStyle();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- //particledata = new OTSIncAReportApp.DataOperation.DataAccess.ParticleData(result.FilePath);
|
|
|
|
- ////创建datatable的列数据,及分栏,及相关行数据
|
|
|
|
- //BindDataGridView();
|
|
|
|
-
|
|
|
|
- ////设置grid风格
|
|
|
|
- //SetDataGridViewStyle();
|
|
|
|
}
|
|
}
|
|
|
|
|
|
public void SetGraphicType(ReportCondition sourceGridData)
|
|
public void SetGraphicType(ReportCondition sourceGridData)
|