Exemplo n.º 1
0
        // Retorna Asistencia para un usuario y una fechaId
        Asistencia RetAsistenciaUsuarioFecha(string UserId, int FechaId)
        {
            //AsistenciaData reader = new AsistenciaData();
            IEntityReadByStringInt <Asistencia> reader = new AsistenciaData();
            var ent = reader.QueryEntity(UserId, FechaId);

            return(ent);
        }
Exemplo n.º 2
0
        static void ReadEntidadAsistenciaUserFecha(AsistenciaData reader, string userId, int fechaId)
        {
            Asistencia p = reader.QueryEntity(userId, fechaId);

            Collection <Asistencia> ent = new Collection <Asistencia>();

            ent.Add(p);
            PrintOutAsistencia(ent);
        }
Exemplo n.º 3
0
        static void ReadEntidadAsistencia(AsistenciaData reader, int id)
        {
            Asistencia p = reader.QueryEntity(id);

            //Console.WriteLine(string.Format("Entity Id: {0}\t Fecha Id: {1}\tUser Id: {2}\tChekIn Id: {3}\tChekOut Id: {4}\tCausa Id: {5}"
            //        , p.Id, p.FechaId, p.UserId, p.ChekInId, p.ChekOutId, p.IncidenciaId));

            Collection <Asistencia> ent = new Collection <Asistencia>();

            ent.Add(p);
            PrintOutAsistencia(ent);
        }