Examples of PuntoReferenciaDTO


Examples of fing.satode.data.PuntoReferenciaDTO

        cantFuncionarios.addKeyboardListener(new KeyNumeric());
        cantVehiculos.addKeyboardListener(new KeyNumeric());
           
        if (a == "modificar" || a == "eliminar" ){
         
          PuntoReferenciaDTO puntoReferenciaDTO= null;
          for(PuntoReferenciaDTO p:PuntoReferenciaGlobal){
            if(p.getId().equals(id)){
              puntoReferenciaDTO=p;
            }
          }
         
         
         
         
          puntoEntrada.setChecked(puntoReferenciaDTO.isPuntoEntrada());
          puntoEntrega.setChecked(puntoReferenciaDTO.isPuntoEntrega());
        direccion.setText(puntoReferenciaDTO.getDireccion());
          telefono.setText(puntoReferenciaDTO.getTelefono());
         
          int row=0;
          for(DepartamentoDTO d:departamentosGlobal){
            row++;
            if(d.getId().equals(puntoReferenciaDTO.getDepartamento().getId())){
              departamentos.setSelectedIndex(row);
              ciudades.clear();
              ciudades.addItem("Seleccionar","0");
              int row2=1;
            for(CiudadDTO c:d.getCiudades()){
              ciudades.addItem(c.getNombre(),c.getId().toString());
              if(c.getId().equals(puntoReferenciaDTO.getCiudad().getId())){
                ciudades.setSelectedIndex(row2);
              }
              row2++;
            }
            }
          }
         
         
          tipo.setSelectedIndex(puntoReferenciaDTO.getTipo());//OJO Esto anda respetando el orden de insersion el en ListBox tipo (lineas 249)
          tipo.setEnabled(false);
         
          gridHospital.setVisible(false);
        gridRefugio.setVisible(false);
        grid2.setVisible(false);
        gridOtros.setVisible(false);
       
        switch(puntoReferenciaDTO.getTipo())
        {

        case TipoPuntoReferencia.HOSPITAL:
         
          capacidad.setText(String.valueOf(((HospitalDTO)puntoReferenciaDTO).getCapacidad()));
View Full Code Here

Examples of fing.satode.data.PuntoReferenciaDTO

      add(panelPrincipal);
      center();
    }

    protected void procesar() {
      PuntoReferenciaDTO ptoReferencia=validar();
      if(ptoReferencia!=null){
        ptoReferencia.setId(id);
       
       
        IPuntoReferenciaAsync servidorPuntoReferencia= GWT.create(IPuntoReferencia.class);
       
        int idTipo=Integer.valueOf(tipo.getValue(tipo.getSelectedIndex()));
View Full Code Here

Examples of fing.satode.data.PuntoReferenciaDTO

   
    return p;
  }
 
  public static PuntoReferenciaDTO crearPuntoReferenciaDTO(PuntoReferencia puntoReferencia ){
    PuntoReferenciaDTO p=null;
    switch (puntoReferencia.getTipo())
    {
      case TipoPuntoReferencia.HOSPITAL:
        p=((Hospital)puntoReferencia).getDTO();
      break;
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.