/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * jfrmOperacionesyConsultas.java
 *
 * Created on 22-nov-2009, 23:16:09
 */

package bbuvajava;



/**
 *
 * @author Administrador
 */
public class jfrmOperacionesyConsultas extends javax.swing.JFrame {
    Sucursal AuxSuc;
    /** Creates new form jfrmOperacionesyConsultas */
    public jfrmOperacionesyConsultas(Sucursal suc) {
        AuxSuc=suc;
        initComponents();
    }

    /** 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.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jSeparator1 = new javax.swing.JSeparator();
        jbtnReintegro = new javax.swing.JButton();
        jbtnIngreso = new javax.swing.JButton();
        jbtnOperacionesOffline = new javax.swing.JButton();
        jbtnCancelar = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel1.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel1.setText("CONSULTAS:");

        jLabel2.setFont(new java.awt.Font("Tahoma", 1, 12));
        jLabel2.setText("OPERACIONES");

        jLabel3.setForeground(new java.awt.Color(255, 0, 0));
        jLabel3.setText("EN CONSTRUCCION");

        jbtnReintegro.setText("Reintegro");
        jbtnReintegro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnReintegroActionPerformed(evt);
            }
        });

        jbtnIngreso.setText("Ingreso");
        jbtnIngreso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnIngresoActionPerformed(evt);
            }
        });

        jbtnOperacionesOffline.setText("Operaciones offline");
        jbtnOperacionesOffline.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnOperacionesOfflineActionPerformed(evt);
            }
        });

        jbtnCancelar.setText("Cancelar");
        jbtnCancelar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbtnCancelarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(66, 66, 66)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jbtnReintegro)
                        .addGap(47, 47, 47)
                        .addComponent(jbtnIngreso)
                        .addGap(41, 41, 41)
                        .addComponent(jbtnOperacionesOffline))
                    .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 369, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel2)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jLabel1)
                        .addGap(30, 30, 30)
                        .addComponent(jLabel3)))
                .addContainerGap(58, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(399, Short.MAX_VALUE)
                .addComponent(jbtnCancelar)
                .addGap(19, 19, 19))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(59, 59, 59)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(jLabel3))
                .addGap(92, 92, 92)
                .addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE, 16, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel2)
                .addGap(38, 38, 38)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jbtnReintegro)
                    .addComponent(jbtnIngreso)
                    .addComponent(jbtnOperacionesOffline))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 48, Short.MAX_VALUE)
                .addComponent(jbtnCancelar)
                .addContainerGap())
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jbtnOperacionesOfflineActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnOperacionesOfflineActionPerformed
        // TODO add your handling code here:
        //this.setVisible(false);
        this.setEnabled(true);
        new jfrmCargosOAbonos(AuxSuc).setVisible(true);
}//GEN-LAST:event_jbtnOperacionesOfflineActionPerformed

    private void jbtnReintegroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnReintegroActionPerformed
        // TODO add your handling code here:
        //this.setVisible(false);
        this.setEnabled(true);
        new jfrmReintegro(AuxSuc).setVisible(true);
    }//GEN-LAST:event_jbtnReintegroActionPerformed

    private void jbtnIngresoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnIngresoActionPerformed
        // TODO add your handling code here:
        //this.setVisible(false);
        this.setEnabled(true);
        new jfrmIngreso(AuxSuc).setVisible(true);
    }//GEN-LAST:event_jbtnIngresoActionPerformed

    private void jbtnCancelarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbtnCancelarActionPerformed
        this.setVisible(false);
}//GEN-LAST:event_jbtnCancelarActionPerformed

    /**
    * @param args the command line arguments
    */
    /*
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new jfrmOperacionesyConsultas().setVisible(true);
            }
        });
    }*/

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton jbtnCancelar;
    private javax.swing.JButton jbtnIngreso;
    private javax.swing.JButton jbtnOperacionesOffline;
    private javax.swing.JButton jbtnReintegro;
    // End of variables declaration//GEN-END:variables

}
