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

/*
 * jfrPrincipal.java
 *
 * Created on 27-nov-2009, 13:11:34
 */

package dia4g3java;

/**
 *
 * @author acc_local
 */
public class jfrmPrincipal extends javax.swing.JFrame {

    Sucursal AuxSuc;
    /** Creates new form jfrPrincipal */
    public jfrmPrincipal(Sucursal s) {
        AuxSuc=s;
        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() {

        jLabel3 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jmnOperaciones = new javax.swing.JMenu();
        jmiIngreso = new javax.swing.JMenuItem();
        jmiReintegro = new javax.swing.JMenuItem();
        jSeparator2 = new javax.swing.JSeparator();
        jmiTransferencia = new javax.swing.JMenuItem();
        jSeparator1 = new javax.swing.JSeparator();
        jmiRemesaC = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jSeparator3 = new javax.swing.JSeparator();
        jmiAperturaCuenta = new javax.swing.JMenuItem();
        jmnConsultas = new javax.swing.JMenu();
        jmiConsCuentasClte = new javax.swing.JMenuItem();
        jmiUltimosMovimientos = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel3.setFont(new java.awt.Font("Papyrus", 1, 36)); // NOI18N
        jLabel3.setForeground(new java.awt.Color(0, 0, 102));
        jLabel3.setText("Banco ALROMA");

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

        jmiIngreso.setText("Ingreso");
        jmiIngreso.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiIngresoActionPerformed(evt);
            }
        });
        jmnOperaciones.add(jmiIngreso);

        jmiReintegro.setText("Reintegro");
        jmiReintegro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiReintegroActionPerformed(evt);
            }
        });
        jmnOperaciones.add(jmiReintegro);
        jmnOperaciones.add(jSeparator2);

        jmiTransferencia.setText("Transferencia");
        jmiTransferencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiTransferenciaActionPerformed(evt);
            }
        });
        jmnOperaciones.add(jmiTransferencia);
        jmnOperaciones.add(jSeparator1);

        jmiRemesaC.setText("Remesa cargos");
        jmiRemesaC.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRemesaCActionPerformed(evt);
            }
        });
        jmnOperaciones.add(jmiRemesaC);

        jMenuItem3.setText("Remesa abonos");
        jmnOperaciones.add(jMenuItem3);
        jmnOperaciones.add(jSeparator3);

        jmiAperturaCuenta.setText("Apertura Cuenta");
        jmiAperturaCuenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiAperturaCuentaActionPerformed(evt);
            }
        });
        jmnOperaciones.add(jmiAperturaCuenta);

        jMenuBar1.add(jmnOperaciones);

        jmnConsultas.setText("Consultas");

        jmiConsCuentasClte.setText("Cuentas cliente");
        jmiConsCuentasClte.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiConsCuentasClteActionPerformed(evt);
            }
        });
        jmnConsultas.add(jmiConsCuentasClte);

        jmiUltimosMovimientos.setText("Ultimos Movimientos");
        jmiUltimosMovimientos.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiUltimosMovimientosActionPerformed(evt);
            }
        });
        jmnConsultas.add(jmiUltimosMovimientos);

        jMenuBar1.add(jmnConsultas);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(45, Short.MAX_VALUE)
                .addComponent(jLabel3)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(212, Short.MAX_VALUE)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 56, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

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

    private void jmiRemesaCActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRemesaCActionPerformed
        this.setEnabled(false);
        new jfrmRemesaCargos(AuxSuc,this).setVisible(true);
    }//GEN-LAST:event_jmiRemesaCActionPerformed

    private void jmiReintegroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiReintegroActionPerformed
        this.setEnabled(false);
        new jfrmIngresoReintegro(AuxSuc,this).setVisible(true);
    }//GEN-LAST:event_jmiReintegroActionPerformed

    private void jmiIngresoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiIngresoActionPerformed
        this.setEnabled(false);
        new jfrmIngresoReintegro(AuxSuc,this).setVisible(true);
    }//GEN-LAST:event_jmiIngresoActionPerformed

    private void jmnOperacionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmnOperacionesActionPerformed
      
    }//GEN-LAST:event_jmnOperacionesActionPerformed

    private void jmiTransferenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiTransferenciaActionPerformed
        this.setEnabled(false);
        new jfrmTransferencias(AuxSuc,this).setVisible(true);
}//GEN-LAST:event_jmiTransferenciaActionPerformed

    private void jmiUltimosMovimientosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiUltimosMovimientosActionPerformed
        this.setEnabled(false);
        new jfrmUltimosMovimientos(AuxSuc,this).setVisible(true);
}//GEN-LAST:event_jmiUltimosMovimientosActionPerformed

    private void jmiConsCuentasClteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiConsCuentasClteActionPerformed
        this.setEnabled(false);
        new jfrmCuentasCliente(AuxSuc,this).setVisible(true);
}//GEN-LAST:event_jmiConsCuentasClteActionPerformed

    private void jmiAperturaCuentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiAperturaCuentaActionPerformed
        this.setEnabled(false);
        new jfrmAperturaCuenta(AuxSuc,this).setVisible(true);
    }//GEN-LAST:event_jmiAperturaCuentaActionPerformed


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JSeparator jSeparator2;
    private javax.swing.JSeparator jSeparator3;
    private javax.swing.JMenuItem jmiAperturaCuenta;
    private javax.swing.JMenuItem jmiConsCuentasClte;
    private javax.swing.JMenuItem jmiIngreso;
    private javax.swing.JMenuItem jmiReintegro;
    private javax.swing.JMenuItem jmiRemesaC;
    private javax.swing.JMenuItem jmiTransferencia;
    private javax.swing.JMenuItem jmiUltimosMovimientos;
    private javax.swing.JMenu jmnConsultas;
    private javax.swing.JMenu jmnOperaciones;
    // End of variables declaration//GEN-END:variables

}
