void actualizarInventario() { listaVenta = new List <Producto>(); DAOUsuario dAO = new DAOUsuario(); listaVenta = (Session["refresh"] as List <Producto>); NuevosAbonos a = new NuevosAbonos(null, null, null, null); a.actuInvent(listaVenta, Session["sede"].ToString()); }
protected void B_AgregarProducto_Click(object sender, EventArgs e) { idAbono = Convert.ToString(Session["idAbono"]); NuevosAbonos newAbono = new NuevosAbonos(vntaS, precioDeuda, pagoActual, idAbono); this.llenarGV_Abonos(); string a = newAbono.traerMensaje(); #pragma warning disable CS0618 // Type or member is obsolete RegisterStartupScript("mensaje", "<script type='text/javascript'>alert('" + a + "');</script>"); #pragma warning restore CS0618 // Type or member is obsolete }
void nuevaVenta() { vntaS = Session["venta"] as DataTable; NuevosAbonos newAbono = new NuevosAbonos(vntaS, precioDeuda, pagoActual, idAbono); this.actualizarInventario(); string a = newAbono.traerMensaje(); #pragma warning disable CS0618 // Type or member is obsolete RegisterStartupScript("mensaje", "<script type='text/javascript'>alert('" + a + "');</script>"); #pragma warning restore CS0618 // Type or member is obsolete Response.Redirect("../Tienda/VistaFactura.aspx"); }
protected void GV_AbonosPendientes_RowCommand(object sender, GridViewCommandEventArgs e) { NuevosAbonos select = new NuevosAbonos(null, null, null, null); select.seleccionarAbono(e.CommandName, int.Parse(e.CommandArgument.ToString())); }