Examples of RoomType


Examples of Modules.RoomType

            String nameTarget = this.getNameRoomType(id);
            for(int num: arrayIndx){
                deleteFurn.add(transRelated.get(num));
            }
            Collections.sort(idFurniture);
            RoomType newRoomType = new RoomType(nameTarget,idFurniture);
            newRoomType.deleteRelatedList(deleteFurn);
            setUpdate(id,newRoomType);
        }
        int size = cjtRoomType.size();
        int maxId = this.cjtRoomType.getCount();
       
View Full Code Here

Examples of Modules.RoomType

                previous.add(translateObject.get(num));
            }
        }
        Collections.sort(previous);
        String nameTarget = this.getNameRoomType(id);
        RoomType newRoomType = new RoomType(nameTarget,previous);
        setUpdate(id,newRoomType);
       
        String data[][] = getFurnitureParams();
        int size = cjtRoomType.size();
        int maxId = this.cjtRoomType.getCount();
View Full Code Here

Examples of Modules.RoomType

     * Consultora del nombre de una sala.  
     * @param id Identificador de la sala.
     * @return Nombre de la sala.
     */
    public String getNameRoomType(int id) {
        RoomType newRoomType = this.cjtRoomType.getRoomType(id);
        return newRoomType.getName();
    }
View Full Code Here

Examples of Modules.RoomType

     * Consultora de los muebles relacionados de una sala.  
     * @param id Identificador de la sala.
     * @return Lista de muebles relacionados.
     */
    public List<Integer> getFurnitureRoomType(int id) {
        RoomType newRoomType = this.cjtRoomType.getRoomType(id);
        return newRoomType.getRelatedFurniture();
    }
View Full Code Here

Examples of Modules.RoomType

     * @param nameRoomType Nombre de la sala.
     * @param idList Lista de muebles relacionados.
     * @return '1' no se ha podido crear la sala, '0' se ha creado la sala con exito.
     */
    public boolean add(String nameRoomType,List<Integer> idList) {
        RoomType newRoomType;
        boolean err;
       
        err = this.checkName(nameRoomType);
        if(err == false){
            Collections.sort(idList);
            newRoomType = new RoomType(nameRoomType,idList);
            cjtRoomType.set(newRoomType);           
        }
        return err;   
    }
View Full Code Here

Examples of Modules.RoomType

     * @param idTarget Identificador de la sala.
     * @param idFurn Identificador del mueble.
     * @return '1' si existe el mueble relacionado, '0' la sala no tiene este mueble relacionado.
     */
    public boolean checkRelated(int idTarget, int idFurn) {
        RoomType newRoomType = this.cjtRoomType.getRoomType(idTarget);
        List<Integer>list = newRoomType.getRelatedFurniture();
        for(Integer idRelated : list) {
            if(idRelated == idFurn){
                return true;
            }
        }
View Full Code Here

Examples of ReservationSystemPackage.RoomType

   * <!-- end-user-doc -->
   * @generated
   */
  @Override
  public String getText(Object object) {
    RoomType labelValue = ((RoomReservation)object).getType();
    String label = labelValue == null ? null : labelValue.toString();
    return label == null || label.length() == 0 ?
      getString("_UI_RoomReservation_type") :
      getString("_UI_RoomReservation_type") + " " + label;
  }
View Full Code Here

Examples of ReservationSystemPackage.RoomType

   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
  public void setType(RoomType newType) {
    RoomType oldType = type;
    type = newType == null ? TYPE_EDEFAULT : newType;
    if (eNotificationRequired())
      eNotify(new ENotificationImpl(this, Notification.SET, ReservationSystemPackagePackage.ROOM_RESERVATION__TYPE, oldType, type));
  }
View Full Code Here

Examples of org.apache.openmeetings.db.entity.room.RoomType

   * @param name
   * @return ID of new created roomtype or null
   */
  public Long addRoomType(String name, long fieldvalues_id, boolean deleted) {
    try {
      RoomType rtype = new RoomType();
      rtype.setName(name);
      rtype.setStarttime(new Date());
      rtype.setDeleted(deleted);
      rtype.setFieldvalues_id(fieldvalues_id);
      rtype = em.merge(rtype);
      long returnId = rtype.getRoomtypes_id();
      return returnId;
    } catch (Exception ex2) {
      log.error("[addRoomType] ", ex2);
    }
    return null;
View Full Code Here

Examples of org.apache.openmeetings.db.entity.room.RoomType

  public RoomTypeConverter(RoomTypeDao dao) {
    this.dao = dao;
  }
 
  public RoomType read(InputNode node) throws Exception {
    RoomType rt = dao.get(getlongValue(node));
    return rt != null ? rt : dao.get(1); // conference type will be used in case of bad type
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.