Package org.salamanca.commands

Examples of org.salamanca.commands.ICommand


        curso.setCantidadPeriodos(cantPeriodos);
        curso.setFechaInicio(fechaInicio);
        curso.setFechaFinalizacion(fechaFin);
        curso.setPermiteDescuentos(permiteDescuento.booleanValue());

        ICommand insertarCurso = CommandFactory.createInsertarCurso(curso);
        try {
            insertarCurso.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());

        }
View Full Code Here


        kodo.util.Id oid = new kodo.util.Id(oidStr);

        Curso curso = (Curso) BrokerServer.instance().getPMF().
                      getPersistenceManager().getObjectById(oid, true);

        ICommand eiminarCurso = CommandFactory.createEliminarCurso(curso);
        try {
            eiminarCurso.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
        }
        this.loadListCursos(year);
    }
View Full Code Here

        }

        Boolean permiteDescuento = (Boolean) ((Vector) e.getVector()).elementAt(
                5);

        ICommand modificarCurso = CommandFactory.createModificarCurso(curso,
                nombre, observaciones, cantPeriodos, fechaInicio, fechaFin,
                permiteDescuento.booleanValue());
        try {
            modificarCurso.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
        }
        this.loadListCursos(year);
    }
View Full Code Here

        Date fechaEmision = new Date();
        vale.setImporte(importe);
        vale.setFechaEmision(fechaEmision);

        ICommand insertarVale = CommandFactory.createInsertarVale(vale, persona);
        try {
            insertarVale.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
        }

        loadList();
View Full Code Here

        kodo.util.Id oid = new kodo.util.Id(oidStr);

        Vale vale = (Vale) BrokerServer.instance().getPMF().
                          getPersistenceManager().getObjectById(oid,true);

        ICommand eiminarVale = CommandFactory.createEliminarVale(vale);
        try {
            eiminarVale.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
            loadList();

        }
View Full Code Here

                             getValueAt(3));
            kodo.util.Id oid = new kodo.util.Id(oidStr);
            Vale vale = (Vale) BrokerServer.instance().getPMF().
                        getPersistenceManager().getObjectById(oid, true);

            ICommand utilizarVale = CommandFactory.createUtilizarVale(vale);
            try {
                utilizarVale.execute();
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this, ex.getMessage());
                loadList();

            }
View Full Code Here

                             getValueAt(3));
            kodo.util.Id oid = new kodo.util.Id(oidStr);
            Vale vale = (Vale) BrokerServer.instance().getPMF().
                        getPersistenceManager().getObjectById(oid, true);

            ICommand deshacerUtilizarVale = CommandFactory.createDeshacerUtilizacionVale(vale);
            try {
                deshacerUtilizarVale.execute();
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this, ex.getMessage());
                loadList();

            }
View Full Code Here

     */
    private void changePassword(User user) {
        String password = JOptionPane.showInputDialog(this,
                "Escriba el nuevo password");
        if (password != null) {
            ICommand cambiarPassword = CommandFactory.createCambiarPassword(user,
                    password);
            try {
                cambiarPassword.execute();
            } catch (Exception ex) {
                  JOptionPane.showMessageDialog(this, ex.getMessage());
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.salamanca.commands.ICommand

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.