Examples of BomberosDTO


Examples of fing.satode.data.BomberosDTO

            }
          }
          return refugioDTO;
        case( TipoPuntoReferencia.BOMBEROS):
         
          BomberosDTO bomberosDTO= new BomberosDTO();
       
          if(cantFuncionarios.getText().trim().length()==0){
            Window.alert("Indique la cantidad de funcionarios");
            return null;
          }
          bomberosDTO.setCantidadFuncionarios(Integer.valueOf(cantFuncionarios.getText()));
         
          if(cantVehiculos.getText().trim().length()==0){
            Window.alert("Indique la cantidad de vehiculos");
            return null;
          }
          bomberosDTO.setCantidadVehiculos(Integer.valueOf(cantVehiculos.getText()));
         
          bomberosDTO.setTipo(id);
         
         
          bomberosDTO.setPuntoEntrada(puntoEntrada.isChecked());
          bomberosDTO.setPuntoEntrega(puntoEntrega.isChecked());
          bomberosDTO.setDireccion(direccion.getText());
          bomberosDTO.setTelefono(telefono.getText());
          idDep=Long.valueOf(departamentos.getValue(departamentos.getSelectedIndex()));
         
          for(DepartamentoDTO d:departamentosGlobal){
            if(idDep.equals(d.getId())){
              bomberosDTO.setDepartamento(d);
            }
          }
         
          idCiu=Long.valueOf(ciudades.getValue(ciudades.getSelectedIndex()));
          for(CiudadDTO c:bomberosDTO.getDepartamento().getCiudades()){
            if(idCiu.equals(c.getId())){
              bomberosDTO.setCiudad(c);
            }
          }
          return bomberosDTO;
        case( TipoPuntoReferencia.CAMINERA):
         
View Full Code Here

Examples of fing.satode.data.BomberosDTO

    this.cantidadFuncionarios = dto.getCantidadFuncionarios();
    this.cantidadVehiculos = dto.getCantidadVehiculos();
  }
 
  public BomberosDTO getDTO() {
    BomberosDTO dto= new BomberosDTO();
    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.setCantidadFuncionarios(this.cantidadFuncionarios);
    dto.setCantidadVehiculos(this.cantidadVehiculos);
    return dto;
  }
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.