Beispiel #1
0
        public List <Huella> ObtenerHuella(Empleado emp)
        {
            /* Tengo que recorrer SI O SI todo los fingerIndex porque si la huella fue cargada desde otro equipo
             * No se que fingerindex trae asignado y no la puedo leer si no recorro todos. */
            int           tmpLenght = 0;
            int           flag      = 0;
            string        template  = string.Empty;
            List <Huella> huellas   = new List <Huella>();

            base.EnableDevice(Numero, false);

            for (int fingerIndex = -1; fingerIndex < 10; fingerIndex++)
            {
                if (base.GetUserTmpExStr(Numero, emp.Legajo, fingerIndex, out flag, out template, out tmpLenght))
                {
                    Huella huella = new Huella(template, emp, fingerIndex, tmpLenght, flag);
                    huellas.Add(huella);
                }
            }
            // base.GetLastError(ref codError);

            /* if (codError != 1)
             * {
             *   throw new AppException("Error al descargar la huella del usuario: " + legajo + ". CodError: " + codError.ToString());
             * }*/
            base.EnableDevice(Numero, true);
            return(huellas);
        }
Beispiel #2
0
 public Usuario(String nom, String con, Cuenta cue, String com, EstadoUsuario est, Huella hue)
 {
     nombre = nom; contrasenia = con; cuenta = cue; comentario = com; estado = est; huella = hue;
 }