Package fing.satode.data

Examples of fing.satode.data.PROtrosDTO


            }
          }
          return policiaDTO;
        case( TipoPuntoReferencia.OTROS):
         
          PROtrosDTO otrosDTO = new PROtrosDTO();
       
          if(descripcion.getText().trim().length()==0){
            Window.alert("Indique la descripcion");
            return null;
          }
          otrosDTO.setDescripcion(descripcion.getText());
         
          otrosDTO.setTipo(id);
         
         
          otrosDTO.setPuntoEntrada(puntoEntrada.isChecked());
          otrosDTO.setPuntoEntrega(puntoEntrega.isChecked());
          otrosDTO.setDireccion(direccion.getText());
          otrosDTO.setTelefono(telefono.getText());
          idDep=Long.valueOf(departamentos.getValue(departamentos.getSelectedIndex()));
         
          for(DepartamentoDTO d:departamentosGlobal){
            if(idDep.equals(d.getId())){
              otrosDTO.setDepartamento(d);
            }
          }
         
          idCiu=Long.valueOf(ciudades.getValue(ciudades.getSelectedIndex()));
          for(CiudadDTO c:otrosDTO.getDepartamento().getCiudades()){
            if(idCiu.equals(c.getId())){
              otrosDTO.setCiudad(c);
            }
          }
          return otrosDTO; 
         
        default:
View Full Code Here


    super(dto);
    this.descripcion =  dto.getDescripcion();
  }
 
  public PROtrosDTO getDTO() {
    PROtrosDTO dto= new PROtrosDTO();
    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.setDescripcion(this.descripcion);
    return dto;
  }
View Full Code Here

TOP

Related Classes of fing.satode.data.PROtrosDTO

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.