Example #1
0
    // Evento para la aprobación de soportes
    protected void btnAprobar_Click(object sender, EventArgs e)
    {
        int encSop_Id = int.Parse(Session["encSop_Id"].ToString());
        int registros = AdministrarSoportesBancarios.AprobarSoporteBancario(encSop_Id);

        if (registros > 0)
        {
            ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "alert", "alert('El soporte se aprobó con éxito');", true);
        }
        else
        {
            ScriptManager.RegisterClientScriptBlock(this.Page, this.Page.GetType(), "alert", "alert('No se aprobo el soporte');", true);
        }
        ConsultarDetalleSoportes();
    }