Ejemplo n.º 1
0
        private static ProximaFecha BuildProximaFecha(IDataReader reader)
        {
            int      id       = (int)reader["Id"];
            string   userName = (string)reader["UserName"];
            string   tema     = (string)reader["Tema"];
            DateTime fecha    = (DateTime)reader["Fecha"];

            Usuario encargado = SeguridadComponent.GetUsuario(userName);

            return(new ProximaFecha(id, encargado, fecha, tema));
        }
Ejemplo n.º 2
0
        private static Reunion BuildReunion(IDataReader reader)
        {
            Reunion  reunion       = null;
            int      id            = (int)reader["Id"];
            string   titulo        = (string)reader["Titulo"];
            DateTime fechaCreacion = (DateTime)reader["FechaCreacion"];
            DateTime fechaCulto    = (DateTime)reader["FechaCulto"];
            DateTime fechaEnsayo   = (DateTime)reader["FechaEnsayo"];

            Reunion.EstadoENUM estado     = (Reunion.EstadoENUM)reader["IdEstado"];
            string             uEncargado = (string)reader["UserEncargado"];
            Usuario            encargado  = SeguridadComponent.GetUsuario(uEncargado);
            bool   hayCena     = (bool)reader["Haycena"];
            string descripcion = (string)reader["Descripcion"];

            reunion = new Reunion(id, titulo, fechaCreacion, fechaCulto, fechaEnsayo,
                                  estado, encargado, hayCena, descripcion);


            return(reunion);
        }