/* 
* Copyright 2016 Agencia Estatal de Administración Tibutaria
*
* Licencia con arreglo a la EUPL, Versión 1.1 o –en cuanto
* sean aprobadas por la Comisión Europea– versiones
* posteriores de la EUPL (la «Licencia»);
* Solo podrá usarse esta obra si se respeta la Licencia.
* Puede obtenerse una copia de la Licencia en:
*  
* https://joinup.ec.europa.eu/software/page/eupl
*  
* Salvo cuando lo exija la legislación aplicable o se acuerde
* por escrito, el programa distribuido con arreglo a la
* Licencia se distribuye «TAL CUAL», SIN GARANTÍAS NI CONDICIONES
* DE NINGÚN TIPO, ni expresasni implícitas.
*
* Véase la Licencia en el idioma concreto que rige los permisos y 
* limitaciones que establece la Licencia.
*/ 

package administrador;

import administrador.datos.RegistroCandidatos;
import administrador.utiles.*;
import administrador.utiles.Fecha;
import java.io.File;
import java.util.*;

public final class FormInformacionTiket extends javax.swing.JFrame {

    RegistroCandidatos[] datos;
    int pos = 0;
    int total = 0;
    String tabla;
    String id = "";
    Comunicaciones comu;

    public FormInformacionTiket(Comunicaciones _comu) {
        initComponents();
        comu = _comu;
        insertarMenusScript();
    }

    void insertarMenusScript() {
        barraMenu.setVisible(false);
        Configuracion conf = Configuracion.instanciaUnica();
        if (conf.scriptsCandidato.size() > 0) {
            for (Iterator it = conf.scriptsCandidato.iterator(); it.hasNext();) {
                final Configuracion.ScriptCandidato sc = (Configuracion.ScriptCandidato) it.next();
                javax.swing.JMenuItem mit = new javax.swing.JMenuItem();
                mit.setText(sc.menuTxt);
                mit.addActionListener(new java.awt.event.ActionListener() {

                    @Override
                    public void actionPerformed(java.awt.event.ActionEvent evt) {
                        java.io.File fprog = new java.io.File(sc.path);
                        if (!fprog.exists()) {
                            Global.MsgBox("'" + sc.path + "'\nArchivo no encontrado");
                            return;
                        }
                        String fecha = lbFecha.getText();
                        String cola = lCola.getText();
                        String nif = lNif.getText();
                        String nombre = lNombre.getText();
                        String horaInicio = lHoraAtendido.getText();
                        String horaFinalizado = lHoraFinalizado.getText();
                        String horaPresente = lHoraPresente.getText();
                        administrador.utiles.ProgramaExterno.run(sc.path, fecha, cola, nif, nombre, horaInicio, horaFinalizado, horaPresente);
                    }
                });
                menu.add(mit);
            }
            barraMenu.setVisible(true);
        }
    }

    public void copiardatos(RegistroCandidatos[] dat) {
        datos = dat;
        total = datos.length - 1;
    }

    public void Rellenardatos(int i) {
        GregorianCalendar gc = new GregorianCalendar();
        gc.set(Calendar.HOUR_OF_DAY, 1);
        String cabecera = "";
        if (datos[i].getHoraCita().before(gc.getTime())) {
            cabecera = "OPERACIONES DE DIAS ANTERIORES: ";
            tabla = "HistoricoCandidatos";
        } else {
            cabecera = "TIQUE: ";
            tabla = "Candidatos";
        }
        jLabel1.setText(cabecera + datos[i].getNumeroTicket());
        lbFecha.setText(Fecha.formatoHoraDMA(datos[i].getHoraCita()));
        lHoraPresente.setText(Fecha.formatoHoraHMS(datos[i].getHoraPresente()));
        lHoraCita.setText(Fecha.formatoHoraHMS(datos[i].getHoraCita()));
        lHoraCalculada.setText(Fecha.formatoHoraHMS(datos[i].getHoraCalculada()));
        lHoraAtendido.setText(Fecha.formatoHoraHMS(datos[i].getHoraAtendido()));
        lHoraFinalizado.setText(Fecha.formatoHoraHMS(datos[i].getHoraFinalizado()));
        lMesa.setText(datos[i].getMesa());
        lOperador.setText(datos[i].getOperador());
        lNombre.setText(datos[i].getNombre());
        lEstado.setText(ponerEstado(datos[i].getEstado()));
        lCola.setText(datos[i].getCola() + " " + datos[i].getNombreCola());
        lNif.setText(datos[i].getNif());
        lRegistros.setText((pos + 1) + ":" + (total + 1));
        pos = i;
        id = "" + datos[i].getId();
        jBSiguiente.setEnabled(pos < total);
        jBAnterior.setEnabled(pos > 0);
        if (datos[i].getNiu().startsWith("S")) {
            jBNotas.setEnabled(true);
        } else {
            jBNotas.setEnabled(false);
        }

    }

    String ponerEstado(String T) {
        if (T.equals("") || T.equals(" ")) {
            return "NO Presente";
        }
        if (T.equals("P")) {
            return "Presente";
        }
        if (T.equals("X")) {
            return "Vinculado NO Atendido";
        }
        if (T.equals("A")) {
            return "Siendo atendido";
        }
        if (T.equals("F")) {
            return "Finalizado con productos";
        }
        if (T.equals("S")) {
            return "Finalizado sin productos";
        }
        if (T.equals("D")) {
            return "En tránsito o Descartado";
        }
        return " ";
    }

    void BotonSiguiente() {
        Rellenardatos(++pos);
    }

    void BotonAnterior() {
        Rellenardatos(--pos);
    }

    void pedirUnaNota() {
        String ficheroN = lNif.getText().trim() + "_" + id;
        File file = new File(Global.miPath() + "\\Notas\\" + ficheroN + ".rtf");

        if (file.exists()) {
            FormVerFichero fv = new FormVerFichero(ficheroN);
            fv.setVisible(true);
            return;
        }
        comu.pedirUnaNotaTicket(tabla, id);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel2 = new javax.swing.JLabel();
        lHoraCita = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        lHoraPresente = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        lHoraCalculada = new javax.swing.JLabel();
        jBSiguiente = new javax.swing.JButton();
        jBAnterior = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        lHoraAtendido = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        lHoraFinalizado = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        lMesa = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        lOperador = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        lEstado = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        lCola = new javax.swing.JLabel();
        lNombre = new javax.swing.JLabel();
        lNif = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        lRegistros = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        lbFecha = new javax.swing.JLabel();
        jBNotas = new javax.swing.JButton();
        barraMenu = new javax.swing.JMenuBar();
        menu = new javax.swing.JMenu();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("Informacion");
        setForeground(java.awt.Color.white);
        setResizable(false);

        jLabel2.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel2.setText("Hora de la Cita");

        lHoraCita.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lHoraCita.setText("lHoraCita");

        jLabel3.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel3.setText("Hora Presente");

        lHoraPresente.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lHoraPresente.setText("LHoraPresente");

        jLabel4.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel4.setText("Hora Asignada ");

        lHoraCalculada.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lHoraCalculada.setText("lHoraCalculada");

        jBSiguiente.setText("Siguiente");
        jBSiguiente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBSiguienteActionPerformed(evt);
            }
        });

        jBAnterior.setText("Anterior");
        jBAnterior.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBAnteriorActionPerformed(evt);
            }
        });

        jLabel7.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel7.setText("Hora Atendido");

        lHoraAtendido.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lHoraAtendido.setText("lHoraAtendido");

        jLabel8.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel8.setText("Hora Finalizado");

        lHoraFinalizado.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lHoraFinalizado.setText("lHoraFinalizado");

        jLabel9.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel9.setText("Mesa Atendido");

        lMesa.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lMesa.setText("lMesa");

        jLabel10.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel10.setText("Usuario");

        lOperador.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lOperador.setText("lOperador");

        jLabel5.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel5.setText("Estado");

        lEstado.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lEstado.setText("lEstado");

        jLabel6.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 11)); // NOI18N
        jLabel6.setText("Cola");

        lCola.setFont(new java.awt.Font("Dialog", 0, 12)); // NOI18N
        lCola.setText("lCola");

        lNombre.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 11)); // NOI18N
        lNombre.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lNombre.setText("Nombre");

        lNif.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 11)); // NOI18N
        lNif.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        lNif.setText("lNif");

        jLabel1.setFont(new java.awt.Font("Microsoft Sans Serif", 1, 12)); // NOI18N
        jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        jLabel1.setText("Titulo");

        lRegistros.setFont(new java.awt.Font("Microsoft Sans Serif", 0, 11)); // NOI18N
        lRegistros.setText("Regs");

        jLabel11.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
        jLabel11.setText("Fecha: ");

        lbFecha.setFont(new java.awt.Font("Dialog", 1, 14)); // NOI18N
        lbFecha.setText("jLabel12");

        jBNotas.setText("Ver Notas");
        jBNotas.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jBNotasActionPerformed(evt);
            }
        });

        menu.setText("Opciones instaladas");
        barraMenu.add(menu);

        setJMenuBar(barraMenu);

        org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 484, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(layout.createSequentialGroup()
                        .add(12, 12, 12)
                        .add(lNif, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 114, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(10, 10, 10)
                        .add(lNombre, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 267, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(9, 9, 9)
                        .add(lRegistros, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 50, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .add(152, 152, 152)
                        .add(jLabel11, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 58, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(6, 6, 6)
                        .add(lbFecha, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 109, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .add(16, 16, 16)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 90, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 88, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 93, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(7, 7, 7)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lHoraCita, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 105, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lHoraPresente, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 133, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lHoraCalculada, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 134, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(34, 34, 34)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 83, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(jLabel8))
                        .add(16, 16, 16)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lHoraAtendido, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 96, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lHoraFinalizado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 97, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                    .add(layout.createSequentialGroup()
                        .add(84, 84, 84)
                        .add(jBAnterior, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 118, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(97, 97, 97)
                        .add(jBSiguiente, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 118, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(39, 39, 39)
                        .add(jBNotas)
                        .add(0, 0, Short.MAX_VALUE))
                    .add(layout.createSequentialGroup()
                        .add(16, 16, 16)
                        .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 91, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(13, 13, 13)
                        .add(lMesa, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 116, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(48, 48, 48)
                        .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 54, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                        .add(lEstado, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .add(org.jdesktop.layout.GroupLayout.LEADING, layout.createSequentialGroup()
                        .add(16, 16, 16)
                        .add(jLabel10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 56, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(48, 48, 48)
                        .add(lOperador, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 113, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(51, 51, 51)
                        .add(jLabel6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 42, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .add(lCola, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 240, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .add(110, 110, 110))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(layout.createSequentialGroup()
                .add(24, 24, 24)
                .add(jLabel1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                .add(5, 5, 5)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lRegistros, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(layout.createSequentialGroup()
                        .add(4, 4, 4)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(lNif, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 17, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(lNombre, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))))
                .add(9, 9, 9)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel11)
                    .add(lbFecha))
                .add(13, 13, 13)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(layout.createSequentialGroup()
                        .add(4, 4, 4)
                        .add(jLabel2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(7, 7, 7)
                        .add(jLabel3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(7, 7, 7)
                        .add(jLabel4, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .add(lHoraCita, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(1, 1, 1)
                        .add(lHoraPresente, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(1, 1, 1)
                        .add(lHoraCalculada, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .add(12, 12, 12)
                        .add(jLabel7, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(7, 7, 7)
                        .add(jLabel8, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .add(layout.createSequentialGroup()
                        .add(8, 8, 8)
                        .add(lHoraAtendido, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(5, 5, 5)
                        .add(lHoraFinalizado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))
                .add(29, 29, 29)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(lMesa, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(layout.createSequentialGroup()
                        .add(3, 3, 3)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(jLabel9, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                                .add(jLabel5, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                                .add(lEstado, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 13, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)))))
                .add(8, 8, 8)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                    .add(jLabel10, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(lOperador, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jLabel6, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(lCola, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 19, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED, 29, Short.MAX_VALUE)
                .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                    .add(jBAnterior, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jBSiguiente, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 44, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .add(jBNotas))
                .add(22, 22, 22))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents
    private void jBAnteriorActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBAnteriorActionPerformed
        BotonAnterior();
    }//GEN-LAST:event_jBAnteriorActionPerformed

    private void jBSiguienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBSiguienteActionPerformed
        BotonSiguiente();
    }//GEN-LAST:event_jBSiguienteActionPerformed

    private void jBNotasActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jBNotasActionPerformed
        // TODO add your handling code here:
        pedirUnaNota();
    }//GEN-LAST:event_jBNotasActionPerformed

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuBar barraMenu;
    private javax.swing.JButton jBAnterior;
    private javax.swing.JButton jBNotas;
    private javax.swing.JButton jBSiguiente;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JLabel lCola;
    private javax.swing.JLabel lEstado;
    private javax.swing.JLabel lHoraAtendido;
    private javax.swing.JLabel lHoraCalculada;
    private javax.swing.JLabel lHoraCita;
    private javax.swing.JLabel lHoraFinalizado;
    private javax.swing.JLabel lHoraPresente;
    private javax.swing.JLabel lMesa;
    private javax.swing.JLabel lNif;
    private javax.swing.JLabel lNombre;
    private javax.swing.JLabel lOperador;
    private javax.swing.JLabel lRegistros;
    private javax.swing.JLabel lbFecha;
    private javax.swing.JMenu menu;
    // End of variables declaration//GEN-END:variables
}
