/// <summary> /// 以图表方式展示 /// </summary> private void ShowAsChart() { if (_currentGrid is SinoSZUC_GridControlEx) { SinoSZUC_GridControlEx _gridEx = _currentGrid as SinoSZUC_GridControlEx; DataTable _dt = _gridEx.CurrentData(); Dictionary <string, string> _fieldsDict = _gridEx.CurrentFieldsDict(); frmChartShow _f = new frmChartShow(_dt, _fieldsDict); _application.AddForm(Guid.NewGuid().ToString(), _f); } }
public void ShowChart(SinoSZPluginFramework.IApplication _application) { DataTable _dt = this.sinoCommonGrid1.DataSource as DataTable; Dictionary <string, string> _fdict = new Dictionary <string, string>(); foreach (MD_RGL_FieldDefine _f in this.fieldDict.Values) { _fdict.Add(_f.FieldName, _f.DisplayName); } frmChartShow _form = new frmChartShow(_dt, _fdict); _application.AddForm(Guid.NewGuid().ToString(), _form); }
public void ShowAsChart(IApplication _application) { frmChartShow _f = new frmChartShow(_ResultTable, FieldsDict); _application.AddForm(Guid.NewGuid().ToString(), _f); }