private void m_cmdChapNhan_Click(System.Object sender, System.EventArgs e) { if (!this.CheckValidate()) { return; } this.Form2USObj(m_USTuDien); try { if (m_FormMode == IPConstants.DataEntryFormMode.InsertDataState) { m_USTuDien.Insert(); } else if (m_FormMode == IPConstants.DataEntryFormMode.UpdateDataState) { m_USTuDien.Update(); } m_DialogResult = DialogResult.OK; this.Close(); } catch (Exception v_e) { CDBExceptionHandler v_ErrHandler = new CDBExceptionHandler(v_e, new CDBClientDBExceptionInterpret()); v_ErrHandler.setErrorMsg(CDBExceptionHandler.DBErrorIndex.NoParentFound, "Không tìm thấy loại từ điển"); v_ErrHandler.showErrorMessage(); } }