BKI_DichVuMatDat.f993_phan_quyen_he_thong.delete_ht_phan_quyen_he_thong C# (CSharp) Method

delete_ht_phan_quyen_he_thong() private method

private delete_ht_phan_quyen_he_thong ( ) : void
return void
        private void delete_ht_phan_quyen_he_thong()
        {
            if (!CGridUtils.IsThere_Any_NonFixed_Row(m_fg)) return;
            if (!CGridUtils.isValid_NonFixed_RowIndex(m_fg, m_fg.Row)) return;
            if (CHRM_BaseMessages.askUser_DataCouldBeDeleted(8) != CHRM_BaseMessages.IsDataCouldBeDeleted.CouldBeDeleted) return;
            US_HT_PHAN_QUYEN_HE_THONG v_us = new US_HT_PHAN_QUYEN_HE_THONG();
            grid2us_object(v_us, m_fg.Row);
            try {
                v_us.BeginTransaction();
                v_us.Delete();
                v_us.CommitTransaction();
                m_fg.Rows.Remove(m_fg.Row);
            }
            catch (Exception v_e) {
                v_us.Rollback();
                CDBExceptionHandler v_objErrHandler = new CDBExceptionHandler(v_e,
                    new CDBClientDBExceptionInterpret());
                v_objErrHandler.showErrorMessage();
            }
        }