package Vistas;


import Modelo.*;
import javax.swing.JFrame;

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

/*
 * jfrmPrincipal.java
 *
 * Created on 25-nov-2009, 17:35:50
 */

/**
 *
 * @author acc_local
 */
public class jfrmPrincipal extends javax.swing.JFrame {
    Sucursal sucAux = new Sucursal();
    JFrame auxJf;
    /** Creates new form jfrmPrincipal */
    public jfrmPrincipal(Sucursal suc, JFrame jf) {
        auxJf=jf;
        initComponents();
        sucAux=suc;
    }

    /** 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() {

        jMenuBar2 = new javax.swing.JMenuBar();
        jMenu4 = new javax.swing.JMenu();
        jMenu5 = new javax.swing.JMenu();
        jLabel6 = new javax.swing.JLabel();
        label1 = new java.awt.Label();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jMenuItem2 = new javax.swing.JMenuItem();
        jMenuItem3 = new javax.swing.JMenuItem();
        jmiSeleccionarCuenta = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        jmiRemesaCargo = new javax.swing.JMenuItem();
        jmiRemesaAbono = new javax.swing.JMenuItem();
        jmiTransferenciaInterna = new javax.swing.JMenuItem();
        jmiTransExterna = new javax.swing.JMenuItem();
        jMenuItem7 = new javax.swing.JMenuItem();
        jmiReintegro = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jmiCuentaCorriente = new javax.swing.JMenuItem();
        jmiLibretaAhorro = new javax.swing.JMenuItem();
        jmiPrestamoPersonal = new javax.swing.JMenuItem();
        jmiPrestamoHipotecario = new javax.swing.JMenuItem();
        jMenu6 = new javax.swing.JMenu();
        jmiArqueoFinal = new javax.swing.JMenuItem();
        jmiPSalir = new javax.swing.JMenu();
        jmiSalir = new javax.swing.JMenuItem();

        jMenu4.setText("File");
        jMenuBar2.add(jMenu4);

        jMenu5.setText("Edit");
        jMenuBar2.add(jMenu5);

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jLabel6.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Vistas/EstafadorLogo2.JPG"))); // NOI18N

        label1.setFont(new java.awt.Font("Comic Sans MS", 1, 52));
        label1.setText("SwindlerBank");

        jMenu1.setText("Consultas");
        jMenu1.setFont(new java.awt.Font("Comic Sans MS", 1, 11));

        jMenuItem2.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jMenuItem2.setText("Movimientos");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        jMenuItem3.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jMenuItem3.setText("Domiciliaciones");
        jMenu1.add(jMenuItem3);

        jmiSeleccionarCuenta.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiSeleccionarCuenta.setText("Cuentas Cliente");
        jmiSeleccionarCuenta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiSeleccionarCuentaActionPerformed(evt);
            }
        });
        jMenu1.add(jmiSeleccionarCuenta);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Operaciones");
        jMenu2.setFont(new java.awt.Font("Comic Sans MS", 1, 11));

        jmiRemesaCargo.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        jmiRemesaCargo.setText("Remesa Cargo");
        jmiRemesaCargo.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRemesaCargoActionPerformed(evt);
            }
        });
        jMenu2.add(jmiRemesaCargo);

        jmiRemesaAbono.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        jmiRemesaAbono.setText("Remesa Abono");
        jmiRemesaAbono.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiRemesaAbonoActionPerformed(evt);
            }
        });
        jMenu2.add(jmiRemesaAbono);

        jmiTransferenciaInterna.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        jmiTransferenciaInterna.setText("Transferencia Interna");
        jmiTransferenciaInterna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiTransferenciaInternaActionPerformed(evt);
            }
        });
        jMenu2.add(jmiTransferenciaInterna);

        jmiTransExterna.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiTransExterna.setText("Transferencia Externa");
        jmiTransExterna.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiTransExternaActionPerformed(evt);
            }
        });
        jMenu2.add(jmiTransExterna);

        jMenuItem7.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jMenuItem7.setText("Ingreso");
        jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem7ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem7);

        jmiReintegro.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiReintegro.setText("Reintegro");
        jmiReintegro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiReintegroActionPerformed(evt);
            }
        });
        jMenu2.add(jmiReintegro);

        jMenuBar1.add(jMenu2);

        jMenu3.setText("Productos");
        jMenu3.setFont(new java.awt.Font("Comic Sans MS", 1, 11));

        jmiCuentaCorriente.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiCuentaCorriente.setText("Cuenta Corriente");
        jmiCuentaCorriente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiCuentaCorrienteActionPerformed(evt);
            }
        });
        jMenu3.add(jmiCuentaCorriente);

        jmiLibretaAhorro.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiLibretaAhorro.setText("Libreta de Ahorro");
        jmiLibretaAhorro.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiLibretaAhorroActionPerformed(evt);
            }
        });
        jMenu3.add(jmiLibretaAhorro);

        jmiPrestamoPersonal.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiPrestamoPersonal.setText("Préstamo Personal");
        jmiPrestamoPersonal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiPrestamoPersonalActionPerformed(evt);
            }
        });
        jMenu3.add(jmiPrestamoPersonal);

        jmiPrestamoHipotecario.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiPrestamoHipotecario.setText("Préstamo Hipotecario");
        jmiPrestamoHipotecario.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiPrestamoHipotecarioActionPerformed(evt);
            }
        });
        jMenu3.add(jmiPrestamoHipotecario);

        jMenuBar1.add(jMenu3);

        jMenu6.setText("Arqueo");
        jMenu6.setFont(new java.awt.Font("Comic Sans MS", 1, 11));
        jMenu6.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenu6ActionPerformed(evt);
            }
        });

        jmiArqueoFinal.setFont(new java.awt.Font("Comic Sans MS", 0, 11)); // NOI18N
        jmiArqueoFinal.setText("Arqueo Final");
        jmiArqueoFinal.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiArqueoFinalActionPerformed(evt);
            }
        });
        jMenu6.add(jmiArqueoFinal);

        jMenuBar1.add(jMenu6);

        jmiPSalir.setText("Salir");
        jmiPSalir.setFont(new java.awt.Font("Comic Sans MS", 1, 11));
        jmiPSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiPSalirActionPerformed(evt);
            }
        });

        jmiSalir.setFont(new java.awt.Font("Comic Sans MS", 0, 11));
        jmiSalir.setText("Salir");
        jmiSalir.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jmiSalirActionPerformed(evt);
            }
        });
        jmiPSalir.add(jmiSalir);

        jMenuBar1.add(jmiPSalir);

        setJMenuBar(jMenuBar1);

        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(138, 138, 138)
                        .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(213, 213, 213)
                        .addComponent(jLabel6)))
                .addContainerGap(114, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(39, 39, 39)
                .addComponent(label1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel6)
                .addContainerGap(25, Short.MAX_VALUE))
        );

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

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

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

    private void jmiTransferenciaInternaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiTransferenciaInternaActionPerformed
        new jfrmTransInterna(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiTransferenciaInternaActionPerformed

    private void jmiTransExternaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiTransExternaActionPerformed
        new jfrmTransExterna(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiTransExternaActionPerformed

    private void jMenuItem7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem7ActionPerformed
        new jfrmIngreso(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jMenuItem7ActionPerformed

    private void jmiPSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiPSalirActionPerformed
        this.dispose();
}//GEN-LAST:event_jmiPSalirActionPerformed

    private void jmiSalirActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiSalirActionPerformed
        this.dispose();// TODO add your handling code here:
    }//GEN-LAST:event_jmiSalirActionPerformed

    private void jmiCuentaCorrienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiCuentaCorrienteActionPerformed
        new jfrmCuentaCorriente(sucAux,this).setVisible(true);
        this.setEnabled(false);
}//GEN-LAST:event_jmiCuentaCorrienteActionPerformed

    private void jmiLibretaAhorroActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiLibretaAhorroActionPerformed
        new jfrmLibretaAhorro(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiLibretaAhorroActionPerformed

    private void jmiPrestamoPersonalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiPrestamoPersonalActionPerformed
        new jfrmPrestamoPersonal(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiPrestamoPersonalActionPerformed

    private void jmiPrestamoHipotecarioActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiPrestamoHipotecarioActionPerformed
        new jfrmPrestamoHipotecario(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiPrestamoHipotecarioActionPerformed

    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        new jfrmMovimientos(sucAux,this).setVisible(true);
        this.setEnabled(false);
}//GEN-LAST:event_jMenuItem2ActionPerformed

    private void jmiSeleccionarCuentaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiSeleccionarCuentaActionPerformed
        new jfrmSeleccionarCuentaCliente(sucAux,this,null,true).setVisible(true);
        this.setEnabled(false);
        // TODO add your handling code here:
    }//GEN-LAST:event_jmiSeleccionarCuentaActionPerformed

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

    private void jmiArqueoFinalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiArqueoFinalActionPerformed
        new jfrmArqueoFinal(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiArqueoFinalActionPerformed

    private void jmiRemesaAbonoActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jmiRemesaAbonoActionPerformed
        new jfrmRemesaAbonos(sucAux,this).setVisible(true);
        this.setEnabled(false);
    }//GEN-LAST:event_jmiRemesaAbonoActionPerformed

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

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel6;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenu jMenu5;
    private javax.swing.JMenu jMenu6;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuBar jMenuBar2;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem3;
    private javax.swing.JMenuItem jMenuItem7;
    private javax.swing.JMenuItem jmiArqueoFinal;
    private javax.swing.JMenuItem jmiCuentaCorriente;
    private javax.swing.JMenuItem jmiLibretaAhorro;
    private javax.swing.JMenu jmiPSalir;
    private javax.swing.JMenuItem jmiPrestamoHipotecario;
    private javax.swing.JMenuItem jmiPrestamoPersonal;
    private javax.swing.JMenuItem jmiReintegro;
    private javax.swing.JMenuItem jmiRemesaAbono;
    private javax.swing.JMenuItem jmiRemesaCargo;
    private javax.swing.JMenuItem jmiSalir;
    private javax.swing.JMenuItem jmiSeleccionarCuenta;
    private javax.swing.JMenuItem jmiTransExterna;
    private javax.swing.JMenuItem jmiTransferenciaInterna;
    private java.awt.Label label1;
    // End of variables declaration//GEN-END:variables

}
