|
@@ -1,4 +1,6 @@
|
|
|
-using OTSIncAReportApp.OTSSampleReportInfo;
|
|
|
+using OTSIncAReportApp;
|
|
|
+using OTSIncAReportApp.OTSDataMgrFunction;
|
|
|
+using OTSIncAReportApp.OTSSampleReportInfo;
|
|
|
using OTSIncAReportApp.SysMgrTools;
|
|
|
using OTSIncAReportGraph.Class;
|
|
|
using System;
|
|
@@ -32,20 +34,27 @@ namespace OTSIncAReportGrids
|
|
|
OTSIncAReportApp.DataOperation.DataAccess.ParticleData particledata;
|
|
|
OTSIncAReportApp.frmReportApp m_ReportApp;
|
|
|
//internal string condition;
|
|
|
+ private DataGridView dgv = new DataGridView();
|
|
|
+ frmReportConditionChoose m_condition;
|
|
|
+ private ResultDataMgr m_DataMgr;
|
|
|
+ int gridheight = 0;
|
|
|
+ public bool Report { set; get; }
|
|
|
#endregion
|
|
|
|
|
|
#region 自定义方法
|
|
|
/// <summary>
|
|
|
/// 绑定datagridview数据
|
|
|
/// </summary>
|
|
|
- public void BindDataGridView()
|
|
|
+ public void BindDataGridView(string path, int num, string filename)
|
|
|
{
|
|
|
List<string> colid = new List<string>() { "rowid", "pname", "area", "con" };
|
|
|
List<string> colname = new List<string>() { table["str1"].ToString(), table["str4"].ToString(), table["str3"].ToString(), table["str6"].ToString() };
|
|
|
+ OTSIncAReportApp.DataOperation.DataAccess.ParticleData particledata = new OTSIncAReportApp.DataOperation.DataAccess.ParticleData(path);
|
|
|
+ OTSGridView gridView = new OTSGridView();
|
|
|
//创建Grid的列
|
|
|
for (int i = 0; i < colid.Count; i++)
|
|
|
{
|
|
|
- Gview_gz.Columns.Add(colid[i], colname[i]);
|
|
|
+ gridView.Columns.Add(colid[i], colname[i]);
|
|
|
}
|
|
|
DataTable dte = particledata.GetAllElement();
|
|
|
foreach (DataRow item in dte.Rows)
|
|
@@ -53,7 +62,7 @@ namespace OTSIncAReportGrids
|
|
|
DataGridViewImageColumn iconColumn = new DataGridViewImageColumn();
|
|
|
iconColumn.Name = item["name"].ToString();
|
|
|
iconColumn.HeaderText = item["name"].ToString();
|
|
|
- Gview_gz.Columns.Add(iconColumn);
|
|
|
+ gridView.Columns.Add(iconColumn);
|
|
|
}
|
|
|
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() };
|
|
@@ -61,6 +70,8 @@ namespace OTSIncAReportGrids
|
|
|
//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.GetComboDownListIndexByItemName(OTSIncAReportApp.OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE_TYPE);
|
|
|
string filedAndParticl = "";
|
|
|
+ gridView.MergeColumnNames.Add(filename);
|
|
|
+ gridView.AddSpanHeader(1, gridView.Columns.Count - 1, filename);
|
|
|
DataTable dt;
|
|
|
if (sel == 1)
|
|
|
{
|
|
@@ -96,39 +107,39 @@ namespace OTSIncAReportGrids
|
|
|
}
|
|
|
double total = Convert.ToDouble(dt.Rows[i]["ar"]);
|
|
|
//double small = Convert.ToDouble(dt.Rows[i]["small"]);
|
|
|
- int add_rowindex = Gview_gz.Rows.Add();
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[0].Value = add_rowindex + 1;
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[1].Value = dt.Rows[i]["TypeName"];
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[1].Style.BackColor = Color.Azure;
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[2].Value = Math.Round(total, 2);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[2].Style.BackColor = Color.Azure;
|
|
|
+ int add_rowindex = gridView.Rows.Add();
|
|
|
+ gridView.Rows[add_rowindex].Cells[0].Value = add_rowindex + 1;
|
|
|
+ gridView.Rows[add_rowindex].Cells[1].Value = dt.Rows[i]["TypeName"];
|
|
|
+ gridView.Rows[add_rowindex].Cells[1].Style.BackColor = Color.Azure;
|
|
|
+ gridView.Rows[add_rowindex].Cells[2].Value = Math.Round(total, 2);
|
|
|
+ gridView.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[3].Value = dt.Rows[i]["con"];
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[3].Style.BackColor = Color.Azure;
|
|
|
+ gridView.Rows[add_rowindex].Cells[3].Value = dt.Rows[i]["con"];
|
|
|
+ gridView.Rows[add_rowindex].Cells[3].Style.BackColor = Color.Azure;
|
|
|
DataTable dtp = particledata.GetAreaByIncA(dt.Rows[i]["TypeId"].ToString(), filedAndParticl);
|
|
|
|
|
|
- for (int j = 4; j < Gview_gz.Columns.Count; j++)
|
|
|
+ for (int j = 4; j < gridView.Columns.Count; j++)
|
|
|
{
|
|
|
int col = 0;
|
|
|
foreach (DataRow dr in dtp.Rows)
|
|
|
{
|
|
|
|
|
|
- if (Gview_gz.Columns[j].Name == dr["name"].ToString())
|
|
|
+ if (gridView.Columns[j].Name == dr["name"].ToString())
|
|
|
{
|
|
|
|
|
|
double ar = Convert.ToDouble(dr["pc"]);
|
|
|
double p = Math.Round(ar / total, 2);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[j].Value = DrawFunction.GetProcessBitmap((float)p, Color.Azure);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[j].Tag = p;
|
|
|
+ gridView.Rows[add_rowindex].Cells[j].Value = DrawFunction.GetProcessBitmap((float)p, Color.Azure);
|
|
|
+ gridView.Rows[add_rowindex].Cells[j].Tag = p;
|
|
|
break;
|
|
|
}
|
|
|
col++;
|
|
|
}
|
|
|
if (col == dtp.Rows.Count)
|
|
|
{
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[j].Value = DrawFunction.GetProcessBitmap(0, Color.Azure);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[j].Tag = 0;
|
|
|
+ gridView.Rows[add_rowindex].Cells[j].Value = DrawFunction.GetProcessBitmap(0, Color.Azure);
|
|
|
+ gridView.Rows[add_rowindex].Cells[j].Tag = 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -138,8 +149,8 @@ namespace OTSIncAReportGrids
|
|
|
{
|
|
|
continue;
|
|
|
}
|
|
|
- int add_rowindex = Gview_gz.Rows.Add();
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[0].Value = add_rowindex + 1;
|
|
|
+ int add_rowindex = gridView.Rows.Add();
|
|
|
+ gridView.Rows[add_rowindex].Cells[0].Value = add_rowindex + 1;
|
|
|
int index = FLID.IndexOf(Convert.ToInt32(dt.Rows[i]["TypeId"]));
|
|
|
if (index == -1)
|
|
|
{
|
|
@@ -148,85 +159,136 @@ namespace OTSIncAReportGrids
|
|
|
string name = NameList[index];
|
|
|
double total = Convert.ToDouble(dt.Rows[i]["ar"]);
|
|
|
//double small = Convert.ToDouble(dt.Rows[i]["small"]);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[1].Value = dt.Rows[i]["TypeName"];
|
|
|
+ gridView.Rows[add_rowindex].Cells[1].Value = dt.Rows[i]["TypeName"];
|
|
|
//Gview_gz.Rows[add_rowindex].Cells[1].Value = name;
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[1].Style.BackColor = Color.Azure;
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[2].Value = Math.Round(total, 2);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[2].Style.BackColor = Color.Azure;
|
|
|
+ gridView.Rows[add_rowindex].Cells[1].Style.BackColor = Color.Azure;
|
|
|
+ gridView.Rows[add_rowindex].Cells[2].Value = Math.Round(total, 2);
|
|
|
+ gridView.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[3].Value = dt.Rows[i]["con"];
|
|
|
+ gridView.Rows[add_rowindex].Cells[3].Style.BackColor = Color.Azure;
|
|
|
+ gridView.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++)
|
|
|
+ for (int j = 4; j < gridView.Columns.Count; j++)
|
|
|
{
|
|
|
int col = 0;
|
|
|
foreach (DataRow dr in dtp.Rows)
|
|
|
{
|
|
|
- if (Gview_gz.Columns[j].Name == dr["name"].ToString())
|
|
|
+ if (gridView.Columns[j].Name == dr["name"].ToString())
|
|
|
{
|
|
|
|
|
|
double ar = Convert.ToDouble(dr["pc"]);
|
|
|
double p = Math.Round(ar / total, 2);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[j].Value = DrawFunction.GetProcessBitmap((float)p, Color.Azure);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[j].Tag = p;
|
|
|
+ gridView.Rows[add_rowindex].Cells[j].Value = DrawFunction.GetProcessBitmap((float)p, Color.Azure);
|
|
|
+ gridView.Rows[add_rowindex].Cells[j].Tag = p;
|
|
|
break;
|
|
|
}
|
|
|
col++;
|
|
|
}
|
|
|
if (col == dtp.Rows.Count)
|
|
|
{
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[j].Value = DrawFunction.GetProcessBitmap(0, Color.Azure);
|
|
|
- Gview_gz.Rows[add_rowindex].Cells[j].Tag = 0;
|
|
|
+ gridView.Rows[add_rowindex].Cells[j].Value = DrawFunction.GetProcessBitmap(0, Color.Azure);
|
|
|
+ gridView.Rows[add_rowindex].Cells[j].Tag = 0;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ gridView.Name = "gridView" + num.ToString();
|
|
|
+ dgv = gridView;
|
|
|
+ //设置grid风格
|
|
|
+ SetDataGridViewStyle(gridView);
|
|
|
+ panel1.Controls.Add(gridView);
|
|
|
}
|
|
|
|
|
|
/// <summary>
|
|
|
/// 设置DataGridView样式
|
|
|
/// </summary>
|
|
|
- private void SetDataGridViewStyle()
|
|
|
+ private void SetDataGridViewStyle(OTSGridView gridView)
|
|
|
{
|
|
|
+ ////用户不能调整 行高
|
|
|
+ //gridView.AllowUserToResizeRows = false;
|
|
|
+ ////点击选择整行
|
|
|
+ //gridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
|
+ ////居中显示
|
|
|
+ //System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
+ //dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
|
+ //gridView.DefaultCellStyle = dataGridViewCellStyle1;
|
|
|
+ //gridView.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
|
|
+ ////设置grid可以复制
|
|
|
+ //gridView.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
|
|
|
+ ////设置每列的宽度
|
|
|
+ //gridView.Columns[0].Width = 40;//第一列序号的宽度设置一下吧,要不太丑
|
|
|
+ //gridView.Columns[1].Width = 200;
|
|
|
+ ////设置序号列不排序
|
|
|
+ //gridView.Columns[0].SortMode = DataGridViewColumnSortMode.NotSortable;
|
|
|
+ ////设置序号列不可以设置宽度
|
|
|
+ //gridView.Columns[0].Resizable = DataGridViewTriState.False;
|
|
|
+ ////设置所有行的高度
|
|
|
+ //for (int i = 0; i < gridView.Rows.Count; i++)
|
|
|
+ //{
|
|
|
+ // gridView.Rows[i].Height = 30;
|
|
|
+ //}
|
|
|
+
|
|
|
//用户不能调整标题的高度
|
|
|
- //Gview_gz.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
|
+ gridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
|
|
|
|
//用户不能调整 行高
|
|
|
- Gview_gz.AllowUserToResizeRows = false;
|
|
|
+ gridView.AllowUserToResizeRows = false;
|
|
|
|
|
|
//改变行的高度;
|
|
|
- //Gview_gz.RowTemplate.Height = 20;
|
|
|
+ //gridView.RowTemplate.Height = 20;
|
|
|
|
|
|
//点击选择整行
|
|
|
- Gview_gz.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
|
+ gridView.SelectionMode = DataGridViewSelectionMode.FullRowSelect;
|
|
|
|
|
|
//居中显示
|
|
|
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
|
|
|
dataGridViewCellStyle1.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleCenter;
|
|
|
- Gview_gz.DefaultCellStyle = dataGridViewCellStyle1;
|
|
|
- Gview_gz.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
|
|
+ gridView.DefaultCellStyle = dataGridViewCellStyle1;
|
|
|
+ gridView.ColumnHeadersDefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter;
|
|
|
|
|
|
//再次重覆禁用拖动表头高度,居然有效果了
|
|
|
- //Gview_gz.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
|
+ gridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.DisableResizing;
|
|
|
|
|
|
//设置grid可以复制
|
|
|
- Gview_gz.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
|
|
|
+ gridView.ClipboardCopyMode = DataGridViewClipboardCopyMode.EnableAlwaysIncludeHeaderText;
|
|
|
|
|
|
//设置每列的宽度
|
|
|
- Gview_gz.Columns[0].Width = 40;//第一列序号的宽度设置一下吧,要不太丑
|
|
|
- Gview_gz.Columns[1].Width = 200;
|
|
|
+ gridView.Columns[0].Width = 40;//第一列序号的宽度设置一下吧,要不太丑
|
|
|
+ gridView.Columns[1].Width = 200;
|
|
|
|
|
|
//设置序号列不排序
|
|
|
- Gview_gz.Columns[0].SortMode = DataGridViewColumnSortMode.NotSortable;
|
|
|
+ gridView.Columns[0].SortMode = DataGridViewColumnSortMode.NotSortable;
|
|
|
|
|
|
//设置序号列不可以设置宽度
|
|
|
- Gview_gz.Columns[0].Resizable = DataGridViewTriState.False;
|
|
|
-
|
|
|
- //设置所有行的高度
|
|
|
- for (int i = 0; i < Gview_gz.Rows.Count; i++)
|
|
|
- {
|
|
|
- Gview_gz.Rows[i].Height = 30;
|
|
|
- }
|
|
|
+ gridView.Columns[0].Resizable = DataGridViewTriState.False;
|
|
|
+ gridView.AllowUserToAddRows = false;
|
|
|
+ gridView.AllowUserToDeleteRows = false;
|
|
|
+ gridView.AllowUserToResizeRows = false;
|
|
|
+ gridView.BackgroundColor = System.Drawing.SystemColors.ButtonHighlight;
|
|
|
+ gridView.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
|
|
|
+ gridView.ContextMenuStrip = this.contextMenuStrip1;
|
|
|
+ gridView.BorderStyle = 0;
|
|
|
+
|
|
|
+ //gridView.Dock = System.Windows.Forms.DockStyle.Fill;
|
|
|
+ //gridView.Location = new System.Drawing.Point(0, 0);
|
|
|
+ gridView.Location = new System.Drawing.Point(0, gridheight);
|
|
|
+ gridView.Margin = new System.Windows.Forms.Padding(2);
|
|
|
+ gridView.MergeColumnHeaderBackColor = System.Drawing.SystemColors.ButtonHighlight;
|
|
|
+ //gridView.Name = "Gview_gz";
|
|
|
+ gridView.ReadOnly = true;
|
|
|
+ gridView.RowHeadersVisible = false;
|
|
|
+ gridView.RowHeadersWidth = 40;
|
|
|
+ gridView.RowTemplate.Height = 30;
|
|
|
+ //gridView.Size = new System.Drawing.Size(667, 520);
|
|
|
+ gridView.Size = new System.Drawing.Size(gridView.ColumnCount * 100 + 60, gridView.RowCount * 30 + 30);
|
|
|
+ gridheight = gridheight + gridView.RowCount * 30 + 80;
|
|
|
+ gridView.TabIndex = 0;
|
|
|
+ gridView.SortCompare += new System.Windows.Forms.DataGridViewSortCompareEventHandler(this.Gview_gz_SortCompare);
|
|
|
+ gridView.Sorted += new System.EventHandler(this.Gview_gz_Sorted);
|
|
|
+
|
|
|
+ //先设置一下头的高度,否则会太矮不好看
|
|
|
+ gridView.ColumnHeadersHeightSizeMode = DataGridViewColumnHeadersHeightSizeMode.EnableResizing;
|
|
|
+ gridView.ColumnHeadersHeight = 40;
|
|
|
|
|
|
}
|
|
|
#endregion
|
|
@@ -243,20 +305,62 @@ namespace OTSIncAReportGrids
|
|
|
{
|
|
|
m_ReportApp = ReportApp;
|
|
|
result = m_ReportApp.m_rstDataMgr.ResultFilesList[m_ReportApp.m_rstDataMgr.GetWorkingResult()];
|
|
|
-
|
|
|
+ m_condition = ReportApp.m_conditionChoose;
|
|
|
InitializeComponent();
|
|
|
lan = new Language(this);
|
|
|
table = lan.GetNameTable(this.Name);
|
|
|
+ m_DataMgr = ReportApp.m_rstDataMgr;
|
|
|
}
|
|
|
|
|
|
private void ElementContentGrid_Load(object sender, EventArgs e)
|
|
|
{
|
|
|
- particledata = new OTSIncAReportApp.DataOperation.DataAccess.ParticleData(result.FilePath);
|
|
|
- //创建datatable的列数据,及分栏,及相关行数据
|
|
|
- BindDataGridView();
|
|
|
+ string sou = "";
|
|
|
+ if (Report)
|
|
|
+ {
|
|
|
+ sou = m_DataMgr.ResultFilesList[m_DataMgr.getSelectedIndex()].FileName.ToString();
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ sou = m_condition.m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE].itemDisplayVal.ToString();
|
|
|
+ }
|
|
|
+ Report = false;
|
|
|
|
|
|
- //设置grid风格
|
|
|
- SetDataGridViewStyle();
|
|
|
+ //string sou = m_ReportApp.m_conditionChoose.m_SourceGridData.GetPropItemDisplayValueByPropItemName(OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE).ToString();
|
|
|
+ if (sou.Contains("+"))
|
|
|
+ {
|
|
|
+ for (int i = 0; i < sou.Split('+').Length; i++)
|
|
|
+ {
|
|
|
+ OTSIncAReportApp.DataOperation.Model.ResultFile resultFile = m_ReportApp.m_rstDataMgr.ResultFilesList.Find(s => s.FileName == sou.Split('+')[i]);
|
|
|
+ if (resultFile != null)
|
|
|
+ {
|
|
|
+ BindDataGridView(resultFile.FilePath, i, resultFile.FileName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ for (int i = 0; i < m_ReportApp.m_rstDataMgr.ResultFilesList.Count; i++)
|
|
|
+ {
|
|
|
+ if (sou == m_ReportApp.m_rstDataMgr.ResultFilesList[i].FileName.ToString())
|
|
|
+ {
|
|
|
+ BindDataGridView(m_ReportApp.m_rstDataMgr.ResultFilesList[i].FilePath, 0, m_ReportApp.m_rstDataMgr.ResultFilesList[i].FileName);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ //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();
|
|
|
}
|
|
|
#endregion
|
|
|
|
|
@@ -298,9 +402,9 @@ namespace OTSIncAReportGrids
|
|
|
Gview_gz.Rows.Clear();
|
|
|
Gview_gz.Columns.Clear();
|
|
|
|
|
|
- BindDataGridView();
|
|
|
+ //BindDataGridView();
|
|
|
|
|
|
- SetDataGridViewStyle();
|
|
|
+ //SetDataGridViewStyle();
|
|
|
}
|
|
|
|
|
|
private void Gview_gz_SortCompare(object sender, DataGridViewSortCompareEventArgs e)
|
|
@@ -353,7 +457,8 @@ namespace OTSIncAReportGrids
|
|
|
{
|
|
|
out_dt = m_dt;
|
|
|
//out_dt = (this.Gview_gz.DataSource as DataTable);
|
|
|
- out_dg = this.Gview_gz;
|
|
|
+ //out_dg = this.Gview_gz;
|
|
|
+ out_dg = dgv;
|
|
|
}
|
|
|
#endregion
|
|
|
|