Example #1
0
        /// <summary>
        /// 新增
        /// </summary>
        protected override void New()
        {
            frmEditAsset myEditAsset = new frmEditAsset();

            myEditAsset.New();
            myEditAsset.ShowDialog();
            myEditAsset.Dispose();

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

            DataRow      dr          = gvList.GetDataRow(gvList.FocusedRowHandle);
            frmEditAsset myEditAsset = new frmEditAsset();

            myEditAsset.Edit(dr["F_ID"].ToString());
            myEditAsset.ShowDialog();
            myEditAsset.Dispose();

            base.Edit();
        }