org.jbundle.base.db.Record.getFieldSeq()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(6.8k)|赞(0)|评价(0)|浏览(91)

本文整理了Java中org.jbundle.base.db.Record.getFieldSeq方法的一些代码示例,展示了Record.getFieldSeq的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Record.getFieldSeq方法的具体详情如下:
包路径:org.jbundle.base.db.Record
类名称:Record
方法名:getFieldSeq

Record.getFieldSeq介绍

[英]Get the field sequence for this field.
[中]获取此字段的字段序列。

代码示例

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.db

/**
 * Reset the field count.
 */
public int resetCount()
{
  int iErrorCode = super.resetCount();
  Record booking = m_fldMain.getRecord();
  for (int iFieldSeq = booking.getFieldSeq(Booking.SINGLE_PAX); iFieldSeq <= booking.getFieldSeq(Booking.QUAD_PAX); iFieldSeq++)
  {    // Zero all the other fields
    iErrorCode = this.setFieldCount(iFieldSeq, 0, true);
  }
  return iErrorCode;
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.db

/**
 * Reset the field count.
 */
public int resetCount()
{
  int iErrorCode = super.resetCount();
  Record booking = m_fldMain.getRecord();
  for (int iFieldSeq = booking.getFieldSeq(Booking.SINGLE_PAX); iFieldSeq <= booking.getFieldSeq(Booking.QUAD_PAX); iFieldSeq++)
  {    // Zero all the other fields
    iErrorCode = this.setFieldCount(iFieldSeq, 0, true);
  }
  return iErrorCode;
}
/**

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.report

/**
 * This is field a potential index for analysis.
 * (Override this to allow number fields to be keys).
 * @param field The field to check.
 * @param iSourceFieldSeq The source field sequence of this field
 * @return True if this is a potential key field.
 */
public boolean isKeyField(BaseField field, int iSourceFieldSeq)
{
  int iKeyCount = 0;
  for (int iFieldSeq = this.getScreenRecord().getFieldSeq(ProfileAnalysisScreenRecord.PRIMARY_ANALYSIS_TYPE); iFieldSeq <= this.getScreenRecord().getFieldSeq(ProfileAnalysisScreenRecord.THIRD_ANALYSIS_TYPE); iFieldSeq++)
  {
    if (!ProfileAnalysisField.NONE.equals(this.getScreenRecord().getField(iFieldSeq)))
      iKeyCount++;
  }
  if (iSourceFieldSeq < iKeyCount)
    return true;
  return false;
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.report

/**
 * This is field a potential index for analysis.
 * (Override this to allow number fields to be keys).
 * @param field The field to check.
 * @param iSourceFieldSeq The source field sequence of this field
 * @return True if this is a potential key field.
 */
public boolean isKeyField(BaseField field, int iSourceFieldSeq)
{
  int iKeyCount = 0;
  for (int iFieldSeq = this.getScreenRecord().getFieldSeq(ProfileAnalysisScreenRecord.PRIMARY_ANALYSIS_TYPE); iFieldSeq <= this.getScreenRecord().getFieldSeq(ProfileAnalysisScreenRecord.THIRD_ANALYSIS_TYPE); iFieldSeq++)
  {
    if (!ProfileAnalysisField.NONE.equals(this.getScreenRecord().getField(iFieldSeq)))
      iKeyCount++;
  }
  if (iSourceFieldSeq < iKeyCount)
    return true;
  return false;
}
/**

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.base

/**
 * Set up all the screen fields.
 */
public void setupSFields()
{
  this.getRecord(Currencys.CURRENCYS_FILE).getField(Currencys.CURRENCY_CODE).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  this.getRecord(Currencys.CURRENCYS_FILE).getField(Currencys.DESCRIPTION).setupDefaultView(this.getNextLocation(ScreenConstants.NEXT_LOGICAL, ScreenConstants.ANCHOR_DEFAULT), this, ScreenConstants.DEFAULT_DISPLAY);
  Record query = this.getMainRecord();
  for (int fieldSeq = query.getFieldSeq(Currencys.LAST_RATE); fieldSeq <= query.getFieldSeq(Currencys.LANGUAGE_ID); fieldSeq++)
  {
    query.getField(fieldSeq).setupFieldView(this);
    if ((fieldSeq == query.getFieldSeq(Currencys.LAST_RATE)) || (fieldSeq == query.getFieldSeq(Currencys.COSTING_RATE)))
    {
      ScreenLocation lastFieldPosition = this.getNextLocation(ScreenConstants.RIGHT_OF_LAST, ScreenConstants.DONT_SET_ANCHOR);
      RecipFieldConverter converter = new RecipFieldConverter((NumberField)query.getField(fieldSeq));
      SEditText nameView = new SEditText(lastFieldPosition, this, converter, ScreenConstants.DONT_DISPLAY_FIELD_DESC);
    }
  }
}

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.db

int fsField = record.getFieldSeq(TourHeaderLine.DESCRIPTION);
if (record instanceof TourHeaderAirHeader)
  fsField = record.getFieldSeq(TourHeaderAirHeader.AIRLINE_DESC);
if (record instanceof TourHeaderDetail)
    fsField = record.getFieldSeq(TourHeaderDetail.DAY);    // Never (just in case)

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.db

int fsField = record.getFieldSeq(TourHeaderLine.DESCRIPTION);
if (record instanceof TourHeaderAirHeader)
  fsField = record.getFieldSeq(TourHeaderAirHeader.AIRLINE_DESC);
if (record instanceof TourHeaderDetail)
    fsField = record.getFieldSeq(TourHeaderDetail.DAY);    // Never (just in case)

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.report

for (int iFieldSeq = 0; iFieldSeq < 80; iFieldSeq++)    // Hotel.HOTEL_FIELDS is the largest possible value
  int iProductID = recBookingDetail.getFieldSeq(BookingDetail.PRODUCT_ID);
  this.addDetailXMLColumn(recBookingDetail, iProductID, iFieldSeq);

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.report

for (int iFieldSeq = 0; iFieldSeq < 80; iFieldSeq++)    // Hotel.HOTEL_FIELDS is the largest possible value
  int iProductID = recBookingDetail.getFieldSeq(BookingDetail.PRODUCT_ID);
  this.addDetailXMLColumn(recBookingDetail, iProductID, iFieldSeq);

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.db

double dPaxTypeCount = ((NumberField)booking.getField((int)(booking.getFieldSeq(Booking.SINGLE_PAX) + m_sOldPaxType-1))).getValue();
dPaxTypeCount--;
iErrorCode = this.setFieldCount(booking.getFieldSeq(Booking.SINGLE_PAX) + m_sOldPaxType - 1, dPaxTypeCount, true);
if (sNewPaxType != 0) 
  double dPaxTypeCount = ((NumberField)booking.getField(booking.getFieldSeq(Booking.SINGLE_PAX) + sNewPaxType - 1)).getValue();
  dPaxTypeCount++;
  iErrorCode = this.setFieldCount(booking.getFieldSeq(Booking.SINGLE_PAX) + sNewPaxType - 1, dPaxTypeCount, true);

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.db

double dPaxTypeCount = ((NumberField)booking.getField((int)(booking.getFieldSeq(Booking.SINGLE_PAX) + m_sOldPaxType-1))).getValue();
dPaxTypeCount--;
iErrorCode = this.setFieldCount(booking.getFieldSeq(Booking.SINGLE_PAX) + m_sOldPaxType - 1, dPaxTypeCount, true);
if (sNewPaxType != 0) 
  double dPaxTypeCount = ((NumberField)booking.getField(booking.getFieldSeq(Booking.SINGLE_PAX) + sNewPaxType - 1)).getValue();
  dPaxTypeCount++;
  iErrorCode = this.setFieldCount(booking.getFieldSeq(Booking.SINGLE_PAX) + sNewPaxType - 1, dPaxTypeCount, true);

代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.db

short sTargetPax = (short)recBooking.getField(((Record)recBooking).getFieldSeq(BookingModel.SINGLE_PAX) + iPaxCategory - PaxCategory.SINGLE_ID).getValue();
if (sTargetPax == 0)
  continue;

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.db

short sTargetPax = (short)recBooking.getField(((Record)recBooking).getFieldSeq(BookingModel.SINGLE_PAX) + iPaxCategory - PaxCategory.SINGLE_ID).getValue();
if (sTargetPax == 0)
  continue;

代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.message.process

if (record != null)
  String strOrigMessageKey = record.getField(record.getFieldSeq(this.getStatusFieldName()) + BookingDetail.MESSAGE_KEY_OFFSET).toString();
  int iCurrentStatus = (int)record.getField(this.getStatusFieldName()).getValue();
  if (strSentMessageKey != null)

相关文章

微信公众号

最新文章

更多

Record类方法