private void CargarCampos()
        {
            ProductoVentaController productoVentaController = new ProductoVentaController();
            ProductoVenta           productoVenta           = productoVentaController.BuscarProductoVenta(productoCargar.idProducto);

            txb_nombre.Text        = productoVenta.Nombre;
            txb_codigo.Text        = productoVenta.Código;
            txb_descripcion.Text   = productoVenta.Descripción;
            txb_restriccion.Text   = productoVenta.Restricción;
            txb_precioPublico.Text = productoVenta.PrecioPúblico.ToString();
        }
Exemple #2
0
        private void BuscarProducto(Producto producto)
        {
            ProductoVentaController productoVentaController = new ProductoVentaController();

            BusinessLogic.ProductoVenta productoVenta = productoVentaController.BuscarProductoVenta(producto.idProducto);

            if (productoVenta.Nombre != null)
            {
                TIPO_PRODUCTO = "Venta";
            }
            else
            {
                TIPO_PRODUCTO = "Ingrediente";
            }
        }