public Record createSubRecord() { TourHeaderOption record = (TourHeaderOption)super.createSubRecord(); record.addSubFileIntegrityHandlers(); return record; } });
/** * Constructor. * @param strSubFile The class name of the sub-record to check. */ public SubFileIntegrityHandler(String strSubFile, boolean bRemoveSubRecords) { // For this to work right, the booking number field needs a listener to re-select this file whenever it changes this(); this.init(null, null, strSubFile, bRemoveSubRecords); } /**
/** * AddMasterListeners Method. */ public void addMasterListeners() { super.addMasterListeners(); this.addListener(new SubFileIntegrityHandler(BankTrxBatchDetail.class.getName(), true)); }
/** * Get the sub-record. */ public Record getSubRecord() { if (m_recDependent == null) m_recDependent = this.createSubRecord(); if (m_recDependent != null) { if (m_recDependent.getListener(SubFileFilter.class.getName()) == null) m_recDependent.addListener(new SubFileFilter(this.getOwner())); } return m_recDependent; } /**
m_recDependent = this.getSubRecord(); if (m_recDependent != null) if (this.getOwner() != null) if (this.getOwner().getRecordOwner() != null) task = this.getOwner().getRecordOwner().getTask(); String strError = "Sub-File Not Empty"; if (task != null)
/** * Create the sub-record. * Override this method to create a sub-record. */ public Record createSubRecord() { Record record = (Record)ClassServiceUtility.getClassService().makeObjectFromClassName(m_strSubFile); if (record != null) { RecordOwner recordOwner = Record.findRecordOwner(this.getOwner()); record.init(recordOwner); if (recordOwner != null) recordOwner.removeRecord(record); this.getOwner().addListener(new FreeOnFreeHandler(record)); } return record; } }
/** * AddMasterListeners Method. */ public void addMasterListeners() { super.addMasterListeners(); this.addListener(new SubFileIntegrityHandler(CashBatchDist.class.getName(), true)); }
/** * Get the sub-record. */ public Record getSubRecord() { if (m_recDependent == null) m_recDependent = this.createSubRecord(); if (m_recDependent != null) { if (m_recDependent.getListener(SubFileFilter.class.getName()) == null) m_recDependent.addListener(new SubFileFilter(this.getOwner())); } return m_recDependent; } /**
m_recDependent = this.getSubRecord(); if (m_recDependent != null) if (this.getOwner() != null) if (this.getOwner().getRecordOwner() != null) task = this.getOwner().getRecordOwner().getTask(); String strError = "Sub-File Not Empty"; if (task != null)
/** * Create the sub-record. * Override this method to create a sub-record. */ public Record createSubRecord() { Record record = (Record)ClassServiceUtility.getClassService().makeObjectFromClassName(m_strSubFile); if (record != null) { RecordOwner recordOwner = Utility.getRecordOwner(this.getOwner()); record.init(recordOwner); if (recordOwner != null) recordOwner.removeRecord(record); this.getOwner().addListener(new FreeOnFreeHandler(record)); } return record; } }
/** * AddMasterListeners Method. */ public void addMasterListeners() { super.addMasterListeners(); this.addListener(new SubFileIntegrityHandler(CashBatchDist.class.getName(), true)); }
/** * Get the sub-record. */ public Record getSubRecord() { if (m_recDependent == null) m_recDependent = this.createSubRecord(); if (m_recDependent != null) { if (m_recDependent.getListener(SubFileFilter.class.getName()) == null) m_recDependent.addListener(new SubFileFilter(this.getOwner())); } return m_recDependent; } /**
/** * Constructor. * @param record The sub-record to check. */ public SubFileIntegrityHandler(Record recSubFile, boolean bRemoveSubRecords) { // For this to work right, the booking number field needs a listener to re-select this file whenever it changes this(); this.init(null, recSubFile, (String)null, bRemoveSubRecords); } /**
m_recDependent = this.getSubRecord(); if (m_recDependent != null) if (this.getOwner() != null) if (this.getOwner().getRecordOwner() != null) task = this.getOwner().getRecordOwner().getTask(); String strError = "Sub-File Not Empty"; if (task != null)
public Record createSubRecord() { TourHeaderOption record = (TourHeaderOption)super.createSubRecord(); record.addSubFileIntegrityHandlers(); return record; } });
/** * Create the sub-record. * Override this method to create a sub-record. */ public Record createSubRecord() { Record record = (Record)ClassServiceUtility.getClassService().makeObjectFromClassName(m_strSubFile); if (record != null) { RecordOwner recordOwner = Utility.getRecordOwner(this.getOwner()); record.init(recordOwner); if (recordOwner != null) recordOwner.removeRecord(record); this.getOwner().addListener(new FreeOnFreeHandler(record)); } return record; } }
this.addListener(new SubFileIntegrityHandler(TourHeaderDetailModel.THICK_CLASS, true)); this.addListener(new SubFileIntegrityHandler(TourHeaderLineModel.THICK_CLASS, true)); this.addListener(new SubFileIntegrityHandler(TourHeaderAirHeaderModel.THICK_CLASS, true)); this.addListener(new SubFileIntegrityHandler(TourHeaderOptionModel.THICK_CLASS, true)
/** * Constructor. * @param record The sub-record to check. */ public SubFileIntegrityHandler(Record recSubFile) { // For this to work right, the booking number field needs a listener to re-select this file whenever it changes this(); this.init(null, recSubFile, (String)null, false); } /**
public Record createSubRecord() { TourHeaderOption record = (TourHeaderOption)super.createSubRecord(); record.addSubFileIntegrityHandlers(); return record; } });
this.addListener(new SubFileIntegrityHandler(TourHeaderDetailModel.THICK_CLASS, true)); this.addListener(new SubFileIntegrityHandler(TourHeaderLineModel.THICK_CLASS, true)); this.addListener(new SubFileIntegrityHandler(TourHeaderAirHeaderModel.THICK_CLASS, true)); this.addListener(new SubFileIntegrityHandler(TourHeaderOptionModel.THICK_CLASS, true)