ClubEnsayos.com - Ensayos de Calidad, Tareas y Monografias
Buscar

Parking java


Enviado por   •  27 de Septiembre de 2019  •  Trabajo  •  8.447 Palabras (34 Páginas)  •  96 Visitas

Página 1 de 34

package Principal;

import static Principal.v_tarifamin.tarifa1;

import static Principal.v_patentes.id_user;

import static Principal.v_login.usermov;

import static Principal.v_login.iniciojorn;

import java.awt.Desktop;

import java.awt.print.PrinterException;

import java.io.File;

import java.io.IOException;

import java.net.MalformedURLException;

import java.net.URISyntaxException;

import java.net.URL;

import java.sql.Connection;

import java.sql.PreparedStatement;

import java.sql.ResultSet;

import java.sql.SQLException;

import java.text.SimpleDateFormat;

import java.util.Date;

import java.util.logging.Level;

import java.util.logging.Logger;

import javax.swing.JOptionPane;

import static javax.swing.WindowConstants.DISPOSE_ON_CLOSE;

import net.sf.jasperreports.engine.JRException;

import net.sf.jasperreports.engine.JasperFillManager;

import net.sf.jasperreports.engine.JasperPrint;

import net.sf.jasperreports.engine.JasperReport;

import net.sf.jasperreports.engine.util.JRLoader;

import net.sf.jasperreports.view.JasperViewer;

public class v_admin extends javax.swing.JFrame {

public v_admin() {

initComponents();

this.setLocationRelativeTo(null);

}

public static long montoTotal;

public static long minutosEstacionado;

//public String fechaEntr;

@SuppressWarnings("unchecked")

// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents

private void initComponents() {

jPanel2 = new javax.swing.JPanel();

jLabel1 = new javax.swing.JLabel();

jLabel2 = new javax.swing.JLabel();

jLabel3 = new javax.swing.JLabel();

jLabel4 = new javax.swing.JLabel();

jLabel5 = new javax.swing.JLabel();

jScrollPane1 = new javax.swing.JScrollPane();

jtextboleta = new javax.swing.JTextArea();

jbtnimprimir = new javax.swing.JButton();

jtextmontofinal = new javax.swing.JTextField();

jtexthrsalida = new javax.swing.JTextField();

jtexthringreso = new javax.swing.JTextField();

jtextpatente = new javax.swing.JTextField();

jbtnbuscar = new javax.swing.JButton();

jMenuBar1 = new javax.swing.JMenuBar();

jMenuAgPatente = new javax.swing.JMenu();

jMenuReg = new javax.swing.JMenu();

jMenuRegCliente = new javax.swing.JMenuItem();

jMenuRegUsuario = new javax.swing.JMenuItem();

jMenuConfig = new javax.swing.JMenu();

jmenutarifa = new javax.swing.JMenuItem();

jmenulapsalida = new javax.swing.JMenuItem();

jMenuReportes = new javax.swing.JMenu();

jrpatentes = new javax.swing.JMenuItem();

jrcliente = new javax.swing.JMenuItem();

jrmovi = new javax.swing.JMenuItem();

jrusuarios = new javax.swing.JMenuItem();

jMenuAyuda = new javax.swing.JMenu();

jmenuacerca = new javax.swing.JMenuItem();

jmenumanual = new javax.swing.JMenuItem(); 10.5.49.165

jMenuSalir = new javax.swing.JMenu();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

setTitle("CONTROL PARKING - Vista Administrador");

setMinimumSize(new java.awt.Dimension(620, 580));

setUndecorated(true);

setResizable(false);

getContentPane().setLayout(new org.netbeans.lib.awtextra.AbsoluteLayout());

jPanel2.setBackground(new java.awt.Color(147, 209, 247));

jPanel2.setMinimumSize(new java.awt.Dimension(620, 580));

jPanel2.setPreferredSize(new java.awt.Dimension(620, 580));

jPanel2.addMouseListener(new java.awt.event.MouseAdapter() {

public void mouseEntered(java.awt.event.MouseEvent evt) {

jPanel2MouseEntered(evt);

}

});

jLabel1.setFont(new java.awt.Font("Sitka Small", 1, 14)); // NOI18N

jLabel1.setForeground(new java.awt.Color(0, 51, 102));

jLabel1.setText("Ingrese Patente:");

jLabel2.setFont(new java.awt.Font("Sitka Small", 1, 14)); // NOI18N

jLabel2.setForeground(new java.awt.Color(0, 51, 102));

jLabel2.setText("Hora de Ingreso:");

jLabel3.setFont(new java.awt.Font("Sitka Small", 1, 14)); // NOI18N

jLabel3.setForeground(new java.awt.Color(0, 51, 102));

jLabel3.setText("Hora de Salida:");

jLabel4.setFont(new java.awt.Font("Sitka Small", 1, 14)); // NOI18N

jLabel4.setForeground(new java.awt.Color(0, 51, 102));

jLabel4.setText("Monto a Pagar:");

jLabel5.setFont(new java.awt.Font("Sitka Small", 1, 14)); // NOI18N

jLabel5.setForeground(new java.awt.Color(0, 51, 102));

jLabel5.setText("Vista Previa Boleta:");

jtextboleta.setColumns(20);

jtextboleta.setFont(new java.awt.Font("Consolas", 1, 11)); // NOI18N

jtextboleta.setForeground(new java.awt.Color(0, 51, 102));

jtextboleta.setRows(5);

jtextboleta.setDisabledTextColor(new java.awt.Color(0, 51, 102));

jScrollPane1.setViewportView(jtextboleta);

jbtnimprimir.setBackground(new java.awt.Color(0, 51, 102));

jbtnimprimir.setFont(new java.awt.Font("Sitka Small", 1, 13)); // NOI18N

jbtnimprimir.setForeground(new java.awt.Color(255, 255, 255));

jbtnimprimir.setText("Imprimir");

jbtnimprimir.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jbtnimprimirActionPerformed(evt);

}

});

jtextmontofinal.setFont(new java.awt.Font("Consolas", 1, 14)); // NOI18N

jtextmontofinal.setForeground(new java.awt.Color(0, 51, 102));

jtextmontofinal.setDisabledTextColor(new java.awt.Color(0, 51, 102));

jtexthrsalida.setFont(new

...

Descargar como (para miembros actualizados) txt (40 Kb) pdf (90 Kb) docx (25 Kb)
Leer 33 páginas más »
Disponible sólo en Clubensayos.com