Example #1
0
        /// <summary>
        /// 新增工资
        /// </summary>
        private void New()
        {
            frmEditGroupWage myEditGroupWage = new frmEditGroupWage();

            myEditGroupWage.strDate = GetDate();
            myEditGroupWage.New();
            if (myEditGroupWage.ShowDialog() == DialogResult.OK)
            {
                DataBind();
            }
            myEditGroupWage.Dispose();
        }
Example #2
0
        /// <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();
        }