Exemple #1
0
    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());
    }
Exemple #2
0
    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
    }
Exemple #3
0
    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");
    }
Exemple #4
0
    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()));
    }