Package org.salamanca.domain

Examples of org.salamanca.domain.Vale


                                      "fechaEmision>=dateMin && fechaEmision<=dateMax",
                                      date, dateMax);
        double totalVales = 0;
        Enumeration enumer = vRegistrados.elements();
        while (enumer.hasMoreElements()) {
            Vale itemVale = (Vale) enumer.nextElement();
            totalVales = totalVales + itemVale.getImporte();

        }
        this.jLabelValesEmitidos.setText(String.valueOf(totalVales));
    }
View Full Code Here


      PersistenceManager pm = BrokerServer.instance().getPMF().
                              getPersistenceManager();

      pm.currentTransaction().begin();

      Vale valePM = (Vale) pm.getObjectById(javax.jdo.JDOHelper.
              getObjectId(
                      vale), true);


      valePM.getPersona().removeVale(valePM);
      pm.deletePersistent(valePM);

      pm.currentTransaction().commit();

  }
View Full Code Here

    PersistenceManager pm = BrokerServer.instance().getPMF().
                            getPersistenceManager();

    pm.currentTransaction().begin();

    Vale valePM = (Vale) pm.getObjectById(javax.jdo.JDOHelper.
            getObjectId(
                    vale), true);



    valePM.setFechaUtilizacion(new Date());

    pm.currentTransaction().commit();

}
View Full Code Here

                                      "fechaUtilizacion !=null && fechaUtilizacion>=dateMin &&  fechaUtilizacion<=dateMax",
                                      date, dateMax);
        double totalVales = 0;
        Enumeration enumer = vRegistrados.elements();
        while (enumer.hasMoreElements()) {
            Vale itemVale = (Vale) enumer.nextElement();
            totalVales = totalVales + itemVale.getImporte();

        }
        this.jLabelValesRecibidos.setText(String.valueOf(totalVales));
    }
View Full Code Here

        PersistenceManager pm = BrokerServer.instance().getPMF().
                                getPersistenceManager();

        pm.currentTransaction().begin();

        Vale valePM = (Vale) pm.getObjectById(javax.jdo.JDOHelper.
                                              getObjectId(
                vale), true);

        valePM.setFechaUtilizacion(null);

        pm.currentTransaction().commit();

    }
View Full Code Here

TOP

Related Classes of org.salamanca.domain.Vale

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.