/// <summary> /// 新增 /// </summary> protected override void New() { frmTask myTask = new frmTask(); myTask.ShowDialog(); myTask.Dispose(); base.New(); }
/// <summary> /// 编辑 /// </summary> protected override void Edit() { if (gvList.FocusedRowHandle < 0) { return; } DataRow dr = gvList.GetDataRow(gvList.FocusedRowHandle); frmTask myTask = new frmTask(); myTask.strBillID = dr["F_BillID"].ToString(); myTask.ShowDialog(); myTask.Dispose(); base.Edit(); }