Exemple #1
0
        public bool EliminarSolicitud(System.UInt32 IdUsuario)
        {
            clsMaestrante Maestrante = new clsMaestrante();
            bool          boResult   = Maestrante.Eliminar(IdUsuario);

            return(boResult);
        }
Exemple #2
0
        private void setFieldsValue(System.String NombreMaletin)
        {
            if (System.IO.Directory.Exists(BasePath + System.IO.Path.DirectorySeparatorChar + NombreMaletin))
            {
                this.m_MaletinName    = NombreMaletin;
                this.m_CantTotalFiles = 0;
                this.m_EspacioOcupado = 0;
                this.m_Ownner         = new clsMaestrante(this.m_MaletinName);

                // Create a reference to the current directory.
                DirectoryInfo di = new DirectoryInfo(BasePath + System.IO.Path.DirectorySeparatorChar + this.m_MaletinName);
                // Create an array representing the files in the current directory.
                FileInfo[] fi = di.GetFiles();
                // Cantidad total de ficheros.
                this.m_CantTotalFiles = fi.Length;
                struContenido[] files = new struContenido[this.m_CantTotalFiles];
                int             x     = 0;
                foreach (FileInfo fiTemp in fi)
                {
                    files[x].Id     = x + 1;
                    files[x].Nombre = parseExtForView(fiTemp);                     // fiTemp.Name + " Sin .aspx: " + supressASPXExtension(fiTemp);
                    files[x].Size   = fiTemp.Length;
                    files[x].FechaUltimaModificacion = fiTemp.LastWriteTime;
                    ++x;
                    // Cantidad total de espacio ocupado por los ficheros en el maletín.
                    this.m_EspacioOcupado += fiTemp.Length;
                }
                this.m_Contenido = files;
            }
            else
            {
                throw new System.Exception("El maletín para \"" + this.m_MaletinName + "\" no existe.");
            }
        }
Exemple #3
0
 public bool[] Agregar(clsMaestrante.struMaestrante MaestranteData)
 {
     try
     {
         bool          boSendMail = MaestranteData.email != string.Empty;
         bool[]        boResult   = new bool[2];
         clsMaestrante Maestrante = new clsMaestrante();
         // Procesar el password si viene vacío.
         MaestranteData.UserPass = MaestranteData.UserPass == string.Empty?Maestrante.generatePassword(MaestranteData.Nombre):MaestranteData.UserPass;
         // Poner el Id del académico que lo registra.
         clsUsuario Usuario = new clsUsuario(HttpContext.Current.User.Identity.Name);
         MaestranteData.IdAcademicoAutoriza = Usuario.Id;
         Maestrante.getDataFromStruct(MaestranteData);
         boResult[0] = Maestrante.Agregar();
         if (boResult[0] & boSendMail)
         {
             boResult[1] = Maestrante.sendWelcomeMail();
         }
         Maestrante = null;
         return(boResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("No se insertaron los datos del nuevo docente.", Ex);
     }
 }
Exemple #4
0
        public clsMaestrante getMaestrante(System.UInt32 Id)
        {
            clsMaestrante Maestrante = new clsMaestrante(Id);

            Maestrante.UserPass = string.Empty;             // Limpiar la contraseña antes de entregar al cliente.
            return(Maestrante);
        }
        public bool Eliminar()
        {
            clsMaestrante Maestrante = new clsMaestrante(HttpContext.Current.User.Identity.Name);
            bool          boResult   = Maestrante.EliminarTemaProyecto();

            Maestrante = null;
            return(boResult);
        }
Exemple #6
0
        public DataView getList()
        {
            clsMaestrante Maestrante = new clsMaestrante();
            DataView      dv         = Maestrante.getListaSolicitandoRegistro().DefaultView;

            Maestrante = null;
            return(dv);
        }
        public DataView getMiTemaProyecto()
        {
            try
            {
                clsMaestrante         Maestrante = new clsMaestrante(HttpContext.Current.User.Identity.Name);
                System.Data.DataTable dt         = new DataTable();
                dt.Columns.Add("IdTema");
                dt.Columns.Add("Tema");
                dt.Columns.Add("Argumentos");
                dt.Columns.Add("datSolicitud");
                dt.Columns.Add("Estado");
                dt.Columns.Add("AcademicoRevisa");
                if (Maestrante.IdTemaProyecto == 0)
                {
                    return(dt.DefaultView);
                }

                object[] MiTemaProyecto = new object[6];
                MiTemaProyecto[0] = Maestrante.IdTemaProyecto;
                clsTemaProyecto TemaProyecto = new clsTemaProyecto(Maestrante.IdTemaProyecto);
                MiTemaProyecto[1] = TemaProyecto.Nombre;
                TemaProyecto      = null;
                MiTemaProyecto[2] = Maestrante.Argumentos;
                MiTemaProyecto[3] = clsUtiles.getPresentationDateTimeLong(Maestrante.datSolicitud);
                switch (Maestrante.Estado)
                {
                case clsMaestrante.enuEstadoTemaProyecto.NoRevisado:
                {
                    MiTemaProyecto[4] = "Pendiente";
                    break;
                }

                case clsMaestrante.enuEstadoTemaProyecto.Rechazado:
                {
                    MiTemaProyecto[4] = "Rechazado";
                    break;
                }

                default:
                {
                    MiTemaProyecto[4] = "Aprobado";
                    break;
                }
                }
                clsAcademico Academico = new clsAcademico(Maestrante.IdAcademicoRevisa);
                MiTemaProyecto[5] = Academico.Nombre + " " + Academico.Apellidos;
                Academico         = null;
                dt.Rows.Add(MiTemaProyecto);
                DataView dv = dt.DefaultView;
                dt = null;
                return(dv);
            }
            catch (System.Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.ToString());
                throw new System.Exception(ex.ToString());
            }
        }
Exemple #8
0
        public DataView getSolicitud(System.UInt32 IdUsuario)
        {
            clsMaestrante Maestrante = new clsMaestrante();
            DataView      dv         = Maestrante.getListaSolicitandoRegistro().DefaultView;

            dv.RowFilter = "Id=" + IdUsuario;
            Maestrante   = null;
            return(dv);
        }
Exemple #9
0
        public DataView getListaTemas()
        {
            clsTema       Tema       = new clsTema();
            clsMaestrante Maestrante = new clsMaestrante(HttpContext.Current.User.Identity.Name);
            DataView      dv         = Tema.getListaForMaestrante(Maestrante.Id).DefaultView;

            Maestrante = null;
            Tema       = null;
            return(dv);
        }
Exemple #10
0
        public bool Agregar(clsConsulta Consulta)
        {
            clsMaestrante Maestrante = new clsMaestrante(HttpContext.Current.User.Identity.Name);

            Consulta.IdUsuarioMaestrante = Maestrante.Id;
            Maestrante            = null;
            Consulta.datFechaHora = System.DateTime.Now;
            bool boResult = System.Convert.ToBoolean(Consulta.Agregar());

            return(boResult);
        }
        public bool Actualizar(clsConsulta Consulta)
        {
            clsMaestrante Maestrante = new clsMaestrante(HttpContext.Current.User.Identity.Name);

            Consulta.IdUsuarioMaestrante = Maestrante.Id;
            Maestrante            = null;
            Consulta.datFechaHora = System.DateTime.Now;
            System.Diagnostics.Debug.WriteLine(Consulta.IdUsuarioMaestrante);
            bool boResult = System.Convert.ToBoolean(Consulta.Actualizar());

            return(boResult);
        }
Exemple #12
0
 public clsMaestrante getMaestranteClass()
 {
     try
     {
         clsMaestrante Maestrante = new clsMaestrante();
         return(Maestrante);
     }
     catch (System.Exception Ex)
     {
         string strErrorMessage = "Error al devolver la clase para los datos de docentes.";
         throw new System.Exception(strErrorMessage, Ex);
     }
 }
        public bool Actualizar(clsMaestrante.struMiTemaProyecto TemaProyecto)
        {
            clsMaestrante Maestrante = new clsMaestrante(HttpContext.Current.User.Identity.Name);

            Maestrante.Argumentos        = TemaProyecto.Argumentos;
            Maestrante.IdTemaProyecto    = TemaProyecto.IdTemaProyecto;
            Maestrante.IdAcademicoRevisa = 0;
            Maestrante.datSolicitud      = System.DateTime.Now;
            Maestrante.Estado            = clsMaestrante.enuEstadoTemaProyecto.NoRevisado;
            bool boResult = Maestrante.ActualizarTemaProyecto();

            Maestrante = null;
            return(boResult);
        }
Exemple #14
0
 public string getNewUserId(string Nombre, string Apellidos)
 {
     try
     {
         clsMaestrante Maestrante = new clsMaestrante();
         string        UserId     = Maestrante.generateUserId(Nombre, Apellidos);
         Maestrante = null;
         return(UserId);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Imposible obtener el nuevo 'UserId'.", Ex);
     }
 }
Exemple #15
0
 public bool canBeDeleted(System.UInt32 Id)
 {
     try
     {
         clsMaestrante Maestrante = new clsMaestrante();
         bool          boResult   = Maestrante.canBeDeleted(Id);
         Maestrante = null;
         return(boResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Imposible comprobar si se admite eliminar el registro del docente.", Ex);
     }
 }
Exemple #16
0
 public string[] WhyCanNotBeDeleted(System.UInt32 Id)
 {
     try
     {
         clsMaestrante Maestrante = new clsMaestrante();
         string[]      aryResult  = Maestrante.WhyCanNotBeDeleted(Id);
         Maestrante = null;
         return(aryResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Error al recuperar la(s) causa que impide eliminar el regsitro de este docente.", Ex);
     }
 }
Exemple #17
0
        public bool AprobarSolicitud(System.UInt32 IdUsuario)
        {
            clsMaestrante Maestrante = new clsMaestrante(IdUsuario);
            clsAcademico  Academico  = new clsAcademico(HttpContext.Current.User.Identity.Name);

            Maestrante.IdAcademicoAutoriza = Academico.Id;
            bool boResult = Maestrante.Actualizar();

            if (boResult)
            {
                Maestrante.sendWelcomeMail();
            }
            return(boResult);
        }
Exemple #18
0
 public bool Eliminar(System.UInt32 Id)
 {
     try
     {
         clsMaestrante Maestrante = new clsMaestrante();
         bool          boResult   = Maestrante.Eliminar(Id);
         Maestrante = null;
         return(boResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("No se actualizaron los datos del docente.", Ex);
     }
 }
Exemple #19
0
 public DataView getAllMaestrantes()
 {
     try
     {
         clsMaestrante Maestrante    = new clsMaestrante();
         DataView      dvMaestrantes = Maestrante.getExtendedLista().DefaultView;
         dvMaestrantes.RowFilter = "Id_AcademicoAutoriza<>0";
         Maestrante = null;
         return(dvMaestrantes);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Imposible recuperar la lista de los docentes.", Ex);
     }
 }
Exemple #20
0
        public DataView[] getConsultas()
        {
            clsConsulta Consulta = new clsConsulta();

            DataView[] dv = new DataView[2];
            dv[0] = Consulta.getListSinRespuesta().DefaultView;
            dv[1] = Consulta.getListRespondidasSinLeer().DefaultView;
            clsMaestrante Maestrante = new clsMaestrante(HttpContext.Current.User.Identity.Name);

            dv[0].RowFilter = "IdMaestrante=" + Maestrante.Id;
            dv[1].RowFilter = "IdMaestrante=" + Maestrante.Id;
            Maestrante      = null;
            Consulta        = null;
            return(dv);
        }
Exemple #21
0
 public bool Actualizar(clsMaestrante.struMaestrante MaestranteData)
 {
     try
     {
         clsMaestrante Maestrante = new clsMaestrante();
         // Poner el Id del académico que lo registra.
         clsUsuario Usuario = new clsUsuario(HttpContext.Current.User.Identity.Name);
         MaestranteData.IdAcademicoAutoriza = Usuario.Id;
         Maestrante.getDataFromStruct(MaestranteData);
         bool boResult = Maestrante.Actualizar();
         Maestrante = null;
         return(boResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("No se actualizaron los datos del docente.", Ex);
     }
 }
Exemple #22
0
 public bool Agregar(clsMaestrante.struMaestrante MaestranteData)
 {
     try
     {
         bool          boResult   = false;
         clsMaestrante Maestrante = new clsMaestrante();
         // Poner el Id del académico que lo registra, o sea, ninguno, porque esto es un autoregistro.
         MaestranteData.IdAcademicoAutoriza = 0;
         Maestrante.getDataFromStruct(MaestranteData);
         boResult   = Maestrante.Agregar();
         Maestrante = null;
         return(boResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("No se insertaron los datos del nuevo docente.", Ex);
     }
 }
Exemple #23
0
        public System.UInt16[] RemindAcademico()
        {
            try
            {
                System.UInt16[] result     = new System.UInt16[2];
                clsMaestrante   Maestrante = new clsMaestrante();
                bool            boError    = false;
                try
                {
                    result[0] = Maestrante.getCantSolicitandoRegistro();
                    boError   = false;
                }
                catch (System.Exception)
                {
                    boError   = true;
                    result[0] = 0;
                }
                try
                {
                    result[1] = Maestrante.getCantTemasProyecto(clsMaestrante.enuEstadoTemaProyecto.NoRevisado);
                    boError   = false;
                }
                catch (System.Exception)
                {
                    boError   = true;
                    result[1] = 0;
                }

                Maestrante = null;
                if (!boError)
                {
                    return(result);
                }
                else
                {
                    throw new System.Exception("Imposible recuperar los temas para proyecto pendientes y/o las solicitudes de registro.");
                }
            }
            catch (System.Exception Ex)
            {
                throw new System.Exception("Imposible recuperar los temas para proyecto pendientes y/o las solicitudes de registro.", Ex);
            }
        }
Exemple #24
0
        /// <summary>
        /// Devuelve un DataTable con los registros de todos los temas de proyecto que no estén
        /// Habilitados y que correspondan para el Maestrante cuyo Id se pase como valor del
        /// parámetro "IdMaestrante", los campos devueltos son: Id, Nombre.
        /// </summary>
        /// <returns></returns>
        public DataTable getLista(System.UInt32 IdMaestrante)
        {
            clsMaestrante Maestrante = new clsMaestrante(IdMaestrante);
            clsGrupo      Grupo      = new clsGrupo(Maestrante.IdGrupo);

            System.Byte bytMencion = Grupo.IdMencion;
            Maestrante = null;
            Grupo      = null;
            string strSQL = "SELECT DISTINCT tbl_mencion_tema_proyecto.Id_TemaProyecto AS Id, " +
                            "tbl_tema_proyecto.Nombre AS Nombre FROM tbl_mencion_tema_proyecto " +
                            "INNER JOIN tbl_tema_proyecto ON tbl_mencion_tema_proyecto.Id_TemaProyecto=tbl_tema_proyecto.Id " +
                            "WHERE tbl_mencion_tema_proyecto.Id_Mencion=" + bytMencion + " AND tbl_tema_proyecto.Habilitado!=0;";
            DataTable dtCurso;
            clsDAL    oDAL = new clsDAL();

            dtCurso = oDAL.getDataTable(strSQL);
            oDAL    = null;
            return(dtCurso);
        }
Exemple #25
0
 public bool existNoCI(System.UInt32 Id, string NoCI)
 {
     try
     {
         clsMaestrante Maestrante = new clsMaestrante();
         bool          boResult   = false;
         if (Id == 0)
         {
             boResult = Maestrante.existNoCI(NoCI);
         }
         else
         {
             boResult = Maestrante.existNoCI(Id, NoCI);
         }
         Maestrante = null;
         return(boResult);
     }
     catch (System.Exception Ex)
     {
         throw new System.Exception("Imposible comprobar si existe el 'NoCI'.", Ex);
     }
 }
        public DataView[] getEncuentros()
        {
            DataView[]    dv         = new DataView[2];
            clsMaestrante Maestrante = new clsMaestrante(HttpContext.Current.User.Identity.Name);
            clsEncuentro  Encuentro  = new clsEncuentro();
            DataTable     dt;

            dt = Encuentro.getPendientesByGrupo(Maestrante.IdGrupo);
            for (int i = 0; i <= (dt.Rows.Count - 1); i++)
            {
                dt.Rows[i]["Orientaciones"] = System.Convert.ToString(clsUtiles.getFromBLOB(dt.Rows[i]["Orientaciones"]));
            }
            dv[0] = dt.DefaultView;
            dt    = Encuentro.getObsoletosByGrupo(Maestrante.IdGrupo, 3);
            for (int i = 0; i <= (dt.Rows.Count - 1); i++)
            {
                dt.Rows[i]["Orientaciones"] = System.Convert.ToString(clsUtiles.getFromBLOB(dt.Rows[i]["Orientaciones"]));
            }
            dv[1]      = dt.DefaultView;
            Encuentro  = null;
            Maestrante = null;
            return(dv);
        }
        public DataView getOthersRequestingSameTema()
        {
            try
            {
                clsMaestrante             Maestrante             = new clsMaestrante(HttpContext.Current.User.Identity.Name);
                clsMaestranteTemaProyecto MaestranteTemaProyecto = new clsMaestranteTemaProyecto(Maestrante.Id);
                DataTable dt = MaestranteTemaProyecto.getOthersRequestingSameTema();
                Maestrante             = null;
                MaestranteTemaProyecto = null;
                DataView dv = dt.DefaultView;

                System.Diagnostics.Debug.WriteLine(System.Convert.ToString(clsMaestranteTemaProyecto.enuEstado.Rechazado));

                //dv.RowFilter="Estado<>'" + System.Convert.ToString(clsMaestranteTemaProyecto.enuEstado.Rechazado) + "'";
                dv.Sort = "Estado";
                return(dv);
            }
            catch (System.Exception ex)
            {
                System.Diagnostics.Debug.WriteLine(ex.ToString());
                throw new System.Exception(ex.ToString());
            }
        }
Exemple #28
0
        public object[] getPerfilData(System.UInt32 Id)
        {
            DataView[] dv = new DataView[4];
            // Datos generales
            clsUsuario Usuario = new clsUsuario();

            dv[0]           = Usuario.getById(Id).DefaultView;
            dv[0].RowFilter = "PerfilPublico=1";
            // Si el usuario solicitando el perfil es el propietario del mismo, entonces liberar el filtro.
            if (HttpContext.Current.User.Identity.IsAuthenticated)
            {
                clsUsuario UsuarioActual = new clsUsuario(HttpContext.Current.User.Identity.Name);
                if (UsuarioActual.Id == Id)
                {
                    dv[0].RowFilter = string.Empty;
                }
                UsuarioActual = null;
            }
            Usuario = null;
            // Datos como académico
            clsAcademico Academico = new clsAcademico();

            dv[1]     = Academico.getById(Id).DefaultView;
            Academico = null;
            // Datos como docente
            clsDocente Docente = new clsDocente();

            dv[2]   = Docente.getById(Id).DefaultView;
            Docente = null;
            // Datos como maestrante
            clsMaestrante Maestrante = new clsMaestrante();

            dv[3]      = Maestrante.getById(Id).DefaultView;
            Maestrante = null;

            return(dv);
        }
Exemple #29
0
        public string[] getDatosMaestria(System.Byte bytMode)
        {
            try
            {
                clsMaestria Maestria  = new clsMaestria();
                string[]    strResult = new string[2];
                strResult[0] = Maestria.Nombre;

                // Cadena que representa el TAB.
                string strTab = System.Web.UI.HtmlTextWriter.DefaultTabString;
                // Las comillas dobles.
                char strQuote = System.Web.UI.HtmlTextWriter.DoubleQuoteChar;
                // Nueva línea
                string strNewLine = System.Environment.NewLine;
                // Cadena HTML a escribir como la propiedad innerHTML de la tabla "tbl_DatosMaestria"
                string strHTML = string.Empty;

                switch (bytMode)
                {
                case 2:
                {
                    System.Text.StringBuilder sbMode2 = new System.Text.StringBuilder();
                    sbMode2.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + strTab + "<td><b>Fundamentos</b></td>" + strNewLine);
                    sbMode2.Append(strTab + "</tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + strTab + "<td>" + Maestria.Fundamentos + "</td>" + strNewLine);
                    sbMode2.Append(strTab + "</tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + strTab + "<td><hr color='#47639a' size='1'></hr>" + strNewLine);
                    sbMode2.Append(strTab + "</tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + strTab + "<td><b>Requisitos de ingreso</b></td>" + strNewLine);
                    sbMode2.Append(strTab + "</tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + strTab + "<td>" + Maestria.RequisitosIngreso + "</td>" + strNewLine);
                    sbMode2.Append(strTab + "</tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode2.Append(strTab + strTab + "<td style='PADDING-TOP: 10px'><a id='lnkDatosMaestria' title='Ver Provincia, Director, etc.' href=" + strQuote + "JavaScript:getDatosMaestria(1);" + strQuote + " target='_self' name='lnkDatosMaestria'>Regresar...</a></td>" + strNewLine);
                    sbMode2.Append(strTab + "</tr>" + System.Environment.NewLine);

                    strHTML = sbMode2.ToString();
                    break;
                }

                default:
                {
                    clsProvincia Provincia    = new clsProvincia();
                    string       strProvincia = Provincia.Nombre;
                    Provincia = null;
                    clsUsuario Usuario     = new clsUsuario(Maestria.IdUsuarioDirector);
                    string     strDirector = Usuario.Nombre + " " + Usuario.Apellidos;
                    Usuario = null;
                    clsModulo   Modulo          = new clsModulo(Maestria.IdModuloActual);
                    string      strModuloActual = Modulo.NombreCorto != Modulo.NombreCompleto?Modulo.NombreCorto + ". " + Modulo.NombreCompleto:Modulo.NombreCorto;
                    clsSede     Sede            = new clsSede();
                    System.Byte bytCantSedes    = Sede.getCantidad();
                    Sede = null;
                    System.UInt32[] aryCantUsuarios = new System.UInt32[3];
                    clsAcademico    Academico       = new clsAcademico();
                    aryCantUsuarios[0] = Academico.getCantidad();
                    Academico          = null;
                    clsDocente Docente = new clsDocente();
                    aryCantUsuarios[1] = Docente.getCantidad();
                    Docente            = null;
                    clsMaestrante Maestrante = new clsMaestrante();
                    aryCantUsuarios[2] = Maestrante.getCantidad();
                    Maestrante         = null;

                    System.Text.StringBuilder sbMode1 = new System.Text.StringBuilder();
                    string strFormatTDBeg             = "<td style='PADDING-BOTTOM: 10px' valign='top'>";
                    string strFormatTDEnd             = "&nbsp;</td>";
                    // Provincia.
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<b>Provincia:</b>" + strFormatTDEnd + strNewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + strProvincia + strFormatTDBeg + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                    // Director.
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<b>Director:</b>" + strFormatTDEnd + strNewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<a href=\"perfil.aspx?Id=" + Maestria.IdUsuarioDirector + "\">" + strDirector + "</a>" + strFormatTDBeg + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                    // Fecha de inicio.
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<b>Fecha de inicio:</b>" + strFormatTDEnd + strNewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + clsUtiles.getPresentationDateLong(Maestria.datFechaInicio) + strFormatTDBeg + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                    // Fecha de fin.
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<b>Fecha de finalización:</b>" + strFormatTDEnd + strNewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + clsUtiles.getPresentationDateLong(Maestria.datFechaFin) + strFormatTDBeg + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                    // Estado de la matrícula.
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<b>Estado de la matrícula:</b>" + strFormatTDEnd + strNewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + (Maestria.MatriculaAbierta?"Abierta":"Cerrada") + strFormatTDBeg + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                    // Módulo actual.
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<b>Módulo actual:</b>" + strFormatTDEnd + strNewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<a href=\"lista_modulos.aspx\">" + strModuloActual + "</a>" + strFormatTDBeg + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                    // Sedes universitarias.
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<b>Sedes universitarias:</b>" + strFormatTDEnd + strNewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<a href=\"lista_sedes.aspx\">" + bytCantSedes + "</a>" + strFormatTDBeg + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                    // Usuarios registrados

                    /*
                     * sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                     * sbMode1.Append(strTab + strTab + "<td style='PADDING-BOTTOM: 10px' valign='top' rowspan='3'>" + "<b>Usuarios registrados:</b>" + strFormatTDEnd + strNewLine);
                     * sbMode1.Append(strTab + strTab + "<td valign='top'><a href='lista_usuarios.aspx?role=academico'>Académicos:</a> " + aryCantUsuarios[0] + strFormatTDBeg + strNewLine);
                     * sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                     * sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                     * sbMode1.Append(strTab + strTab + "<td valign='top'><a href='lista_usuarios.aspx?role=docente'>Docentes:</a> " + aryCantUsuarios[1] + strFormatTDBeg + strNewLine);
                     * sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                     * sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                     * sbMode1.Append(strTab + strTab + "<td valign='top'><a href='lista_usuarios.aspx?role=maestrante'>Maestrantes: </a>" + aryCantUsuarios[2] + strFormatTDBeg + strNewLine);
                     * sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);
                     */
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + "<b>Usuarios registrados:</b>" + strFormatTDEnd + strNewLine);
                    sbMode1.Append(strTab + strTab + "<td valign='top'>" + strNewLine);
                    sbMode1.Append(strTab + strTab + strTab + "<a href='lista_usuarios.aspx?role=academico'>académicos: " + aryCantUsuarios[0] + "</a>" + ",&nbsp;" + strNewLine);
                    sbMode1.Append(strTab + strTab + strTab + "<a href='lista_usuarios.aspx?role=docente'>docentes: " + aryCantUsuarios[1] + "</a>" + ",&nbsp;" + strNewLine);
                    sbMode1.Append(strTab + strTab + strTab + "<a href='lista_usuarios.aspx?role=maestrante'>maestrantes: " + aryCantUsuarios[2] + "</a>" + strNewLine);
                    sbMode1.Append(strTab + strTab + strFormatTDBeg + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);

                    // Link a "Más detalles...".
                    sbMode1.Append(strTab + "<tr>" + System.Environment.NewLine);
                    sbMode1.Append(strTab + strTab + "<td colspan='2'><a id='lnkDatosMaestria' title='Ver Fundamentos, Requisitos para la matrícula, etc.' href=" + strQuote + "JavaScript:getDatosMaestria(2);" + strQuote + " target='_self' name='lnkDatosMaestria'>Más detalles...</a></td>" + strNewLine);
                    sbMode1.Append(strTab + "</tr>" + System.Environment.NewLine);

                    strHTML = sbMode1.ToString();
                    break;
                }
                }

                Maestria     = null;
                strResult[1] = "<table style='POSITION: relative' cellpadding='5' align='center' border='0'>" + strHTML + "</table>";
                return(strResult);
            }
            catch (System.Exception Ex)
            {
                throw new System.Exception("Error al recuperar datos de la maestría.", Ex);
            }
        }