/** * Add the behaviors needed to read the bundles in the addBundle method. */ public void addBundleBehaviors(Record recBundle, Record recBundleDetail, Record recItem) { if (recItem != null) recBundleDetail.getField(BundleDetail.BROCHURE_ID).addListener(new ReadSecondaryHandler(recItem)); recBundleDetail.addListener(new SubFileFilter(recBundle)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getRecord(Tour.TOUR_FILE).getField(Tour.TOUR_HEADER_ID)).addListener(new ReadSecondaryHandler(this.getRecord(TourHeader.TOUR_HEADER_FILE))); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getRecord(Tour.TOUR_FILE).getField(Tour.TOUR_HEADER_ID)).addListener(new ReadSecondaryHandler(this.getRecord(TourHeader.TOUR_HEADER_FILE))); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(InventoryDetail.BOOKING_DETAIL_ID).addListener(new ReadSecondaryHandler(this.getRecord(BookingDetail.BOOKING_DETAIL_FILE))); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).getField(BookingDetail.BOOKING_ID).addListener(new ReadSecondaryHandler(this.getRecord(Booking.BOOKING_FILE))); this.getRecord(Booking.BOOKING_FILE).getField(Booking.TOUR_ID).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.setEnabled(false); // Can't change anything this.setAppending(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(InventoryDetail.BOOKING_DETAIL_ID).addListener(new ReadSecondaryHandler(this.getRecord(BookingDetail.BOOKING_DETAIL_FILE))); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).getField(BookingDetail.BOOKING_ID).addListener(new ReadSecondaryHandler(this.getRecord(Booking.BOOKING_FILE))); this.getRecord(Booking.BOOKING_FILE).getField(Booking.TOUR_ID).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.setEnabled(false); // Can't change anything this.setAppending(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(InventoryDetail.BOOKING_DETAIL_ID).addListener(new ReadSecondaryHandler(this.getRecord(BookingDetail.BOOKING_DETAIL_FILE))); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).getField(BookingDetail.BOOKING_ID).addListener(new ReadSecondaryHandler(this.getRecord(Booking.BOOKING_FILE))); this.getRecord(Booking.BOOKING_FILE).getField(Booking.TOUR_ID).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.setEnabled(false); // Can't change anything this.setAppending(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(InventoryDetail.BOOKING_DETAIL_ID).addListener(new ReadSecondaryHandler(this.getRecord(BookingDetail.BOOKING_DETAIL_FILE))); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).getField(BookingDetail.BOOKING_ID).addListener(new ReadSecondaryHandler(this.getRecord(Booking.BOOKING_FILE))); this.getRecord(Booking.BOOKING_FILE).getField(Booking.TOUR_ID).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.setEnabled(false); // Can't change anything this.setAppending(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(AcctDetailDist.ACCT_DETAIL_ID).addListener(new ReadSecondaryHandler(this.getRecord(AcctDetail.ACCT_DETAIL_FILE))); this.setEditing(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().getField(AcctDetailDist.ACCT_DETAIL_ID).addListener(new ReadSecondaryHandler(this.getRecord(AcctDetail.ACCT_DETAIL_FILE))); this.setEditing(false); this.getRecord(AcctDetailDist.ACCT_DETAIL_DIST_FILE).getField(AcctDetailDist.ACCT_DETAIL_ID).setEnabled(true); this.getRecord(AcctDetailDist.ACCT_DETAIL_DIST_FILE).getField(AcctDetailDist.TRX_ID).setEnabled(true); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); Record recAcctDetailDist = this.getHeaderRecord(); this.removeRecord(recAcctDetailDist); // Do not add this to the screen (because it may get mixed up with the detail record). this.getMainRecord().addListener(new FreeOnFreeHandler(recAcctDetailDist)); this.getMainRecord().getField(AcctDetailDist.ACCT_DETAIL_ID).addListener(new ReadSecondaryHandler(this.getRecord(AcctDetail.ACCT_DETAIL_FILE))); this.setEditing(false); this.setAppending(false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ItineraryScreenRecord.TOUR_ID)).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.getRecord(Booking.BOOKING_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); this.getRecord(ApTrx.AP_TRX_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); ((ReferenceField)this.getScreenRecord().getField(ItineraryScreenRecord.TOUR_ID)).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.getRecord(Booking.BOOKING_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); this.getRecord(ApTrx.AP_TRX_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); Record recVendor = ((ReferenceField)this.getMainRecord().getField(ApTrx.VENDOR_ID)).getReferenceRecord(this); this.getMainRecord().getField(ApTrx.VENDOR_ID).addListener(new ReadSecondaryHandler(recVendor)); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).addListener(new SubFileFilter(this.getRecord(ApTrx.AP_TRX_FILE))); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).setKeyArea(BookingDetail.AP_TRX_ID_KEY); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getMainRecord().addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); Record recVendor = ((ReferenceField)this.getMainRecord().getField(ApTrx.VENDOR_ID)).getReferenceRecord(this); this.getMainRecord().getField(ApTrx.VENDOR_ID).addListener(new ReadSecondaryHandler(recVendor)); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).addListener(new SubFileFilter(this.getRecord(ApTrx.AP_TRX_FILE))); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).setKeyArea(BookingDetail.AP_TRX_ID_KEY); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID).moveFieldToThis(this.getHeaderRecord().getField(TourClass.ID)); ((ReferenceField)this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID)).setReferenceRecord(this.getHeaderRecord()); this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID).addListener(new ReadSecondaryHandler(((ReferenceField)this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID)).getReferenceRecord())); if (this.getHeaderRecord().getField(TourClass.ID).isNull()) this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID).moveFieldToThis(this.getRecord(BookingControl.BOOKING_CONTROL_FILE).getField(BookingControl.TOUR_CLASS_ID)); this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID).moveFieldToThis(this.getHeaderRecord().getField(TourClass.ID)); ((ReferenceField)this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID)).setReferenceRecord(this.getHeaderRecord()); this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID).addListener(new ReadSecondaryHandler(((ReferenceField)this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID)).getReferenceRecord())); if (this.getHeaderRecord().getField(TourClass.ID).isNull()) this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID).moveFieldToThis(this.getRecord(BookingControl.BOOKING_CONTROL_FILE).getField(BookingControl.TOUR_CLASS_ID)); this.getScreenRecord().getField(TourClassScreenRecord.TOUR_CLASS_ID).addListener(new FieldReSelectHandler(this)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); Record recBooking = ((ReferenceField)this.getScreenRecord().getField(ItineraryScreenRecord.BOOKING_ID)).getReferenceRecord(); MoveOnValidHandler moveHandler = new MoveOnValidHandler(this.getScreenRecord().getField(ItineraryScreenRecord.TOUR_ID), recBooking.getField(Booking.TOUR_ID)); recBooking.addListener(moveHandler); ((ReferenceField)this.getScreenRecord().getField(ItineraryScreenRecord.TOUR_ID)).addListener(new ReadSecondaryHandler(this.getRecord(Tour.TOUR_FILE))); this.getRecord(Booking.BOOKING_FILE).addListener(new SubFileFilter(this.getRecord(Tour.TOUR_FILE))); this.getRecord(Booking.BOOKING_FILE).addListener(new CompareFileFilter(this.getRecord(Booking.BOOKING_FILE).getField(Booking.ID), this.getScreenRecord().getField(ItineraryScreenRecord.BOOKING_ID), DBConstants.EQUALS)); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).addListener(new SubFileFilter(this.getRecord(Booking.BOOKING_FILE))); this.getRecord(BookingDetail.BOOKING_DETAIL_FILE).setKeyArea(BookingDetail.BOOKING_ID_KEY); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getScreenRecord().getField(RequestLabelsScreenRecord.SEND_VIA_ID).addListener(new InitFieldHandler(this.getRecord(RequestControl.REQUEST_CONTROL_FILE).getField(RequestControl.SEND_VIA_CODE))); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Request.SEND_VIA_CODE), this.getScreenRecord().getField(RequestLabelsScreenRecord.SEND_VIA_ID), "=")); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Request.PRINT_NOW), this.getScreenRecord().getField(RequestLabelsScreenRecord.TRUE_FIELD), "=")); this.getRecord(RequestDetail.REQUEST_DETAIL_FILE).addListener(new SubFileFilter(this.getMainRecord())); this.getMainRecord().addListener(new SetupLabelTextHandler(null)); this.getRecord(RequestDetail.REQUEST_DETAIL_FILE).getField(RequestDetail.BROCHURE_ID).addListener(new ReadSecondaryHandler(this.getRecord(Brochure.BROCHURE_FILE))); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getScreenRecord().getField(RequestLabelsScreenRecord.SEND_VIA_ID).addListener(new InitFieldHandler(this.getRecord(RequestControl.REQUEST_CONTROL_FILE).getField(RequestControl.SEND_VIA_CODE))); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Request.SEND_VIA_CODE), this.getScreenRecord().getField(RequestLabelsScreenRecord.SEND_VIA_ID), "=")); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Request.PRINT_NOW), this.getScreenRecord().getField(RequestLabelsScreenRecord.TRUE_FIELD), "=")); this.getRecord(RequestDetail.REQUEST_DETAIL_FILE).addListener(new SubFileFilter(this.getMainRecord())); this.getMainRecord().addListener(new SetupLabelTextHandler(null)); this.getRecord(RequestDetail.REQUEST_DETAIL_FILE).getField(RequestDetail.BROCHURE_ID).addListener(new ReadSecondaryHandler(this.getRecord(Brochure.BROCHURE_FILE))); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.getScreenRecord().getField(RequestLabelsScreenRecord.SEND_VIA_ID).addListener(new InitFieldHandler(this.getRecord(RequestControl.REQUEST_CONTROL_FILE).getField(RequestControl.SEND_VIA_CODE))); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Request.SEND_VIA_CODE), this.getScreenRecord().getField(RequestLabelsScreenRecord.SEND_VIA_ID), "=")); this.getMainRecord().addListener(new CompareFileFilter(this.getMainRecord().getField(Request.PRINT_NOW), this.getScreenRecord().getField(RequestLabelsScreenRecord.TRUE_FIELD), "=")); this.getRecord(RequestDetail.REQUEST_DETAIL_FILE).addListener(new SubFileFilter(this.getMainRecord())); this.getMainRecord().addListener(new SetupLabelTextHandler(null)); this.getRecord(RequestDetail.REQUEST_DETAIL_FILE).getField(RequestDetail.BROCHURE_ID).addListener(new ReadSecondaryHandler(this.getRecord(Brochure.BROCHURE_FILE))); } /**