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

        try
        {
            usua = logica.logAdminSecillo(Session["userId"].ToString());
            try
            {
                InfReporte reporte = ObtenerInforme();
                CRS_certificado.ReportDocument.SetDataSource(reporte);
                CRV_certificado.ReportSource = CRS_certificado;
            }
            catch (Exception)
            {
                throw;
            }
            Response.Redirect(usua.Url);
        }
        catch
        {
            try
            {
                usua.Session = Session["userId"].ToString();
            }
            catch
            {
                Response.Redirect("~/View/Estudiante/AccesoDenegado.aspx");
            }
        }
    }
    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 Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

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

        try
        {
            usua.SUserName = Session["empezar"].ToString();
            MPE_Idioma.Show();
        }
        catch
        {
        }


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

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

        Page.Title = encId.CompIdioma["Title"].ToString();
        L_AdminEstuCursoTitulo.Text   = encId.CompIdioma["L_AdminEstuCursoTitulo"].ToString();
        L_AdminEstuCursoSubAnio.Text  = encId.CompIdioma["L_AdminEstuCursoSubAnio"].ToString();
        L_AdminEstuCursoSubCurso.Text = encId.CompIdioma["L_AdminEstuCursoSubCurso"].ToString();
        btn_Aceptar.Text = encId.CompIdioma["btn_Aceptar"].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();


        //L_ErrorUsuario_estudiante_curso.Text = "Debe Elegir un Curso";


        //L_ErrorUsuario.Text_aceptar = "Debe Elegir un Curso";
        //L_OkUsuario.Text_aceptar = "Estudiantes Agregados al curso";
    }
예제 #4
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

        try
        {
            usua = logica.logAdminSecillo(Session["userId"].ToString());
            ImagenEst.ImageUrl      = Session["foto"].ToString();
            tb_correo.ReadOnly      = usua.BotonTrue;
            tb_contrasenia.ReadOnly = usua.BotonTrue;
            tb_usuario.ReadOnly     = true;
            tb_Foto.Visible         = usua.BotonTrue;
            lb_foto.Visible         = usua.BotonTrue;
            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 = 2;

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


        Page.Title = encId.CompIdioma["Title"].ToString();
        L_AdminTituloConfig.Text  = encId.CompIdioma["L_AdminTituloConfig"].ToString();
        L_AdminConfigUsuario.Text = encId.CompIdioma["L_AdminConfigUsuario"].ToString();
        tb_usuario.Attributes.Add("placeholder", encId.CompIdioma["tb_usuario"].ToString());
        REV_usuario.ErrorMessage = encId.CompIdioma["REV_usuario"].ToString();
        L_AdminConfigContra.Text = encId.CompIdioma["L_AdminConfigContra"].ToString();
        tb_contrasenia.Attributes.Add(" placeholder", encId.CompIdioma["tb_contrasenia"].ToString());
        REV_contrasenia.ErrorMessage = encId.CompIdioma["REV_contrasenia"].ToString();
        L_AdminConfigCorreo.Text     = encId.CompIdioma["L_AdminConfigCorreo"].ToString();
        tb_correo.Attributes.Add("placeholder", encId.CompIdioma["tb_correo"].ToString());
        REV_correo.ErrorMessage = encId.CompIdioma["REV_correo"].ToString();
        lb_foto.Text            = encId.CompIdioma["lb_foto"].ToString();
        btn_Editar.Text         = encId.CompIdioma["btn_Editar"].ToString();
        btn_Aceptar.Text        = encId.CompIdioma["btn_Aceptar"].ToString();
        btn_cancelar.Text       = encId.CompIdioma["btn_cancelar"].ToString();

        //script_modificacion="Datos Modificados con Exito";
    }
예제 #5
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

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

        try
        {
            usua.SUserName = Session["empezar"].ToString();
            MPE_Idioma.Show();
        }
        catch
        {
        }


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

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

        Page.Title = encId.CompIdioma["Title"].ToString();
        L_AdminMensaTitulo.Text       = encId.CompIdioma["L_AdminMensaTitulo"].ToString();
        L_AdminMensAsunto.Text        = encId.CompIdioma["L_AdminMensAsunto"].ToString();
        REV_Asuto.ErrorMessage        = encId.CompIdioma["REV_Asuto"].ToString();
        L_AdminMensDestinatario.Text  = encId.CompIdioma["L_AdminMensDestinatario"].ToString();
        REV_Destinatario.ErrorMessage = encId.CompIdioma["REV_Destinatario"].ToString();
        L_AdminMensMensaje.Text       = encId.CompIdioma["L_AdminMensMensaje"].ToString();
        REV_Mensaje.ErrorMessage      = encId.CompIdioma["REV_Mensaje"].ToString();
        B_Enviar.Text = encId.CompIdioma["B_Enviar"].ToString();


        //verificarCorreo
        //L_Verificar.Text = "El correo digitado no existe";
        //scrip_msm_enviado="Se ha enviado su mensaje con éxito";
    }
예제 #6
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";
    }
예제 #7
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();

        UUser usua = new UUser();

        try
        {
            usua = logica.logAdminSecillo(Session["userId"].ToString());
            try
            {
                LMUser logicaper = new LMUser();
                UUser  enc       = new UUser();
                enc.Documento = Session["documentoe"].ToString();


                string urlCarpeta = Server.MapPath("~/FotosUser/");

                //CRS_desdiploma.ReportDocument.SetDataSource(logicaper.reporteDiplomaper(urlCarpeta, enc));
                CRS_desdiploma.ReportDocument.SetDataSource(logicaper.reporteDiploma(urlCarpeta, enc));
                CrystalReportViewer1.ReportSource = CRS_desdiploma;
            }
            catch (Exception)
            {
                throw;
            }
            Response.Redirect(usua.Url);
        }
        catch
        {
            try
            {
                usua.Session = Session["userId"].ToString();
            }
            catch
            {
                Response.Redirect("~/View/Admin/AccesoDenegado.aspx");
            }
        }


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

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

        Page.Title = encId.CompIdioma["Title"].ToString();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

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



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

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

        Page.Title = encId.CompIdioma["Title"].ToString();
        L_AdminListaAcuTitulo.Text = encId.CompIdioma["L_AdminListaAcuTitulo"].ToString();
        btn_descargar.Text         = encId.CompIdioma["btn_descargar"].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();
        GridView1.Columns[5].HeaderText  = encId.CompIdioma["GridView1_5"].ToString();
        GridView1.Columns[6].HeaderText  = encId.CompIdioma["GridView1_6"].ToString();
        GridView1.Columns[8].HeaderText  = encId.CompIdioma["GridView1_8"].ToString();
        GridView1.Columns[9].HeaderText  = encId.CompIdioma["GridView1_9"].ToString();
        GridView1.Columns[10].HeaderText = encId.CompIdioma["GridView1_10"].ToString();
        GridView1.Columns[11].HeaderText = encId.CompIdioma["GridView1_11"].ToString();
        GridView1.Columns[12].HeaderText = encId.CompIdioma["GridView1_12"].ToString();
    }
    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";
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LMUser logic = new LMUser();
        UUser  enc   = new UUser();
        LLogin log   = new LLogin();

        try
        {
            enc               = logic.PL_EstudianteVerNotas(Session["userId"].ToString());
            Session["anio"]   = enc.SAño;
            Session["userId"] = enc.Id_estudiante;

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



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

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


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

        GV_boletin.Columns[0].HeaderText = encId.CompIdioma["GridView1_0"].ToString();
        GV_boletin.Columns[1].HeaderText = encId.CompIdioma["GridView1_1"].ToString();
        GV_boletin.Columns[2].HeaderText = encId.CompIdioma["GridView1_2"].ToString();
        GV_boletin.Columns[3].HeaderText = encId.CompIdioma["GridView1_3"].ToString();
        GV_boletin.Columns[4].HeaderText = encId.CompIdioma["GridView1_4"].ToString();
    }
예제 #11
0
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

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


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

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

        Page.Title          = encId.CompIdioma["Title"].ToString();
        L_ProfeListado.Text = encId.CompIdioma["L_ProfeListado"].ToString();
        tb_documentoestudiante.Attributes.Add("placeholder", encId.CompIdioma["tb_documentoestudiante"].ToString());
        REV_documentoestudiante.ErrorMessage = encId.CompIdioma["REV_documentoestudiante"].ToString();
        TB_Observ.Attributes.Add("placeholder", encId.CompIdioma["TB_Observ"].ToString());
        REV_Observ.ErrorMessage = encId.CompIdioma["REV_Observ"].ToString();
        btn_Aceptar.Text        = encId.CompIdioma["btn_Aceptar"].ToString();


        GridView1.Columns[0].HeaderText = "Fecha y Hora";
        GridView1.Columns[1].HeaderText = "Observación";
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

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


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

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

        Page.Title = encId.CompIdioma["Title"].ToString();
        L_AdminGenerarTitulo.Text       = encId.CompIdioma["L_AdminGenerarTitulo"].ToString();
        L_AdminGenerarAño.Text          = encId.CompIdioma["L_AdminGenerarAño"].ToString();
        L_AdminGenerarCurso.Text        = encId.CompIdioma["L_AdminGenerarCurso"].ToString();
        GridView1.Columns[0].HeaderText = "Foto";
        GridView1.Columns[1].HeaderText = "Apellido";
        GridView1.Columns[2].HeaderText = "Nombre";
        GridView1.Columns[3].HeaderText = "Documento";
        GridView1.Columns[4].HeaderText = "Correo";
        GridView1.Columns[5].HeaderText = "Teléfono";
        GridView1.Columns[6].HeaderText = "Usuario";
        GridView1.Columns[7].HeaderText = "Contraseña";
        GridView1.Columns[8].HeaderText = "Estado";
        GridView1.Columns[9].HeaderText = "Diploma";
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

        try
        {
            usua = logica.logAdminSecillo(Session["userId"].ToString());
            try
            {
                InfReporte reporte = ObtenerInforme();
                CRS_listaestcur.ReportDocument.SetDataSource(reporte);
                CrystalReportViewer1.ReportSource = CRS_listaestcur;
            }
            catch (Exception)
            {
                throw;
            }
            Response.Redirect(usua.Url);
        }
        catch
        {
            try
            {
                usua.Session = Session["userId"].ToString();
            }
            catch
            {
                Response.Redirect("~/View/Admin/AccesoDenegado.aspx");
            }
        }


        UIdioma  encId      = new UIdioma();
        LMIdioma idioma     = new LMIdioma();
        Int32    FORMULARIO = 45;
        LMUser   logicaper  = new LMUser();

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

        Page.Title = encId.CompIdioma["Title"].ToString();
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Cache.SetNoStore();
        GridView1.DataBind();
        horario();
        LLogin logica = new LLogin();
        UUser  usua   = new UUser();

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

        try
        {
            usua.SUserName = Session["empezar"].ToString();
            MPE_Idioma.Show();
        }
        catch
        {
        }


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

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

        Page.Title = encId.CompIdioma["Title"].ToString();
        L_AdminAgreMateCursoTitulo.Text            = encId.CompIdioma["L_AdminAgreMateCursoTitulo"].ToString();
        L_AdminAgreMateCursoSubAgregarMateria.Text = encId.CompIdioma["L_AdminAgreMateCursoSubAgregarMateria"].ToString();
        REV_materia.ErrorMessage = encId.CompIdioma["REV_materia"].ToString();
        tb_materia.Attributes.Add("placeholder", encId.CompIdioma["tb_materia"].ToString());
        btn_agregam.Text = encId.CompIdioma["btn_agregam"].ToString();
        L_Docente.Text   = encId.CompIdioma["L_Docente"].ToString();
        L_AdminAgreMateCursoSubAnio.Text    = encId.CompIdioma["L_AdminAgreMateCursoSubAnio"].ToString();
        L_AdminAgreMateCursoSubCurso.Text   = encId.CompIdioma["L_AdminAgreMateCursoSubCurso"].ToString();
        L_AdminAgreMateCursoSubMateria.Text = encId.CompIdioma["L_AdminAgreMateCursoSubMateria"].ToString();
        L_AdminAgreMateCursoSubDia.Text     = encId.CompIdioma["L_AdminAgreMateCursoSubDia"].ToString();
        L_AdminAgreMateCursoSubHora.Text    = encId.CompIdioma["L_AdminAgreMateCursoSubHora"].ToString();
        btn_CursoMateriaAceptar.Text        = encId.CompIdioma["btn_CursoMateriaAceptar"].ToString();

        //funcion agregaraHorario
        //L_Error_falta = "Falta seleccionar";
        //L_Error_materia_insertada = "Materia Insertada a Curso con Exito";
        //L_Error_docente_cruce = "El docente presenta un cruce de Horarios";
        //L_Error_curce = "Presenta un cruce de Horarios";

        //funcion agregarMateria
        //L_Error_falta_materia = "Materia Insertada con Exito";
        //L_Error_materia_ya_esta = "La Materia ya se encuentra en nuestra Base de Datos";


        //pasarAñoClick
        //script_pasar_anio = "Se ha migraido de año con Exito";



        //HORARIO
        //ho_lunes = "Lunes";
        //ho_martes = "Martes";
        //ho_miercoles = "Miercoles";
        //ho_jueves = "Jueves";
        //ho_viernes = "Viernes";
        //ho_libre = "Libre";
        if (IsPostBack == false)
        {
            ddt_Dia.Items.Clear();
            ddt_Dia.Items.Add(encId.CompIdioma["ho_lunes"].ToString());
            ddt_Dia.Items.Add(encId.CompIdioma["ho_martes"].ToString());
            ddt_Dia.Items.Add(encId.CompIdioma["ho_miercoles"].ToString());
            ddt_Dia.Items.Add(encId.CompIdioma["ho_jueves"].ToString());
            ddt_Dia.Items.Add(encId.CompIdioma["ho_viernes"].ToString());
        }
    }
예제 #15
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";
    }