示例#1
0
        /// <summary>
        /// 新增
        /// </summary>
        private void New()
        {
            frmEditBank myEditBank = new frmEditBank();

            myEditBank.bFlag = true;
            myEditBank.ShowDialog();
            myEditBank.Dispose();
            DataBind();
        }
示例#2
0
        /// <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();
        }