Beispiel #1
0
        public IEnumerable<FormModel> GetExcelInfo(string id)
        {
            Asistentes_TutoresEntities datos = new Asistentes_TutoresEntities();
            var lista = datos.SP_GetExcelInfo(id);
            List<FormModel> estudiantes = new List<FormModel>();
            foreach (var est in lista)
            {
                FormModel estudiante = new FormModel("1", est.Nombre, est.Carne, est.Email, est.Telefono,
                 est.Cedula, est.BankName, est.Cuenta, "", est.Horas.ToString(), est.CorreoProfesor, est.FuncionarioName,
                 est.Ponderado, "", est.NotaCurso,"", est.Curso);
                estudiantes.Add(estudiante);

            }
            return estudiantes;
        }
Beispiel #2
0
        public IEnumerable<FormModel> GetFormInfo(string id)
        {
            Asistentes_TutoresEntities datos = new Asistentes_TutoresEntities();
            var lista = datos.SP_GETFormInfo(Int32.Parse(id));
            List<FormModel> estudiantes = new List<FormModel>();
            foreach (var est in lista)
            {
                FormModel estudiante = new FormModel(est.Id_Formulario.ToString(), est.Nombre, est.Carne, est.Email, est.Telefono,
                 est.Cedula, est.BankName, est.Cuenta, est.ImageBankPath, est.Horas.ToString(), est.CorreoProfesor, est.FuncionarioName,
                 est.Ponderado, est.PonderadoImagePath, est.NotaCurso, est.Modalidad, est.Curso);
                estudiantes.Add(estudiante);

            }
            return estudiantes;
        }
Beispiel #3
0
 public IEnumerable<FormModel> GetEstudiantesxAsistencia(string id)
 {
     List<FormModel> estudiantes = new List<FormModel>();
     Asistentes_TutoresEntities datos = new Asistentes_TutoresEntities();
     var lista = datos.SP_EstudiantesxTipoAsistencia(id);
     foreach(var est in lista){
         FormModel estudiante = new FormModel(est.Id_Formulario.ToString(),est.Nombre,est.Carne,est.Email,est.Telefono.ToString(),est.Revisado.ToString());
         estudiantes.Add(estudiante);
     }
     return estudiantes;
 }