/** * Lookup this record in this screen. * @param The file name of the record to find. * @param The record (or null if not found). */ public Record getRecord(String strFileName) { if (m_screenParent != null) return m_screenParent.getRecord(strFileName); // Look thru the parent window now else return null; } /**
/** * Lookup this record in this screen. * @param The file name of the record to find. * @param The record (or null if not found). */ public Record getRecord(String strFileName) { if (m_screenParent != null) return m_screenParent.getRecord(strFileName); // Look thru the parent window now else return null; } /**
/** * Move the control's value to the field. * @return An error value. */ public int controlToField() { Hotel query = (Hotel)this.getParentScreen().getRecord(Hotel.HOTEL_FILE); //+CQBkHotelDet screen2 = new CQBkHotelDet(null, query); //+screen2.makeWindow(); return DBConstants.NORMAL_RETURN; }
/** * Move the control's value to the field. * @return An error value. */ public int controlToField() { Land query = (Land)this.getParentScreen().getRecord(Land.LAND_FILE); //?CQBkLandDet screen2 = new CQBkLandDet(null, query); //?screen2.makeWindow(); return DBConstants.NORMAL_RETURN; }
/** * Move the control's value to the field. * @return An error value. */ public int controlToField() { Land query = (Land)this.getParentScreen().getRecord(Land.LAND_FILE); //?CQBkLandDet screen2 = new CQBkLandDet(null, query); //?screen2.makeWindow(); return DBConstants.NORMAL_RETURN; }
/** * Move the control's value to the field. * @return An error value. */ public int controlToField() { Hotel query = (Hotel)this.getParentScreen().getRecord(Hotel.HOTEL_FILE); //+CQBkHotelDet screen2 = new CQBkHotelDet(null, query); //+screen2.makeWindow(); return DBConstants.NORMAL_RETURN; }
/** * Lookup this record for this recordowner. * @param The record's name. * @return The record with this name (or null if not found). */ public Record getRecord(String strFileName) { if (m_vRecordList == null) return null; Record record = m_vRecordList.getRecord(strFileName); if (record != null) return record; return super.getRecord(strFileName); // Look thru the parent window now } /**
/** * Lookup this record for this recordowner. * @param The record's name. * @return The record with this name (or null if not found). */ public Record getRecord(String strFileName) { if (m_vRecordList == null) return null; Record record = m_vRecordList.getRecord(strFileName); if (record != null) return record; return super.getRecord(strFileName); // Look thru the parent window now } /**
/** * User clicked to button to add the booking passengers to the profile. */ public int doCommand(boolean bDisplayOption, int iMoveMode) { BookingPax recBookingPax = (BookingPax)m_screenParent.getRecord(BookingPax.BOOKING_PAX_FILE); Profile recProfile = (Profile)m_screenParent.getRecord(Profile.PROFILE_FILE); Profile recProfileDetail = (Profile)((ReferenceField)recBookingPax.getField(BookingPax.PROFILE_ID)).getReferenceRecord(); recBookingPax.addPaxDetail(recBookingPax, recProfileDetail); // Now create the maint screen for this new record if (recProfileDetail.getEditMode() == DBConstants.EDIT_CURRENT) { BasePanel parentScreen = Screen.makeWindow(m_screenParent.getTask().getApplication()); ScreenParent screen = recProfileDetail.makeScreen(null, parentScreen, ScreenConstants.MAINT_MODE, true, true, true, true, null); } return DBConstants.NORMAL_RETURN; }
/** * User clicked to button to add the booking passengers to the profile. */ public int doCommand(boolean bDisplayOption, int iMoveMode) { BookingPax recBookingPax = (BookingPax)m_screenParent.getRecord(BookingPax.BOOKING_PAX_FILE); Profile recProfile = (Profile)m_screenParent.getRecord(Profile.PROFILE_FILE); Profile recProfileDetail = (Profile)((ReferenceField)recBookingPax.getField(BookingPax.PROFILE_ID)).getReferenceRecord(); recBookingPax.addPaxDetail(recBookingPax, recProfileDetail); // Now create the maint screen for this new record if (recProfileDetail.getEditMode() == DBConstants.EDIT_CURRENT) { BasePanel parentScreen = Screen.makeWindow(m_screenParent.getTask().getApplication()); ScreenParent screen = recProfileDetail.makeScreen(null, parentScreen, ScreenConstants.MAINT_MODE, true, true, true, true, null); } return DBConstants.NORMAL_RETURN; }
screen = new BookingAgencyScreen(null, screenLocation, parentScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC | ScreenConstants.DONT_PUSH_TO_BROWSER, properties);break; case PAX_SCREEN: // Pax display if ( parentScreen.getRecord(Booking.BOOKING_FILE).getField(Booking.PAX).getValue() == 0) screen = new BookingPaxScreen(null, screenLocation, parentScreen, null, ScreenConstants.DONT_DISPLAY_FIELD_DESC | ScreenConstants.DONT_PUSH_TO_BROWSER, properties); else