protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

        try
        {
            usua = logica.logAcudienteSecillo(Session["userId"].ToString());
            Response.Redirect(usua.Url);
        }
        catch
        {
            try
            {
                usua.Session = Session["userId"].ToString();
            }
            catch
            {
                Response.Redirect("~/View/Acudiente/AccesoDenegado.aspx");
            }
        }


        UIdioma  encId      = new UIdioma();
        LMIdioma idioma     = new LMIdioma();
        Int32    FORMULARIO = 58;

        encId = idioma.obtIdioma(FORMULARIO, int.Parse(Session["idioma"].ToString()));

        Page.Title          = encId.CompIdioma["Title"].ToString();
        L_AcuDescargar.Text = encId.CompIdioma["L_AcuDescargar"].ToString();
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LMUser logica = new LMUser();
        LLogin log    = new LLogin();
        UUser  usua   = new UUser();
        UUser  enc    = new UUser();

        try
        {
            usua = log.logAcudienteSecillo(Session["userId"].ToString());

            enc             = logica.PL_AcudienteObservador(DDT_estudiante.SelectedValue);
            Session["anio"] = enc.SAño;
            Session["est"]  = enc.SEstudiante;
            Response.Redirect(usua.Url);
        }
        catch
        {
            try
            {
                usua.Session = Session["userId"].ToString();
            }
            catch
            {
                Response.Redirect("~/View/Acudiente/AccesoDenegado.aspx");
            }
        }


        UIdioma  encId      = new UIdioma();
        LMIdioma idioma     = new LMIdioma();
        Int32    FORMULARIO = 1;

        encId = idioma.obtIdioma(FORMULARIO, int.Parse(Session["idioma"].ToString()));

        Page.Title = encId.CompIdioma["Title"].ToString();
        L_AcuTituloVerNotas.Text        = encId.CompIdioma["L_AcuTituloVerNotas"].ToString();
        L_AcuEstudiante.Text            = encId.CompIdioma["L_AcuEstudiante"].ToString();
        GridView1.Columns[0].HeaderText = encId.CompIdioma["GridView1_0"].ToString();
        GridView1.Columns[1].HeaderText = encId.CompIdioma["GridView1_1"].ToString();
        GridView1.Columns[2].HeaderText = encId.CompIdioma["GridView1_2"].ToString();
        GridView1.Columns[3].HeaderText = encId.CompIdioma["GridView1_3"].ToString();
        GridView1.Columns[4].HeaderText = encId.CompIdioma["GridView1_4"].ToString();
    }
Beispiel #3
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

        try
        {
            usua = logica.logAcudienteSecillo(Session["userId"].ToString());
            Response.Redirect(usua.Url);
        }
        catch
        {
            try
            {
                usua.Session = Session["userId"].ToString();
            }
            catch
            {
                Response.Redirect("~/View/Acudiente/AccesoDenegado.aspx");
            }
        }

        UIdioma  encId      = new UIdioma();
        LMIdioma idioma     = new LMIdioma();
        Int32    FORMULARIO = 3;

        encId = idioma.obtIdioma(FORMULARIO, int.Parse(Session["idioma"].ToString()));


        Page.Title               = encId.CompIdioma["Title"].ToString();
        L_AcuMensTitulo.Text     = encId.CompIdioma["L_AcuMensTitulo"].ToString();
        L_AcuMensEstudiante.Text = encId.CompIdioma["L_AcuMensEstudiante"].ToString();
        L_AcuMensProfe.Text      = encId.CompIdioma["L_AcuMensProfe"].ToString();
        L_AcuMensAsunto.Text     = encId.CompIdioma["L_AcuMensAsunto"].ToString();
        REV_Asuto.ErrorMessage   = encId.CompIdioma["REV_Asuto"].ToString();
        L_AcuMensMensaje.Text    = encId.CompIdioma["L_AcuMensMensaje"].ToString();
        RV_Mensaje.ErrorMessage  = encId.CompIdioma["RV_Mensaje"].ToString();
        B_Enviar.Text            = encId.CompIdioma["B_Enviar"].ToString();
        //script_mensaje="Se ha enviado su mensaje con éxito";
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LUser  logic = new LUser();
        LLogin log   = new LLogin();
        UUser  enc   = new UUser();

        try
        {
            enc             = logic.PL_AcudienteObservador(DDT_estudiante.SelectedValue);
            Session["anio"] = enc.SAño;
            Session["est"]  = enc.SEstudiante;
            enc             = log.logAcudienteSecillo(Session["userId"].ToString());
            Response.Redirect(enc.Url);
        }
        catch
        {
            try
            {
                enc.Session = Session["userId"].ToString();
            }
            catch
            {
                Response.Redirect("~/View/Acudiente/AccesoDenegado.aspx");
            }
        }

        UIdioma  encId      = new UIdioma();
        LMIdioma idioma     = new LMIdioma();
        Int32    FORMULARIO = 4;

        encId = idioma.obtIdioma(FORMULARIO, int.Parse(Session["idioma"].ToString()));

        Page.Title       = encId.CompIdioma["Title"].ToString();
        L_AcuObEstu.Text = encId.CompIdioma["L_AcuObEstu"].ToString();

        GridView1.Columns[0].HeaderText = encId.CompIdioma["GridView1_0"].ToString();
        GridView1.Columns[1].HeaderText = encId.CompIdioma["GridView1_1"].ToString();



        //try
        //{
        //    UUser usua = new UUser();
        //    LUser logica = new LUser();
        //    LLogin log = new LLogin();

        //    usua = log.logAcudienteSecillo(Session["userId"].ToString());

        //    DateTime fecha = DateTime.Now;
        //    string año = (fecha.Year).ToString();
        //    año = año + "-01-01";

        //    logica.acudienteObservador(año, int.Parse(DDT_estudiante.SelectedValue));

        //    Response.Redirect(usua.Url);
        //}
        //catch
        //{

        //}
    }