本文整理了Java中org.jbundle.model.db.Field.setValue()
方法的一些代码示例,展示了Field.setValue()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Field.setValue()
方法的具体详情如下:
包路径:org.jbundle.model.db.Field
类名称:Field
方法名:setValue
暂无
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctrec.screen
/**
* Called when a valid record is read from the table/query.
* @param bDisplayOption If true, display any changes.
*/
public void doValidRecord(boolean bDisplayOption)
{
super.doValidRecord(bDisplayOption);
double dNet = 0;
Record recMco = this.getOwner();
double dGross = recMco.getField(Mco.GROSS).getValue();
double dCommission = recMco.getField(Mco.COMM_AMT).getValue();
double dTaxes = recMco.getField(Mco.TAX_AMT).getValue();
double dServiceChargePer = recMco.getField(Mco.CARRIER_SVC_PER).getValue();
double dServiceCharge = (Math.floor(dGross * dServiceChargePer * 100 + 0.5)) / 100;
dNet = dGross - dCommission - dTaxes - dServiceCharge;
recMco.getRecordOwner().getScreenRecord().getField(McoScreenRecord.SERVICE_CHARGE).setValue(dServiceCharge);
recMco.getRecordOwner().getScreenRecord().getField(McoScreenRecord.NET).setValue(dNet);
}
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctrec.screen
/**
* Calculate the MCO net amount.
*/
public void doValidRecord(boolean bDisplayOption)
{
super.doValidRecord(bDisplayOption);
double dNet = 0;
Record recMco = this.getOwner();
double dGross = recMco.getField(Mco.GROSS).getValue();
double dCommission = recMco.getField(Mco.COMM_AMT).getValue();
double dTaxes = recMco.getField(Mco.TAX_AMT).getValue();
double dServiceChargePer = recMco.getRecordOwner().getScreenRecord().getField(McoScreenRecord.SERVICE_CHARGE).getValue();
double dServiceCharge = (Math.floor(dGross * dServiceChargePer * 100.00 + 0.5)) / 100.00;
dNet = dGross - dCommission - dTaxes - dServiceCharge;
recMco.getRecordOwner().getScreenRecord().getField(McoScreenRecord.NET).setValue(dNet);
}
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.entry
/**
* FieldChanged Method.
*/
public int fieldChanged(boolean bDisplayOption, int iMoveMode)
{
int iErrorCode = super.fieldChanged(bDisplayOption, iMoveMode);
if (iErrorCode == DBConstants.NORMAL_RETURN)
{
RecordOwner recordOwner = this.getOwner().getRecord().getRecordOwner();
Record recBooking = (Record)recordOwner.getRecord(Booking.BOOKING_FILE);
if (m_bOldAlwaysResolve == false)
if (recBooking.getField(Booking.ALWAYS_RESOLVE).getState() == true)
{
recordOwner.getScreenRecord().getField(BookingScreenRecord.BK_SUB_SCREEN).setValue(BookingScreenHandler.OPTIONS_SCREEN); // Switch to the options screen
}
m_bOldAlwaysResolve = recBooking.getField(Booking.ALWAYS_RESOLVE).getState();
}
return iErrorCode;
}
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctrec.db
recArTrx.getField(ArTrx.TRX_STATUS_ID).setValue(iTrxStatus); // Invoice modification
recArTrx.getField(ArTrx.AMOUNT).setValue(dAdjustment);
((Record)recArTrx).getField(ArTrx.COMMENTS).moveFieldToThis(((ReferenceField)recArTrx.getField(ArTrx.TRX_STATUS_ID)).getReference().getField(TrxStatus.STATUS_DESC));
recArTrx.getTable().add(recArTrx);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctrec.db
recArTrx.getField(ArTrx.TRX_STATUS_ID).setValue(iTrxStatus); // Invoice modification
recArTrx.getField(ArTrx.AMOUNT).setValue(dAdjustment);
((Record)recArTrx).getField(ArTrx.COMMENTS).moveFieldToThis(((ReferenceField)recArTrx.getField(ArTrx.TRX_STATUS_ID)).getReference().getField(TrxStatus.STATUS_DESC));
recArTrx.getTable().add(recArTrx);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.acctrec.db
m_recBooking.getField(BookingModel.BOOKING_STATUS_ID).setValue(iAcceptedID);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.entry
recordOwner.getScreenRecord().getField(BookingScreenRecord.BK_SUB_SCREEN).setValue(BookingScreenHandler.OPTIONS_SCREEN); // Switch to the options screen
bHandled = true;
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.acctrec.db
m_recBooking.getField(BookingModel.BOOKING_STATUS_ID).setValue(iAcceptedID);
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.booking.db
recBookingPax.getField(BookingPax.ID).setValue(0);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.booking.db
recBookingPax.getField(BookingPax.ID).setValue(0);
代码示例来源:origin: com.tourapp.tour/com.tourapp.tour.product.db
recBooking.getField(BookingModel.BOOKING_STATUS_ID).setValue(BookingStatus.OKAY); // Make sure all downline components are ordered
recTour.refreshToCurrent(DBConstants.AFTER_UPDATE_TYPE, false); // Make sure I have the latest copy
recTour.getField(TourModel.ORDER_COMPONENTS).setState(true); // Book = Order Components! (just in case the previous line didn't do this)
recBooking.getField(BookingModel.BOOKING_STATUS_ID).setValue(iCancelledStatusID);
代码示例来源:origin: com.tourgeek.tour/com.tourgeek.tour.product.db
recBooking.getField(BookingModel.BOOKING_STATUS_ID).setValue(BookingStatus.OKAY); // Make sure all downline components are ordered
recTour.refreshToCurrent(DBConstants.AFTER_UPDATE_TYPE, false); // Make sure I have the latest copy
recTour.getField(TourModel.ORDER_COMPONENTS).setState(true); // Book = Order Components! (just in case the previous line didn't do this)
recBooking.getField(BookingModel.BOOKING_STATUS_ID).setValue(iCancelledStatusID);
内容来源于网络,如有侵权,请联系作者删除!