Get the logs from fingerprint device
-
hi, i am trying to download data from fingerprint device. below is the code provided by them in their demo application(vb). with the code provided by them i can connect to device successfully but i am not getting correct data.
Private Sub btnGetGeneralLogData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGeneralLogData.Click
If bIsConnected = False Then
MsgBox("Please connect the device first", MsgBoxStyle.Exclamation, "Error")
Return
End IfDim idwTMachineNumber As Integer Dim idwEnrollNumber As Integer Dim idwEMachineNumber As Integer Dim idwVerifyMode As Integer Dim idwInOutMode As Integer Dim idwYear As Integer Dim idwMonth As Integer Dim idwDay As Integer Dim idwHour As Integer Dim idwMinute As Integer Dim idwErrorCode As Integer Dim iGLCount = 0 Dim lvItem As New ListViewItem("Items", 0) Cursor = Cursors.WaitCursor lvLogs.Items.Clear() AxCZKEM1.EnableDevice(iMachineNumber, False) 'disable the device If AxCZKEM1.ReadGeneralLogData(iMachineNumber) Then 'read all the attendance records to the memory 'get records from the memory While AxCZKEM1.GetGeneralLogData(iMachineNumber, idwTMachineNumber, idwEnrollNumber, idwEMachineNumber, idwVerifyMode, idwInOutMode, idwYear, idwMonth, idwDay, idwHour, idwMinute) iGLCount += 1 lvItem = lvLogs.Items.Add(iGLCount.ToString()) lvItem.SubItems.Add(idwEnrollNumber.ToString()) lvItem.SubItems.Add(idwVerifyMode.ToString()) lvItem.SubItems.Add(idwInOutMode.ToString()) lvItem.SubItems.Add(idwYear.ToString() & "-" + idwMonth.ToString() & "-" & idwDay.ToString() & " " & idwHour.ToString() & ":" & idwMinute.ToString()) End While Else Cursor = Cursors.Default AxCZKEM1.GetLastError(idwErrorCode) If idwErrorCode <> 0 Then MsgBox("Reading data from terminal failed,ErrorCode: " & idwErrorCode, MsgBoxStyle.Exclamation, "Error") Else MsgBox("No data from terminal returns!", MsgBoxStyle.Exclamation, "Error") End If End If AxCZKEM1.EnableDevice(iMachineNumber, True) 'enable the device Cursor = Cursors.Default End Sub
-
hi, i am trying to download data from fingerprint device. below is the code provided by them in their demo application(vb). with the code provided by them i can connect to device successfully but i am not getting correct data.
Private Sub btnGetGeneralLogData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGeneralLogData.Click
If bIsConnected = False Then
MsgBox("Please connect the device first", MsgBoxStyle.Exclamation, "Error")
Return
End IfDim idwTMachineNumber As Integer Dim idwEnrollNumber As Integer Dim idwEMachineNumber As Integer Dim idwVerifyMode As Integer Dim idwInOutMode As Integer Dim idwYear As Integer Dim idwMonth As Integer Dim idwDay As Integer Dim idwHour As Integer Dim idwMinute As Integer Dim idwErrorCode As Integer Dim iGLCount = 0 Dim lvItem As New ListViewItem("Items", 0) Cursor = Cursors.WaitCursor lvLogs.Items.Clear() AxCZKEM1.EnableDevice(iMachineNumber, False) 'disable the device If AxCZKEM1.ReadGeneralLogData(iMachineNumber) Then 'read all the attendance records to the memory 'get records from the memory While AxCZKEM1.GetGeneralLogData(iMachineNumber, idwTMachineNumber, idwEnrollNumber, idwEMachineNumber, idwVerifyMode, idwInOutMode, idwYear, idwMonth, idwDay, idwHour, idwMinute) iGLCount += 1 lvItem = lvLogs.Items.Add(iGLCount.ToString()) lvItem.SubItems.Add(idwEnrollNumber.ToString()) lvItem.SubItems.Add(idwVerifyMode.ToString()) lvItem.SubItems.Add(idwInOutMode.ToString()) lvItem.SubItems.Add(idwYear.ToString() & "-" + idwMonth.ToString() & "-" & idwDay.ToString() & " " & idwHour.ToString() & ":" & idwMinute.ToString()) End While Else Cursor = Cursors.Default AxCZKEM1.GetLastError(idwErrorCode) If idwErrorCode <> 0 Then MsgBox("Reading data from terminal failed,ErrorCode: " & idwErrorCode, MsgBoxStyle.Exclamation, "Error") Else MsgBox("No data from terminal returns!", MsgBoxStyle.Exclamation, "Error") End If End If AxCZKEM1.EnableDevice(iMachineNumber, True) 'enable the device Cursor = Cursors.Default End Sub
-
hi, i am trying to download data from fingerprint device. below is the code provided by them in their demo application(vb). with the code provided by them i can connect to device successfully but i am not getting correct data.
Private Sub btnGetGeneralLogData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGeneralLogData.Click
If bIsConnected = False Then
MsgBox("Please connect the device first", MsgBoxStyle.Exclamation, "Error")
Return
End IfDim idwTMachineNumber As Integer Dim idwEnrollNumber As Integer Dim idwEMachineNumber As Integer Dim idwVerifyMode As Integer Dim idwInOutMode As Integer Dim idwYear As Integer Dim idwMonth As Integer Dim idwDay As Integer Dim idwHour As Integer Dim idwMinute As Integer Dim idwErrorCode As Integer Dim iGLCount = 0 Dim lvItem As New ListViewItem("Items", 0) Cursor = Cursors.WaitCursor lvLogs.Items.Clear() AxCZKEM1.EnableDevice(iMachineNumber, False) 'disable the device If AxCZKEM1.ReadGeneralLogData(iMachineNumber) Then 'read all the attendance records to the memory 'get records from the memory While AxCZKEM1.GetGeneralLogData(iMachineNumber, idwTMachineNumber, idwEnrollNumber, idwEMachineNumber, idwVerifyMode, idwInOutMode, idwYear, idwMonth, idwDay, idwHour, idwMinute) iGLCount += 1 lvItem = lvLogs.Items.Add(iGLCount.ToString()) lvItem.SubItems.Add(idwEnrollNumber.ToString()) lvItem.SubItems.Add(idwVerifyMode.ToString()) lvItem.SubItems.Add(idwInOutMode.ToString()) lvItem.SubItems.Add(idwYear.ToString() & "-" + idwMonth.ToString() & "-" & idwDay.ToString() & " " & idwHour.ToString() & ":" & idwMinute.ToString()) End While Else Cursor = Cursors.Default AxCZKEM1.GetLastError(idwErrorCode) If idwErrorCode <> 0 Then MsgBox("Reading data from terminal failed,ErrorCode: " & idwErrorCode, MsgBoxStyle.Exclamation, "Error") Else MsgBox("No data from terminal returns!", MsgBoxStyle.Exclamation, "Error") End If End If AxCZKEM1.EnableDevice(iMachineNumber, True) 'enable the device Cursor = Cursors.Default End Sub
-
hi, i am trying to download data from fingerprint device. below is the code provided by them in their demo application(vb). with the code provided by them i can connect to device successfully but i am not getting correct data.
Private Sub btnGetGeneralLogData_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnGetGeneralLogData.Click
If bIsConnected = False Then
MsgBox("Please connect the device first", MsgBoxStyle.Exclamation, "Error")
Return
End IfDim idwTMachineNumber As Integer Dim idwEnrollNumber As Integer Dim idwEMachineNumber As Integer Dim idwVerifyMode As Integer Dim idwInOutMode As Integer Dim idwYear As Integer Dim idwMonth As Integer Dim idwDay As Integer Dim idwHour As Integer Dim idwMinute As Integer Dim idwErrorCode As Integer Dim iGLCount = 0 Dim lvItem As New ListViewItem("Items", 0) Cursor = Cursors.WaitCursor lvLogs.Items.Clear() AxCZKEM1.EnableDevice(iMachineNumber, False) 'disable the device If AxCZKEM1.ReadGeneralLogData(iMachineNumber) Then 'read all the attendance records to the memory 'get records from the memory While AxCZKEM1.GetGeneralLogData(iMachineNumber, idwTMachineNumber, idwEnrollNumber, idwEMachineNumber, idwVerifyMode, idwInOutMode, idwYear, idwMonth, idwDay, idwHour, idwMinute) iGLCount += 1 lvItem = lvLogs.Items.Add(iGLCount.ToString()) lvItem.SubItems.Add(idwEnrollNumber.ToString()) lvItem.SubItems.Add(idwVerifyMode.ToString()) lvItem.SubItems.Add(idwInOutMode.ToString()) lvItem.SubItems.Add(idwYear.ToString() & "-" + idwMonth.ToString() & "-" & idwDay.ToString() & " " & idwHour.ToString() & ":" & idwMinute.ToString()) End While Else Cursor = Cursors.Default AxCZKEM1.GetLastError(idwErrorCode) If idwErrorCode <> 0 Then MsgBox("Reading data from terminal failed,ErrorCode: " & idwErrorCode, MsgBoxStyle.Exclamation, "Error") Else MsgBox("No data from terminal returns!", MsgBoxStyle.Exclamation, "Error") End If End If AxCZKEM1.EnableDevice(iMachineNumber, True) 'enable the device Cursor = Cursors.Default End Sub