Package org.salamanca.commands

Examples of org.salamanca.commands.ICommand.execute()


        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


        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

        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

        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

        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

            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

            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

                "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
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.