Package Boundary

Source Code of Boundary.Premiosdisp

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

/*
* Premiosdisp.java
*
* Created on 7/11/2010, 03:58:35 PM
*/

package Boundary;

import Control.Act_Inv_Premios;
import Control.Login;
import Control.dispPremios;
import Entity.Equipomasfull;
import Entity.Premios;
import java.awt.Color;
import java.util.List;

/**
*
* @author Battousai
*/
public class Premiosdisp extends javax.swing.JPanel {
    Act_Inv_Premios chekinvetario=new Act_Inv_Premios();
    //Equipomasfull sistema=Login.sistema;
    /** Creates new form Premiosdisp */
    public Premiosdisp() {
        initComponents();
        begin();
        reset();
    }

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

        CiudadesBG = new javax.swing.ButtonGroup();
        CaliBG = new javax.swing.ButtonGroup();
        BogotaBG = new javax.swing.ButtonGroup();
        bonoComBG = new javax.swing.ButtonGroup();
        bonoCCPBBG = new javax.swing.ButtonGroup();
        comboperroBG = new javax.swing.ButtonGroup();
        descaceiteBG = new javax.swing.ButtonGroup();
        descllantasBG = new javax.swing.ButtonGroup();
        recargaBG = new javax.swing.ButtonGroup();
        lavadabusBG = new javax.swing.ButtonGroup();
        lavadacamionetaBG = new javax.swing.ButtonGroup();
        lavadacarroBG = new javax.swing.ButtonGroup();
        lavadamotoBG = new javax.swing.ButtonGroup();
        jLabel1 = new javax.swing.JLabel();
        estacion2bog = new javax.swing.JRadioButton();
        estacion1bog = new javax.swing.JRadioButton();
        cali = new javax.swing.JRadioButton();
        bogota = new javax.swing.JRadioButton();
        estacion3bog = new javax.swing.JRadioButton();
        estacion5bog = new javax.swing.JRadioButton();
        estacion4bog = new javax.swing.JRadioButton();
        estacion1cali = new javax.swing.JRadioButton();
        estacion6bog = new javax.swing.JRadioButton();
        estacioncali2 = new javax.swing.JRadioButton();
        estacioncali3 = new javax.swing.JRadioButton();
        estacioncali4 = new javax.swing.JRadioButton();
        jLabel2 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        operacion = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        jLabel11 = new javax.swing.JLabel();
        jLabel12 = new javax.swing.JLabel();
        jLabel13 = new javax.swing.JLabel();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        Text = new javax.swing.JLabel();
        Text1 = new javax.swing.JLabel();
        Text2 = new javax.swing.JLabel();
        Text3 = new javax.swing.JLabel();
        Text4 = new javax.swing.JLabel();
        Text5 = new javax.swing.JLabel();
        Text6 = new javax.swing.JLabel();
        Text7 = new javax.swing.JLabel();
        Text8 = new javax.swing.JLabel();
        Text9 = new javax.swing.JLabel();
        BonoCombustibleCB = new javax.swing.JComboBox();
        BonoConsumoCB = new javax.swing.JComboBox();
        ComboPerroCB = new javax.swing.JComboBox();
        DescuentoaceiteCB = new javax.swing.JComboBox();
        DescuentollantasCB = new javax.swing.JComboBox();
        RecargacelularCB = new javax.swing.JComboBox();
        lavadaBusetaCB = new javax.swing.JComboBox();
        lavadaCamionetaCB = new javax.swing.JComboBox();
        lavadaCarroCB = new javax.swing.JComboBox();
        lavadaMotoCB = new javax.swing.JComboBox();
        Aceptar = new javax.swing.JButton();

        setPreferredSize(new java.awt.Dimension(518, 352));

        jLabel1.setText("Seleccione la Ciudad:");

        estacion2bog.setBackground(new java.awt.Color(255, 255, 255));
        BogotaBG.add(estacion2bog);
        estacion2bog.setText("Tx 20");
        estacion2bog.setToolTipText("Texaco 20 Autopista Norte Km. 20");
        estacion2bog.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacion2bogActionPerformed(evt);
            }
        });

        estacion1bog.setBackground(new java.awt.Color(255, 255, 255));
        BogotaBG.add(estacion1bog);
        estacion1bog.setText("Tx 8");
        estacion1bog.setToolTipText("Texaco 8 Cra 7 No. 51-28");
        estacion1bog.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacion1bogActionPerformed(evt);
            }
        });

        cali.setBackground(new java.awt.Color(255, 255, 255));
        CiudadesBG.add(cali);
        cali.setText("Cali");
        cali.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                caliActionPerformed(evt);
            }
        });

        bogota.setBackground(new java.awt.Color(255, 255, 255));
        CiudadesBG.add(bogota);
        bogota.setText("Bogotá");
        bogota.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                bogotaActionPerformed(evt);
            }
        });

        estacion3bog.setBackground(new java.awt.Color(255, 255, 255));
        BogotaBG.add(estacion3bog);
        estacion3bog.setText("Tx 22");
        estacion3bog.setToolTipText("Texaco 22 Av. 13 no. 76-14");
        estacion3bog.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacion3bogActionPerformed(evt);
            }
        });

        estacion5bog.setBackground(new java.awt.Color(255, 255, 255));
        BogotaBG.add(estacion5bog);
        estacion5bog.setText("Tx 39");
        estacion5bog.setToolTipText("Texaco 39 Av. 68 No. 97-55");
        estacion5bog.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacion5bogActionPerformed(evt);
            }
        });

        estacion4bog.setBackground(new java.awt.Color(255, 255, 255));
        BogotaBG.add(estacion4bog);
        estacion4bog.setText("Tx 30");
        estacion4bog.setToolTipText("Texaco 30 Av. El Dorado No. 66a-28");
        estacion4bog.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacion4bogActionPerformed(evt);
            }
        });

        estacion1cali.setBackground(new java.awt.Color(255, 255, 255));
        CaliBG.add(estacion1cali);
        estacion1cali.setText("Tx 34");
        estacion1cali.setToolTipText("Texaco 34 Av. Cañasgordas No. 22-00");
        estacion1cali.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacion1caliActionPerformed(evt);
            }
        });

        estacion6bog.setBackground(new java.awt.Color(255, 255, 255));
        BogotaBG.add(estacion6bog);
        estacion6bog.setText("Tx 41");
        estacion6bog.setToolTipText("Texaco 41 Calle 134 no. 54 -11");
        estacion6bog.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacion6bogActionPerformed(evt);
            }
        });

        estacioncali2.setBackground(new java.awt.Color(255, 255, 255));
        CaliBG.add(estacioncali2);
        estacioncali2.setText("Tx 25");
        estacioncali2.setToolTipText("Texaco  25 San Fernando Calle 5No. 25-20");
        estacioncali2.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacioncali2ActionPerformed(evt);
            }
        });

        estacioncali3.setBackground(new java.awt.Color(255, 255, 255));
        CaliBG.add(estacioncali3);
        estacioncali3.setText("Tx 3");
        estacioncali3.setToolTipText("Texaco 3 Estadio Av. Roosevelt No. 31-00");
        estacioncali3.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacioncali3ActionPerformed(evt);
            }
        });

        estacioncali4.setBackground(new java.awt.Color(255, 255, 255));
        CaliBG.add(estacioncali4);
        estacioncali4.setText("Tx 10");
        estacioncali4.setToolTipText("Texaco 10 Palza de Toros Calle 5 No. 55-00");
        estacioncali4.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                estacioncali4ActionPerformed(evt);
            }
        });

        jLabel2.setText("Estaciones:");

        jLabel5.setText("Estado Operacion");

        operacion.setText("No se ha realizado ninguna operacion");

        jLabel9.setText("Descuento Lanntas");

        jLabel8.setText("Bono Combustible");

        jLabel10.setText("Bono CC o PB");
        jLabel10.setToolTipText("Bono Casa de la Cerveza ó Palo Bonito");

        jLabel3.setText("Combo Perro");

        jLabel7.setText("Descuento Aceite");

        jLabel4.setText("Recarga Celular");

        jLabel6.setText("Lavada Camioneta");

        jLabel11.setText("Lavada Carro");

        jLabel12.setText("Lavada Moto");

        jLabel13.setText("Lavada Buseta");

        jLabel14.setText("Premios");

        jLabel15.setText("Modificar ?");

        jLabel17.setText("Disponible");

        Text.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text.setText("No");

        Text1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text1.setText("No");

        Text2.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text2.setText("No");

        Text3.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text3.setText("No");

        Text4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text4.setText("No");

        Text5.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text5.setText("No");

        Text6.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text6.setText("No");

        Text7.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text7.setText("No");

        Text8.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text8.setText("No");

        Text9.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
        Text9.setText("No");

        BonoCombustibleCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        BonoConsumoCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        ComboPerroCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        DescuentoaceiteCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        DescuentollantasCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        RecargacelularCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        lavadaBusetaCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        lavadaCamionetaCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        lavadaCarroCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        lavadaMotoCB.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "No", "Si" }));

        Aceptar.setText("Aceptar");
        Aceptar.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AceptarActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(operacion, javax.swing.GroupLayout.PREFERRED_SIZE, 226, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(javax.swing.GroupLayout.Alignment.LEADING, layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel2)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                            .addComponent(estacion6bog, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(estacion1bog, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(estacion2bog, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(estacion3bog, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(estacion4bog, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(estacion5bog))
                                        .addGap(18, 18, 18)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(estacioncali4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                                .addComponent(estacioncali3)
                                                .addComponent(estacioncali2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(estacion1cali, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))))
                                    .addGroup(layout.createSequentialGroup()
                                        .addComponent(bogota)
                                        .addGap(18, 18, 18)
                                        .addComponent(cali))
                                    .addComponent(jLabel1))
                                .addGap(53, 53, 53)
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jLabel14)
                                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                        .addComponent(jLabel7)
                                        .addComponent(jLabel3, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addComponent(jLabel10, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                                .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jLabel9, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jLabel6, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                                .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.PREFERRED_SIZE, 106, javax.swing.GroupLayout.PREFERRED_SIZE))
                                            .addGap(8, 8, 8))
                                        .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                                            .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 97, javax.swing.GroupLayout.PREFERRED_SIZE)
                                            .addGap(45, 45, 45))
                                        .addComponent(jLabel13, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE))))
                            .addComponent(jLabel5, javax.swing.GroupLayout.Alignment.LEADING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(layout.createSequentialGroup()
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(Text9, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(Text3, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(Text, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(jLabel17, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                    .addComponent(Text1, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(Text2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(Text4, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(Text5, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(Text6, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(Text7, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE)
                                    .addComponent(Text8, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 48, Short.MAX_VALUE))
                                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(31, 31, 31)
                                        .addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE, 82, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(layout.createSequentialGroup()
                                        .addGap(18, 18, 18)
                                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                            .addComponent(BonoConsumoCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(ComboPerroCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(DescuentoaceiteCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(DescuentollantasCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(BonoCombustibleCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(RecargacelularCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(lavadaBusetaCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(lavadaCamionetaCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(lavadaCarroCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                            .addComponent(lavadaMotoCB, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))))
                            .addComponent(Aceptar))
                        .addGap(92, 92, 92)))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jLabel14)
                            .addComponent(jLabel15)
                            .addComponent(jLabel17))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(bogota)
                            .addComponent(cali))
                        .addGap(14, 14, 14)
                        .addComponent(jLabel2)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(estacion1bog)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(estacion2bog)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(estacion3bog)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(estacion4bog)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(estacion5bog)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                                .addComponent(estacion6bog))
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(estacion1cali)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(estacioncali2)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(estacioncali3)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(estacioncali4))))
                    .addGroup(layout.createSequentialGroup()
                        .addGap(58, 58, 58)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel8)
                            .addComponent(Text)
                            .addComponent(BonoCombustibleCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel10)
                            .addComponent(Text1)
                            .addComponent(BonoConsumoCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel3)
                            .addComponent(Text2)
                            .addComponent(ComboPerroCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel7)
                            .addComponent(Text3)
                            .addComponent(DescuentoaceiteCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(1, 1, 1)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel9)
                            .addComponent(Text4)
                            .addComponent(DescuentollantasCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel4)
                            .addComponent(Text5)
                            .addComponent(RecargacelularCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel13)
                            .addComponent(Text6)
                            .addComponent(lavadaBusetaCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(Text7)
                            .addComponent(lavadaCamionetaCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel11)
                            .addComponent(Text8)
                            .addComponent(lavadaCarroCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel12)
                            .addComponent(Text9)
                            .addComponent(lavadaMotoCB, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 11, Short.MAX_VALUE)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(operacion))
                    .addGroup(layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addComponent(Aceptar)
                        .addContainerGap())))
        );
    }// </editor-fold>//GEN-END:initComponents

    private void estacion2bogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacion2bogActionPerformed
        Estacion="Texaco 20";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=1;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
    }//GEN-LAST:event_estacion2bogActionPerformed

    private void estacion1bogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacion1bogActionPerformed
        Estacion="Texaco 8";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=0;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
}//GEN-LAST:event_estacion1bogActionPerformed

    private void caliActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_caliActionPerformed
        begin();
        estacion1cali.setVisible(true);
        estacioncali2.setVisible(true);
        estacioncali3.setVisible(true);
        estacioncali4.setVisible(true);
        estacion1bog.setVisible(false);
        estacion2bog.setVisible(false);
        estacion3bog.setVisible(false);
        estacion4bog.setVisible(false);
        estacion5bog.setVisible(false);
        estacion6bog.setVisible(false);
        Ciudad="Cali";
        num_ciudad=1;
        operacion.setForeground(Color.green);
        operacion.setText(Ciudad+" seleccionada.");
}//GEN-LAST:event_caliActionPerformed

    private void bogotaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_bogotaActionPerformed
        begin();
        estacion1bog.setVisible(true);
        estacion2bog.setVisible(true);
        estacion3bog.setVisible(true);
        estacion4bog.setVisible(true);
        estacion5bog.setVisible(true);
        estacion6bog.setVisible(true);
        estacion1cali.setVisible(false);
        estacioncali2.setVisible(false);
        estacioncali3.setVisible(false);
        estacioncali4.setVisible(false);
        num_ciudad=0;
        Ciudad="Bogota";
        operacion.setForeground(Color.green);
        operacion.setText(Ciudad+" seleccionada.");
}//GEN-LAST:event_bogotaActionPerformed

    private void estacion3bogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacion3bogActionPerformed
        Estacion="Texaco 22";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=2;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
    }//GEN-LAST:event_estacion3bogActionPerformed

    private void estacion5bogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacion5bogActionPerformed
        // TODO add your handling code here:
        Estacion="Texaco 39";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=4;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
}//GEN-LAST:event_estacion5bogActionPerformed

    private void estacion4bogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacion4bogActionPerformed
        // TODO add your handling code here:
        Estacion="Texaco 30";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=3;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
}//GEN-LAST:event_estacion4bogActionPerformed

    private void estacion1caliActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacion1caliActionPerformed
        // TODO add your handling code here:
        Estacion="Texaco 34";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=0;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
    }//GEN-LAST:event_estacion1caliActionPerformed

    private void estacion6bogActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacion6bogActionPerformed
        // TODO add your handling code here:
        Estacion="Texaco 41";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=5;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
}//GEN-LAST:event_estacion6bogActionPerformed

    private void estacioncali2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacioncali2ActionPerformed
        // TODO add your handling code here:
        Estacion="Texaco 25";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=3;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
}//GEN-LAST:event_estacioncali2ActionPerformed

    private void estacioncali3ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacioncali3ActionPerformed
        // TODO add your handling code here:
        Estacion="Texaco 03";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=2;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
}//GEN-LAST:event_estacioncali3ActionPerformed

    private void estacioncali4ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_estacioncali4ActionPerformed
        // TODO add your handling code here:
        Estacion="Texaco 10";
        List<Premios> act=chekinvetario.premiosact(Ciudad, Estacion);
        modcombo();
        modlabel(act);
        num_estacion=1;
        operacion.setForeground(Color.green);
        operacion.setText(Estacion+" seleccionada.");
}//GEN-LAST:event_estacioncali4ActionPerformed

    private void AceptarActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AceptarActionPerformed
        dispPremios p=new dispPremios();
        String BonoCombustible;
        String BonoConsumo;
        String ComboPerro;
        String Descuentoaceite;
        String Descuentollantas;
        String Recargacelular;
        String lavadaBuseta;
        String lavadaCamioneta;
        String lavadaCarro;
        String lavadaMoto;
        BonoCombustible=(String) BonoCombustibleCB.getSelectedItem();
        BonoConsumo=(String) BonoConsumoCB.getSelectedItem();
        ComboPerro=(String) ComboPerroCB.getSelectedItem();
        Descuentoaceite=(String) DescuentoaceiteCB.getSelectedItem();
        Descuentollantas=(String) DescuentollantasCB.getSelectedItem();
        Recargacelular=(String) RecargacelularCB.getSelectedItem();
        lavadaBuseta=(String) lavadaBusetaCB.getSelectedItem();
        lavadaCamioneta=(String) lavadaCamionetaCB.getSelectedItem();
        lavadaCarro=(String) lavadaCarroCB.getSelectedItem();
        lavadaMoto=(String) lavadaMotoCB.getSelectedItem();
        p.editar(BonoCombustible,BonoConsumo,ComboPerro,Descuentoaceite,Descuentollantas,Recargacelular,
                lavadaBuseta,lavadaCamioneta,lavadaCarro,lavadaMoto,num_estacion,Ciudad);
        operacion.setForeground(Color.green);
        operacion.setText("La accion se ha realizado satisfactoriamente");
        reset();
       
    }//GEN-LAST:event_AceptarActionPerformed
    private String Ciudad;
    private int num_ciudad;
    private String Estacion;
    private int num_estacion;
    private int premio;

public void begin() {
        Ciudad="";
        Estacion="";
        estacion1bog.setVisible(false);
        estacion2bog.setVisible(false);
        estacion3bog.setVisible(false);
        estacion4bog.setVisible(false);
        estacion5bog.setVisible(false);
        estacion6bog.setVisible(false);
        estacion1cali.setVisible(false);
        estacioncali2.setVisible(false);
        estacioncali3.setVisible(false);
        estacioncali4.setVisible(false);
        operacion.setForeground(Color.white);
        operacion.setText("No se ha realizado ninguna operacion.");
       
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton Aceptar;
    private javax.swing.ButtonGroup BogotaBG;
    private javax.swing.JComboBox BonoCombustibleCB;
    private javax.swing.JComboBox BonoConsumoCB;
    private javax.swing.ButtonGroup CaliBG;
    private javax.swing.ButtonGroup CiudadesBG;
    private javax.swing.JComboBox ComboPerroCB;
    private javax.swing.JComboBox DescuentoaceiteCB;
    private javax.swing.JComboBox DescuentollantasCB;
    private javax.swing.JComboBox RecargacelularCB;
    private javax.swing.JLabel Text;
    private javax.swing.JLabel Text1;
    private javax.swing.JLabel Text2;
    private javax.swing.JLabel Text3;
    private javax.swing.JLabel Text4;
    private javax.swing.JLabel Text5;
    private javax.swing.JLabel Text6;
    private javax.swing.JLabel Text7;
    private javax.swing.JLabel Text8;
    private javax.swing.JLabel Text9;
    private javax.swing.JRadioButton bogota;
    private javax.swing.ButtonGroup bonoCCPBBG;
    private javax.swing.ButtonGroup bonoComBG;
    private javax.swing.JRadioButton cali;
    private javax.swing.ButtonGroup comboperroBG;
    private javax.swing.ButtonGroup descaceiteBG;
    private javax.swing.ButtonGroup descllantasBG;
    private javax.swing.JRadioButton estacion1bog;
    private javax.swing.JRadioButton estacion1cali;
    private javax.swing.JRadioButton estacion2bog;
    private javax.swing.JRadioButton estacion3bog;
    private javax.swing.JRadioButton estacion4bog;
    private javax.swing.JRadioButton estacion5bog;
    private javax.swing.JRadioButton estacion6bog;
    private javax.swing.JRadioButton estacioncali2;
    private javax.swing.JRadioButton estacioncali3;
    private javax.swing.JRadioButton estacioncali4;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel13;
    private javax.swing.JLabel jLabel14;
    private javax.swing.JLabel jLabel15;
    private javax.swing.JLabel jLabel17;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JComboBox lavadaBusetaCB;
    private javax.swing.JComboBox lavadaCamionetaCB;
    private javax.swing.JComboBox lavadaCarroCB;
    private javax.swing.JComboBox lavadaMotoCB;
    private javax.swing.ButtonGroup lavadabusBG;
    private javax.swing.ButtonGroup lavadacamionetaBG;
    private javax.swing.ButtonGroup lavadacarroBG;
    private javax.swing.ButtonGroup lavadamotoBG;
    private javax.swing.JLabel operacion;
    private javax.swing.ButtonGroup recargaBG;
    // End of variables declaration//GEN-END:variables

    private void modcombo() {
        BonoCombustibleCB.setVisible(true);
        BonoConsumoCB.setVisible(true);
        ComboPerroCB.setVisible(true);
        DescuentoaceiteCB.setVisible(true);
        DescuentollantasCB.setVisible(true);
        RecargacelularCB.setVisible(true);
        lavadaBusetaCB.setVisible(true);
        lavadaCamionetaCB.setVisible(true);
        lavadaCarroCB.setVisible(true);
        lavadaMotoCB.setVisible(true);
        BonoCombustibleCB.setSelectedIndex(0);
        BonoConsumoCB.setSelectedIndex(0);
        ComboPerroCB.setSelectedIndex(0);
        DescuentoaceiteCB.setSelectedIndex(0);
        DescuentollantasCB.setSelectedIndex(0);
        RecargacelularCB.setSelectedIndex(0);
        lavadaBusetaCB.setSelectedIndex(0);
        lavadaCamionetaCB.setSelectedIndex(0);
        lavadaCarroCB.setSelectedIndex(0);
        lavadaMotoCB.setSelectedIndex(0);
    }
    private void reset(){
        BonoCombustibleCB.setVisible(false);
        BonoConsumoCB.setVisible(false);
        ComboPerroCB.setVisible(false);
        DescuentoaceiteCB.setVisible(false);
        DescuentollantasCB.setVisible(false);
        RecargacelularCB.setVisible(false);
        lavadaBusetaCB.setVisible(false);
        lavadaCamionetaCB.setVisible(false);
        lavadaCarroCB.setVisible(false);
        lavadaMotoCB.setVisible(false);
    }

    private void modlabel(List<Premios> act){
        if (act.get(1).isEstado()){
            Text.setText("Si");
        }else{
            Text.setText("No");
        }
        if (act.get(2).isEstado()){
            Text1.setText("Si");
        }else{
            Text1.setText("No");
        }
        if (act.get(0).isEstado()){
            Text2.setText("Si");
        }else{
            Text2.setText("No");
        }
        if (act.get(3).isEstado()){
            Text3.setText("Si");
        }else{
            Text3.setText("No");
        }
        if (act.get(4).isEstado()){
            Text4.setText("Si");
        }else{
            Text4.setText("No");
        }
        if (act.get(5).isEstado()){
            Text5.setText("Si");
        }else{
            Text5.setText("No");
        }
        if (act.get(9).isEstado()){
            Text6.setText("Si");
        }else{
            Text6.setText("No");
        }
        if (act.get(8).isEstado()){
            Text7.setText("Si");
        }else{
            Text7.setText("No");
        }
        if (act.get(7).isEstado()){
            Text8.setText("Si");
        }else{
            Text8.setText("No");
        }
        if (act.get(6).isEstado()){
            Text9.setText("Si");
        }else{
            Text9.setText("No");
        }

    }

}
TOP

Related Classes of Boundary.Premiosdisp

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.