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