Ejemplo n.º 1
0
  public void subirArchivoFormularioRendicion(FileUploadEvent event) {
    System.out.println("Subiendo Archivo de Formulario de Rendicion");

    try {
      current.setFormulariorendicion(event.getFile().getContents());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
Ejemplo n.º 2
0
 @Override
 public String getAsString(FacesContext facesContext, UIComponent component, Object object) {
   if (object == null) {
     return null;
   }
   if (object instanceof Rendicionexterna) {
     Rendicionexterna o = (Rendicionexterna) object;
     return getStringKey(o.getId());
   } else {
     throw new IllegalArgumentException(
         "object "
             + object
             + " is of type "
             + object.getClass().getName()
             + "; expected type: "
             + Rendicionexterna.class.getName());
   }
 }
Ejemplo n.º 3
0
  public void subirArchivoAvanceProyecto(FileUploadEvent event) {
    System.out.println("Subiendo Archivo de Avance de Proyecto");

    try {
      current.setInformeavance(event.getFile().getContents());
    } catch (Exception e) {
      e.printStackTrace();
    }
  }
Ejemplo n.º 4
0
  public String create() {

    try {

      System.out.println(
          "Current > Lista de Comprobantes > " + current.getArchivorendicionList().size());

      for (Archivorendicion ar : current.getArchivorendicionList()) {
        ar.setRendicionexternaid(current);
      }

      getFacade().create(current);

      JsfUtil.addSuccessMessage("Rendición Externa Creada!");
      return prepareList();
    } catch (Exception e) {
      JsfUtil.addErrorMessage(
          e, ResourceBundle.getBundle("/Bundle").getString("PersistenceErrorOccured"));
      return null;
    }
  }