/** * Make this field a reference to the current object in this record info class. * @param record tour.db.Record The current record to set this field to reference. * @param bDisplayOption If true, display changes. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setReference(Record record, boolean bDisplayOption, int iMoveMode) { return this.moveFieldToThis((BaseField)record.getCounterField(), bDisplayOption, iMoveMode); } /**
/** * Make this field a reference to the current object in this record info class. * @param record tour.db.Record The current record to set this field to reference. * @param bDisplayOption If true, display changes. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setReference(Record record, boolean bDisplayOption, int iMoveMode) { return this.moveFieldToThis((BaseField)record.getCounterField(), bDisplayOption, iMoveMode); } /**
/** * Make this field a reference to the current object in this record info class. * @param record tour.db.Record The current record to set this field to reference. * @param bDisplayOption If true, display changes. * @param iMoveMode The move mode. * @return The error code (or NORMAL_RETURN). */ public int setReference(Record record, boolean bDisplayOption, int iMoveMode) { return this.moveFieldToThis((BaseField)record.getCounterField(), bDisplayOption, iMoveMode); } /**
fldLandClass.moveFieldToThis((BaseField)recTour.getField(Tour.LAND_CLASS_ID), DBConstants.DISPLAY, DBConstants.INIT_MOVE); else
fldLandClass.moveFieldToThis((BaseField)recTour.getField(Tour.LAND_CLASS_ID), DBConstants.DISPLAY, DBConstants.INIT_MOVE); else
/** * SetupSFields Method. */ public void setupSFields() { Record recTrxStatus = this.getMainRecord(); Record recTrxDesc = this.getRecord(TrxDesc.TRX_DESC_FILE); Record recScreenRecord = this.getScreenRecord(); ((ReferenceField)recScreenRecord.getField(TrxStatusScreenRecord.TRX_DESC_ID)).setReferenceRecord(recTrxDesc); if (!recTrxDesc.getField(TrxDesc.ID).isNull()) recScreenRecord.getField(TrxStatusScreenRecord.TRX_DESC_ID).moveFieldToThis(recTrxDesc.getField(TrxDesc.ID)); else { ReferenceField field = (ReferenceField)recScreenRecord.getField(TrxStatusScreenRecord.TRX_DESC_ID); field.moveFieldToThis(recTrxStatus.getField(TrxStatus.TRX_DESC_ID)); if (field.isNull()) if (this.getProperty(DBParams.HEADER_OBJECT_ID) != null) field.setString(this.getProperty(DBParams.HEADER_OBJECT_ID)); field.getReference(); // Read the record } ((ReferenceField)recScreenRecord.getField(TrxStatusScreenRecord.TRX_SYSTEM_ID)).getReferenceRecord(this); this.getRecord(TrxStatus.TRX_STATUS_FILE).getField(TrxStatus.STATUS_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TrxStatus.TRX_STATUS_FILE).getField(TrxStatus.STATUS_DESC).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TrxStatus.TRX_STATUS_FILE).getField(TrxStatus.PREFERRED_SIGN).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); this.getRecord(TrxStatus.TRX_STATUS_FILE).getField(TrxStatus.ACTIVE_TRX).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY); } /**