/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new Profile(this); } /**
/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new Affiliation(this); } /**
/** * Open the Other Files. */ public void openOtherRecords() { super.openOtherRecords(); new ProfileControl(this); } /**
/** * Add all the screen listeners. */ public void addListeners() { super.addListeners(); Booking recBooking = (Booking)this.getRecord(Booking.BOOKING_FILE); Profile recProfile = (Profile)this.getRecord(Profile.PROFILE_FILE); recBooking.addSecondProfile(recProfile); // Agency Secondary logic recProfile.setOpenMode(DBConstants.OPEN_REFRESH_AND_LOCK_ON_CHANGE_STRATEGY); recProfile.addListener(new UpdateOnCloseHandler(null)); // Make sure profile information is updated } /**
/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new ProfileField(this, PROFILE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 1) field = new CurrencyField(this, BALANCE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; }
/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new ShortField(this, PROFILE_KEY, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 1) field = new StringField(this, NAME_SORT, 15, null, null); if (iFieldSeq == 2) field = new StringField(this, POSTAL_CODE_SORT, 10, null, null); if (iFieldSeq == 3) field = new ProfileTypeFilter(this, PROFILE_TYPE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 4) field = new StringField(this, LAST_NAME_SORT, 15, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; } /**
/** * GetTrxAccountID Method. */ public BaseField getTrxAccountID(Record recBaseArTrx) { BaseField fldAccountID = null; ArControl recArControl = (ArControl)this.getRecord(ArControl.AR_CONTROL_FILE); Card recCard = (Card)((ReferenceField)recBaseArTrx.getField(CreditCard.CARD_ID)).getReference(); if (recCard != null) fldAccountID = recCard.getField(Card.CREDIT_CARD_REC_ACCOUNT_ID); if ((fldAccountID == null) || (fldAccountID.getValue() == 0)) fldAccountID = recArControl.getField(ArControl.CREDIT_CARD_REC_ACCOUNT_ID); return fldAccountID; } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new ArControl(this); new TrxStatus(this); new TransactionType(this); new Card(this); } /**
/** * OpenHeaderRecord Method. */ public Record openHeaderRecord() { return new Profile(this); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new BookingControl(this); new ProfileControl(this); Record recBooking = this.getMainRecord(); Record recTour = ((ReferenceField)recBooking.getField(Booking.TOUR_ID)).getReferenceRecord(this); recTour.setOpenMode((recTour.getOpenMode() & ~DBConstants.OPEN_READ_ONLY) | DBConstants.OPEN_LOCK_ON_CHANGE_STRATEGY); Record recTourHeader = ((ReferenceField)recTour.getField(Tour.TOUR_HEADER_ID)).getReferenceRecord(this); } /**
/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new Affiliation(this); } /**
/** * GetVarAccountID Method. */ public BaseField getVarAccountID(Record recBaseArTrx) { BaseField fldAccountID = null; ArControl recArControl = (ArControl)this.getRecord(ArControl.AR_CONTROL_FILE); Card recCard = (Card)((ReferenceField)recBaseArTrx.getField(CreditCard.CARD_ID)).getReference(); if (recCard != null) fldAccountID = recCard.getField(Card.CREDIT_CARD_VAR_ACCOUNT_ID); if ((fldAccountID == null) || (fldAccountID.getValue() == 0)) fldAccountID = recArControl.getField(ArControl.CREDIT_CARD_VAR_ACCOUNT_ID); return fldAccountID; }
/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new Profile(this); } /**
/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new Profile(this); } /**
/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new Profile(this); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new Profile(this); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new Profile(this); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new Profile(this); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new ArTrx(this); new Profile(this); new BookingLine(this); } /**
/** * Override this to open the other files in the query. */ public void openOtherRecords() { super.openOtherRecords(); new RequestControl(this); new Profile(this); new RequestDetail(this); new BundleDetail(this); new Brochure(this); } /**