/** * Called when a valid record is read from the table/query. * @param bDisplayOption If true, display any changes. */ public void doValidRecord(boolean bDisplayOption) { super.doValidRecord(bDisplayOption); // Initialize the record if (this.getOwner().getField(BookingPax.PAX_CATEGORY_ID).compareTo(m_recPaxCategory.getField(PaxCategory.ID)) != 0) { m_recPaxCategory.getField(PaxCategory.ID).moveFieldToThis(this.getOwner().getField(BookingPax.PAX_CATEGORY_ID)); try { int iOldOrder = m_recPaxCategory.getDefaultOrder(); m_recPaxCategory.setKeyArea(PaxCategory.ID_KEY); m_recPaxCategory.seek(DBConstants.EQUALS); m_recPaxCategory.setKeyArea(iOldOrder); } catch (DBException ex) { ex.printStackTrace(); } } m_sOldPaxType = (short)m_recPaxCategory.getField(PaxCategory.ROOM_TYPE).getValue(); // This is a valid pax } /**
/** * Called when a valid record is read from the table/query. * @param bDisplayOption If true, display any changes. */ public void doValidRecord(boolean bDisplayOption) { super.doValidRecord(bDisplayOption); // Initialize the record if (this.getOwner().getField(BookingPax.PAX_CATEGORY_ID).compareTo(m_recPaxCategory.getField(PaxCategory.ID)) != 0) { m_recPaxCategory.getField(PaxCategory.ID).moveFieldToThis(this.getOwner().getField(BookingPax.PAX_CATEGORY_ID)); try { int iOldOrder = m_recPaxCategory.getDefaultOrder(); m_recPaxCategory.setKeyArea(PaxCategory.ID_KEY); m_recPaxCategory.seek(DBConstants.EQUALS); m_recPaxCategory.setKeyArea(iOldOrder); } catch (DBException ex) { ex.printStackTrace(); } } m_sOldPaxType = (short)m_recPaxCategory.getField(PaxCategory.ROOM_TYPE).getValue(); // This is a valid pax } /**