/** * GetString Method. */ public String getString() { String string = Constants.BLANK; if (this.getNextConverter().getLength() != 0) { double doubleValue = ((NumberField)this.getNextConverter()).getValue(); if (doubleValue != 0) doubleValue = (doubleValue + m_PaxInRoom - 1) / m_PaxInRoom; string = Short.toString((short)doubleValue); } return string; }
/** * GetString Method. */ public String getString() { String string = Constants.BLANK; if (this.getNextConverter().getLength() != 0) { double doubleValue = ((NumberField)this.getNextConverter()).getValue(); if (doubleValue != 0) doubleValue = (doubleValue + m_PaxInRoom - 1) / m_PaxInRoom; string = Short.toString((short)doubleValue); } return string; }
/** * Retrieve (in string format) from this field. * @return The string of the recriprical of this field's value. */ public String getString() { String string = Constants.BLANK; NumberField numberField = (NumberField)this.getField(); if (this.getNextConverter().getLength() != 0) { double dValue = this.getValue(); if (dValue != 0) dValue = 1 / dValue; if (m_mfRecip == null) m_mfRecip = NumberFormat.getInstance(); m_mfRecip.setMinimumFractionDigits(numberField.getScale()); m_mfRecip.setMaximumFractionDigits(numberField.getScale()); string = m_mfRecip.format(dValue); } return string; } /**
/** * Retrieve (in string format) from this field. * @return The string of the recriprical of this field's value. */ public String getString() { String string = Constants.BLANK; NumberField numberField = (NumberField)this.getField(); if (this.getNextConverter().getLength() != 0) { double dValue = this.getValue(); if (dValue != 0) dValue = 1 / dValue; if (m_mfRecip == null) m_mfRecip = NumberFormat.getInstance(); m_mfRecip.setMinimumFractionDigits(numberField.getScale()); m_mfRecip.setMaximumFractionDigits(numberField.getScale()); string = m_mfRecip.format(dValue); } return string; } /**
/** * Retrieve (in string format) from this field. * @return The string of the recriprical of this field's value. */ public String getString() { String string = Constants.BLANK; NumberField numberField = (NumberField)this.getField(); if (this.getNextConverter().getLength() != 0) { double dValue = this.getValue(); if (dValue != 0) dValue = 1 / dValue; if (m_mfRecip == null) m_mfRecip = NumberFormat.getInstance(); m_mfRecip.setMinimumFractionDigits(numberField.getScale()); m_mfRecip.setMaximumFractionDigits(numberField.getScale()); string = m_mfRecip.format(dValue); } return string; } /**
/** * 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; } /**