private void ribtnOpen_Click(object sender, EventArgs e) { if (this.gridView.FocusedRowHandle >= 0) { qnRecord = this.gridView.GetRow(this.gridView.FocusedRowHandle) as EntityQnRecord; } frmPopup2020201 frm = new frmPopup2020201(qnRecord); frm.ShowDialog(); }
/// <summary> /// 编辑 /// </summary> public override void Edit() { if (this.gvNormalQnRecord.SelectedRowsCount > 0) { EntityQnRecord vo = this.gvNormalQnRecord.GetRow(this.gvNormalQnRecord.GetSelectedRows()[0]) as EntityQnRecord; frmPopup2020201 frm = new frmPopup2020201(vo); frm.ShowDialog(); if (frm.IsRequireRefresh) { this.RefreshData(); } } else { DialogBox.Msg("请选择要编辑的记录."); } }
public override void New() { frmPopup2020203 frm = new frmPopup2020203(); frm.ShowDialog(); if (frm.dicQn == null) { return; } frmPopup2020201 frm01 = new frmPopup2020201(frm.dicQn.qnId); frm01.ShowDialog(); if (frm01.IsRequireRefresh) { this.RefreshData(); } }