Package fing.satode.data

Examples of fing.satode.data.RefugioDTO


            }
          }
          return hospitalDTO;
        case( TipoPuntoReferencia.REFUGIO):
         
          RefugioDTO refugioDTO= new RefugioDTO();
       
          if(capacidad.getText().trim().length()==0){
            Window.alert("Indique Capacidad");
            return null;
          }
          refugioDTO.setCapacidad(Integer.valueOf(capacidad.getText()));
         
          if(banios.getText().trim().length()==0){
            Window.alert("Indique la cantidad de banios");
            return null;
          }
          refugioDTO.setBanios(Integer.valueOf(banios.getText()));
         
          if(m2ParaCarpas.getText().trim().length()==0){
            Window.alert("Indique la cantidad de metros cuadrados para carpas");
            return null;
          }
          refugioDTO.setM2ParaCarpas(Integer.valueOf(m2ParaCarpas.getText()));
         
          refugioDTO.setTipo(id);
         
         
          refugioDTO.setPuntoEntrada(puntoEntrada.isChecked());
          refugioDTO.setPuntoEntrega(puntoEntrega.isChecked());
          refugioDTO.setDireccion(direccion.getText());
          refugioDTO.setTelefono(telefono.getText());
          idDep=Long.valueOf(departamentos.getValue(departamentos.getSelectedIndex()));
         
          for(DepartamentoDTO d:departamentosGlobal){
            if(idDep.equals(d.getId())){
              refugioDTO.setDepartamento(d);
            }
          }
         
          idCiu=Long.valueOf(ciudades.getValue(ciudades.getSelectedIndex()));
          for(CiudadDTO c:refugioDTO.getDepartamento().getCiudades()){
            if(idCiu.equals(c.getId())){
              refugioDTO.setCiudad(c);
            }
          }
          return refugioDTO;
        case( TipoPuntoReferencia.BOMBEROS):
         
View Full Code Here


    this.techado = dto.isTechado();
    this.m2ParaCarpas = dto.getM2ParaCarpas();
  }
 
  public RefugioDTO getDTO() {
    RefugioDTO dto= new RefugioDTO();
    dto.setId(this.getId());
    dto.setDireccion(this.getDireccion());
    dto.setTelefono(this.getTelefono());
    dto.setPuntoEntrada(this.isPuntoEntrada());
    dto.setPuntoEntrega(this.ispuntoEntrega());
    dto.setTipo(this.getTipo());
    dto.setCiudad(this.getCiudad().getDTO());
    dto.setDepartamento(this.getDepartamento().getDTO());
    dto.setCapacidad(this.getCapacidad());
    dto.setBanios(this.banios);
    dto.setTechado(this.techado);
    dto.setM2ParaCarpas(this.m2ParaCarpas);
    return dto;
  }
View Full Code Here

TOP

Related Classes of fing.satode.data.RefugioDTO

Copyright © 2018 www.massapicom. 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.