Package entidades

Examples of entidades.Celda


    JFrame frame;
    PanelListener listener;

    public CeldaController() {
        setVisible(true);
        this.celda = new Celda();
        ec = EntityController.getInstance();
        addButonsHandlers();
        frame = PrincipalController.instanciaControllerPrincipal();
    }
View Full Code Here


            public void actionPerformed(ActionEvent e) {
                if (p != null) {
                    if (MessageGenerator.showYesNoMsj("Eliminar", "Desea eliminar el detenido? No podra deshacer el cambio.") == JOptionPane.YES_OPTION) {
                        p.setEnabled(false);
                        Celda c = (Celda) ec.createQuery("select a.celda from AsignacionPresoCelda a where a.preso = :preso and a.fechaDesde >= (select max(a2.fechaDesde) from AsignacionPresoCelda a2 where a2.preso = a.preso)", AsignacionPresoCelda.class).setParameter("preso", p).getSingleResult();
                        modificarEstadoCelda(c);
                        ec.updateEntity(p);
                        MessageGenerator.showWarningMsj("Eliminar", "Dato Eliminado");
                        listener.onPanelClose();
                    }
View Full Code Here

                        }
                    } else {
                        if(JOptionPane.showConfirmDialog(EstadoPresoController.this, "Desea Guardar?", "Estado Preso", JOptionPane.YES_NO_OPTION) == JOptionPane.YES_OPTION){
                            if (!estadoAnterior.getDescripcion().equals("Libre")){
                                if (ComboEstado.getSelectedItem().toString().split(" - ")[1].equals("Libre")){
                                    Celda c = (Celda) ec.createQuery("select a.celda from AsignacionPresoCelda a where a.preso = :preso and a.fechaDesde >= (select max(a2.fechaDesde) from AsignacionPresoCelda a2 where a2.preso = a.preso)", AsignacionPresoCelda.class).setParameter("preso", preso).getSingleResult();
                                    modificarEstadoCelda(c);
                                    AsignacionPresoCelda asig = (AsignacionPresoCelda) ec.createQuery("select a from AsignacionPresoCelda a where a.preso = :preso and a.fechaDesde >= (select max(a2.fechaDesde) from AsignacionPresoCelda a2 where a2.preso = a.preso)", AsignacionPresoCelda.class).setParameter("preso", preso).getSingleResult();
                                    asig.setFechaHasta(new Timestamp(new Date().getTime()));
                                    ec.updateEntity(asig);
                                }
View Full Code Here

TOP

Related Classes of entidades.Celda

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.