/** * Convert the display's index to the field value and move to field. * @param index The index to convert an set this field to. * @param bDisplayOption If true, display the change in the converters. * @param iMoveMove The type of move. */ public int convertIndexToField(int index, boolean bDisplayOption, int iMoveMode) { String tempString = this.convertIndexToString(index); return this.setString(tempString, bDisplayOption, iMoveMode); // Move value to this field } /**
/** * Convert the display's index to the field value and move to field. * @param index The index to convert an set this field to. * @param bDisplayOption If true, display the change in the converters. * @param iMoveMove The type of move. */ public int convertIndexToField(int index, boolean bDisplayOption, int iMoveMode) { String tempString = this.convertIndexToString(index); return this.setString(tempString, bDisplayOption, iMoveMode); // Move value to this field } /**
/** * Convert the display's index to the field value and move to field. * @param index The index to convert an set this field to. * @param bDisplayOption If true, display the change in the converters. * @param iMoveMove The type of move. */ public int convertIndexToField(int index, boolean bDisplayOption, int iMoveMode) { String tempString = this.convertIndexToString(index); return this.setString(tempString, bDisplayOption, iMoveMode); // Move value to this field } /**
/** * 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); }
/** * SetProperty Method. */ public boolean setProperty(String strKey, String strProperty) { if (TrxMessageHeader.DESTINATION_PARAM.equalsIgnoreCase(strKey)) this.getField(Vendor.WEB).setString(strProperty); else ((PropertiesField)this.getField(Vendor.PROPERTIES)).setProperty(strKey, strProperty); return true; } /**
/** * RestoreProductParam Method. */ public static void restoreFieldParam(PropertyOwner propertyOwner, BaseField field) { String strFieldName = field.getFieldName(); if (propertyOwner.getProperty(strFieldName) != null) field.setString((String)propertyOwner.getProperty(strFieldName)); } /**
/** * RestoreProductParam Method. */ public void restoreProductParam(Map<String,Object> properties, int iFieldSeq, String strParamName) { if (strParamName == null) strParamName = this.getScreenRecord().getField(iFieldSeq).getFieldName(); if (properties.get(strParamName) != null) { this.getScreenRecord().getField(iFieldSeq).setString((String)properties.get(strParamName)); } } /**
/** * RestoreProductParam Method. */ public void restoreProductParam(Map<String,Object> properties, int iFieldSeq, String strParamName) { if (strParamName == null) strParamName = this.getScreenRecord().getField(iFieldSeq).getFieldName(); if (properties.get(strParamName) != null) { this.getScreenRecord().getField(iFieldSeq).setString((String)properties.get(strParamName)); } } /**
/** * FixRecord Method. */ public void fixRecord(Record record) { super.fixRecord(record); this.fixCapitalization(record.getField(City.DESCRIPTION)); this.fixCapitalization(record.getField(City.TICKET_CITY_DESC)); record.getField(City.CITY_TYPE).setString(CityTypeField.AIRPORT); }
/** * SetScreenFields Method. */ public void setScreenFields(Map<String,Object> properties) { super.setScreenFields(properties); Record recProduct = this.getMainRecord(); String strCarClass = (String)properties.get(SearchConstants.CAR_CLASS); this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID).setString(strCarClass); Record recProductControl = this.getRecord(ProductControl.PRODUCT_CONTROL_FILE); this.getScreenRecord().getField(ProductScreenRecord.RATE_ID).moveFieldToThis(recProductControl.getField(ProductControl.CAR_RATE_ID)); }
/** * SetScreenFields Method. */ public void setScreenFields(Map<String,Object> properties) { super.setScreenFields(properties); Record recProduct = this.getMainRecord(); String strPax = (String)properties.get(SearchConstants.PAX); this.getScreenRecord().getField(ProductScreenRecord.PAX).setString(strPax); Record recProductControl = this.getRecord(ProductControl.PRODUCT_CONTROL_FILE); this.getScreenRecord().getField(ProductScreenRecord.RATE_ID).moveFieldToThis(recProductControl.getField(ProductControl.LAND_RATE_ID)); }
/** * SetScreenFields Method. */ public void setScreenFields(Map<String,Object> properties) { super.setScreenFields(properties); Record recProduct = this.getMainRecord(); String strHotelClass = (String)properties.get(SearchConstants.HOTEL_CLASS); this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID).setString(strHotelClass); Record recProductControl = this.getRecord(ProductControl.PRODUCT_CONTROL_FILE); this.getScreenRecord().getField(ProductScreenRecord.RATE_ID).moveFieldToThis(recProductControl.getField(ProductControl.HOTEL_RATE_ID)); }
/** * SetScreenFields Method. */ public void setScreenFields(Map<String,Object> properties) { super.setScreenFields(properties); Record recProduct = this.getMainRecord(); String strCarClass = (String)properties.get(SearchConstants.CAR_CLASS); this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID).setString(strCarClass); Record recProductControl = this.getRecord(ProductControl.PRODUCT_CONTROL_FILE); this.getScreenRecord().getField(ProductScreenRecord.RATE_ID).moveFieldToThis(recProductControl.getField(ProductControl.CAR_RATE_ID)); }
/** * SetScreenFields Method. */ public void setScreenFields(Map<String,Object> properties) { super.setScreenFields(properties); Record recProduct = this.getMainRecord(); String strPax = (String)properties.get(SearchConstants.PAX); this.getScreenRecord().getField(ProductScreenRecord.PAX).setString(strPax); Record recProductControl = this.getRecord(ProductControl.PRODUCT_CONTROL_FILE); this.getScreenRecord().getField(ProductScreenRecord.RATE_ID).moveFieldToThis(recProductControl.getField(ProductControl.LAND_RATE_ID)); }
/** * SetScreenFields Method. */ public void setScreenFields(Map<String,Object> properties) { super.setScreenFields(properties); Record recProduct = this.getMainRecord(); String strHotelClass = (String)properties.get(SearchConstants.HOTEL_CLASS); this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID).setString(strHotelClass); Record recProductControl = this.getRecord(ProductControl.PRODUCT_CONTROL_FILE); this.getScreenRecord().getField(ProductScreenRecord.RATE_ID).moveFieldToThis(recProductControl.getField(ProductControl.HOTEL_RATE_ID)); }
/** * 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) { 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; }
/** * SetScreenFields Method. */ public void setScreenFields(Map<String,Object> properties) { super.setScreenFields(properties); Record recProduct = this.getMainRecord(); this.addThisRecordFilter(properties, City.CITY_FILE, SearchConstants.LOCATION_TO, TransportProduct.TO_CITY_ID, ProductScreenRecord.TO_CITY_ID); String strCruiseClass = (String)properties.get(SearchConstants.CRUISE_CLASS); this.getScreenRecord().getField(ProductScreenRecord.CLASS_ID).setString(strCruiseClass); Record recProductControl = this.getRecord(ProductControl.PRODUCT_CONTROL_FILE); this.getScreenRecord().getField(ProductScreenRecord.RATE_ID).moveFieldToThis(recProductControl.getField(ProductControl.CRUISE_RATE_ID)); }
/** * Set this field to the property with the same name. * @param iScreenField Screen field sequence with the same name. */ public void setThisProperty(String iScreenField) { if (this.getProperty(this.getScreenRecord().getField(iScreenField).getFieldName()) != null) this.getScreenRecord().getField(iScreenField).setString(this.getProperty(this.getScreenRecord().getField(iScreenField).getFieldName())); } /**
/** * Set this field to the property with the same name. * @param iScreenField Screen field sequence with the same name. */ public void setThisProperty(String iScreenField) { if (this.getProperty(this.getScreenRecord().getField(iScreenField).getFieldName()) != null) this.getScreenRecord().getField(iScreenField).setString(this.getProperty(this.getScreenRecord().getField(iScreenField).getFieldName())); } /**