/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE); Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE); recBooking.addArDetail(null, recBookingLine, false); recBookingLine.getField(BookingLine.PRICE).addListener(new CopyDataHandler(recBookingLine.getField(BookingLine.PRICING_STATUS_ID), new Integer(PricingStatus.MANUAL), null)); recBookingLine.addListener(new BookingLineStatusHandler(null)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); BookingLine recBookingLine = (BookingLine)this.getRecord(BookingLine.BOOKING_LINE_FILE); Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE); recBooking.addArDetail(null, recBookingLine, false); recBookingLine.getField(BookingLine.PRICE).addListener(new CopyDataHandler(recBookingLine.getField(BookingLine.PRICING_STATUS_ID), new Integer(PricingStatus.MANUAL), null)); recBookingLine.addListener(new BookingLineStatusHandler(null)); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.setAppending(false); this.setEditing(false); ArTrx recArTrx = (ArTrx)this.getRecord(ArTrx.AR_TRX_FILE); Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE); recBooking.addArDetail(recArTrx, null, false); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); this.setAppending(false); this.setEditing(false); this.getMainRecord().setSelected(true); // Need all selected to do source command. ArTrx recArTrx = (ArTrx)this.getRecord(ArTrx.AR_TRX_FILE); Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE); recBooking.addArDetail(recArTrx, null, false); } /**
recMco.getField(Mco.BOOKING_ID).addListener(new ReadSecondaryHandler(recBooking, null, true, true, true)); // Update record ArTrx recArTrx = (ArTrx)this.getRecord(ArTrx.AR_TRX_FILE); recBooking.addArDetail(recArTrx, null, false);
recCreditCard.getField(CreditCard.BOOKING_ID).addListener(new ReadSecondaryHandler(recBooking, null, true, true, true)); // Update record ArTrx recArTrx = (ArTrx)this.getRecord(ArTrx.AR_TRX_FILE); recBooking.addArDetail(recArTrx, null, false);
ArTrx recArTrx = (ArTrx)recBooking.addArDetail(null, null, true); if (recBooking.getField(Booking.BALANCE).getValue() != recBooking.getField(Booking.NET).getValue())