/// <summary> /// 编辑 /// </summary> public override void Edit() { dietRecord = GetRowObject(); if (dietRecord != null) { frmPopup2060201 frm = new frmPopup2060201(dietRecord); frm.ShowDialog(); } }
/// <summary> /// /// </summary> /// <returns></returns> internal EntityDietRecord GetRowObject() { EntityDietRecord vo = null; if (this.gvData.FocusedRowHandle >= 0) { vo = this.gvData.GetRow(this.gvData.FocusedRowHandle) as EntityDietRecord; } return(vo); }