protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin log    = new LLogin();
        UUser  usua   = new UUser();
        LUser  logica = new LUser();
        ///
        UUser enc   = new UUser();
        LMReg logic = new LMReg();

        enc = logic.ActualizarMensajeProf(int.Parse(DDL_Alumno.SelectedValue));
        TB_Destinatario.Text    = enc.Mensaje;
        destinatario            = enc.CDestinatario;
        TB_Destinatario.Enabled = false;
        ///

        try
        {
            usua = logica.profeMensaje();

            Session["anio"] = usua.Año;
            //TB_Destinatario.Enabled = usua.BotonFalse;

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



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

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

        Page.Title = encId.CompIdioma["Title"].ToString();
        L_ProfeMensajeTitulo.Text    = encId.CompIdioma["L_ProfeMensajeTitulo"].ToString();
        L_ProfeMensCurso.Text        = encId.CompIdioma["L_ProfeMensCurso"].ToString();
        L_ProfeMensMateria.Text      = encId.CompIdioma["L_ProfeMensMateria"].ToString();
        L_ProfeMensAlumon.Text       = encId.CompIdioma["L_ProfeMensAlumon"].ToString();
        B_Actualizar.Text            = encId.CompIdioma["B_Actualizar"].ToString();
        L_ProfeMensAsunto.Text       = encId.CompIdioma["L_ProfeMensAsunto"].ToString();
        L_ProfeMensDestinatario.Text = encId.CompIdioma["L_ProfeMensDestinatario"].ToString();
        L_ProfeMensMensaje.Text      = encId.CompIdioma["L_ProfeMensMensaje"].ToString();
        REV_Mensaje.ErrorMessage     = encId.CompIdioma["REV_Mensaje"].ToString();
        B_Enviar.Text = encId.CompIdioma["B_Enviar"].ToString();
        //script_msm_enviado="Su Mensaje ha sido Enviado.";
    }
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        UUser enc   = new UUser();
        LMReg logic = new LMReg();

        enc = logic.selecEstudianteACurso(ddt_curso.SelectedValue, GridView1.SelectedRow.Cells[0].Text, int.Parse(Session["idioma"].ToString()));
        GridView1.DataBind();
        L_ErrorUsuario.Text = enc.Mensaje;
    }
Esempio n. 3
0
    protected void btn_AdministradorAceptar_Click2(object sender, EventArgs e)
    {
        UUser enc   = new UUser();
        LMReg logic = new LMReg();

        enc = logic.insertObservacion(Session["id"].ToString(), TB_Observ.Text.ToString(), Session.SessionID);

        GridView1.DataBind();
    }
    protected void B_Actualizar_Click(object sender, EventArgs e)
    {
        UUser enc   = new UUser();
        LMReg logic = new LMReg();

        enc = logic.ActualizarMensajeProf(int.Parse(DDL_Alumno.SelectedValue));
        TB_Destinatario.Text = enc.Mensaje;
        destinatario         = enc.CDestinatario;
    }
    protected void btn_CursoMateriaAceptar_Click(object sender, EventArgs e)
    {
        UUser enc   = new UUser();
        LMReg logic = new LMReg();

        enc          = logic.agregaraHorario(ddt_curso.SelectedValue, ddt_anio.SelectedValue, ddt_Dia.SelectedValue, ddt_Docente.SelectedValue, ddt_Hora.SelectedValue, ddt_Materia.SelectedValue, int.Parse(Session["idioma"].ToString()));
        L_Error.Text = enc.Mensaje;
        horario();
        //this.Page.Response.Write("<script language='JavaScript'>window.alert('Materia Insertada a Curso con Exito');</script>");
    }
    public void horario()
    {
        UUser util  = new UUser();
        LMReg logic = new LMReg();

        int curso = int.Parse(ddt_curso.SelectedValue);

        DataTable registro = logic.horario(curso, 1, int.Parse(Session["idioma"].ToString()));

        GridView1.DataSource = registro;
        GridView1.DataBind();
    }
    protected void GridView2_SelectedIndexChanged(object sender, EventArgs e)
    {
        UUser enc   = new UUser();
        LMReg logic = new LMReg();

        Session["documentoestudiante"] = GridView2.SelectedRow.Cells[0].Text;
        enc = logic.selecObservador(Session["documentoestudiante"].ToString());

        Session["id"] = enc.Id_estudiante;

        Response.Redirect(enc.Url);
    }
Esempio n. 8
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin log   = new LLogin();
        UUser  util  = new UUser();
        LMReg  logic = new LMReg();

        try
        {
            String id_est = Session["userId"].ToString();
            int    curso  = int.Parse(id_est);

            DataTable registro = logic.horario(curso, 2, int.Parse(Session["idioma"].ToString()));
            GridView1.DataSource = registro;
            GridView1.DataBind();

            util = log.logAdminSecillo(Session["userId"].ToString());
            Response.Redirect(util.Url);
        }
        catch
        {
            try
            {
                util.Session = Session["userId"].ToString();
            }
            catch
            {
                Response.Redirect("~/View/Profesor/AccesoDenegado.aspx");
            }
        }



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

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

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



        //HORARIO
        //ho_lunes = "Lunes";
        //ho_martes = "Martes";
        //ho_miercoles = "Miercoles";
        //ho_jueves = "Jueves";
        //ho_viernes = "Viernes";
        //ho_libre = "Libre";
    }
Esempio n. 9
0
    protected void btn_Subirnota_Click(object sender, EventArgs e)
    {
        UUser enc   = new UUser();
        LMReg logic = new LMReg();

        enc          = logic.subirNota(ddl_alumno.SelectedValue, ddl_materia.SelectedValue, ddt_curso.SelectedValue, tb_nt.Text, tb_nt2.Text, tb_nt3.Text, int.Parse(Session["idioma"].ToString()), Session.SessionID);
        L_Error.Text = enc.Mensaje;

        tb_denifitiva.Text    = enc.Notadef;
        ButtonVerNota.Visible = true;
        btn_Subirnota.Visible = false;
    }
    protected void btn_Aceptar_Click(object sender, EventArgs e)
    {
        UUser        enc   = new UUser();
        LMReg        logic = new LMReg();
        MEncEstCurso encs  = new MEncEstCurso();



        enc = logic.agregarEstudianteACurso(ddt_anio.SelectedValue, ddt_curso.SelectedValue, Session.SessionID, GridView1.Rows.Count, GridView1, int.Parse(Session["idioma"].ToString()));

        L_ErrorUsuario.Text = enc.Mensaje;
        L_OkUsuario.Text    = enc.MensajeAcudiente;
        GridView1.DataBind();
    }
    protected void btn_agregam_Click(object sender, EventArgs e)
    {
        LMReg       l_reg  = new LMReg();
        Materia     mate   = new Materia();
        UUser       usu    = new UUser();
        MEncMateria agrmat = new MEncMateria();

        mate.nombre_materia = tb_materia.Text;
        usu = l_reg.agregarMateria(mate, Session.SessionID, int.Parse(Session["idioma"].ToString()));

        L_Error.Text = usu.Mensaje;
        GridView1.DataBind();
        ddt_Materia.DataBind();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

        try
        {
            LMReg logic = new LMReg();
            UUser enc   = new UUser();
            enc             = logic.ObAniodeCurso(Session["userId"].ToString());
            Session["anio"] = enc.Año;

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



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

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

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


        GridView2.Columns[0].HeaderText = "Documento";
        GridView2.Columns[1].HeaderText = "Apellido";
        GridView2.Columns[2].HeaderText = "Nombre";
        GridView2.Columns[3].HeaderText = "Observador";
    }
Esempio n. 13
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

        LMReg logic = new LMReg();
        UUser enc   = new UUser();

        try
        {
            enc                   = logic.ObAniodeCurso(Session["userId"].ToString());
            Session["anio"]       = enc.Año;
            btn_Subirnota.Visible = false;
            ButtonVerNota.Visible = true;
            tb_nt.Enabled         = false;
            tb_nt2.Enabled        = false;
            tb_nt3.Enabled        = false;

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



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

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

        Page.Title = encId.CompIdioma["Title"].ToString();
        L_ProfeSubirTitulo.Text  = encId.CompIdioma["L_ProfeSubirTitulo"].ToString();
        L_ProfeSubirCurso.Text   = encId.CompIdioma["L_ProfeSubirCurso"].ToString();
        L_ProfeSubirMateria.Text = encId.CompIdioma["L_ProfeSubirMateria"].ToString();
        L_ProfeSubirAlumno.Text  = encId.CompIdioma["L_ProfeSubirAlumno"].ToString();
        ButtonVerNota.Text       = encId.CompIdioma["ButtonVerNota"].ToString();
        L_ProfeSubirNota1.Text   = encId.CompIdioma["L_ProfeSubirNota1"].ToString();
        tb_nt.Attributes.Add("placeholder", encId.CompIdioma["tb_nt"].ToString());
        REV_nt.ErrorMessage    = encId.CompIdioma["REV_nt"].ToString();
        RV_N1.ErrorMessage     = encId.CompIdioma["RV_N1"].ToString();
        L_ProfeSubirNota2.Text = encId.CompIdioma["L_ProfeSubirNota2"].ToString();
        tb_nt2.Attributes.Add("placeholder", encId.CompIdioma["tb_nt2"].ToString());
        REV_nt2.ErrorMessage   = encId.CompIdioma["REV_nt2"].ToString();
        RV_n2.ErrorMessage     = encId.CompIdioma["RV_n2"].ToString();
        L_ProfeSubirNota3.Text = encId.CompIdioma["L_ProfeSubirNota3"].ToString();
        tb_nt3.Attributes.Add("placeholder", encId.CompIdioma["tb_nt3"].ToString());
        REV_nt3.ErrorMessage     = encId.CompIdioma["REV_nt3"].ToString();
        RV_n3.ErrorMessage       = encId.CompIdioma["RV_n3"].ToString();
        L_ProfeSubirNotaDef.Text = encId.CompIdioma["L_ProfeSubirNotaDef"].ToString();
        tb_denifitiva.Attributes.Add("placeholder", encId.CompIdioma["tb_denifitiva"].ToString());
        btn_Subirnota.Text = encId.CompIdioma["btn_Subirnota"].ToString();


        //subirNota
        //L_Error_subirnota.Text = "Falta seleccionar";

        //verNota
        //L_Error_falta_seleccionar.Text = "Falta seleccionar";
    }