Package com.dataman.prometeo.core

Examples of com.dataman.prometeo.core.Item


                        && (jtxtClave.getText().length() != 0)) {
                    int c = JOptionPane.showConfirmDialog(frame, "ESTA SEGURO(A)?",
                            "MENSAJE DEL SISTEMA", JOptionPane.YES_NO_OPTION);
                    if (c == 0) {
                        Double precio = new Double(jtxtPrecio.getText());
                        item = new Item(-1);
                        item.setIdProducto(jtxtClave.getText());
                        item.setCategoria(jcmbCategoria.getSelectedItem().toString());
                        item.setNombre(jtxtNombre.getText());
                        item.setPrecioBase(precio);
                        item.setEstado(jcmbEstado.getSelectedItem().toString());
View Full Code Here


         * Define variables p/manejar los datos en 2 partes clave y IDproducto
         */
        try {
            String iSelected, idProducto, categoria;

            item = new Item(-1);
            int id;
            /**
             * Verifica el uso del panel buscador
             */
            if (buscador != null) {
                item = buscador.getSelected();
                id = item.getId();
            } else {
                idProducto = jtxtID.getText();
                item = new Item(-1);

                /**
                 * Conecta con la base de datos p/obtener los datos del producto
                 * selecccionado con la clave de producto, luego cambia a la
                 * clave ID
View Full Code Here

                    new Dimension((this.getWidth() - 50),
                            this.getHeight()));
            buscador = null;
        } else {
            buscador
                    = new PnlBuscador<>(new Item(-1));
            getRootPane().getContentPane().add(buscador);
            buscador.setVisible(true);

            getRootPane().getParent().setPreferredSize(
                    new Dimension((this.getWidth() + 150),
View Full Code Here

        this.setTitle(title);
        this.setFrameIcon(frameIcon);
        this.e = op;
        this.productosModelo = new TM_Productos();
        jtblProductos.setModel(productosModelo);
        pnlBuscadorItem = new PnlBuscador<>(new Item(-1), "Buscador de Producto");
        pnlBuscadorProveedor = new PnlBuscador<>(new Proveedor(-1),
                "Buscador de Proveedores");
        jspBuscadores.setTopComponent(pnlBuscadorProveedor);
        jspBuscadores.setBottomComponent(pnlBuscadorItem);
        //combo
View Full Code Here

TOP

Related Classes of com.dataman.prometeo.core.Item

Copyright © 2018 www.massapicom. 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.