/*
* Copyright (C) 2014 heap.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
* MA 02110-1301 USA
*/
package com.dataman.prometeo.swing;
import com.dataman.prometeo.core.Clientes;
import com.dataman.prometeo.core.DbOperation;
import com.dataman.prometeo.core.Persona;
import com.dataman.prometeo.core.TYPE_EstadoCredito;
import com.dataman.prometeo.core.TYPE_Identidad;
import com.dataman.prometeo.core.TYPE_Sexo;
import com.dataman.prometeo.core.TYPE_StatusSE;
import com.dataman.prometeo.core.Valida;
import java.awt.Dimension;
import java.util.Date;
import java.sql.ResultSet;
import java.text.DateFormat;
import java.util.Calendar;
import java.util.logging.Logger;
import javax.swing.JFrame;
import javax.swing.JOptionPane;
/**
*
* @author heap
*/
public class PnlClientes extends javax.swing.JPanel {
private static final Logger LOG = Logger.getLogger(PnlClientes.class.getName());
/**
* Construye para mostrar datos inmediatamente
*
* @param p la Persona
*/
public PnlClientes(Persona p) {
initComponents();
this.idCliente = p.getId();
this.prsna = p;
this.jtxtID.setText(p.toString());
clearAll();
mostrarDatos();
setCombos();
}
/**
* Construye para interactivo
*/
public PnlClientes() {
initComponents();
clearAll();
setCombos();
}
public PnlClientes(int id) {
}
private void setCombos() {
/**
* Llena combos con TYPES
*/
jcmbSexo.removeAllItems();
jcmbStatus.removeAllItems();
for (TYPE_Sexo s : TYPE_Sexo.values()) {
jcmbSexo.addItem(s.toString());
}
for (TYPE_StatusSE s : TYPE_StatusSE.values()) {
jcmbStatus.addItem(s.toString());
}
for (TYPE_Identidad s : TYPE_Identidad.values()) {
jcmbValidacion.addItem(s.toString());
}
for (TYPE_EstadoCredito s : TYPE_EstadoCredito.values()) {
jcmbEstado.addItem(s.toString());
}
jcmbStatus.setSelectedIndex(0);
jcmbSexo.setSelectedIndex(0);
jcmbEstado.setSelectedIndex(0);
jcmbValidacion.setSelectedIndex(0);
}
/**
* 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() {
java.awt.GridBagConstraints gridBagConstraints;
jLabel1 = new javax.swing.JLabel();
jtbnMostrar = new javax.swing.JButton();
jlabelx = new javax.swing.JLabel();
jtxtNombre = new javax.swing.JTextField();
jLabel3 = new javax.swing.JLabel();
jtxtRfc = new javax.swing.JTextField();
jlblPaterno = new javax.swing.JLabel();
jtxtPaterno = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jcmbValidacion = new javax.swing.JComboBox();
jLabel6 = new javax.swing.JLabel();
jtxtMaterno = new javax.swing.JTextField();
jLabel7 = new javax.swing.JLabel();
jcmbEstado = new javax.swing.JComboBox();
jLabel8 = new javax.swing.JLabel();
jtxtDomicilio = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
jtxtReferencia2 = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
jtxtTelefono = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jtxtTelefonoReferencia2 = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
jtxtReferencia1 = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jtxtTelefonoReferencia1 = new javax.swing.JTextField();
jbtnRegistrar = new javax.swing.JButton();
jbtnActualizar = new javax.swing.JButton();
jSeparator1 = new javax.swing.JSeparator();
jbtnLimpiar = new javax.swing.JButton();
jbtnSalir = new javax.swing.JButton();
jLabel2 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jtxaComentario = new javax.swing.JTextArea();
jLabel4 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jtxtEstatura = new javax.swing.JTextField();
jcmbStatus = new javax.swing.JComboBox();
jtxtEmail = new javax.swing.JTextField();
jtxtPeso = new javax.swing.JTextField();
jcmbSexo = new javax.swing.JComboBox();
jLabel18 = new javax.swing.JLabel();
jtxtEmpresa = new javax.swing.JTextField();
jtxtID = new javax.swing.JTextField();
jbtnBuscar = new javax.swing.JButton();
setBorder(javax.swing.BorderFactory.createTitledBorder("Cliente"));
setMinimumSize(new java.awt.Dimension(640, 459));
setLayout(new java.awt.GridBagLayout());
jLabel1.setText(" Cliente ID:");
jLabel1.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 0;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel1, gridBagConstraints);
jtbnMostrar.setText("Mostrar datos");
jtbnMostrar.setMaximumSize(new java.awt.Dimension(144, 26));
jtbnMostrar.setMinimumSize(new java.awt.Dimension(144, 26));
jtbnMostrar.setPreferredSize(new java.awt.Dimension(144, 26));
jtbnMostrar.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
jtbnMostrarMouseReleased(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 15;
gridBagConstraints.gridy = 0;
gridBagConstraints.gridwidth = 3;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.insets = new java.awt.Insets(4, 14, 2, 5);
add(jtbnMostrar, gridBagConstraints);
jlabelx.setLabelFor(jtxtNombre);
jlabelx.setText(" Nombre(s):");
jlabelx.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jlabelx.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(4, 0, 0, 0);
add(jlabelx, gridBagConstraints);
jtxtNombre.setText("jTextField1");
jtxtNombre.setMinimumSize(new java.awt.Dimension(480, 26));
jtxtNombre.setPreferredSize(new java.awt.Dimension(603, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 4;
gridBagConstraints.gridwidth = 16;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_START;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
add(jtxtNombre, gridBagConstraints);
jLabel3.setText(" RFC:");
jLabel3.setPreferredSize(new java.awt.Dimension(140, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 8;
gridBagConstraints.gridy = 10;
gridBagConstraints.gridwidth = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel3, gridBagConstraints);
jtxtRfc.setText("jTextField2");
jtxtRfc.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtRfc.setPreferredSize(new java.awt.Dimension(228, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 15;
gridBagConstraints.gridy = 10;
gridBagConstraints.gridwidth = 7;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
add(jtxtRfc, gridBagConstraints);
jlblPaterno.setText(" Ap. Paterno:");
jlblPaterno.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jlblPaterno.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 6;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jlblPaterno, gridBagConstraints);
jtxtPaterno.setText("jTextField3");
jtxtPaterno.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtPaterno.setPreferredSize(new java.awt.Dimension(210, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 6;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.weightx = 1.0;
add(jtxtPaterno, gridBagConstraints);
jLabel5.setText(" Tipo de Validación:");
jLabel5.setMaximumSize(new java.awt.Dimension(140, 30));
jLabel5.setMinimumSize(new java.awt.Dimension(100, 30));
jLabel5.setPreferredSize(new java.awt.Dimension(140, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 8;
gridBagConstraints.gridy = 12;
gridBagConstraints.gridwidth = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(5, 0, 0, 0);
add(jLabel5, gridBagConstraints);
jcmbValidacion.setMinimumSize(new java.awt.Dimension(175, 26));
jcmbValidacion.setPreferredSize(new java.awt.Dimension(228, 26));
jcmbValidacion.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jcmbValidacionActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 15;
gridBagConstraints.gridy = 12;
gridBagConstraints.gridwidth = 7;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(4, 0, 4, 0);
add(jcmbValidacion, gridBagConstraints);
jLabel6.setText(" Ap. Materno:");
jLabel6.setPreferredSize(new java.awt.Dimension(120, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 8;
gridBagConstraints.gridy = 6;
gridBagConstraints.gridwidth = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel6, gridBagConstraints);
jtxtMaterno.setText("jTextField5");
jtxtMaterno.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtMaterno.setPreferredSize(new java.awt.Dimension(228, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 15;
gridBagConstraints.gridy = 6;
gridBagConstraints.gridwidth = 7;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
add(jtxtMaterno, gridBagConstraints);
jLabel7.setText(" Estado:");
jLabel7.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jLabel7.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 12;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.weightx = 0.2;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel7, gridBagConstraints);
jcmbEstado.setPreferredSize(new java.awt.Dimension(220, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 12;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.insets = new java.awt.Insets(5, 0, 4, 0);
add(jcmbEstado, gridBagConstraints);
jLabel8.setText(" Domicilio:");
jLabel8.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jLabel8.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 8;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel8, gridBagConstraints);
jtxtDomicilio.setText("jTextField7");
jtxtDomicilio.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtDomicilio.setPreferredSize(new java.awt.Dimension(603, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 8;
gridBagConstraints.gridwidth = 16;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
add(jtxtDomicilio, gridBagConstraints);
jLabel9.setText(" Referencia:");
jLabel9.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jLabel9.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 25;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel9, gridBagConstraints);
jtxtReferencia2.setText("jTextField8");
jtxtReferencia2.setToolTipText("Opcional");
jtxtReferencia2.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtReferencia2.setPreferredSize(new java.awt.Dimension(603, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 25;
gridBagConstraints.gridwidth = 16;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
add(jtxtReferencia2, gridBagConstraints);
jLabel10.setText(" Telefono:");
jLabel10.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jLabel10.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 10;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel10, gridBagConstraints);
jtxtTelefono.setText("jTextField9");
jtxtTelefono.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtTelefono.setPreferredSize(new java.awt.Dimension(210, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 10;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.weightx = 1.0;
add(jtxtTelefono, gridBagConstraints);
jLabel11.setText(" Telefono:");
jLabel11.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jLabel11.setMaximumSize(new java.awt.Dimension(66, 15));
jLabel11.setMinimumSize(new java.awt.Dimension(66, 15));
jLabel11.setPreferredSize(new java.awt.Dimension(66, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 27;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel11, gridBagConstraints);
jtxtTelefonoReferencia2.setText("jTextField10");
jtxtTelefonoReferencia2.setToolTipText("Opcional");
jtxtTelefonoReferencia2.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtTelefonoReferencia2.setPreferredSize(new java.awt.Dimension(603, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 27;
gridBagConstraints.gridwidth = 16;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
add(jtxtTelefonoReferencia2, gridBagConstraints);
jLabel13.setText(" Referencia:");
jLabel13.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jLabel13.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 20;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel13, gridBagConstraints);
jtxtReferencia1.setText("jTextField12");
jtxtReferencia1.setToolTipText("Opcional");
jtxtReferencia1.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtReferencia1.setPreferredSize(new java.awt.Dimension(603, 26));
jtxtReferencia1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jtxtReferencia1ActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 20;
gridBagConstraints.gridwidth = 16;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
add(jtxtReferencia1, gridBagConstraints);
jLabel14.setText(" Telefono:");
jLabel14.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jLabel14.setPreferredSize(new java.awt.Dimension(90, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 23;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel14, gridBagConstraints);
jtxtTelefonoReferencia1.setText("jTextField13");
jtxtTelefonoReferencia1.setToolTipText("Opcional");
jtxtTelefonoReferencia1.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtTelefonoReferencia1.setPreferredSize(new java.awt.Dimension(603, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 23;
gridBagConstraints.gridwidth = 16;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
add(jtxtTelefonoReferencia1, gridBagConstraints);
jbtnRegistrar.setText("Registrar");
jbtnRegistrar.setMaximumSize(new java.awt.Dimension(144, 26));
jbtnRegistrar.setMinimumSize(new java.awt.Dimension(144, 26));
jbtnRegistrar.setPreferredSize(new java.awt.Dimension(144, 26));
jbtnRegistrar.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
jbtnRegistrarMouseReleased(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 15;
gridBagConstraints.gridy = 30;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.insets = new java.awt.Insets(10, 5, 26, 4);
add(jbtnRegistrar, gridBagConstraints);
jbtnActualizar.setText("Actualizar");
jbtnActualizar.setMaximumSize(new java.awt.Dimension(144, 26));
jbtnActualizar.setMinimumSize(new java.awt.Dimension(144, 26));
jbtnActualizar.setPreferredSize(new java.awt.Dimension(144, 26));
jbtnActualizar.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
jbtnActualizarMouseReleased(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 17;
gridBagConstraints.gridy = 30;
gridBagConstraints.gridwidth = 5;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.insets = new java.awt.Insets(10, 6, 26, 2);
add(jbtnActualizar, gridBagConstraints);
jSeparator1.setPreferredSize(new java.awt.Dimension(450, 10));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 3;
gridBagConstraints.gridwidth = 11;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.ipadx = -449;
gridBagConstraints.ipady = -9;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(5, 19, 0, 0);
add(jSeparator1, gridBagConstraints);
jbtnLimpiar.setText("Limpiar");
jbtnLimpiar.setToolTipText("Restablece el formulario a su estado inicial");
jbtnLimpiar.setMaximumSize(new java.awt.Dimension(144, 26));
jbtnLimpiar.setMinimumSize(new java.awt.Dimension(144, 26));
jbtnLimpiar.setPreferredSize(new java.awt.Dimension(144, 26));
jbtnLimpiar.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
jbtnLimpiarMouseReleased(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 8;
gridBagConstraints.gridy = 30;
gridBagConstraints.gridwidth = 7;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.insets = new java.awt.Insets(10, 5, 26, 6);
add(jbtnLimpiar, gridBagConstraints);
jbtnSalir.setText("Cerrar");
jbtnSalir.setMaximumSize(new java.awt.Dimension(144, 26));
jbtnSalir.setMinimumSize(new java.awt.Dimension(144, 26));
jbtnSalir.setPreferredSize(new java.awt.Dimension(144, 26));
jbtnSalir.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
jbtnSalirMouseReleased(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 30;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.insets = new java.awt.Insets(10, 4, 26, 5);
add(jbtnSalir, gridBagConstraints);
jLabel2.setText(" Comentario:");
jLabel2.setHorizontalTextPosition(javax.swing.SwingConstants.LEFT);
jLabel2.setPreferredSize(new java.awt.Dimension(66, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 29;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
gridBagConstraints.insets = new java.awt.Insets(2, 0, 0, 0);
add(jLabel2, gridBagConstraints);
jtxaComentario.setColumns(20);
jtxaComentario.setLineWrap(true);
jtxaComentario.setRows(5);
jtxaComentario.setWrapStyleWord(true);
jScrollPane1.setViewportView(jtxaComentario);
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 29;
gridBagConstraints.gridwidth = 16;
gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
gridBagConstraints.weightx = 1.0;
gridBagConstraints.weighty = 1.0;
add(jScrollPane1, gridBagConstraints);
jLabel4.setText(" Email:");
jLabel4.setPreferredSize(new java.awt.Dimension(36, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 14;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jLabel4, gridBagConstraints);
jLabel12.setText(" Status SE:");
jLabel12.setToolTipText("Socioeconómico");
jLabel12.setPreferredSize(new java.awt.Dimension(30, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 8;
gridBagConstraints.gridy = 14;
gridBagConstraints.gridwidth = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jLabel12, gridBagConstraints);
jLabel15.setText(" Estatura:");
jLabel15.setPreferredSize(new java.awt.Dimension(52, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 16;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jLabel15, gridBagConstraints);
jLabel16.setText(" Peso:");
jLabel16.setPreferredSize(new java.awt.Dimension(56, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 8;
gridBagConstraints.gridy = 16;
gridBagConstraints.gridwidth = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jLabel16, gridBagConstraints);
jLabel17.setText(" Sexo:");
jLabel17.setPreferredSize(new java.awt.Dimension(56, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 8;
gridBagConstraints.gridy = 18;
gridBagConstraints.gridwidth = 6;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jLabel17, gridBagConstraints);
jtxtEstatura.setText("jTextField1");
jtxtEstatura.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtEstatura.setPreferredSize(new java.awt.Dimension(55, 26));
jtxtEstatura.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jtxtEstaturaActionPerformed(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 16;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jtxtEstatura, gridBagConstraints);
jcmbStatus.setMinimumSize(new java.awt.Dimension(56, 26));
jcmbStatus.setPreferredSize(new java.awt.Dimension(55, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 15;
gridBagConstraints.gridy = 14;
gridBagConstraints.gridwidth = 7;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jcmbStatus, gridBagConstraints);
jtxtEmail.setText("jTextField2");
jtxtEmail.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtEmail.setPreferredSize(new java.awt.Dimension(55, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 14;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jtxtEmail, gridBagConstraints);
jtxtPeso.setText("jTextField3");
jtxtPeso.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtPeso.setPreferredSize(new java.awt.Dimension(55, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 15;
gridBagConstraints.gridy = 16;
gridBagConstraints.gridwidth = 7;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jtxtPeso, gridBagConstraints);
jcmbSexo.setMinimumSize(new java.awt.Dimension(56, 26));
jcmbSexo.setPreferredSize(new java.awt.Dimension(55, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 15;
gridBagConstraints.gridy = 18;
gridBagConstraints.gridwidth = 7;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jcmbSexo, gridBagConstraints);
jLabel18.setText(" Empresa:");
jLabel18.setPreferredSize(new java.awt.Dimension(40, 30));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 0;
gridBagConstraints.gridy = 18;
gridBagConstraints.gridwidth = 4;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jLabel18, gridBagConstraints);
jtxtEmpresa.setText("jTextField1");
jtxtEmpresa.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtEmpresa.setPreferredSize(new java.awt.Dimension(55, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 18;
gridBagConstraints.gridwidth = 2;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
add(jtxtEmpresa, gridBagConstraints);
jtxtID.setText("jTextField1");
jtxtID.setMinimumSize(new java.awt.Dimension(4, 26));
jtxtID.setPreferredSize(new java.awt.Dimension(55, 26));
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 6;
gridBagConstraints.gridy = 0;
gridBagConstraints.gridwidth = 8;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.weightx = 2.0;
gridBagConstraints.insets = new java.awt.Insets(4, 0, 1, 0);
add(jtxtID, gridBagConstraints);
jbtnBuscar.setText("Buscar | Ocultar Panel");
jbtnBuscar.setMaximumSize(new java.awt.Dimension(144, 26));
jbtnBuscar.setMinimumSize(new java.awt.Dimension(164, 26));
jbtnBuscar.setPreferredSize(new java.awt.Dimension(164, 26));
jbtnBuscar.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseReleased(java.awt.event.MouseEvent evt) {
jbtnBuscarMouseReleased(evt);
}
});
gridBagConstraints = new java.awt.GridBagConstraints();
gridBagConstraints.gridx = 19;
gridBagConstraints.gridy = 0;
gridBagConstraints.gridwidth = 3;
gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST;
gridBagConstraints.insets = new java.awt.Insets(4, 5, 2, 5);
add(jbtnBuscar, gridBagConstraints);
}// </editor-fold>//GEN-END:initComponents
private void mostrarDatos() {
try {
String iSelected = "";
/**
* Verifica el uso del panel buscador
*/
if (buscador != null) {
prsna = buscador.getSelected();
idCliente = prsna.getId();
} else {
idCliente = Integer.valueOf(jtxtID.getText());
prsna = new Persona(idCliente);
}
/**
* Conecta con la base de datos p/obtener los datos de la persona
* selecccionado
*/
if (prsna.buscarSQL(idCliente) == -1) {
return;
}
//
/**
* Llena el formulario GUI
*/
jtxtNombre.setText(prsna.getNombre());
jtxtPaterno.setText(prsna.getPaterno());
jtxtMaterno.setText(prsna.getMaterno());
jtxtDomicilio.setText(prsna.getDomicilio());
jtxtTelefono.setText(prsna.getTelefono());
jtxtRfc.setText(prsna.getRfc());
jtxtReferencia1.setText(prsna.getNombreReferencia1());
jtxtTelefonoReferencia1.setText(prsna.getTelefonoReferencia1());
jtxtReferencia2.setText(prsna.getNombreReferencia2());
jtxtTelefonoReferencia2.setText(prsna.getTelefonoReferencia2());
jtxaComentario.setText(prsna.getComentario());
jtxtEmail.setText(prsna.getEmail());
jtxtEstatura.setText(String.valueOf(prsna.getEstatura()));
jtxtPeso.setText(String.valueOf(prsna.getPeso()));
jtxtEmpresa.setText(prsna.getEmpresa());
/**
* Establece la fecha en formato adecuado como un toolTip Text de
* Nombre
*/
Date rsx = prsna.getFechaRegistro();
String date = DateFormat.getDateInstance(DateFormat.LONG).format(rsx);
jtxtID.setToolTipText("Registrado el: " + date.toUpperCase());
/**
* Establece los combos de Estado
*/
iSelected = prsna.getEstado();
jcmbEstado.setSelectedItem(iSelected);
iSelected = prsna.getTipoDeValidacion();
jcmbValidacion.setSelectedItem(iSelected);
jcmbSexo.setSelectedItem(prsna.getSexo());
jcmbStatus.setSelectedItem(prsna.getClaseSocial());
/**
* Prepara el formulraio p/solo permitir Actualizaciones
*/
jbtnRegistrar.setEnabled(false);
jbtnActualizar.setEnabled(true);
} catch (Exception e) {
LOG.severe(e.getLocalizedMessage());
}
}
private void jtbnMostrarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jtbnMostrarMouseReleased
mostrarDatos();
}//GEN-LAST:event_jtbnMostrarMouseReleased
private void jcmbValidacionActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jcmbValidacionActionPerformed
// Add your handling code here:
}//GEN-LAST:event_jcmbValidacionActionPerformed
private void jtxtReferencia1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtxtReferencia1ActionPerformed
// Add your handling code here:
}//GEN-LAST:event_jtxtReferencia1ActionPerformed
private void jbtnRegistrarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbtnRegistrarMouseReleased
// Add your handling code here:
if (jbtnRegistrar.isEnabled()) {
/**
* registra un nuevo cliente a la base de datos con los datos del
* GUI
*/
/**
* Valida que no esten vacios los campos requeridos por la base de
* datos
*/
if ((jtxtNombre.getText().length() != 0)
&& (jtxtPaterno.getText().length() != 0)
&& (jtxtDomicilio.getText().length() != 0)
&& (jtxtPeso.getText().length() != 0)
&& (jtxtEstatura.getText().length() != 0)
&& (jtxtTelefono.getText().length() != 0)) {
int c = JOptionPane.showConfirmDialog(frame, "ESTA SEGURO(A)?",
"MENSAJE DEL SISTEMA", JOptionPane.YES_NO_OPTION);
if (c == 0) {
prsna = new Persona(-1);
prsna.setNombre(jtxtNombre.getText());
prsna.setPaterno(jtxtPaterno.getText());
prsna.setMaterno(jtxtMaterno.getText());
prsna.setDomicilio(jtxtDomicilio.getText());
prsna.setTelefono(jtxtTelefono.getText());
prsna.setRfc(jtxtRfc.getText());
prsna.setTipoDeValidacion(jcmbValidacion.getSelectedItem().toString());
prsna.setEstado(jcmbEstado.getSelectedItem().toString());
prsna.setNombreReferencia1(jtxtReferencia1.getText());
prsna.setTelefonoReferencia1(jtxtTelefonoReferencia1.getText());
prsna.setNombreReferencia2(jtxtReferencia2.getText());
prsna.setTelefonoReferencia2(jtxtTelefonoReferencia2.getText());
prsna.setComentario(jtxaComentario.getText());
prsna.setEmail(jtxtEmail.getText());
prsna.setEmpresa(jtxtEmpresa.getText());
prsna.setPeso(Integer.valueOf(jtxtPeso.getText()));
prsna.setEstatura(Integer.valueOf(jtxtEstatura.getText()));
prsna.setSexo(jcmbSexo.getSelectedItem().toString());
prsna.setClaseSocial(jcmbStatus.getSelectedItem().toString());
prsna.setFechaRegistro(Calendar.getInstance().getTime());
int r = prsna.insertaSQL();
if (r != -1) {
JOptionPane.showMessageDialog(frame, "EL REGISTRO FUE CORRECTO",
"MENSAJE DEL SISTEMA", JOptionPane.INFORMATION_MESSAGE);
clearAll(); //limpia la forma
} else {
JOptionPane.showMessageDialog(frame, "EL REGISTRO NO FUE CORRECTO",
"MENSAJE DEL SISTEMA", JOptionPane.ERROR_MESSAGE);
}
}
} else {
//muestra un mensaje de error
JOptionPane.showMessageDialog(frame, "VERIFICA LOS DATOS DE LA FORMA",
"MENSAJE DEL SISTEMA", JOptionPane.WARNING_MESSAGE);
// LOG.warning("Formulario incompleto !");
}
}
}//GEN-LAST:event_jbtnRegistrarMouseReleased
private void jbtnActualizarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbtnActualizarMouseReleased
// Add your handling code here:
if (jbtnActualizar.isEnabled()) {
/**
* Actualiza la base de datos con los cambios del GUI
*/
/**
* Valida que no esten vacios los campos requeridos por la base de
* datos
*/
if ((jtxtNombre.getText().length() != 0)
&& (jtxtPaterno.getText().length() != 0)
&& (jtxtDomicilio.getText().length() != 0)
&& (jtxtTelefono.getText().length() != 0)) {
int c = JOptionPane.showConfirmDialog(frame, "ESTA SEGURO(A)?",
"MENSAJE DEL SISTEMA", JOptionPane.YES_NO_OPTION);
if (c == 0) {
prsna.setNombre(jtxtNombre.getText());
prsna.setPaterno(jtxtPaterno.getText());
prsna.setMaterno(jtxtMaterno.getText());
prsna.setDomicilio(jtxtDomicilio.getText());
prsna.setTelefono(jtxtTelefono.getText());
prsna.setRfc(jtxtRfc.getText());
prsna.setTipoDeValidacion(jcmbValidacion.getSelectedItem().toString());
prsna.setEstado(jcmbEstado.getSelectedItem().toString());
prsna.setNombreReferencia1(jtxtReferencia1.getText());
prsna.setTelefonoReferencia1(jtxtTelefonoReferencia1.getText());
prsna.setNombreReferencia2(jtxtReferencia2.getText());
prsna.setTelefonoReferencia2(jtxtTelefonoReferencia2.getText());
prsna.setComentario(jtxaComentario.getText());
prsna.setEmail(jtxtEmail.getText());
prsna.setEmpresa(jtxtEmpresa.getText());
prsna.setPeso(Integer.valueOf(jtxtPeso.getText()));
prsna.setEstatura(Integer.valueOf(jtxtEstatura.getText()));
prsna.setSexo(jcmbSexo.getSelectedItem().toString());
prsna.setClaseSocial(jcmbStatus.getSelectedItem().toString());
prsna.setFechaActualizacion(Calendar.getInstance().getTime());
int r = prsna.actualizaSQL();
if (r == -1) {
JOptionPane.showMessageDialog(frame, "EL REGISTRO NO FUE CORRECTO",
"MENSAJE DEL SISTEMA", JOptionPane.ERROR_MESSAGE);
} else {
JOptionPane.showMessageDialog(frame, "EL REGISTRO FUE CORRECTO",
"MENSAJE DEL SISTEMA", JOptionPane.INFORMATION_MESSAGE);
}
clearAll(); //limpia la forma
}
} else {
//muestra un mensaje de error
JOptionPane.showMessageDialog(frame, "VERIFICA LOS DATOS DE LA FORMA",
"MENSAJE DEL SISTEMA", JOptionPane.WARNING_MESSAGE);
// LOG.warning("Formulario incompleto !");
}
}
}//GEN-LAST:event_jbtnActualizarMouseReleased
private void jbtnLimpiarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbtnLimpiarMouseReleased
// Add your handling code here:
clearAll();
}//GEN-LAST:event_jbtnLimpiarMouseReleased
private void clearAll() {
jtxtNombre.setText("");
jtxtNombre.setToolTipText("");
jtxtPaterno.setText("");
jtxtMaterno.setText("");
jtxtDomicilio.setText("");
jtxtTelefono.setText("");
jtxtRfc.setText("");
jtxtReferencia1.setText("");
jtxtTelefonoReferencia1.setText("");
jtxtReferencia2.setText("");
jtxtTelefonoReferencia2.setText("");
jtxaComentario.setText("");
jtxtEmail.setText("");
jtxtEstatura.setText("");
jtxtPeso.setText("");
jtxtEmpresa.setText("");
jtxtID.setText("");
/**
* Prepara p/estado inicial de botones
*/
jbtnRegistrar.setEnabled(true);
jbtnActualizar.setEnabled(false);
}
private void jbtnSalirMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbtnSalirMouseReleased
}//GEN-LAST:event_jbtnSalirMouseReleased
private void jtxtEstaturaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jtxtEstaturaActionPerformed
}//GEN-LAST:event_jtxtEstaturaActionPerformed
/**
* Muestra u coulta el panel y modifica el tamaño del form
*/
private void buscar() {
if (buscador != null) {
getRootPane().getContentPane().remove(buscador);
getRootPane().getParent().setPreferredSize(
new Dimension((this.getWidth() - 50),
this.getHeight()));
buscador = null;
} else {
buscador = new PnlBuscador<>(new Persona(-1));
getRootPane().getContentPane().add(buscador);
buscador.setVisible(true);
getRootPane().getParent().setPreferredSize(
new Dimension((this.getWidth() + 150),
this.getHeight()));
}
}
private void jbtnBuscarMouseReleased(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbtnBuscarMouseReleased
buscar();
}//GEN-LAST:event_jbtnBuscarMouseReleased
// Variables declaration - do not modify//GEN-BEGIN:variables
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 jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
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.JScrollPane jScrollPane1;
private javax.swing.JSeparator jSeparator1;
private javax.swing.JButton jbtnActualizar;
private javax.swing.JButton jbtnBuscar;
private javax.swing.JButton jbtnLimpiar;
private javax.swing.JButton jbtnRegistrar;
private javax.swing.JButton jbtnSalir;
private javax.swing.JComboBox jcmbEstado;
private javax.swing.JComboBox jcmbSexo;
private javax.swing.JComboBox jcmbStatus;
private javax.swing.JComboBox jcmbValidacion;
private javax.swing.JLabel jlabelx;
private javax.swing.JLabel jlblPaterno;
private javax.swing.JButton jtbnMostrar;
private javax.swing.JTextArea jtxaComentario;
private javax.swing.JTextField jtxtDomicilio;
private javax.swing.JTextField jtxtEmail;
private javax.swing.JTextField jtxtEmpresa;
private javax.swing.JTextField jtxtEstatura;
private javax.swing.JTextField jtxtID;
private javax.swing.JTextField jtxtMaterno;
private javax.swing.JTextField jtxtNombre;
private javax.swing.JTextField jtxtPaterno;
private javax.swing.JTextField jtxtPeso;
private javax.swing.JTextField jtxtReferencia1;
private javax.swing.JTextField jtxtReferencia2;
private javax.swing.JTextField jtxtRfc;
private javax.swing.JTextField jtxtTelefono;
private javax.swing.JTextField jtxtTelefonoReferencia1;
private javax.swing.JTextField jtxtTelefonoReferencia2;
// End of variables declaration//GEN-END:variables
private DbOperation clientes = new DbOperation();
private Valida valida = new Valida();
//private String estado="";
private Clientes cmdClientes = new Clientes();
private ResultSet rs;
private Integer idCliente;
private Persona prsna;
private JFrame frame;
PnlBuscador<Persona> buscador;
}