private void ShowDetails() { if (!base.EditRight) { MsgBox.Show("您没有权限进行此项操作!"); return; } if (gridView1.FocusedRowHandle < 0) { return; } Ps_forecast_list report = Itop.Common.DataConverter.RowToObject <Ps_forecast_list>(gridView1.GetDataRow(gridView1.FocusedRowHandle)); FormForecastModelDSH frm = new FormForecastModelDSH(); frm.Text = this.Text + "- " + report.Title; if (frm.ShowDialog() == DialogResult.OK) { ShowModel(frm.selectID, report); } }
private void ShowDetails() { if (!base.EditRight) { MsgBox.Show("您没有权限进行此项操作!"); return; } if (gridView1.FocusedRowHandle < 0) { return; } Ps_forecast_list report = Itop.Common.DataConverter.RowToObject<Ps_forecast_list>(gridView1.GetDataRow(gridView1.FocusedRowHandle)); FormForecastModelDSH frm = new FormForecastModelDSH(); frm.Text = this.Text + "- " + report.Title; if (frm.ShowDialog()==DialogResult.OK) { ShowModel(frm.selectID, report); } }