/*
 * jfrmOpciones.java
 *
 * Created on 22-dic-2009, 13:45:17
 */

package src;

/**
 *
 * @author Daniel
 */
    public class jfrmOpciones extends javax.swing.JFrame {
    Sucursal s;

    public jfrmOpciones(Sucursal suc) {
        s=suc;
        initComponents();
        setResizable(false); //ASI QUITAMOS QUE SE PUEDA MAXIMIZAR
    }
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();
        jbuscarultimo = new javax.swing.JToggleButton();
        jmovdetalle = new javax.swing.JToggleButton();
        jbdomiciliacionesCuenta = new javax.swing.JToggleButton();
        jLabel4 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));

        jLabel1.setFont(new java.awt.Font("Tahoma", 0, 18)); // NOI18N
        jLabel1.setForeground(new java.awt.Color(0, 0, 255));
        jLabel1.setText("OPCIONES");

        jbuscarultimo.setText("Ultimos Movimientos");
        jbuscarultimo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbuscarultimoActionPerformed(evt);
            }
        });

        jmovdetalle.setText("Movimientos en Detalle");
        jmovdetalle.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmovdetalleActionPerformed(evt);
            }
        });

        jbdomiciliacionesCuenta.setText("Domiciliaciones en Cuenta");
        jbdomiciliacionesCuenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbdomiciliacionesCuentaActionPerformed(evt);
            }
        });

        jLabel4.setIcon(new javax.swing.ImageIcon(getClass().getResource("/src/InterfazMINI.gif"))); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(184, 184, 184)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(38, 38, 38)
                        .addComponent(jLabel4)
                        .addGap(93, 93, 93)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(jbdomiciliacionesCuenta, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jmovdetalle, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(jbuscarultimo, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                .addContainerGap(118, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(19, 19, 19)
                .addComponent(jLabel1)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel4))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(53, 53, 53)
                        .addComponent(jbuscarultimo)))
                .addGap(27, 27, 27)
                .addComponent(jmovdetalle)
                .addGap(37, 37, 37)
                .addComponent(jbdomiciliacionesCuenta)
                .addContainerGap(64, Short.MAX_VALUE))
        );

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

    private void jbuscarultimoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbuscarultimoActionPerformed
        jFrmConsultaUltMov cn2=new jFrmConsultaUltMov(s);
        cn2.setLocationRelativeTo(null);
        cn2.setVisible(true);
    }//GEN-LAST:event_jbuscarultimoActionPerformed

    private void jmovdetalleActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmovdetalleActionPerformed
        jFrmConsultaMovDetalle1 cn2=new jFrmConsultaMovDetalle1(s);
        cn2.setLocationRelativeTo(null);
        cn2.setVisible(true);
    }//GEN-LAST:event_jmovdetalleActionPerformed

    private void jbdomiciliacionesCuentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbdomiciliacionesCuentaActionPerformed
        jFrmConsultaDomiciliaciones cn4=new jFrmConsultaDomiciliaciones(s);
        cn4.setLocationRelativeTo(null);
        cn4.setVisible(true);
    }//GEN-LAST:event_jbdomiciliacionesCuentaActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JToggleButton jbdomiciliacionesCuenta;
    private javax.swing.JToggleButton jbuscarultimo;
    private javax.swing.JToggleButton jmovdetalle;
    // End of variables declaration//GEN-END:variables

}
