通过zkemkeeper返回错误的EnrollNumber下载考勤记录(return wrong EnrollNumber download attendance record via zkemkee

编程入门 行业动态 更新时间:2024-10-27 18:21:44
通过zkemkeeper返回错误的EnrollNumber下载考勤记录(return wrong EnrollNumber download attendance record via zkemkeeper)

我使用zkemkeeper.dll从生物识别设备下载考勤记录。 这是我的代码。 sdwEnrollNumber返回null或错误的字符串。 但同样的程序可以用于其他计算机和其他设备。

if (device2.ReadGeneralLogData(1))//read all the attendance records to the memory { string sdwEnrollNumber = ""; int idwVerifyMode = 0; int idwInOutMode = 0; int idwYear = 0; int idwMonth = 0; int idwDay = 0; int idwHour = 0; int idwMinute = 0; int idwSecond = 0; int idwWorkcode = 0; while (device2.SSR_GetGeneralLogData(1, out sdwEnrollNumber, out idwVerifyMode, out idwInOutMode, out idwYear, out idwMonth, out idwDay, out idwHour, out idwMinute, out idwSecond, ref idwWorkcode))//get records from the memory { devece2_log(deviceIp, sdwEnrollNumber, 0, idwInOutMode, idwVerifyMode, idwYear, idwMonth, idwHour, idwHour, idwMinute, idwSecond, idwWorkcode); } }

I m using zkemkeeper.dll to download attendance record from biometric device. This is my code. sdwEnrollNumber return null or wrong string. But same program works other compiuter and other devices.

if (device2.ReadGeneralLogData(1))//read all the attendance records to the memory { string sdwEnrollNumber = ""; int idwVerifyMode = 0; int idwInOutMode = 0; int idwYear = 0; int idwMonth = 0; int idwDay = 0; int idwHour = 0; int idwMinute = 0; int idwSecond = 0; int idwWorkcode = 0; while (device2.SSR_GetGeneralLogData(1, out sdwEnrollNumber, out idwVerifyMode, out idwInOutMode, out idwYear, out idwMonth, out idwDay, out idwHour, out idwMinute, out idwSecond, ref idwWorkcode))//get records from the memory { devece2_log(deviceIp, sdwEnrollNumber, 0, idwInOutMode, idwVerifyMode, idwYear, idwMonth, idwHour, idwHour, idwMinute, idwSecond, idwWorkcode); } }

最满意答案

设备是不一样的使用此GetGeneralExtLogData

while (device2FingersList["device_" + deviceIp].GetGeneralExtLogData(1, ref idwEnrollNumber, ref idwVerifyMode, ref idwInOutMode, ref idwYear, ref idwMonth, ref idwDay, ref idwHour, ref idwMinute, ref idwSecond, ref idwWorkCode, ref idwReserved))//get records from the memory { devece2_log(deviceIp, idwEnrollNumber.ToString(), 0, idwInOutMode, idwVerifyMode, idwYear, idwMonth, idwDay, idwHour, idwMinute, idwSecond, idwWorkCode, "BAW"); }

devices is not same use this GetGeneralExtLogData

while (device2FingersList["device_" + deviceIp].GetGeneralExtLogData(1, ref idwEnrollNumber, ref idwVerifyMode, ref idwInOutMode, ref idwYear, ref idwMonth, ref idwDay, ref idwHour, ref idwMinute, ref idwSecond, ref idwWorkCode, ref idwReserved))//get records from the memory { devece2_log(deviceIp, idwEnrollNumber.ToString(), 0, idwInOutMode, idwVerifyMode, idwYear, idwMonth, idwDay, idwHour, idwMinute, idwSecond, idwWorkCode, "BAW"); }

更多推荐

本文发布于:2023-08-03 03:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1382902.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:考勤   错误   EnrollNumber   zkemkeeper   return

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!