Ejemplo n.º 1
0
        //Ver a Pedro para la implementación...
        public List <DatosProcesos> ReportePersonalDetalladoIP(DateTime pFechaI, DateTime pFechaF, string pId_Operadora)
        {
            //throw new NotImplementedException();
            List <DatosProcesos> Result = new List <DatosProcesos>();

            DataSet1TableAdapters.TLB_TemaTableAdapter             TempTemaTA = new DataAccessLayer.DataSet1TableAdapters.TLB_TemaTableAdapter();
            DataSet1TableAdapters.TLB_RelacionUserTemaTableAdapter TempTA     = new DataAccessLayer.DataSet1TableAdapters.TLB_RelacionUserTemaTableAdapter();
            DataSet1 TempDS = new DataSet1();

            TempTemaTA.Fill(TempDS.TLB_Tema);
            TempTA.Obtener_PersonalDetalladoIP(TempDS.TLB_RelacionUserTema, pFechaI, pFechaF, pId_Operadora);

            foreach (DataSet1.TLB_RelacionUserTemaRow i in TempDS.TLB_RelacionUserTema)
            {
                Result.Add(new DatosProcesos("", i.Fecha, i.Id_Usuario, i.TLB_TemaRow.Tema, i.Contador));
            }
            return(Result);
        }
Ejemplo n.º 2
0
        //Ver a Pedro para la implementación...
        public List <InformeConsultas> ReporteConsultasIP(DateTime pFechaI, DateTime pFechaF)
        {
            //throw new NotImplementedException();
            List <InformeConsultas> Result = new List <InformeConsultas>();

            DataSet1TableAdapters.TLB_TemaTableAdapter             TempTemaTA = new DataAccessLayer.DataSet1TableAdapters.TLB_TemaTableAdapter();
            DataSet1TableAdapters.TLB_RelacionUserTemaTableAdapter TempTA     = new DataAccessLayer.DataSet1TableAdapters.TLB_RelacionUserTemaTableAdapter();
            DataSet1 TempDS = new DataSet1();

            TempTemaTA.Fill(TempDS.TLB_Tema);
            TempTA.ObtenerEntreFechas(TempDS.TLB_RelacionUserTema, pFechaI, pFechaF);

            foreach (DataSet1.TLB_RelacionUserTemaRow i in TempDS.TLB_RelacionUserTema)
            {
                Result.Add(new InformeConsultas("", i.Fecha, i.Id_Usuario, i.TLB_TemaRow.Tema, i.Contador));
            }
            return(Result);
        }
Ejemplo n.º 3
0
        //Ver a Pedro para la implementación...
        public List <UsuarioPersistente> OperadorasIP(DateTime pFechaI, DateTime pFechaF)
        {
            List <UsuarioPersistente> Result = new List <UsuarioPersistente>();

            DataSet1TableAdapters.TLB_RelacionUserTemaTableAdapter TempTA = new DataAccessLayer.DataSet1TableAdapters.TLB_RelacionUserTemaTableAdapter();
            DataSet1.TLB_RelacionUserTemaDataTable TempTbl = new DataSet1.TLB_RelacionUserTemaDataTable();

            List <string> TempList = new List <string>();

            TempTA.ObtenerEntreFechas(TempTbl, pFechaI, pFechaF);
            foreach (DataSet1.TLB_RelacionUserTemaRow i in TempTbl)
            {
                if (!TempList.Contains(i.Id_Usuario))
                {
                    TempList.Add(i.Id_Usuario);
                    Result.Add(BuscarUsuario(i.Id_Usuario));
                }
            }

            return(Result);
        }
Ejemplo n.º 4
0
        //Ver a Pedro para la implementación...
        public List <DatosProcesos> ReporteGeneralDetalladoIP(DateTime pFechaI, DateTime pFechaF)
        {
            List <DatosProcesos> Result = new List <DatosProcesos>();

            DataSet1TableAdapters.TLB_TemaTableAdapter             TempTA1 = new DataAccessLayer.DataSet1TableAdapters.TLB_TemaTableAdapter();
            DataSet1TableAdapters.TLB_RelacionUserTemaTableAdapter TempTA2 = new DataAccessLayer.DataSet1TableAdapters.TLB_RelacionUserTemaTableAdapter();
            DataSet1 TempDS = new DataSet1();

            TempTA2.ReporteGeneralDetallado(TempDS.TLB_RelacionUserTema, pFechaI, pFechaF);

            foreach (DataSet1.TLB_RelacionUserTemaRow i in TempDS.TLB_RelacionUserTema)
            {
                DatosProcesos temp = new DatosProcesos();
                TempDS.Merge(TempTA1.ExisteT(i.Id_Tema));
                temp.Fechap      = i.Fecha;
                temp.Tema        = i.TLB_TemaRow.Tema;
                temp.Solicitudes = i.Contador;
                Result.Add(temp);
            }
            return(Result);
        }