/** * Initialize the field. */ public int initField(boolean displayOption) { return this.setValue(todaysDate(), displayOption, DBConstants.INIT_MOVE); }
/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { return new PricingType(recordOwner); } /**
/** * SetupRelationships Method. */ public void setupRelationships() { this.addRelationship(DBConstants.LEFT_OUTER, this.getRecord(TourHeader.TOUR_HEADER_FILE), this.getRecord(City.CITY_FILE), TourHeader.CITY_ID, City.ID); this.addRelationship(DBConstants.LEFT_OUTER, this.getRecord(TourHeader.TOUR_HEADER_FILE), this.getRecord(Vendor.VENDOR_FILE), TourHeader.VENDOR_ID, Vendor.ID); }
/** * Open the header record. * @return The new header record. */ public Record openHeaderRecord() { return new TourHeader(this); } /**
/** * Get the tour cost for the pax category. */ public double getTourCost(Date dateTarget, TourMessageData productMessageData, boolean bGetPrice) { return this.getTourCost(dateTarget, TourHeaderOption.TOUR, this.getField(TourHeader.ID), productMessageData, bGetPrice); } /**
/** * Open the header record. * @return The new header record. */ public Record openHeaderRecord() { return new TourHeaderOption(this); } /**
/** * Initialize the field. */ public int initField(boolean displayOption) { return this.setValue(todaysDate(), displayOption, DBConstants.INIT_MOVE); }
/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { return new TourClass(recordOwner); } /**
/** * Constructor. */ public PricingType(RecordOwner screen) { this(); this.init(screen); } /**
/** * Initialize class fields. */ public void init(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { super.init(record, strName, iDataLength, strDesc, strDefault); }
/** * Constructor. */ public TourList(RecordOwner screen) { this(); this.init(screen); } /**
/** * Constructor. */ public TourStatus(RecordOwner screen) { this(); this.init(screen); } /**
/** * TourHeader_EndDate Method. */ public TourHeader_EndDate(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { this(); this.init(record, strName, iDataLength, strDesc, strDefault); } /**
/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { return new TourStatus(recordOwner); }
/** * Initialize class fields. */ public void init(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { super.init(record, strName, iDataLength, strDesc, strDefault); } /**
/** * Initialize class fields. */ public void init(Record record, String strName, int iDataLength, String strDesc, Object strDefault) { super.init(record, strName, iDataLength, strDesc, strDefault); } /**
/** * Constructor. */ public TourHeaderChain(RecordOwner screen) { this(); this.init(screen); } /**
/** * Get (or make) the current record for this reference. */ public Record makeReferenceRecord(RecordOwner recordOwner) { return new TourHeader(recordOwner); } /**
/** * Create the product record. * Override in the concrete classes. */ public Product getProductRecord() { return new TourHeader(this); }
/** * Override this to open the main file. * <p />You should pass this record owner to the new main file (ie., new MyNewTable(thisRecordOwner)). * @return The new record. */ public Record openMainRecord() { return new TourHeader(this); } /**