text stringlengths 3 1.18M |
|---|
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writi... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
/*
* Copyright 2009 Fred Sauer
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in wr... |
package controlador;
import java.awt.event.ActionEvent;
import java.util.Iterator;
import java.awt.event.MouseEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.event.MouseListener;
import java.awt.event.ActionListener;
import ... |
package controlador;
import vista.InterfazGraficaCompra;
import vista.Mensaje;
import vista.VentanaIndependiente;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.even... |
package controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.Iterator;
import ... |
package controlador;
import java.util.List;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import modelo.DaoSwingWorker;
import vista.InterfazGraficaCargarVentas;
import vista.VentanaIndependiente;
public class ControladorCargar<T> implements PropertyChangeListener
{
pri... |
package controlador;
import vista.InterfazGraficaProveedor;
import vista.Mensaje;
import java.awt.event.ActionEvent;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.eve... |
package controlador;
import vista.InterfazGraficaProducto;
import vista.Mensaje;
import vista.VentanaIndependiente;
import java.awt.event.ActionEvent;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.even... |
package controlador;
import vista.InterfazGraficaCategoria;
import vista.Mensaje;
import java.awt.event.ActionEvent;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.eve... |
package controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.util.Iterator;
import ... |
package controlador;
import vista.InterfazGraficaVenta;
import vista.Mensaje;
import vista.VentanaIndependiente;
import java.awt.event.ActionEvent;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.event... |
package controlador;
import vista.InterfazGraficaCliente;
import vista.Mensaje;
import java.awt.event.ActionEvent;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.KeyEvent;
import java.awt.event.... |
package controlador;
import vista.InterfazGraficaIngrediente;
import vista.Mensaje;
import java.awt.event.ActionEvent;
import java.awt.event.FocusEvent;
import java.awt.event.FocusListener;
import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;
import java.awt.event.WindowEvent;
import java.awt.e... |
package controlador;
import java.beans.PropertyChangeEvent;
import java.beans.PropertyChangeListener;
import java.util.List;
import java.io.File;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.e... |
package controlador;
import java.awt.event.ActionEvent;
import java.util.Iterator;
import java.awt.event.MouseEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.event.MouseListener;
import java.awt.event.ActionListener;
import ... |
package controlador;
import vista.InterfazGraficaReporteVenta;
import vista.Mensaje;
import java.awt.event.ActionEvent;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.event.ActionListener;
import ja... |
package controlador;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.event.WindowAdapter;
import vista.InterfazGraficaPrincipal;
public class ControladorPrincipal extends WindowAdapter implements... |
package controlador;
import vista.InterfazGraficaReporteIngrediente;
import java.awt.event.ActionEvent;
import java.awt.event.WindowEvent;
import java.awt.event.WindowListener;
import java.awt.event.ActionListener;
import vista.Mensaje;
import java.awt.event.ItemEvent;
import java.awt.event.ItemListener;
imp... |
/* Integrantes:
-Jesus Baute.CI.18.249.214.
-Josnner Ortiz.CI.18.059.188
-Beleanny Atacho.CI.19.253.757
-Maria Flores.C.I.18263016.*/
import controlador.ControladorPrincipal;
public class Principal {
public static void main(String[] args)
{
new ControladorPrincipal();
}
}
... |
package vista;
import java.awt.Dimension;
import java.awt.event.WindowListener;
import javax.swing.JComponent;
import javax.swing.JDialog;
import javax.swing.JMenuBar;
public class VentanaDependiente extends JDialog implements VentanaDialogo {
private PanelFondo panel;
/*Ambito Default ya qu... |
package vista;
/*Fabrica concreta de Ventanas
* Utiliza Singleton
* */
class FabricaAbstractaVentana implements FabricaAbstracta {
private static FabricaAbstractaVentana fabricaVentanas;
private FabricaAbstractaVentana(){}
public static synchronized FabricaAbstractaVentana getInstance()
{
if... |
package vista;
import java.awt.Dimension;
import java.awt.event.WindowListener;
import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JMenuBar;
public class VentanaIndependiente extends JFrame implements Ventana {
private PanelFondo panel;
/*Ambito Default ya que FabricaAbstr... |
package vista;
import javax.swing.JOptionPane;
public class Mensaje
{
public static void mostrarAdvertencia(String msj)
{
JOptionPane.showMessageDialog(null,msj, "ADVERTENCIA", JOptionPane.WARNING_MESSAGE);
}
public static void mostrarError(String msj)
{
JOptionPane.showMessageDial... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.FocusListener;
import java.awt.event.KeyListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swin... |
package vista;
public interface VentanaDialogo extends Ventana
{
void asignarModal(boolean modal);
void colocarBorde(boolean bordeado);
}
|
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import java.awt.event.WindowListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.JScrollPane;
import javax.swing.JToolBar;
import javax.swi... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.J... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.J... |
package vista;
import java.awt.event.WindowListener;
import java.awt.event.ActionListener;
import javax.swing.JProgressBar;
import javax.swing.JButton;
public class InterfazGraficaGuardarReporte
{
private JProgressBar barraProgreso;
private VentanaDialogo ventanaDialogo;
private JButton btnCancelar;... |
package vista;
import java.awt.event.ActionListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;
public class InterfazGraficaPrincipal
{
private J... |
package vista;
import java.awt.event.WindowListener;
import javax.swing.JProgressBar;
public class InterfazGraficaCargarVentas
{
private JProgressBar barraProgreso;
private VentanaDialogo ventanaDialogo;
public InterfazGraficaCargarVentas(VentanaIndependiente ventana)
{
FabricaAbstractaVent... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.FocusListener;
import java.awt.event.ItemListener;
import java.awt.event.KeyListener;
import java.awt.event.MouseListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ButtonGroup... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.WindowListener;
import java.awt.event.ItemListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTable;
import javax.swing.JScrollPane;
import javax.swing.JToolBar;
import javax.s... |
package vista;
/**
* Interfaz que declara los metodos necesarios crear una Fabrica Concreta de Ventanas
*/
interface FabricaAbstracta
{
Ventana crearVentanaIndependiente();
VentanaDialogo crearVentanaDependiente(Ventana ventana);
}
|
package vista;
import javax.swing.JComponent;
import java.awt.event.WindowListener;
import javax.swing.JMenuBar;
public interface Ventana
{
void addListener(WindowListener escuchador);
void agregarComponente(JComponent componente,int coordenadaX,int coordenandaY,int ancho, int alto);
void asignarTamanio... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.J... |
package vista;
import javax.swing.JPanel;
import java.awt.Color;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GradientPaint;
import java.awt.geom.Rectangle2D;
class PanelFondo extends JPanel
{
public void paintComponent(Graphics g)
{
super.paintComponent(g);
Graph... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.KeyListener;
import java.awt.event.WindowListener;
import java.awt.event.FocusListener;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JTextField;
import javax.swing.JToolBar;
import j... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.KeyListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTa... |
package vista;
import java.awt.event.WindowListener;
import javax.swing.JProgressBar;
public class InterfazGraficaCargar
{
private JProgressBar barraProgreso;
private VentanaDialogo ventanaDialogo;
public InterfazGraficaCargar(VentanaIndependiente ventana)
{
FabricaAbstractaVentana fabricaV... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.KeyListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.JTa... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.MouseListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JScrollPane;
import javax.swing.J... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.FocusListener;
import java.awt.event.KeyListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swin... |
package vista;
import java.awt.Font;
import java.awt.event.ActionListener;
import java.awt.event.FocusListener;
import java.awt.event.KeyListener;
import java.awt.event.WindowListener;
import java.io.File;
import javax.swing.ImageIcon;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.sw... |
package modelo;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.List;
public class Conexion
{
private static String driver="org.postgresql.Driver";
private static String nombreBD="BD2... |
package modelo;
public class VentaDetalle
{
private Producto producto;
private int cantidad;
public VentaDetalle(Producto producto,int cantidad)
{
this.producto= producto;
this.cantidad= cantidad;
}
public Producto getProducto() {
return producto;
}
public void setProducto(Producto ... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package modelo;
import java.io.File;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.PrintWriter;
import java.io.IOException;
import java.util.List;
import javax.swing.SwingWorker;
... |
package modelo;
import java.util.List;
import java.util.ArrayList;
import java.sql.ResultSet;
public class ClienteDao
{
public boolean registrarCliente(Cliente cliente) throws Exception
{
String tiraSQL="insert into \"CLIENTES\" " +
"(cod_cliente,nombre,direccion,telefono,status) " +... |
package modelo;
import java.util.List;
import java.util.ArrayList;
import java.sql.ResultSet;
import java.util.Iterator;
public class ProductoDao
{
public boolean registrarProducto(Producto producto) throws Exception
{
ArrayList<String> tirasSQL= new ArrayList<String>();
tirasSQL.add("insert in... |
package modelo;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
import java.util.Iterator;
public class VentaDao
{
public boolean registrarVenta(Venta venta) throws Exception
{
ArrayList<String> tirasSQL= new ArrayList<String>();
tirasSQL.add("insert into \"VENTAS\... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package modelo;
import java.io.File;
import java.util.List;
public abstract class DecoradorGuardarReporte<T> implements GuardarReporte<T>
{
private GuardarReporte<T> objGuardarReporte;
public DecoradorGuardarR... |
package modelo;
import java.sql.ResultSet;
import java.util.List;
import java.util.ArrayList;
public class IngredienteDao
{
public Ingrediente getIngrediente(String cod_ingrediente) throws Exception
{
Ingrediente ingrediente= new Ingrediente();
String tiraSQL= "select * from \"INGREDIENTES\" w... |
package modelo;
import java.util.List;
import java.util.Iterator;
public class IngredienteProductoDaoSwingWorker extends DaoSwingWorker<Ingrediente,Object>
{
@Override
protected List<Ingrediente> doInBackground()
{
try{
List<Ingrediente> ingredientes= new IngredienteDao().consultarIngred... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package modelo;
import java.io.File;
import java.util.List;
import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.PrintWriter;
public class DecoradorGuardarReporteCabecera<T> extends De... |
package modelo;
/*usada para las clases que en su implementacion deban buscar*/
import vista.VentanaIndependiente;
public interface Buscador
{
VentanaIndependiente getVentana();
void asignarElementoBuscado(String elemento);
}
|
package modelo;
import java.sql.ResultSet;
import java.util.List;
/*Contiene consultarVentas() de VentaDao pero adaptado al manejo de hilos con swing */
public class VentaDaoSwingWorker extends DaoSwingWorker<Venta,Object>
{
public VentaDaoSwingWorker(){}
@Override
protected List<Ve... |
package modelo;
import java.util.List;
import java.util.ArrayList;
import java.sql.ResultSet;
public class ProveedorDao
{
public boolean registrarProveedor(Proveedor proveedor) throws Exception
{
String tiraSQL="insert into \"PROVEEDORES\" " +
"(cod_proveedor,nombre,direccion,telefon... |
package modelo;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
public class IngredienteProductoDao
{
public List<IngredienteProducto> getIngredientesProductos(Ingrediente ingrediente) throws Exception
{
ArrayList<IngredienteProducto> lista= new ArrayList<IngredienteProd... |
package modelo;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.List;
public class CategoriaDao
{
public boolean registrarCategoria(Categoria categoria) throws Exception
{
String tiraSQL="insert into \"CATEGORIAS\" " +
"(cod_categoria,nombre_corto,nombre_lar... |
package modelo;
import java.util.List;
import java.util.ArrayList;
import java.sql.ResultSet;
public class ProductoIngredienteDao
{
public List<ProductoIngrediente> getProductosIngredientes(Producto producto) throws Exception
{
ArrayList<ProductoIngrediente> lista= new ArrayList<ProductoIngredient... |
package modelo;
public class CompraDetalle
{
private Ingrediente ingrediente;
private double cantidad;
public CompraDetalle(Ingrediente ingrediente, double cantidad) {
this.ingrediente = ingrediente;
this.cantidad = cantidad;
}
public Ingrediente getIngrediente() {
return ingredient... |
package modelo;
import javax.swing.SwingWorker;
import java.util.ArrayList;
import java.util.List;
public abstract class DaoSwingWorker<T,L> extends SwingWorker<List<T>,L>
{
private List<T> lista;
public void inicializar(List<T> list)
{
lista= list;
if (lista==null)
{
lista= new Arr... |
package modelo;
import java.util.List;
import java.util.ArrayList;
import java.sql.ResultSet;
public class VentaDetalleDao
{
public List<VentaDetalle> getVentaDetalles(Venta venta) throws Exception
{
ArrayList<VentaDetalle> lista= new ArrayList<VentaDetalle>();
String tiraSQL= "select * from \"V... |
package modelo;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.Iterator;
public class CompraDao
{
public boolean registrarCompra(Compras compra) throws Exception
{
ArrayList<String> tirasSQL= new ArrayList<String>();
tirasSQL.add("insert into \"COMPRAS\" (cod_compra,cod_... |
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package modelo;
import java.io.File;
import java.util.List;
public interface GuardarReporte<T>
{
public void guardar(File archivo,List<T> lista) throws Exception;
}
|
package modelo;
/*Tiene una relacion entre el ingrediente y los productos que lo continen*/
public class IngredienteProducto
{
private Producto producto;
private double cantidad;
public IngredienteProducto(Producto p,double c)
{
producto= p;
cantidad= c;
}
pub... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
package nl.sogeti.android.gpstracker.actions.utils;
public interface StatisticsDelegate
{
void finishedCalculations(StatisticsCalulator calculated);
} |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Delivery Center Java
** Author: rene
** Copyright: (c) Jul 9, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederland B.V. ... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Delivery Center Java
** Author: rene
** Copyright: (c) Jul 9, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederland B.V. ... |
/*------------------------------------------------------------------------------
** Ident: Sogeti Smart Mobile Solutions
** Author: rene
** Copyright: (c) Apr 24, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederl... |
/*------------------------------------------------------------------------------
** Ident: Delivery Center Java
** Author: rene
** Copyright: (c) Jul 9, 2011 Sogeti Nederland B.V. All Rights Reserved.
**------------------------------------------------------------------------------
** Sogeti Nederland B.V. ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.