package bbuvajava;

    public class jfrmPrincipal extends javax.swing.JFrame {
    Sucursal Auxsuc;
    public jfrmPrincipal(Sucursal suc) {
        Auxsuc=suc;
        initComponents();
    }



    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        Label1 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        MnewCuenta = new javax.swing.JMenu();
        jMenuItem4 = new javax.swing.JMenuItem();
        jMenu1 = new javax.swing.JMenu();
        Mtransferencia = new javax.swing.JMenuItem();
        jMenuItem2 = new javax.swing.JMenuItem();
        MOPbasica = new javax.swing.JMenuItem();
        jMenu2 = new javax.swing.JMenu();
        MCuentasCliente = new javax.swing.JMenuItem();
        jMenuItem1 = new javax.swing.JMenuItem();
        Mdomicializaciones = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        Label1.setFont(new java.awt.Font("Tahoma", 0, 48));
        Label1.setForeground(new java.awt.Color(255, 0, 0));
        Label1.setText("BANCO BBUVA");

        jLabel1.setFont(new java.awt.Font("Arial Black", 0, 14));
        jLabel1.setText("Sor Guar Dos");

        MnewCuenta.setText("Cuentas");

        jMenuItem4.setText("Nueva Cuenta");
        jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem4ActionPerformed(evt);
            }
        });
        MnewCuenta.add(jMenuItem4);

        jMenuBar1.add(MnewCuenta);

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

        Mtransferencia.setText("Realizar Transeferencia");
        Mtransferencia.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MtransferenciaActionPerformed(evt);
            }
        });
        jMenu1.add(Mtransferencia);

        jMenuItem2.setText("Realizar OPBasica");
        jMenuItem2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem2ActionPerformed(evt);
            }
        });
        jMenu1.add(jMenuItem2);

        MOPbasica.setText("Realizar Remesa de Cargos");
        MOPbasica.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MOPbasicaActionPerformed(evt);
            }
        });
        jMenu1.add(MOPbasica);

        jMenuBar1.add(jMenu1);

        jMenu2.setText("Consultas");

        MCuentasCliente.setText("Cuentas de un Cliente");
        MCuentasCliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MCuentasClienteActionPerformed(evt);
            }
        });
        jMenu2.add(MCuentasCliente);

        jMenuItem1.setText("Ultimos movimientos de un Cliente");
        jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jMenuItem1ActionPerformed(evt);
            }
        });
        jMenu2.add(jMenuItem1);

        Mdomicializaciones.setText("Consultar Domicializaciones");
        Mdomicializaciones.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                MdomicializacionesActionPerformed(evt);
            }
        });
        jMenu2.add(Mdomicializaciones);

        jMenuBar1.add(jMenu2);

        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(186, 186, 186)
                        .addComponent(jLabel1))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(90, 90, 90)
                        .addComponent(Label1)))
                .addContainerGap(93, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(72, 72, 72)
                .addComponent(Label1)
                .addGap(29, 29, 29)
                .addComponent(jLabel1)
                .addContainerGap(101, Short.MAX_VALUE))
        );

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

    private void jMenuItem4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem4ActionPerformed
        new jfrmCrearProducto(Auxsuc).setVisible(true);
    }//GEN-LAST:event_jMenuItem4ActionPerformed

    private void jMenu1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenu1ActionPerformed
        new jfrmTransferencia(Auxsuc).setVisible(true);
    }//GEN-LAST:event_jMenu1ActionPerformed
 
    private void jMenuItem2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem2ActionPerformed
        new jfrmIngreso(Auxsuc).setVisible(true);
    }//GEN-LAST:event_jMenuItem2ActionPerformed

    private void MOPbasicaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MOPbasicaActionPerformed
        new jfrmRemesas(Auxsuc).setVisible(true);
}//GEN-LAST:event_MOPbasicaActionPerformed

    private void MtransferenciaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MtransferenciaActionPerformed
        new jfrmTransferencia(Auxsuc).setVisible(true);
    }//GEN-LAST:event_MtransferenciaActionPerformed

    private void MCuentasClienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MCuentasClienteActionPerformed
        new jfrmCuentasCliente(Auxsuc).setVisible(true);
    }//GEN-LAST:event_MCuentasClienteActionPerformed

    private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jMenuItem1ActionPerformed
       new jfrmUltimosMovimientos(Auxsuc).setVisible(true);
    }//GEN-LAST:event_jMenuItem1ActionPerformed

    private void MdomicializacionesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_MdomicializacionesActionPerformed
         new jfrmDomicializaciones(Auxsuc).setVisible(true);
    }//GEN-LAST:event_MdomicializacionesActionPerformed



   

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel Label1;
    private javax.swing.JMenuItem MCuentasCliente;
    private javax.swing.JMenuItem MOPbasica;
    private javax.swing.JMenuItem Mdomicializaciones;
    private javax.swing.JMenu MnewCuenta;
    private javax.swing.JMenuItem Mtransferencia;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu2;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JMenuItem jMenuItem1;
    private javax.swing.JMenuItem jMenuItem2;
    private javax.swing.JMenuItem jMenuItem4;
    // End of variables declaration//GEN-END:variables

}
