Tous,Comment puis-je télécharger uniquement les nouveaux enregistrements d'Anviz EP300?
Actuellement, j'utilise Anviz EP300 machine de fréquentation de temps. Je n'ai besoin de télécharger que les nouveaux enregistrements de l'appareil.
J'utilise sdk suivant. Click here
Il existe déjà une méthode dans sdk. Ce qui est je l'ai utilisé comme ...
int i = 0;
int Ret = 0;
int RecordCount = 0;
int RetCount = 0;
int pClockings = 0;
int pLongRun = 0;
CKT_DLL.CLOCKINGRECORD clocking = new CKT_DLL.CLOCKINGRECORD();
clocking.Time = new byte[20];
int ptemp = 0;
ProgressBar1.Value = 0;
//If CKT_GetClockingNewRecordEx(IDNumber, pLongRun) Then 'IF GET NewRecord
if (CKT_DLL.CKT_GetClockingNewRecordEx(IDNumber, ref pLongRun) != 0) //IF GET Record
{
while (true)
{
Ret = CKT_DLL.CKT_GetClockingRecordProgress(pLongRun, ref RecordCount, ref RetCount, ref pClockings);
if (RecordCount > 0)
{
ProgressBar1.Maximum = RecordCount;
}
if (Ret == 0)
{
return;
}
if (Ret != 0)
{
ptemp = pClockings;
for (i = 1; i <= RetCount; i++)
{
PCopyMemory(ref clocking, pClockings, CKT_DLL.CLOCKINGRECORDSIZE);
pClockings = pClockings + CKT_DLL.CLOCKINGRECORDSIZE;
insertTimeAttendance(clocking.PersonID, clocking.Stat, Encoding.Default.GetString(clocking.Time), clocking.ID);
ProgressBar1.Value += 1;
}
if (ptemp != 0)
{
CKT_DLL.CKT_FreeMemory(ptemp);
}
}
if (Ret == 1)
{
return;
}
}
}
CKT_GetClockingNewRecordEx cette méthode devrait être de retour de nouveaux records. Mais il retourne tous les enregistrements.
Je suppose qu'il devrait y avoir une méthode ou une config qui devrait être marquée comme téléchargée.
Quelqu'un a une idée ou une solution?
Merci, Eba
Avez-vous une solution pour cela? Moi aussi face au même problème. –