示例#1
0
        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");
            }
        }
示例#2
0
        public void TestOfertas()
        {
            var ofertas = new LnOferta().GetListadoOfertas();

            Assert.IsNotNull(ofertas);
        }
示例#3
0
 public void ObtenerOfertasPorCategoria()
 {
     LogicaNegocio.LnOferta objLnOferta = new LnOferta();
     dtlOfertas.DataSource = objLnOferta.getOfertasProductosCategoria(Convert.ToDecimal(ddlCategoria.SelectedValue));
     dtlOfertas.DataBind();
 }
示例#4
0
 public void ObtenerOfertas()
 {
     LogicaNegocio.LnOferta objLnOferta = new LnOferta();
     dtlOfertas.DataSource = objLnOferta.getOfertasProductos();
     dtlOfertas.DataBind();
 }
示例#5
0
 public void ObtenerProductosRelacionados()
 {
     LogicaNegocio.LnOferta objLnOferta = new LnOferta();
     dtlProRelacionados.DataSource = objLnOferta.getOfertasProductos();
     dtlProRelacionados.DataBind();
 }