Package org.salamanca.commands

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


            User user = new User();
            user.setName(name);
            user.setRole(getRole());
            ICommand insertar = CommandFactory.createInsertarUsuario(user);
            try {
                insertar.execute();
            } catch (MessageException ex) {
                JOptionPane.showMessageDialog(this, ex.getMessage());
            } catch (Exception ex) {
                JOptionPane.showMessageDialog(this, "Entrada no valida");
            }
View Full Code Here


                                                 "name==\"" + nombre + "\"");
        if (v.size() > 0) {
            User user = (User) v.firstElement();
            ICommand eliminarUsuario = CommandFactory.createEliminarUsuario(user);
            try {
                eliminarUsuario.execute();
            } catch (Exception ex) {
                  JOptionPane.showMessageDialog(this, ex.getMessage());
            }
            load();
        }
View Full Code Here

        recargo.setConcepto(concepto);
        recargo.setPorcentaje(porcentaje);
        ICommand insertarVale = CommandFactory.createInsertarRecargoTarjeta(
                recargo);
        try {
            insertarVale.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
        }
        loadList();
    }
View Full Code Here

                          getPersistenceManager().getObjectById(oid, true);

        ICommand eiminarRecargo = CommandFactory.createEliminarRecargoTarjeta(
                recargo);
        try {
            eiminarRecargo.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
            loadList();

        }
View Full Code Here

        double porcentaje = ((Double) ((Vector) e.getVector()).elementAt(1)).
                            doubleValue();

        ICommand modificarRecargo = CommandFactory.createModificarRecargoTarjeta(recargo,concepto,porcentaje);
        try {
            modificarRecargo.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());
            loadList();
        }
View Full Code Here

            }
            ICommand insertarAlumno = CommandFactory.createInsertarAlumno(
                    ultimoCursoSeleccionado,
                    persona);
            try {
                insertarAlumno.execute();
            } catch (Exception ex1) {
                JOptionPane.showMessageDialog(this, ex1.getMessage());
            }

        }
View Full Code Here

        if (persona != null && ultimoCursoSeleccionado != null) {
            ICommand anularAlumno = CommandFactory.createAnularAlumno(
                    ultimoCursoSeleccionado,
                    persona);
            try {
                anularAlumno.execute();
            } catch (Exception ex1) {
                JOptionPane.showMessageDialog(this, ex1.getMessage());
            }

        }
View Full Code Here

        }

        ICommand insertarCurso = CommandFactory.createInsertarPago(pago,
                cuotaBasica, alumno);
        try {
            insertarCurso.execute();
        } catch (Exception ex) {
            JOptionPane.showMessageDialog(this, ex.getMessage());

        }
View Full Code Here

                Descuento descuento = (Descuento) v.firstElement();
                ICommand agregarDescuentoAPersona = CommandFactory.
                        createAgregarDescuentoAPersona(
                                persona, descuento);
                try {
                    agregarDescuentoAPersona.execute();
                } catch (Exception ex) {
                    JOptionPane.showMessageDialog(this, ex.getMessage());
                }
//actualizo la persona con las modificaciones
                persona = (Persona) BrokerServer.instance().getPMF().
View Full Code Here

             if (elDescuento!=null) {

                ICommand desAgregarDescuentoAPersona = CommandFactory.createDesAgregarDescuentoAPersona(
                                persona, elDescuento);
                try {
                    desAgregarDescuentoAPersona.execute();
                } catch (Exception ex) {
                    JOptionPane.showMessageDialog(this, ex.getMessage());
                }
//actualizo la persona con las modificaciones
                persona = (Persona) BrokerServer.instance().getPMF().
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.