Examples of IdlDTO


Examples of fing.satode.data.IdlDTO

    this.departamentos = departamentos;
  }
 
  public IdlDTO getDTO()
  {
    IdlDTO dto=new IdlDTO();
    dto.setId(getId());
    dto.setFecha(getFecha());
    dto.setObservaciones(getObservaciones());
    dto.setUsuario(getUsuario().getDTO());
    dto.setValor(getValor());
    dto.setTipo(getTipo());
    dto.setValorVivindaSocial(valorVivindaSocial);
    dto.setHectariaDeCultivo(hectariaDeCultivo);
   
    dto.setFechaFino(fechaFino);
    dto.setFechaInicio(fechaInicio);
    Set<IdlDepartamentoDTO> dtos=new HashSet<IdlDepartamentoDTO>();
    for(IdlDepartamento d:departamentos)
    {
      dtos.add(d.getDTO());
    }
   
    dto.setDepartamentos(dtos);
   
    return dto;
  }
View Full Code Here

Examples of fing.satode.data.IdlDTO

          calculoIndiceGrid.setWidget(row, 2, new Label(format.format(e.getFecha())));
          calculoIndiceGrid.setWidget(row, 3, new Label(e.getObservaciones()));
          calculoIndiceGrid.setWidget(row, 4, new Label(String.valueOf(e.getValor())));
       
          if(e.getTipo()== TipoIndice.IDL){
            final IdlDTO idlDto= (IdlDTO)e;
           
            Button analizar=new Button("Analizar");
            analizar.addClickHandler(new ClickHandler() {
             
              @Override
              public void onClick(ClickEvent event) {
                // TODO Auto-generated method stub
                IIndicesAsync serverIndice=GWT.create(IIndices.class);
               
                serverIndice.getCalculoIndice(idlDto.getId(), new AsyncCallback<CalculoIndiceDTO>() {
                 
                  @Override
                  public void onSuccess(CalculoIndiceDTO result) {
                    FormIDLAnalizar1 form=new FormIDLAnalizar1((IdlDTO)result);
                    form.show()
View Full Code Here

Examples of fing.satode.data.IdlDTO

   
    return dto;
  }
 
  public CalculoIndiceDTO getDTOSimple() {
    IdlDTO dto=new IdlDTO();
    dto.setId(getId());
    dto.setFecha(getFecha());
    dto.setObservaciones(getObservaciones());
    dto.setUsuario(getUsuario().getDTO());
    dto.setValor(getValor());
    dto.setTipo(getTipo());
    dto.setValorVivindaSocial(valorVivindaSocial);
    dto.setHectariaDeCultivo(hectariaDeCultivo);
   
    dto.setFechaFino(fechaFino);
    dto.setFechaInicio(fechaInicio);
    Set<IdlDepartamentoDTO> dtos=new HashSet<IdlDepartamentoDTO>();
    dto.setDepartamentos(dtos);
    return dto;
  }
View Full Code Here

Examples of fing.satode.data.IdlDTO

      add(captionPrincipal);
      center();
    }

    protected void procesar() {
      IdlDTO dto=validar();
      if(dto!=null){
        dto.setId(id);
        dto.setUsuario(usuarioGlobal);
        IIndicesAsync serverIndice=GWT.create(IIndices.class);
        serverIndice.calcularIDL(dto,new AsyncCallback<Void>() {
         
          @Override
          public void onSuccess(Void result) {
View Full Code Here

Examples of fing.satode.data.IdlDTO

        });
      }
    }

    private IdlDTO validar() {
      IdlDTO dto= new IdlDTO();
     
      if(! (getFloat(valVivSocial.getText())>0)){
        Window.alert("Indique el valor de vivienda social");
        return null;
      }
     
      if(! (getFloat(valHectaria.getText())>0)){
        Window.alert("Indique el valor de una hectaria de cultivo");
        return null;
      }
     
      if(datePickerFin.getValue().before(datePickerInicio.getValue()))
      {
        Window.alert("La fecha de fin del periodo tiene que ser mayor a la de inicio.");
        return null;       
      }
     
      dto.setFechaInicio(datePickerInicio.getValue());
      dto.setFechaFino(datePickerFin.getValue());
      dto.setFecha(new Date());
      dto.setObservaciones(observacion.getText());
      dto.setTipo(Integer.valueOf(tipo.getValue(tipo.getSelectedIndex())));
      dto.setHectariaDeCultivo(getFloat(valHectaria.getText()));
      dto.setValorVivindaSocial(getFloat(valVivSocial.getText()));
     
      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.