RemoteTable bookingDetailSession = (RemoteTable)remoteSession.doRemoteAction(BookingConstants.GET_DETAIL_COMMAND, properties); Object objReturn = bookingDetailSession.doRemoteAction(SearchConstants.ADD_COMMAND, properties); if (strDate != null)
/** * Process this action. * @param strAction The action to process. * By default, this method handles RESET, SUBMIT, and DELETE. */ public boolean doAction(String strAction, int iOptions) { if (GET_RATE.equalsIgnoreCase(strAction)) { Map properties = new HashMap(); this.addScreenFieldProperty(properties, "HotelID", "HotelID"); this.addScreenFieldProperty(properties, "HotelRate", "HotelRate"); this.addScreenFieldProperty(properties, "HotelClass", "HotelClass"); this.addScreenFieldProperty(properties, "StartDate", "StartDate"); try { //+ synchronized(m_remoteSession) { m_remoteSession.doRemoteAction(strAction, properties); } } catch (Exception ex) { ex.printStackTrace(); } } return super.doAction(strAction, iOptions); } /**
Object objReturn = this.getRemoteSession().doRemoteAction(SearchConstants.REQUERY_COMMAND, properties); Boolean boolSuccess = null; if (objReturn instanceof Boolean)
return false; recBooking.getTable().addNew(); Object objSuccess = this.getRemoteSession().doRemoteAction(Constants.DELETE, null); // Tell the remote session that I'm done with this booking if (objSuccess instanceof Boolean) bSuccess = ((Boolean)objSuccess).booleanValue();
properties.put(Params.FIELD + "1", Currencys.CURRENCYS_FILE + '.' + Currencys.DESCRIPTION); properties.put(Params.FIELD + "2", Currencys.CURRENCYS_FILE + '.' + Currencys.CURRENCY_CODE); Object objProperties = this.getRemoteSession(null).doRemoteAction(Params.GET_FIELD_DATA, properties); if (objProperties instanceof Map)
this.getRemoteSession().doRemoteAction(Constants.RESET, null); // Tell the remote session that I'm done with this booking this.getTourRecord().getTable().addNew(); // Clear tour record bSuccess = true;
remoteSession.doRemoteAction(SearchConstants.SELECT_GRID, null); } catch (Exception ex) { ex.printStackTrace();
remoteSession.doRemoteAction(SearchConstants.SELECT_MAINT, null);
FieldList recBookingDetail = null; try { bookingDetailSession = (RemoteTable)m_remoteSession.doRemoteAction(BookingConstants.GET_DETAIL_COMMAND, null); recBookingDetail = bookingDetailSession.makeFieldList(BookingConstants.SELECTED); } catch (Exception ex) {