示例#1
0
    protected void btn_anularSol_Click(object sender, EventArgs e)
    {
        SolicitudBC solicitud = new SolicitudBC();
        string      error;

        if (solicitud.Eliminar(Convert.ToInt32(this.hf_traiId.Value), out error) && error == "")
        {
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "mensaje", "alert('Solicitud anulada!');", true);
        }
        else
        {
            ScriptManager.RegisterStartupScript(this.Page, this.GetType(), "mensaje", string.Format("alert('{0}');", error), true);
        }
    }
示例#2
0
    protected void btn_eliminarSolicitud_Click(object sender, EventArgs e)
    {
        SolicitudBC s = new SolicitudBC();

        s.SOLI_ID = Convert.ToInt32(this.hf_soliId.Value);
        string error = "";

        if (s.Eliminar(this.usuario.ID, out error) && error == "")
        {
            utils.ShowMessage2(this, "eliminar", "success");
            utils.CerrarModal(this, "modalConfirmar");
        }
        else
        {
            utils.ShowMessage(this, error, "error", false);
        }
        this.ObtenerSolicitudes(true);
    }