protected void GrvListaTareas_SelectedIndexChanged(object sender, EventArgs e)
        {
            Funciones FuncionesEncriptar = new Funciones();

            GridViewRow row = GrvListaTareas.SelectedRow;
            int Folio = Convert.ToInt32(GrvListaTareas.DataKeys[row.RowIndex].Values["IntFolioSolicitud"]);
            int Secuencia = Convert.ToInt32(GrvListaTareas.DataKeys[row.RowIndex].Values["IntSecuencia"]);
            string name = HttpUtility.UrlEncode(FuncionesEncriptar.Encrypt(Convert.ToString(Folio)));
            string technology = HttpUtility.UrlEncode(FuncionesEncriptar.Encrypt(Convert.ToString(Secuencia)));
            string sec = HttpUtility.UrlEncode(FuncionesEncriptar.Encrypt(StrRutUsuario));

            Response.Redirect("resuelve.aspx?Folio=" + name + "&Secuencia=" + technology + "&RutResponsable=" + sec);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            StrRutAlumno = Convert.ToString(Session["StrRutAlumno"]);
            List<WorkflowSolicitudes.Entidades.DetalleSolicitud> LstDetalleSolicitud = new List<WorkflowSolicitudes.Entidades.DetalleSolicitud>();
            NegTipoSolicitud TipoSolicitud = new NegTipoSolicitud();

            if (!Page.IsPostBack)
            {
                Funciones FuncionesDesencriptar = new Funciones();
                if (!(FuncionesDesencriptar.Decrypt(HttpUtility.UrlDecode(Request.QueryString["folio"]))).Equals("Error_Autorizacion") &&
                    !(FuncionesDesencriptar.Decrypt(HttpUtility.UrlDecode(Request.QueryString["session"]))).Equals("Error_Autorizacion"))
                {
                    intFolioSolicitud = Convert.ToInt32(FuncionesDesencriptar.Decrypt(HttpUtility.UrlDecode(Request.QueryString["folio"])));
                    strSession = Convert.ToString(FuncionesDesencriptar.Decrypt(HttpUtility.UrlDecode(Request.QueryString["session"])));

                    if (!strSession.Equals(StrRutAlumno))
                    {
                        string Error = HttpUtility.UrlEncode(FuncionesDesencriptar.Encrypt("Error_Autorizacion"));
                        Response.Redirect("PageErrorE.aspx?TypeError=" + Error);
                    }
                    else
                    {
                        // Sin Accion
                    }

                }
                else
                {
                    string Error = HttpUtility.UrlEncode(FuncionesDesencriptar.Encrypt("Error_Autorizacion"));
                    Response.Redirect("PageErrorE.aspx?TypeError=" + Error);
                }

                lblFolio.Text = Convert.ToString(intFolioSolicitud);
                LstDetalleSolicitud = lee_grilla(intFolioSolicitud);

                foreach (WorkflowSolicitudes.Entidades.DetalleSolicitud Deta in LstDetalleSolicitud)
                {
                    intCodTipoSolicitud = Deta.intCodTipoSolicitud;
                    LblDesctipoSolicitud.Text = TipoSolicitud.ObtenerDescTipoSolicitud(intCodTipoSolicitud);
                }

            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            StrRutAlumno = Convert.ToString(Session["StrRutAlumno"]);
            StrCodCarrera = Convert.ToString(Session["StrCodCarrera"]);

            if (!Page.IsPostBack)
            {

                txtCelular.Text = String.Empty;
                txtCorreo.Text = String.Empty;

                Funciones FuncionesDesencriptar = new Funciones();
                string strOrigen = Request.ServerVariables["HTTP_REFERER"];
                if (strOrigen.Equals("http://10.0.0.68/Workflow/Presentacion/BandejaEntrada.aspx"))
                {

                    if (!(FuncionesDesencriptar.Decrypt(HttpUtility.UrlDecode(Request.QueryString["session"]))).Equals("Error_Autorizacion"))
                        {
                            strSession = Convert.ToString(FuncionesDesencriptar.Decrypt(HttpUtility.UrlDecode(Request.QueryString["session"])));
                        }
                    else
                        {
                            string Error = HttpUtility.UrlEncode(FuncionesDesencriptar.Encrypt("Error_Autorizacion"));
                            Response.Redirect("PageErrorE.aspx?TypeError=" + Error);
                        }

                    if (!strSession.Equals(StrRutAlumno))
                        {
                            string Error = HttpUtility.UrlEncode(FuncionesDesencriptar.Encrypt("Error_Autorizacion"));
                            Response.Redirect("PageErrorE.aspx?TypeError=" + Error);
                        }
                    else
                        {
                            // Sin Accion
                        }

                }
                else
                {

                   strSession = Convert.ToString(FuncionesDesencriptar.Decrypt(HttpUtility.UrlDecode(Request.QueryString["session"])));
                    if (!strSession.Equals(StrRutAlumno))
                    {
                        string Error = HttpUtility.UrlEncode(FuncionesDesencriptar.Encrypt("Error_Autorizacion"));
                        Response.Redirect("PageErrorE.aspx?TypeError=" + Error);
                    }
                    else
                    {
                        // Sin Accion
                    }
                }

                intContador = 0;
                lee_ComboTipoSolicitud();

            }
        }
 protected void btnVolver_Click(object sender, EventArgs e)
 {
     Funciones FuncionesEncriptar = new Funciones();
      string session = HttpUtility.UrlEncode(FuncionesEncriptar.Encrypt(StrRutAlumno));
      Response.Redirect("BandejaEntrada.aspx?session=" + session);
 }
        protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
        {
            GridViewRow row = GridView1.SelectedRow;
            int intFolio = Convert.ToInt32(GridView1.DataKeys[row.RowIndex].Value);

            Funciones FuncionesEncriptar = new Funciones();
            string folio = HttpUtility.UrlEncode(FuncionesEncriptar.Encrypt(Convert.ToString(intFolio)));
            string session = HttpUtility.UrlEncode(FuncionesEncriptar.Encrypt(StrRutAlumno));

            Response.Redirect("DetalleSolicitud.aspx?folio=" + folio + "&session=" + session);
        }
 public void btnNuevaSolicitud_Click1(object sender, EventArgs e)
 {
     Funciones FuncionesEncriptar = new Funciones();
     string session = HttpUtility.UrlEncode(FuncionesEncriptar.Encrypt(StrRutAlumno));
     Response.Redirect("NuevaSolicitud.aspx?session=" + session);
 }