/** * The Field has Changed. * Don't need to call inherited. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { ((PropertiesInputModel)m_recPropertiesInput).loadFieldProperties((PropertiesField)this.getOwner()); return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * The Field has Changed. * Don't need to call inherited. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { m_recPropertiesInput.loadFieldProperties((PropertiesField)this.getOwner()); return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * The Field has Changed. * Don't need to call inherited. * @param bDisplayOption If true, display the change. * @param iMoveMode The type of move being done (init/read/screen). * @return The error code (or NORMAL_RETURN if okay). */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { m_recPropertiesInput.loadFieldProperties((PropertiesField)this.getOwner()); return super.fieldChanged(bDisplayOption, iMoveMode); }
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { // Override to do something! int iReturnCode = super.fieldChanged(bDisplayOption, iMoveMode); if (iMoveMode == DBConstants.SCREEN_MOVE) setEndDate(((DateTimeField)getOwner()).getDateTime()); return iReturnCode; } });
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { // Override to do something! int iReturnCode = super.fieldChanged(bDisplayOption, iMoveMode); if (iMoveMode == DBConstants.SCREEN_MOVE) setEndDate(((DateTimeField)getOwner()).getDateTime()); return iReturnCode; } });
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { int iKeyOrder = MessageLog.kContactTypeIDKey; if (this.getOwner().isNull()) iKeyOrder = MessageLog.kMessageTimeKey; getMainRecord().setKeyArea(iKeyOrder); return super.fieldChanged(bDisplayOption, iMoveMode); } });
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner() instanceof BooleanField) if (this.getOwner().getState() == true) { this.triggerEvent(m_iTourEventID, 0); } return super.fieldChanged(bDisplayOption, iMoveMode); } /**
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner() instanceof BooleanField) if (this.getOwner().getState() == true) { this.triggerEvent(m_iTourEventID, 0); } return super.fieldChanged(bDisplayOption, iMoveMode); } /**
public int doRecordChange(FieldInfo field, int iChangeType, boolean bDisplayOption) { int iErrorCode = super.doRecordChange(field, iChangeType, bDisplayOption); if (iErrorCode == DBConstants.NORMAL_RETURN) if (iChangeType == DBConstants.SELECT_TYPE) { BaseField fldDepartureDate = this.getOwner().getField(Tour.DEPARTURE_DATE); FieldListener listener = fldDepartureDate.getListener(ChangeTourHeaderHandler.class); listener.fieldChanged(bDisplayOption, DBConstants.SCREEN_MOVE); // Fake a departure date change } return iErrorCode; } });
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { int iTourStatus = (int)this.getOwner().getValue(); if (iTourStatus == TourStatus.OKAY) this.getOwner().getRecord().getField(Tour.SERV_CONF).setState(true, bDisplayOption, iMoveMode); // Trigger the services confirmed event return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { int iTourStatus = (int)this.getOwner().getValue(); if (iTourStatus == TourStatus.OKAY) this.getOwner().getRecord().getField(Tour.SERV_CONF).setState(true, bDisplayOption, iMoveMode); // Trigger the services confirmed event return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { int iErrorCode = super.fieldChanged(bDisplayOption, iMoveMode); if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; String strDesc = ((BookingDetail)this.getOwner().getRecord()).setupProductDesc(); iErrorCode = this.getOwner().getRecord().getField(BookingDetail.DESCRIPTION).setString(strDesc); return iErrorCode; }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner().getRecord().getField(Tour.FINALIZED).getState() == true) ((Tour)this.getOwner().getRecord()).updateTourApTrx(null, null); return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner().getRecord().getField(Tour.FINALIZED).getState() == true) ((Tour)this.getOwner().getRecord()).updateTourApTrx(null, null); return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { int iErrorCode = super.fieldChanged(bDisplayOption, iMoveMode); if (iErrorCode != DBConstants.NORMAL_RETURN) return iErrorCode; String strDesc = ((BookingDetail)this.getOwner().getRecord()).setupProductDesc(); iErrorCode = this.getOwner().getRecord().getField(BookingDetail.DESCRIPTION).setString(strDesc); return iErrorCode; }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner().getValue() > 0) m_fldSign.setString(PreferredSignField.POSITIVE); else if (this.getOwner().getValue() < 0) m_fldSign.setString(PreferredSignField.NEGATIVE); else m_fldSign.setString(DBConstants.BLANK); return super.fieldChanged(bDisplayOption, iMoveMode); }
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (iMoveMode != DBConstants.SCREEN_MOVE) // This is necessary if an override change the repondsTo. // Also, if just refreshing the record, don't change this if set if ((m_bChangeDataOnRefresh) || ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE) != DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE)) if ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_UPDATE_LAST_READ) != DBConstants.OPEN_DONT_UPDATE_LAST_READ) // This is a special case where I want a subsequent write to get an error if changed this.setOriginalData(this.getOwner().getData()); return super.fieldChanged(bDisplayOption, iMoveMode); } /**
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (iMoveMode != DBConstants.SCREEN_MOVE) // This is necessary if an override change the repondsTo. // Also, if just refreshing the record, don't change this if set if ((m_bChangeDataOnRefresh) || ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE) != DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE)) if ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_UPDATE_LAST_READ) != DBConstants.OPEN_DONT_UPDATE_LAST_READ) // This is a special case where I want a subsequent write to get an error if changed this.setOriginalData(this.getOwner().getData()); return super.fieldChanged(bDisplayOption, iMoveMode); } /**
public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (iMoveMode != DBConstants.SCREEN_MOVE) // This is necessary if an override change the repondsTo. // Also, if just refreshing the record, don't change this if set if ((m_bChangeDataOnRefresh) || ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE) != DBConstants.OPEN_DONT_CHANGE_CURRENT_LOCK_TYPE)) if ((this.getOwner().getRecord().getOpenMode() & DBConstants.OPEN_DONT_UPDATE_LAST_READ) != DBConstants.OPEN_DONT_UPDATE_LAST_READ) // This is a special case where I want a subsequent write to get an error if changed this.setOriginalData(this.getOwner().getData()); return super.fieldChanged(bDisplayOption, iMoveMode); } /**
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { double dGross = this.getOwner().getRecord().getField(Mco.GROSS).getValue(); double dCommAmt = this.getOwner().getRecord().getField(Mco.COMM_AMT).getValue(); double dSvcAmt = this.getOwner().getRecord().getField(Mco.SVC_AMT).getValue(); double dTaxAmt = this.getOwner().getRecord().getField(Mco.TAX_AMT).getValue(); double dNet = Math.floor((dGross - dCommAmt - dSvcAmt - dTaxAmt) * 100.00 + 0.5) / 100.00; this.getOwner().getRecord().getField(Mco.NET).setValue(dNet); return super.fieldChanged(bDisplayOption, iMoveMode); }