protected void BTN_Yes_Click(object sender, EventArgs e) { L_verProducto logica = new L_verProducto(); logica.BTN_Yes_Click(Session["Sesion"], Session["VerProducto"], TB_CantidadVenta.Text); Response.Redirect("MisComprasUsr.aspx"); }
protected void BTN_Reportar_Click(object sender, EventArgs e) { L_verProducto logica = new L_verProducto(); UAuxVenta resp = logica.BTN_Reportar_Click(Session["Sesion"], Session["VerProducto"], DDL_Reportes.SelectedValue); Modal(resp.Msg); BTN_Modal.Visible = resp.Valido; }
protected void BTN_ComprarProducto_Click(object sender, EventArgs e) { L_verProducto logic = new L_verProducto(); UAuxVenta response = logic.BTN_ComprarProducto_Click(Session["Sesion"], Session["VerProducto"], TB_CantidadVenta.Text, LB_CantidadProducto.Text, IsPostBack); try { Modal(response.Msg); BTN_Modal.Visible = response.Valido; BTN_Yes.Visible = response.BtnYes; } catch (Exception er) { } }
//METODO DE LA PAGINA CUANDO CARGA protected void Page_Load(object sender, EventArgs e) { try { L_verProducto logica = new L_verProducto(); UEUProducto resp = logica.page_load(IsPostBack, Session["VerProducto"], Session["Sesion"]); LB_NombreProducto.Text = resp.Nombre; LB_DescripcionProducto.Text = resp.Descripcion; LB_PrecioProducto.Text = resp.PrecioString; LB_NombreEmpresa.Text = resp.NomEmp; LB_CantidadProducto.Text = resp.Cantidad.ToString(); LB_CategoriaProducto.Text = resp.NomCategoria; RP_FotosProductos.DataSource = resp.Fotos; RP_FotosProductos.DataBind(); //Seteando Idiomas L_Idioma idiot = new L_Idioma(); Object sesidioma = Session["idiomases"]; Int32 formulario = 17; Int32 idiom = Convert.ToInt32(sesidioma); Hashtable compIdioma = new Hashtable(); idiot.mostraridioma(formulario, idiom, compIdioma); try { this.advert.InnerText = compIdioma["advert"].ToString(); this.rep_prod.InnerText = compIdioma["rep_prod"].ToString(); this.LB_info.Text = compIdioma["LB_info"].ToString(); this.LB_Cant_Disp.Text = compIdioma["LB_Cant_Disp"].ToString(); this.LB_Empresa.Text = compIdioma["LB_Empresa"].ToString(); this.LB_Cat.Text = compIdioma["LB_Cat"].ToString(); this.LB_Cantidad_Comprar.Text = compIdioma["LB_Cantidad_Comprar"].ToString(); this.BTN_ComprarProducto.Text = compIdioma["BTN_ComprarProducto"].ToString(); this.BTN_Reportar.Text = compIdioma["BTN_Reportar"].ToString(); this.BTN_Modal.Text = compIdioma["BTN_Modal"].ToString(); this.BTN_Yes.Text = compIdioma["BTN_Yes"].ToString(); } catch (Exception ex) { } } catch (Exception ex) {} }