【问题标题】:return wrong EnrollNumber download attendance record via zkemkeeper通过 zkemkeeper 返回错误的 EnrollNumber 下载考勤记录
【发布时间】:2017-04-05 19:20:17
【问题描述】:

我正在使用 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);
                    }
                }

【问题讨论】:

    标签: c# dll


    【解决方案1】:

    设备不同,使用这个 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");
                        }
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-12-07
      • 2016-06-10
      • 2011-05-01
      • 2016-07-20
      • 2017-07-04
      • 1970-01-01
      • 2016-04-22
      • 1970-01-01
      相关资源
      最近更新 更多