/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new DateField(this, TARGET_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; }
/** * Creates a new object of the same class as this object. * @return a clone of this instance. * @exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code> interface. * @see java.lang.Cloneable */ public Object clone() throws CloneNotSupportedException { BaseField field = new DateField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null); field.setRecord(m_record); // Set table without adding to table field list return field; } /**
/** * Creates a new object of the same class as this object. * @return a clone of this instance. * @exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code> interface. * @see java.lang.Cloneable */ public Object clone() throws CloneNotSupportedException { BaseField field = new DateField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null); field.setRecord(m_record); // Set table without adding to table field list return field; } /**
/** * Creates a new object of the same class as this object. * @return a clone of this instance. * @exception CloneNotSupportedException if the object's class does not support the <code>Cloneable</code> interface. * @see java.lang.Cloneable */ public Object clone() throws CloneNotSupportedException { BaseField field = new DateField(null, m_strFieldName, m_iMaxLength, m_strFieldDesc, null); field.setRecord(m_record); // Set table without adding to table field list return field; } /**
/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new DateField(this, START_TARGET_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 1) field = new DateField(this, END_TARGET_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 2) field = new TourHeaderField(this, TOUR_HEADER_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 3) field = new LandClassField(this, LAND_CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; }
/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; //if (iFieldSeq == 0) // field = new ArcReportScreenRecord_ReportDate(this, REPORT_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); //if (iFieldSeq == 1) // field = new ArcReportScreenRecord_ReportTime(this, REPORT_TIME, Constants.DEFAULT_FIELD_LENGTH, null, null); //if (iFieldSeq == 2) // field = new ArcReportScreenRecord_ReportUserID(this, REPORT_USER_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); //if (iFieldSeq == 3) // field = new ShortField(this, REPORT_PAGE, Constants.DEFAULT_FIELD_LENGTH, null, new Short((short)1)); //if (iFieldSeq == 4) // field = new IntegerField(this, REPORT_COUNT, Constants.DEFAULT_FIELD_LENGTH, null, new Integer(0)); //if (iFieldSeq == 5) // field = new CurrencyField(this, REPORT_TOTAL, Constants.DEFAULT_FIELD_LENGTH, null, new Double(0)); //if (iFieldSeq == 6) // field = new IntegerField(this, REPORT_KEY_AREA, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 7) field = new DateField(this, LAST_ARC_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 8) field = new AccountField(this, SUMMARY_ACCOUNT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; }
/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new AccountField(this, ACCOUNT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 1) field = new BooleanField(this, CALC_START, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 2) field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 3) field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 4) field = new CurrencyField(this, START_BALANCE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 5) field = new CurrencyField(this, END_BALANCE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 6) field = new CurrencyField(this, CHANGE_BALANCE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; }
field = new StringField(this, NAME_CODE, 3, null, null); if (iFieldSeq == 5) field = new DateField(this, CREATION_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 6) field = new DateField(this, DELETION_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 7) field = new VersionField(this, VERSION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
field = new StringField(this, NAME_CODE, 3, null, null); if (iFieldSeq == 5) field = new DateField(this, CREATION_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 6) field = new DateField(this, DELETION_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 7) field = new VersionField(this, VERSION_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
field = new StringField(this, DESCRIPTION, 30, null, null); if (iFieldSeq == 4) field = new DateField(this, START_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 5) field = new DateField(this, END_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 6) field = new BrochureClassField(this, BROCHURE_CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null);
field = new StringField(this, NAME, 128, null, null); if (iFieldSeq == 6) field = new DateField(this, CREATION_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 7) field = new DateField(this, DELETION_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 8) field = new PropertiesField(this, PROPERTIES, Constants.DEFAULT_FIELD_LENGTH, null, null);
/** * If the current key starts with a date, convert the search field to a date and compare. */ public void fakeTheDate() { int ecErrorCode; BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed if (m_fldToCompare.isNull()) return; // Don't convert the date if this is NULL! if (m_fldFakeDate == null) m_fldFakeDate = new DateField(null, FAKE_DATE, DBConstants.DEFAULT_FIELD_LENGTH, FAKE_DATE, null); //m_FieldToCompare->GetFile()->GetField(kBkFakeDate); m_fldToCompare = m_fldFakeDate; ecErrorCode = m_fldToCompare.moveFieldToThis(fldToCompare, DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // Convert the date boolean bOldState = fldToCompare.getListener(FieldReSelectHandler.class.getName()).setEnabledListener(false); // Disable the reselect listener for a second if ((ecErrorCode == DBConstants.NORMAL_RETURN) && (((NumberField)m_fldToCompare).getValue() != 0)) fldToCompare.moveFieldToThis(m_fldToCompare, DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // Reformat and display the date else { fldToCompare.initField(DBConstants.DISPLAY); // Clear this wierd field m_fldToCompare.initField(DBConstants.DISPLAY); // Clear this wierd field } fldToCompare.getListener(FieldReSelectHandler.class.getName()).setEnabledListener(bOldState); // Reenable the reselect listener for a second } /**
/** * If the current key starts with a date, convert the search field to a date and compare. */ public void fakeTheDate() { int ecErrorCode; BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed if (m_fldToCompare.isNull()) return; // Don't convert the date if this is NULL! if (m_fldFakeDate == null) m_fldFakeDate = new DateField(null, FAKE_DATE, DBConstants.DEFAULT_FIELD_LENGTH, FAKE_DATE, null); //m_FieldToCompare->GetFile()->GetField(kBkFakeDate); m_fldToCompare = m_fldFakeDate; ecErrorCode = m_fldToCompare.moveFieldToThis(fldToCompare, DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // Convert the date boolean bOldState = fldToCompare.getListener(FieldReSelectHandler.class.getName()).setEnabledListener(false); // Disable the reselect listener for a second if ((ecErrorCode == DBConstants.NORMAL_RETURN) && (((NumberField)m_fldToCompare).getValue() != 0)) fldToCompare.moveFieldToThis(m_fldToCompare, DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // Reformat and display the date else { fldToCompare.initField(DBConstants.DISPLAY); // Clear this wierd field m_fldToCompare.initField(DBConstants.DISPLAY); // Clear this wierd field } fldToCompare.getListener(FieldReSelectHandler.class.getName()).setEnabledListener(bOldState); // Reenable the reselect listener for a second } /**
/** * If the current key starts with a date, convert the search field to a date and compare. */ public void fakeTheDate() { int ecErrorCode; BaseField fldToCompare = m_fldToCompare; // Cache this in case it is changed if (m_fldToCompare.isNull()) return; // Don't convert the date if this is NULL! if (m_fldFakeDate == null) m_fldFakeDate = new DateField(null, FAKE_DATE, DBConstants.DEFAULT_FIELD_LENGTH, FAKE_DATE, null); //m_FieldToCompare->GetFile()->GetField(kBkFakeDate); m_fldToCompare = m_fldFakeDate; ecErrorCode = m_fldToCompare.moveFieldToThis(fldToCompare, DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // Convert the date boolean bOldState = fldToCompare.getListener(FieldReSelectHandler.class.getName()).setEnabledListener(false); // Disable the reselect listener for a second if ((ecErrorCode == DBConstants.NORMAL_RETURN) && (((NumberField)m_fldToCompare).getValue() != 0)) fldToCompare.moveFieldToThis(m_fldToCompare, DBConstants.DISPLAY, DBConstants.SCREEN_MOVE); // Reformat and display the date else { fldToCompare.initField(DBConstants.DISPLAY); // Clear this wierd field m_fldToCompare.initField(DBConstants.DISPLAY); // Clear this wierd field } fldToCompare.getListener(FieldReSelectHandler.class.getName()).setEnabledListener(bOldState); // Reenable the reselect listener for a second } /**
/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new HotelField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 1) field = new HotelRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 2) field = new HotelClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 3) field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 4) field = new CurrencyField(this, TOTAL_COST, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 5) field = new CostStatusField(this, DISPLAY_COST_STATUS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; }
field = new UserField(this, "UserID", Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == kStartDate) field = new DateField(this, "StartDate", Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == kEndDate) field = new DateField(this, "EndDate", Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == kSortKey) field = new ShortField(this, "SortKey", Constants.DEFAULT_FIELD_LENGTH, null, null);
field = new StringField(this, COMMENTS, 30, null, null); if (iFieldSeq == 12) field = new DateField(this, DEPARTURE_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq);
field = new StringField(this, COMMENTS, 30, null, null); if (iFieldSeq == 12) field = new DateField(this, DEPARTURE_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (field == null) field = super.setupField(iFieldSeq);
/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new ProductField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 1) field = new BaseRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 2) field = new BaseClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 3) field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 4) field = new FullCurrencyField(this, TOTAL_COST, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 5) field = new IntegerField(this, AVAILABILITY, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 6) field = new StringField(this, CONFIRMED_BY, 50, null, null); if (iFieldSeq == 7) field = new StringField(this, CONFIRMATION_NO, 60, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; }
/** * Add this field in the Record's field sequence. */ public BaseField setupField(int iFieldSeq) { BaseField field = null; if (iFieldSeq == 0) field = new ProductField(this, PRODUCT_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 1) field = new BaseRateField(this, RATE_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 2) field = new BaseClassField(this, CLASS_ID, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 3) field = new DateField(this, DETAIL_DATE, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 4) field = new FullCurrencyField(this, TOTAL_COST, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 5) field = new IntegerField(this, AVAILABILITY, Constants.DEFAULT_FIELD_LENGTH, null, null); if (iFieldSeq == 6) field = new StringField(this, CONFIRMED_BY, 50, null, null); if (iFieldSeq == 7) field = new StringField(this, CONFIRMATION_NO, 60, null, null); if (field == null) field = super.setupField(iFieldSeq); return field; }