Examples of IgrDTO


Examples of fing.satode.data.IgrDTO

      add(captionPrincipal);
      center();
    }

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

Examples of fing.satode.data.IgrDTO

        });
      }
    }

    private IgrDTO validar() {
      IgrDTO dto= new IgrDTO();
     
     
      if(ir1.getSelectedIndex()<1){
          Window.alert("Indique Indicador 1 de identificaci\u00F3n del Riesgo");
          return null;
      }
      dto.setIr1(Integer.valueOf(ir1.getValue(ir1.getSelectedIndex())));
     
      if(ir2.getSelectedIndex()<1){
          Window.alert("Indique Indicador 2 de identificaci\u00F3n del Riesgo");
          return null;
      }
      dto.setIr2(Integer.valueOf(ir2.getValue(ir2.getSelectedIndex())));
     
      if(ir3.getSelectedIndex()<1){
          Window.alert("Indique Indicador 3 de identificaci\u00F3n del Riesgo");
          return null;
      }
      dto.setIr3(Integer.valueOf(ir3.getValue(ir3.getSelectedIndex())));
     
      if(ir4.getSelectedIndex()<1){
          Window.alert("Indique Indicador 4 de identificaci\u00F3n del Riesgo");
          return null;
      }
      dto.setIr4(Integer.valueOf(ir4.getValue(ir4.getSelectedIndex())));
     
      if(ir5.getSelectedIndex()<1){
          Window.alert("Indique Indicador 5 de identificaci\u00F3n del Riesgo");
          return null;
      }
      dto.setIr5(Integer.valueOf(ir5.getValue(ir5.getSelectedIndex())));
     
      if(ir6.getSelectedIndex()<1){
          Window.alert("Indique Indicador 6 de identificaci\u00F3n del Riesgo");
          return null;
      }
      dto.setIr6(Integer.valueOf(ir6.getValue(ir6.getSelectedIndex())));
     
      if(rr1.getSelectedIndex()<1){
          Window.alert("Indique Indicador 1 de reducci\u00F3n del riesgo");
          return null;
      }
      dto.setRr1(Integer.valueOf(rr1.getValue(rr1.getSelectedIndex())));
     
      if(rr2.getSelectedIndex()<1){
          Window.alert("Indique Indicador 2 de reducci\u00F3n del riesgo");
          return null;
      }
      dto.setRr2(Integer.valueOf(rr2.getValue(rr2.getSelectedIndex())));
     
      if(rr3.getSelectedIndex()<1){
          Window.alert("Indique Indicador 3 de reducci\u00F3n del riesgo");
          return null;
      }
      dto.setRr3(Integer.valueOf(rr3.getValue(rr3.getSelectedIndex())));
     
      if(rr4.getSelectedIndex()<1){
          Window.alert("Indique Indicador 4 de reducci\u00F3n del riesgo");
          return null;
      }
      dto.setRr4(Integer.valueOf(rr4.getValue(rr4.getSelectedIndex())));
     
      if(rr5.getSelectedIndex()<1){
          Window.alert("Indique Indicador 5 de reducci\u00F3n del riesgo");
          return null;
      }
      dto.setRr5(Integer.valueOf(rr5.getValue(rr5.getSelectedIndex())));
     
      if(rr6.getSelectedIndex()<1){
          Window.alert("Indique Indicador 6 de reducci\u00F3n del riesgo");
          return null;
      }
      dto.setRr6(Integer.valueOf(rr6.getValue(rr6.getSelectedIndex())));
     
      if(md1.getSelectedIndex()<1){
          Window.alert("Indique Indicador 1 de manejo de desastres");
          return null;
      }
      dto.setMd1(Integer.valueOf(md1.getValue(md1.getSelectedIndex())));
     
      if(md2.getSelectedIndex()<1){
          Window.alert("Indique Indicador 2 de manejo de desastres");
          return null;
      }
      dto.setMd2(Integer.valueOf(md2.getValue(md2.getSelectedIndex())));
     
      if(md3.getSelectedIndex()<1){
          Window.alert("Indique Indicador 3 de manejo de desastres");
          return null;
      }
      dto.setMd3(Integer.valueOf(md3.getValue(md3.getSelectedIndex())));
     
      if(md4.getSelectedIndex()<1){
          Window.alert("Indique Indicador 4 de manejo de desastres");
          return null;
      }
      dto.setMd4(Integer.valueOf(md4.getValue(md4.getSelectedIndex())));
     
      if(md5.getSelectedIndex()<1){
          Window.alert("Indique Indicador 5 de manejo de desastres");
          return null;
      }
      dto.setMd5(Integer.valueOf(md5.getValue(md5.getSelectedIndex())));
     
      if(md6.getSelectedIndex()<1){
          Window.alert("Indique Indicador 6 de manejo de desastres");
          return null;
      }
      dto.setMd6(Integer.valueOf(md6.getValue(md6.getSelectedIndex())));
     
      if(pf1.getSelectedIndex()<1){
          Window.alert("Indique Indicador 1 de gobernabilidad y protecci\u00F3n financiera");
          return null;
      }
      dto.setPf1(Integer.valueOf(pf1.getValue(pf1.getSelectedIndex())));
     
      if(pf2.getSelectedIndex()<1){
          Window.alert("Indique Indicador 2 de gobernabilidad y protecci\u00F3n financiera");
          return null;
      }
      dto.setPf2(Integer.valueOf(pf2.getValue(pf2.getSelectedIndex())));
     
      if(pf3.getSelectedIndex()<1){
          Window.alert("Indique Indicador 3 de gobernabilidad y protecci\u00F3n financiera");
          return null;
      }
      dto.setPf3(Integer.valueOf(pf3.getValue(pf3.getSelectedIndex())));
     
      if(pf4.getSelectedIndex()<1){
          Window.alert("Indique Indicador 4 de gobernabilidad y protecci\u00F3n financiera");
          return null;
      }
      dto.setPf4(Integer.valueOf(pf4.getValue(pf4.getSelectedIndex())));
     
      if(pf5.getSelectedIndex()<1){
          Window.alert("Indique Indicador 5 de gobernabilidad y protecci\u00F3n financiera");
          return null;
      }
      dto.setPf5(Integer.valueOf(pf5.getValue(pf5.getSelectedIndex())));
     
      if(pf6.getSelectedIndex()<1){
          Window.alert("Indique Indicador 6 de gobernabilidad y protecci\u00F3n financiera");
          return null;
      }
      dto.setPf6(Integer.valueOf(pf6.getValue(pf6.getSelectedIndex())));
      
     
      dto.setFecha(new Date());
      dto.setObservaciones(observacion.getText());
      dto.setTipo(Integer.valueOf(tipo.getValue(tipo.getSelectedIndex())));
     
      return dto;
     
    }
View Full Code Here

Examples of fing.satode.data.IgrDTO

              }
            });
            calculoIndiceGrid.setWidget(row, 5, analizar);
                       
          }else{
            final IgrDTO igrDto= (IgrDTO)e;
           
            Button analizar=new Button("Analizar");
            analizar.addClickHandler(new ClickHandler() {
             
              @Override
View Full Code Here

Examples of fing.satode.data.IgrDTO

    this.pf6 = pf6;
  }

  public IgrDTO getDTO()
  {
    IgrDTO dto=new IgrDTO();
   
    dto.setId(getId());
    dto.setFecha(getFecha());
    dto.setObservaciones(getObservaciones());
    dto.setUsuario(getUsuario().getDTO());
    dto.setValor(getValor());
    dto.setTipo(getTipo());
   
    dto.setIr1(ir1);
    dto.setIr2(ir2);
    dto.setIr3(ir3);
    dto.setIr4(ir4);
    dto.setIr5(ir5);
    dto.setIr6(ir6);
   
    dto.setMd1(md1);
    dto.setMd2(md2);
    dto.setMd3(md3);
    dto.setMd4(md4);
    dto.setMd5(md5);
    dto.setMd6(md6);

    dto.setPf1(pf1);
    dto.setPf2(pf2);
    dto.setPf3(pf3);
    dto.setPf4(pf4);
    dto.setPf5(pf5);
    dto.setPf6(pf6);
   
    dto.setRr1(rr1);
    dto.setRr2(rr2);
    dto.setRr3(rr3);
    dto.setRr4(rr4);
    dto.setRr5(rr5);
    dto.setRr6(rr6);
   
   
    return dto;
  }
View Full Code Here

Examples of fing.satode.data.IgrDTO

   
    return dto;
  }
 
  public CalculoIndiceDTO getDTOSimple() {
    IgrDTO dto=new IgrDTO();
   
    dto.setId(getId());
    dto.setFecha(getFecha());
    dto.setObservaciones(getObservaciones());
    dto.setUsuario(getUsuario().getDTO());
    dto.setValor(getValor());
    dto.setTipo(getTipo());
   
    dto.setIr1(ir1);
    dto.setIr2(ir2);
    dto.setIr3(ir3);
    dto.setIr4(ir4);
    dto.setIr5(ir5);
    dto.setIr6(ir6);
   
    dto.setMd1(md1);
    dto.setMd2(md2);
    dto.setMd3(md3);
    dto.setMd4(md4);
    dto.setMd5(md5);
    dto.setMd6(md6);

    dto.setPf1(pf1);
    dto.setPf2(pf2);
    dto.setPf3(pf3);
    dto.setPf4(pf4);
    dto.setPf5(pf5);
    dto.setPf6(pf6);
   
    dto.setRr1(rr1);
    dto.setRr2(rr2);
    dto.setRr3(rr3);
    dto.setRr4(rr4);
    dto.setRr5(rr5);
    dto.setRr6(rr6);
   
   
    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.