Exemplo n.º 1
0
        /// <summary>
        /// 新增
        /// </summary>
        protected override void New()
        {
            frmEditAssetReduce myEditAssetReduce = new frmEditAssetReduce();

            myEditAssetReduce.New();
            myEditAssetReduce.ShowDialog();
            myEditAssetReduce.Dispose();

            base.New();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 编辑  
        /// </summary>
        protected override void Edit()
        {
            if (gvList.FocusedRowHandle < 0)
            {
                return;
            }

            DataRow            dr = gvList.GetDataRow(gvList.FocusedRowHandle);
            frmEditAssetReduce myEditAssetReduce = new frmEditAssetReduce();

            myEditAssetReduce.Edit(dr["Aid"].ToString());
            myEditAssetReduce.ShowDialog();
            myEditAssetReduce.Dispose();

            base.Edit();
        }