/** * Do the physical move operation. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { if (m_bDontMoveNull) if (m_fldSource.getLength() == 0) // Only move if dest is null return DBConstants.NORMAL_RETURN; if (m_bClearIfThisNull) if (this.getOwner().getLength() == 0) // If this is null, clear the dest field return ((BaseField)m_fldDest.getField()).moveFieldToThis(this.getOwner(), bDisplayOption, iMoveMode); // Move dependent field to here if (m_bOnlyIfDestNull) if (m_fldDest.getLength() != 0) // Only move if dest is null return DBConstants.NORMAL_RETURN; int iErrorCode = this.moveSourceToDest(bDisplayOption, iMoveMode); if (iErrorCode == DBConstants.NORMAL_RETURN) if (m_fldDest == m_fldSource) return ((BaseField)m_fldDest.getField()).handleFieldChanged(bDisplayOption, iMoveMode); // Special case, move to yourself (Just want to call .FieldChanged()) return iErrorCode; } /**
/** * Do the physical move operation. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { if (m_bDontMoveNull) if (m_fldSource.getLength() == 0) // Only move if dest is null return DBConstants.NORMAL_RETURN; if (m_bClearIfThisNull) if (this.getOwner().getLength() == 0) // If this is null, clear the dest field return ((BaseField)m_fldDest.getField()).moveFieldToThis(this.getOwner(), bDisplayOption, iMoveMode); // Move dependent field to here if (m_bOnlyIfDestNull) if (m_fldDest.getLength() != 0) // Only move if dest is null return DBConstants.NORMAL_RETURN; int iErrorCode = this.moveSourceToDest(bDisplayOption, iMoveMode); if (iErrorCode == DBConstants.NORMAL_RETURN) if (m_fldDest == m_fldSource) return ((BaseField)m_fldDest.getField()).handleFieldChanged(bDisplayOption, iMoveMode); // Special case, move to yourself (Just want to call .FieldChanged()) return iErrorCode; } /**
/** * Do the physical move operation. * @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 moveIt(boolean bDisplayOption, int iMoveMode) { if (m_bDontMoveNull) if (m_fldSource.getLength() == 0) // Only move if dest is null return DBConstants.NORMAL_RETURN; if (m_bClearIfThisNull) if (this.getOwner().getLength() == 0) // If this is null, clear the dest field return ((BaseField)m_fldDest.getField()).moveFieldToThis(this.getOwner(), bDisplayOption, iMoveMode); // Move dependent field to here if (m_bOnlyIfDestNull) if (m_fldDest.getLength() != 0) // Only move if dest is null return DBConstants.NORMAL_RETURN; int iErrorCode = this.moveSourceToDest(bDisplayOption, iMoveMode); if (iErrorCode == DBConstants.NORMAL_RETURN) if (m_fldDest == m_fldSource) return ((BaseField)m_fldDest.getField()).handleFieldChanged(bDisplayOption, iMoveMode); // Special case, move to yourself (Just want to call .FieldChanged()) return iErrorCode; } /**