this.setOffer(new Offer());
}
@Override
public void setJbsBaseObject(JbsBaseObject jbsBaseObject) {
Offer offer = (Offer) jbsBaseObject;
//We have to get the positions from the database also
if ((offer != null) && (this.getDlgState() == DlgState.dsEdit)) {
logger.debug("Retrieving positions for offer " + offer.getId());
try {
OffersRemote offers = (OffersRemote) ClientTools.getRemoteBean(OffersRemote.class);
Offer existingOffer = offers.findDataset(offer.getId(), true);
offer = existingOffer;
} catch (NamingException e) {
logger.error("Error retrieving offer.", e);
}
}