protected void dtlOfertas_ItemCommand(object source, DataListCommandEventArgs e) { decimal codProducto, codOferta; if (e.CommandName == "Seleccionar") { dtlOfertas.SelectedIndex = e.Item.ItemIndex; codOferta = Convert.ToDecimal(((Label)this.dtlOfertas.SelectedItem.FindControl("lblCodigoOferta")).Text); codProducto = Convert.ToDecimal(((Label)this.dtlOfertas.SelectedItem.FindControl("lblCodigoProducto")).Text); LogicaNegocio.LnOferta objOferta = new LnOferta(); List <Modelo.Ofertas> resultado = objOferta.GetOfertaEspecifica(codOferta, codProducto); Session["Oferta"] = resultado; Response.Redirect("../VerOferta/VerOferta.aspx"); } }
public void TestOfertas() { var ofertas = new LnOferta().GetListadoOfertas(); Assert.IsNotNull(ofertas); }
public void ObtenerOfertasPorCategoria() { LogicaNegocio.LnOferta objLnOferta = new LnOferta(); dtlOfertas.DataSource = objLnOferta.getOfertasProductosCategoria(Convert.ToDecimal(ddlCategoria.SelectedValue)); dtlOfertas.DataBind(); }
public void ObtenerOfertas() { LogicaNegocio.LnOferta objLnOferta = new LnOferta(); dtlOfertas.DataSource = objLnOferta.getOfertasProductos(); dtlOfertas.DataBind(); }
public void ObtenerProductosRelacionados() { LogicaNegocio.LnOferta objLnOferta = new LnOferta(); dtlProRelacionados.DataSource = objLnOferta.getOfertasProductos(); dtlProRelacionados.DataBind(); }