Exemplo n.º 1
0
 protected void BtnAceptar_Click(object sender, EventArgs e)
 {
     //if (LblEstado.Text == "ENVIADO" || LblEstado.Text == "HABILITADO")
     //{
     if (TxtObsser.Text != "")
     {
         DB_VT_Solicitud sol = new DB_VT_Solicitud();
         sol.DB_Anular_SOLICITUD(TxtCodigo.Text, TxtObsser.Text, "ANULADO");
         Desplegar_SOLICITUD_USUARIO();
         TxtObsser.Text = string.Empty;
         Panel1.Visible = false;
     }
     else
     {
         Response.Write("<script>window.alert('Es necesario describir el motivo de la anulación del documento...');</script>");
     }
     Desplegar_SOLICITUD_ANULADAS();
     //}
     //else
     //{
     //    Response.Write("<script>window.alert('.');</script>");
     //}
 }