/** * Add icon to popup. */ public ScreenField setupPopupView(ScreenLocation itsLocation, BasePanel targetScreen, Converter converter, int iDisplayFieldDesc, boolean bIncludeBlankOption) { ScreenField screenField = null; Record record = this.makeReferenceRecord(); // Set up the listener to read the current record on a valid main record screenField = this.setupIconView(itsLocation, targetScreen, converter, iDisplayFieldDesc, bIncludeBlankOption); if ((!(targetScreen instanceof GridScreen)) && (iDisplayFieldDesc != ScreenConstants.DONT_DISPLAY_FIELD_DESC)) { // If it is not in a grid screen, add the description if (screenField != null) { itsLocation = targetScreen.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR); iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_FIELD_DESC; } screenField = this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, -1, -1, bIncludeBlankOption, false); } return screenField; } }
/** * Add icon to popup. */ public ScreenField setupPopupView(ScreenLocation itsLocation, BasePanel targetScreen, Converter converter, int iDisplayFieldDesc, boolean bIncludeBlankOption) { ScreenField screenField = null; Record record = this.makeReferenceRecord(); // Set up the listener to read the current record on a valid main record screenField = this.setupIconView(itsLocation, targetScreen, converter, iDisplayFieldDesc, bIncludeBlankOption); if ((!(targetScreen instanceof GridScreen)) && (iDisplayFieldDesc != ScreenConstants.DONT_DISPLAY_FIELD_DESC)) { // If it is not in a grid screen, add the description if (screenField != null) { itsLocation = targetScreen.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR); iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_FIELD_DESC; } screenField = this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, -1, -1, bIncludeBlankOption, false); } return screenField; } }
/** * Add icon to popup. */ public ScreenComponent setupPopupView(ScreenLoc itsLocation, ComponentParent targetScreen, Convert converter, int iDisplayFieldDesc, boolean bIncludeBlankOption) { ScreenComponent screenField = null; Record record = this.makeReferenceRecord(); // Set up the listener to read the current record on a valid main record screenField = this.setupIconView(itsLocation, targetScreen, converter, iDisplayFieldDesc, bIncludeBlankOption); if ((!(targetScreen instanceof GridScreenParent)) && (iDisplayFieldDesc != ScreenConstants.DONT_DISPLAY_FIELD_DESC)) { // If it is not in a grid screen, add the description if (screenField != null) { itsLocation = targetScreen.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR); iDisplayFieldDesc = ScreenConstants.DONT_DISPLAY_FIELD_DESC; } screenField = this.setupTablePopup(itsLocation, targetScreen, converter, iDisplayFieldDesc, record, -1, -1, bIncludeBlankOption, false); } return screenField; } }
/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { if (m_recordReference == null) if (this.getRecord() instanceof BookingDetailModel) { ProductTypeField fldProductType = (ProductTypeField)this.getRecord().getField(BookingDetailModel.PRODUCT_TYPE_ID); ProductType recProductType = (ProductType)fldProductType.getReference(); String strProductType = recProductType.getField(ProductType.DESCRIPTION).toString(); if ("Tour".equalsIgnoreCase(strProductType)) strProductType = "TourHeader"; if (recProductType != null) return Product.getProductRecord(strProductType, recordOwner); } return super.makeReferenceRecord(recordOwner); // Return current reference }
/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { if (m_recordReference == null) if (this.getRecord() instanceof BookingDetailModel) { ProductTypeField fldProductType = (ProductTypeField)this.getRecord().getField(BookingDetailModel.PRODUCT_TYPE_ID); ProductType recProductType = (ProductType)fldProductType.getReference(); String strProductType = recProductType.getField(ProductType.DESCRIPTION).toString(); if ("Tour".equalsIgnoreCase(strProductType)) strProductType = "TourHeader"; if (recProductType != null) return Product.getProductRecord(strProductType, recordOwner); } return super.makeReferenceRecord(recordOwner); // Return current reference }
Record recBookingAirHeader = ((ReferenceField)this.getField()).makeReferenceRecord();
/** * Set up all the screen fields. */ public void setupSFields() { this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.DAY).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.PRODUCT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.ETD).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.RATE_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.CLASS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.addStandardScreenFields(true); }
/** * Set up all the screen fields. */ public void setupSFields() { this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.DAY).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.PRODUCT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.ETD).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.RATE_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.CLASS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.addStandardScreenFields(true); }
/** * Set up all the screen fields. */ public void setupSFields() { this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.DAY).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.PRODUCT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.ETD).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.RATE_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.CLASS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(TourHeaderCruise.TOUR_HEADER_CRUISE_FILE).getField(TourHeaderCruise.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.addStandardScreenFields(true); }
/** * Set up all the screen fields. */ public void setupSFields() { this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.DAY).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.PRODUCT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.ETD).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.RATE_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.CLASS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(TourHeaderTransportation.TOUR_HEADER_TRANSPORTATION_FILE).getField(TourHeaderTransportation.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.addStandardScreenFields(true); }
/** * Set up all the screen fields. */ public void setupSFields() { this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.DAY).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.PRODUCT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.ETD).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.DAYS).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.RATE_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.CLASS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.addStandardScreenFields(true); }
/** * Set up all the screen fields. */ public void setupSFields() { this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.DAY).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.PRODUCT_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.ETD).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.DAYS).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.RATE_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.CLASS_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(TourHeaderCar.TOUR_HEADER_CAR_FILE).getField(TourHeaderCar.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getMainRecord().getField(TourHeaderTransport.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.addStandardScreenFields(true); }
((ReferenceField)this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID)).makeReferenceRecord(this); // Make sure this record is referenced this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID).addListener(new InitFieldHandler(this.getRecord(ApControl.AP_CONTROL_FILE).getField(ApControl.AP_BANK_ACCT_ID))); this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID).addListener(listener); ((ReferenceField)this.getMainRecord().getField(PaymentRequest.VENDOR_ID)).makeReferenceRecord(this); // Make sure this record is referenced
((ReferenceField)this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID)).makeReferenceRecord(this); // Make sure this record is referenced this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID).addListener(new InitFieldHandler(this.getRecord(ApControl.AP_CONTROL_FILE).getField(ApControl.AP_BANK_ACCT_ID))); this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID).addListener(listener); ((ReferenceField)this.getMainRecord().getField(PaymentRequest.VENDOR_ID)).makeReferenceRecord(this); // Make sure this record is referenced
((ReferenceField)this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID)).makeReferenceRecord(this); // Make sure this record is referenced this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID).addListener(new InitFieldHandler(this.getRecord(ApControl.AP_CONTROL_FILE).getField(ApControl.AP_BANK_ACCT_ID))); this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID).addListener(listener); ((ReferenceField)this.getMainRecord().getField(PaymentRequest.VENDOR_ID)).makeReferenceRecord(this); // Make sure this record is referenced
((ReferenceField)this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID)).makeReferenceRecord(this); // Make sure this record is referenced this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID).addListener(new InitFieldHandler(this.getRecord(ApControl.AP_CONTROL_FILE).getField(ApControl.AP_BANK_ACCT_ID))); this.getScreenRecord().getField(PaymentRequestScreenRecord.BANK_ACCT_ID).addListener(listener); ((ReferenceField)this.getMainRecord().getField(PaymentRequest.VENDOR_ID)).makeReferenceRecord(this); // Make sure this record is referenced
this.getRecord(Transportation.TRANSPORTATION_FILE).getField(Transportation.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getMainRecord().getField(TransportProduct.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(Transportation.TRANSPORTATION_FILE).getField(Transportation.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getMainRecord().getField(TransportProduct.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(Transportation.TRANSPORTATION_FILE).getField(Transportation.TRANS_REVERSE_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(Transportation.TRANSPORTATION_FILE).getField(Transportation.OPERATORS_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
this.getRecord(Air.AIR_FILE).getField(Air.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getRecord(Air.AIR_FILE).getField(Air.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(Air.AIR_FILE).getField(Air.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getRecord(Air.AIR_FILE).getField(Air.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(Air.AIR_FILE).getField(Air.ETD).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(Air.AIR_FILE).getField(Air.ARRIVE_TIME).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
this.getRecord(Air.AIR_FILE).getField(Air.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getRecord(Air.AIR_FILE).getField(Air.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(Air.AIR_FILE).getField(Air.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getRecord(Air.AIR_FILE).getField(Air.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(Air.AIR_FILE).getField(Air.ETD).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(Air.AIR_FILE).getField(Air.ARRIVE_TIME).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
this.getRecord(Transportation.TRANSPORTATION_FILE).getField(Transportation.CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); ReferenceField field = (ReferenceField)this.getMainRecord().getField(TransportProduct.CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(Transportation.TRANSPORTATION_FILE).getField(Transportation.TO_CITY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); field = (ReferenceField)this.getMainRecord().getField(TransportProduct.TO_CITY_ID); field.setupTableLookup(this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR), this, ScreenConstants.DONT_DISPLAY_FIELD_DESC, field.makeReferenceRecord(), null, City.DESCRIPTION, false); this.getRecord(Transportation.TRANSPORTATION_FILE).getField(Transportation.TRANS_REVERSE_ID).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(Transportation.TRANSPORTATION_FILE).getField(Transportation.OPERATORS_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);