//	Consulta del total de investigadores en el SNI.
 public async Task<IndicadorInvesSNI> GetTotalInvestigadoresSNI(IndicadorInvesSNI invesSNI)
 {
     try
     {
         InventarioRHRepository invent = new InventarioRHRepository();
         var result = await invent.GetPersonalSNIDatosInstitucional(new ParametrosConsultas
         { Claveunidad = "01", Fecha = invesSNI.FTermino });
         invesSNI.totalInvestigadoresINEEL_SNI = result.Count();
         return invesSNI;
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
 //	Consulta del total de investigadores con grado de doctor
 public async Task<IndicadorDoctoresINEEL> GetTotalDoctores(IndicadorDoctoresINEEL doctores)
 {
     try
     {
         InventarioRHRepository invent = new InventarioRHRepository();
         ParametrosConsultas param = new ParametrosConsultas();
         param.Fecha = doctores.FTermino;
         var invest = await invent.CatalogoPersonasFechaEfectiva(param);
         var doc = await invent.InvestigadoresGradoAcademico(invest, param, 3);
         doctores.totalDoctoresINEEL = doc.Count();
         return doctores;
     }
     catch (Exception e)
     {
         throw new Exception(e.Message, e);
     }
 }
예제 #3
0
 public InventarioRHController()
 {
     _repository = new InventarioRHRepository();
 }