Examples of Inmobles


Examples of com.insacosa.Inmobles.domain.Inmobles

    setNou(true);
    setModificable(true);

    String keyInmoble = getKey();

    Inmobles inmoble = inmoblesFinder.detallInmoble(keyInmoble);
   
    // Assignem els valors del formulari (inmoble)
    setKey(inmoble.getInmobleKey());
      setNom(inmoble.getNom());
      setAdreca(inmoble.getAdreca());
    
      Provincies prov = new Provincies();
      prov.setProvinciaKey(inmoble.getProvincies().getProvinciaKey());

      Ciutats ciut = new Ciutats();
      ciut.setCiutatKey(inmoble.getCiutats().getCiutatKey())
     
      //setKeyTipus(inmoble.getTipus().getKey());
     
      setNumero(inmoble.getNumero());
      setPlanta(inmoble.getPlanta());
      setPuerta(inmoble.getPuerta());
      setMetres(inmoble.getMetres());
      setPreu(inmoble.getPreu());
   
    //setVenedor(inmoble.getUsuaris().getUsuariKey() ); //
      setVisitat(inmoble.isVisitat());
     
     
      // carreguem les fotos de l'inmoble
      // --------------------------------
    Set<Fotos> fotos = inmoble.getFotoses();
    List<FotoForm> fotosForm = new ArrayList<FotoForm>();
   
    // Llista pels pujats
    ArrayList<UploadedImage> uploadedImages = new ArrayList<UploadedImage>();
   
    Iterator<?> it = fotos.iterator();
    while (it.hasNext())
    {
      FotoForm fotoForm = new FotoForm();
     
      Fotos foto = (Fotos) it.next();
     
      //foto.setKey(foto.getKey());
      //foto.setImatge(foto.getImatge());
      foto.setDescripcio(foto.getDescripcio());
      //foto.setKeyInmoble(foto.getInmobles().getInmobleKey());
     
      fotosForm.add(fotoForm);
     
      // carreguem en el control de imatges pujades
      UploadedImage uploadedImage = new UploadedImage();
      //uploadedImage.setData(foto.getImatge());
      //uploadedImage.setLength(foto.getImatge().length);
      uploadedImage.setName(foto.getDescripcio());
     
      uploadedImages.add(uploadedImage);
     
    }
    setFotos(fotosForm);
   
    // actualitzem la llista de fitxers pujats
    FileUploadBean fileUploadBean = (FileUploadBean) facesContext.getApplication().evaluateExpressionGet(facesContext, "#{fileUploadBean}", FileUploadBean.class);
    fileUploadBean.setFiles(uploadedImages);
   
   
    // carreguem les caracteristiques seleccionades de l'inmoble
    // --------------------------------------------------------
    Set<Caracteristiques> caracteristiquesInmoble = inmoble.getCaracteristiqueses();
   
    DragDropBeanCaract dragDropBean = (DragDropBeanCaract) facesContext.getApplication().evaluateExpressionGet(facesContext, "#{dragDropBean}", DragDropBeanCaract.class);
   
    dragDropBean.getTarget().clear();
    cambiaCaracteristiquesNoSel(getKeyTipus()); // inicialitzo la llista en funcio del tipus d'inmoble
View Full Code Here

Examples of com.insacosa.Inmobles.domain.Inmobles

    /*
     *
     */
  public Inmobles getDetallInmoble(String keyInmoble) {       
   
    Inmobles inmoble = inmoblesFinder.detallInmoble(keyInmoble);
     
      return inmoble;
         
 
View Full Code Here

Examples of com.insacosa.Inmobles.domain.Inmobles

    // Construim objecte Usuari i objecte Inmoble
    Usuaris usuari = new Usuaris();
   
    usuari.setUsuariKey(compradorForm.getGuid() );
   
    Inmobles inmoble = new Inmobles();
    inmoble.setInmobleKey(keyInmoble);
   
    solicitud.setInmoble(inmoble);
    solicitud.setUsuari(usuari);
   
    inmoblesService.solicitarInmobles(solicitud);
View Full Code Here

Examples of com.insacosa.Inmobles.domain.Inmobles

      if (solicitantsInmobleVenedor == null)
      {
     
        try
       
          Inmobles inmoble = new Inmobles();
         
          solicitantsInmobleVenedor = usuarisFinder.solicitantsInmoble(inmoble);
         
          setSolicitantsInmobleVenedor(solicitantsInmobleVenedor);
        }
View Full Code Here

Examples of com.insacosa.Inmobles.domain.Inmobles

  public String afegirInmoble()
  {
    setNou(false);
    setModificable(false);

    Inmobles inmoble = new Inmobles();
   
    inmoble.setNom(this.getNom());
    inmoble.setAdreca(this.getAdreca());
   
    Ciutats ciutat = new Ciutats();
    //ciutat.setKey()
    //inmoble.setCiutats(ciutats);
    //inmoble.setProvincies(provincies);
    inmoble.setPreu(preu);
   
    inmoblesService.afegirInmoble(inmoble);
   
   
    Set<Entry<String, Object>> keysValors = valorsCaracts.entrySet();
View Full Code Here

Examples of com.insacosa.Inmobles.domain.Inmobles

           
            Iterator<?> it = inmoblesService.inmoblesVenedor(usuari).iterator();
            while (it.hasNext())
            {
              InventoryItem inmobleForm = new InventoryItem();
              Inmobles inmoble = (Inmobles)it.next();
               
              inmobleForm.setKey(inmoble.getInmobleKey());
              inmobleForm.setNom(inmoble.getNom());
              inmobleForm.setAdreca(inmoble.getAdreca());
                inmobleForm.setLocalitat(inmoble.getCiutats().getCiutatKey());
               
                inmobleForm.setProvincia(inmoble.getProvincies().getProvinciaKey());
             
              //inmobleForm.setKeyTipus(inmoble.getTipus().getKey());

              inmobleForm.setNumero(inmoble.getNumero());
              inmobleForm.setPlanta(inmoble.getPlanta());
              inmobleForm.setPuerta(inmoble.getPuerta());
              inmobleForm.setMetres(inmoble.getMetres());
              inmobleForm.setPreu(inmoble.getPreu());
               
              // Objecte venedor   
               
              //inmobleForm.setVenedor(inmoble.getUsuaris().getUsuariKey());
               
              inmobleForm.setVisitat(inmoble.isVisitat());
               
              allInventoryItems.add(inmobleForm);
            }
            }
View Full Code Here

Examples of com.insacosa.Inmobles.domain.Inmobles

        return query.getResultList();
  }

  public Inmobles inmoblePerKey(String keyInmoble) {
   
    Inmobles inmoble = null;
       
    try {     
        inmoble = entityManager.find( Inmobles.class, keyInmoble);
      }
    catch (RuntimeException e) {
View Full Code Here

Examples of com.insacosa.Inmobles.domain.Inmobles

  @Inject
  private InjectorHelper injectorHelper;
 
  @Override
  public Inmobles load(Long id) {   
    Inmobles inmobles = super.load(id);
    injectorHelper.injectDependencies(inmobles);
    return inmobles;
  }
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.