Esempio n. 1
0
 public ModificarProductoPage()
 {
     InitializeComponent();
     if (producto == null)
     {
         producto = new Producto();
     }
     if (localNeg == null)
     {
         localNeg = new LocalNeg();
     }
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (estadoNeg == null)
     {
         estadoNeg = new EstadoNeg();
     }
     if (rubroNeg == null)
     {
         rubroNeg = new RubroNeg();
     }
     controlesProducto.cbxRubro.SelectionChanged += CbxRubro_SelectionChanged;
 }
Esempio n. 2
0
    public List <Producto> MotrarAllProducto()
    {
        ProductoNeg pneg  = new ProductoNeg();
        var         lista = pneg.MostrarAllProducto();

        return(lista.ToList());
    }
Esempio n. 3
0
 public VentaController()
 {
     objVentaNeg        = new VentaNeg();
     objClienteNeg      = new ClienteNeg();
     objProductoNeg     = new ProductoNeg();
     objModoPagoNeg     = new ModoPagoNeg();
     objFacturaNeg      = new FacturaNeg();
     objDetalleVentaNeg = new DetalleVentaNeg();
 }
Esempio n. 4
0
 public bool insertarProducto(Producto producto)
 {
     try
     {
         return(ProductoNeg.insertarProducto(producto));
     }
     catch (Exception)
     {
         return(false);
     }
 }
Esempio n. 5
0
        public IHttpActionResult obtenerTablas()
        {
            try
            {
                return(Ok(ProductoNeg.obtenerTablas()));
            }
            catch (Exception ex)
            {
                return(NotFound());

                throw;
            }
        }
Esempio n. 6
0
 public MenuProductoPage()
 {
     InitializeComponent();
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (listaProductos == null)
     {
         listaProductos = productoNeg.listarProducto();
     }
     cargarProductos();
 }
Esempio n. 7
0
 public VerOfertaDetallePage()
 {
     InitializeComponent();
     if (ofertaNeg == null)
     {
         ofertaNeg = new OfertaNeg();
     }
     if (localNeg == null)
     {
         localNeg = new LocalNeg();
     }
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (estadoNeg == null)
     {
         estadoNeg = new EstadoNeg();
     }
     if (rubroNeg == null)
     {
         rubroNeg = new RubroNeg();
     }
     if (detalleOfertaNeg == null)
     {
         detalleOfertaNeg = new DetalleOfertaNeg();
     }
     if (imagenesOfertaNeg == null)
     {
         imagenesOfertaNeg = new ImagenesOfertaNeg();
     }
     if (listaImagenes == null)
     {
         listaImagenes = new List <object>();
     }
     if (listaImagenesOferta == null)
     {
         listaImagenesOferta = new List <ImagenOferta>();
     }
     if (valoracionOfertaNeg == null)
     {
         valoracionOfertaNeg = new ValoracionOfertaNeg();
     }
 }
Esempio n. 8
0
 public RegistrarOfertaPage()
 {
     InitializeComponent();
     if (localNeg == null)
     {
         localNeg = new LocalNeg();
     }
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (estadoNeg == null)
     {
         estadoNeg = new EstadoNeg();
     }
     if (rubroNeg == null)
     {
         rubroNeg = new RubroNeg();
     }
     if (ofertaNeg == null)
     {
         ofertaNeg = new OfertaNeg();
     }
     if (detalleOfertaNeg == null)
     {
         detalleOfertaNeg = new DetalleOfertaNeg();
     }
     if (imagenesOfertaNeg == null)
     {
         imagenesOfertaNeg = new ImagenesOfertaNeg();
     }
     if (listaImagenes == null)
     {
         listaImagenes = new List <object>();
     }
     cargarCbxs();
     setDatePickers();
 }
Esempio n. 9
0
        public PrincipalPage()
        {
            InitializeComponent();

            setSeriesCollection();

            dtFechaOfertaVisitada.SelectedDate = DateTime.Now;

            if (ofertaNeg == null)
            {
                ofertaNeg = new OfertaNeg();
            }
            if (rubroNeg == null)
            {
                rubroNeg = new RubroNeg();
            }
            if (listaOfertasMasVisitadas == null)
            {
                listaOfertasMasVisitadas = new List <Oferta>();
            }
            if (trabajadorNeg == null)
            {
                trabajadorNeg = new TrabajadorNeg();
            }
            if (productoNeg == null)
            {
                productoNeg = new ProductoNeg();
            }

            txtCantOfertas.Text      = ofertaNeg.cantidadTotalOfertas().ToString();
            txtCantTrabajadores.Text = trabajadorNeg.cantidadTotalTrabajadores().ToString();
            txtCantProductos.Text    = productoNeg.cantidadTotalProductos().ToString();

            listarOfertasMasVisitadas();
            listarRubrosMasVisitados();
            setCartesianChart();
        }
Esempio n. 10
0
 public RegistrarProductoPage()
 {
     InitializeComponent();
     if (localNeg == null)
     {
         localNeg = new LocalNeg();
     }
     if (productoNeg == null)
     {
         productoNeg = new ProductoNeg();
     }
     if (estadoNeg == null)
     {
         estadoNeg = new EstadoNeg();
     }
     if (rubroNeg == null)
     {
         rubroNeg = new RubroNeg();
     }
     camposProductos.cbxRubro.SelectionChanged += CbxRubro_SelectionChanged;
     cargarCbxLocal();
     cargarCboEstado();
     cargarCbxRubro();
 }
 public CategoriaController()
 {
     objCategoriaNeg = new CategoriaNeg();
     objProductoNeg  = new ProductoNeg();
 }
 public ProductoController()
 {
     objProductoNeg = new ProductoNeg();
 }
Esempio n. 13
0
    public PRODUCTO MostrarProductoByID(string PRODUCTO_COD)
    {
        ProductoNeg pneg = new ProductoNeg();

        return(pneg.MostrarProductoByID(PRODUCTO_COD));
    }
Esempio n. 14
0
    public int ModificarProducto(string PRODUCTO_COD, int ID_TIPO, string COD_BODEGA, string NOMBRE_PRODUCTO, string COD_BARRA)
    {
        ProductoNeg pneg = new ProductoNeg();

        return(pneg.ModificarProductoByID(PRODUCTO_COD, ID_TIPO, COD_BODEGA, NOMBRE_PRODUCTO, COD_BARRA));
    }