/** * Called when a valid record is read from the table/query. * @param bDisplayOption If true, display any changes. */ public void doValidRecord(boolean bDisplayOption) // init this field override for other value { super.doValidRecord(bDisplayOption); if (m_field != null) m_bOrigLockFlag = m_field.getState(); } /**
/** * Called when a valid record is read from the table/query. * @param bDisplayOption If true, display any changes. */ public void doValidRecord(boolean bDisplayOption) // init this field override for other value { super.doValidRecord(bDisplayOption); if (m_field != null) m_bOrigLockFlag = m_field.getState(); } /**
/** * Called when a valid record is read from the table/query. * @param bDisplayOption If true, display any changes. */ public void doValidRecord(boolean bDisplayOption) // init this field override for other value { super.doValidRecord(bDisplayOption); if (m_field != null) m_bOrigLockFlag = m_field.getState(); } /**
/** * Is this record soft deleted? * Override this to decide whether to soft delete or physically delete the record. */ public boolean isRecordSoftDeleted() { if (m_fldDeleteFlag == null) return false; if (this.getOwner().isRefreshedRecord()) return false; // By default, if this is a brand new record, just delete it. return m_fldDeleteFlag.getState(); } /**
/** * Get the inventory. */ public int getAvailability(int iQuantiry) throws RemoteException { BookingDetail recCustSaleDetail = (BookingDetail)this.setRecordCurrent(); boolean bInventory = recCustSaleDetail.getField(BookingDetail.INVENTORY_STATUS_ID).getState(); return -1; } /**
/** * Is this record soft deleted? * Override this to decide whether to soft delete or physically delete the record. */ public boolean isRecordSoftDeleted() { if (m_fldDeleteFlag == null) return false; if (this.getOwner().isRefreshedRecord()) return false; // By default, if this is a brand new record, just delete it. return m_fldDeleteFlag.getState(); } /**
/** * Is this record soft deleted? * Override this to decide whether to soft delete or physically delete the record. */ public boolean isRecordSoftDeleted() { if (m_fldDeleteFlag == null) return false; if (this.getOwner().isRefreshedRecord()) return false; // By default, if this is a brand new record, just delete it. return m_fldDeleteFlag.getState(); } /**
/** * Is this a control break? * @return True if it is a break. */ public boolean isBreak() { boolean bBreak = super.isBreak(); if (bBreak) bBreak = this.getScreenRecord().getField(GenledScreenRecord.SUB_TOTALS).getState(); if (bBreak) bBreak = this.getMainRecord().getField(Account.SECTION_SUB_TOTAL).getState(); return bBreak; }
public void setEnabled(boolean bEnableFlag) // Init this field override for other value { if (bEnableFlag) { Record recTourHeader = this.getOwner(); bEnableFlag = recTourHeader.getField(TourHeader.TOUR_SERIES).getState(); // Only for series tours } super.setEnabled(bEnableFlag); // Init this field override for other value } };
/** * Display this sub-control in html input format? * @param iPrintOptions The view specific print options. * @return True if this sub-control is printable. */ public boolean isPrintableControl(ScreenField sField, int iPrintOptions) { boolean flag = false; if (this.getScreenRecord().getField(GenledScreenRecord.PRINT_DETAIL).getState() == true) flag = super.isPrintableControl(sField, iPrintOptions); return flag; }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner() instanceof BooleanField) if (this.getOwner().getState() == true) { this.triggerEvent(m_iTourEventID, 0); } return super.fieldChanged(bDisplayOption, iMoveMode); } /**
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner() instanceof BooleanField) if (this.getOwner().getState() == true) { this.triggerEvent(m_iTourEventID, 0); } return super.fieldChanged(bDisplayOption, iMoveMode); } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) if (this.getOwner().getState() == false) m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) if (this.getOwner().getState() == false) m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop } /**
/** * Set the field that owns this listener. * @owner The field that this listener is being added to (if null, this listener is being removed). */ public void setOwner(ListenerOwner owner) { super.setOwner(owner); if (owner != null) if (this.getOwner().getState() == false) m_mergeRecord.getTable().removeTable(m_subRecord.getTable()); // If this is off initially, take the table out of the loop } /**
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner().getRecord().getField(Tour.FINALIZED).getState() == true) ((Tour)this.getOwner().getRecord()).updateTourApTrx(null, null); return super.fieldChanged(bDisplayOption, iMoveMode); }
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (this.getOwner().getRecord().getField(Tour.FINALIZED).getState() == true) ((Tour)this.getOwner().getRecord()).updateTourApTrx(null, null); return super.fieldChanged(bDisplayOption, iMoveMode); }
public void doValidRecord(boolean bDisplayOption) { super.doValidRecord(bDisplayOption); boolean bEnabledState = false; if (this.getOwner().getField(TourHeader.TOUR_SERIES).getState() == true) bEnabledState = true; if (this.getOwner().getField(TourHeader.TOUR_SERIES).isNull()) // Unknown type bEnabledState = true; setAppending(bEnabledState); } });
public void doValidRecord(boolean bDisplayOption) { super.doValidRecord(bDisplayOption); boolean bEnabledState = false; if (this.getOwner().getField(TourHeader.TOUR_SERIES).getState() == true) bEnabledState = true; if (this.getOwner().getField(TourHeader.TOUR_SERIES).isNull()) // Unknown type bEnabledState = true; setAppending(bEnabledState); } });
/** * FieldChanged Method. */ public int fieldChanged(boolean bDisplayOption, int iMoveMode) { if (iMoveMode == DBConstants.SCREEN_MOVE) if (this.getOwner().getState() == true) { // Call on screen moves only BookingDetail recBookingDetail = (BookingDetail)this.getOwner().getRecord(); recBookingDetail.checkRequestRequired(m_fieldTypeToCheck); recBookingDetail.getField(recBookingDetail.getFieldSeq(m_fieldTypeToCheck) + BookingHotel.MESSAGE_REQUEST_OFFSET).setState(false); // Reset flag } return DBConstants.NORMAL_RETURN; }