/// <summary> /// 新增 /// </summary> private void New() { frmEditBank myEditBank = new frmEditBank(); myEditBank.bFlag = true; myEditBank.ShowDialog(); myEditBank.Dispose(); DataBind(); }
/// <summary> /// 编辑 /// </summary> private void Edit() { if (gvList.FocusedRowHandle < 0) { return; } DataRow dr = gvList.GetDataRow(gvList.FocusedRowHandle); frmEditBank myEditBank = new frmEditBank(); myEditBank.bFlag = false; myEditBank.decID = Convert.ToDecimal(dr["F_DayOrder"]); myEditBank.dtDate = Convert.ToDateTime(dr["F_Date"]); myEditBank.ShowDialog(); myEditBank.Dispose(); DataBind(); }