/// <summary> /// 新增工资 /// </summary> private void New() { frmEditGroupWage myEditGroupWage = new frmEditGroupWage(); myEditGroupWage.strDate = GetDate(); myEditGroupWage.New(); if (myEditGroupWage.ShowDialog() == DialogResult.OK) { DataBind(); } myEditGroupWage.Dispose(); }
/// <summary> /// 编辑工资 /// </summary> private void Edit() { if (gvList.FocusedRowHandle < 0) { return; } DataRow dr = gvList.GetDataRow(gvList.FocusedRowHandle); frmEditGroupWage myEditGroupWage = new frmEditGroupWage(); myEditGroupWage.strDate = GetDate(); myEditGroupWage.Edit(Convert.ToDecimal(dr["Aid"])); if (myEditGroupWage.ShowDialog() == DialogResult.OK) { DataBind(); } myEditGroupWage.Dispose(); }