ZKLibrary icon indicating copy to clipboard operation
ZKLibrary copied to clipboard

Getting attendance of a specific user or specific date.

Open RahamSher opened this issue 7 years ago • 7 comments

Dear all,I want to get attendance of a specific user or a specific date.How it will be possible to get it.Please guide if any have the key.

RahamSher avatar Oct 14 '17 21:10 RahamSher

I am sorry. You can not. You must read all attendance data and save it to your database. Then you can select data from your database as you want.

kamshory avatar Oct 15 '17 01:10 kamshory

@kamshory Thank you sir. Sir please guide me that how I differentiate check in check out of a user in my attendance.

RahamSher avatar Oct 15 '17 15:10 RahamSher

Unfortunately, ZK not provide the status (check in or check out). You should use your own algorithm to get the status by the attendance time. For this purpose, you need to save the attendance into database. For example: The first time attendance of a time frame considered as check in and the last time attendance of a time frame considered as check out.

kamshory avatar Oct 16 '17 02:10 kamshory

Hats off to @kamshory.Thank you sir...

RahamSher avatar Oct 16 '17 04:10 RahamSher

@RahamSher did you complete this task? Suggest me please. How can i implement this. I also need check in and checkout time from that maching/device.

rajucs avatar Sep 24 '19 12:09 rajucs

That is possible if one uses c# SDK of ZKTeco in their DLL this method exists & works fine i've tested that, but not sure how to implement that in PHP

[DispId(500)]
public virtual bool ReadTimeGLogData(int dwMachineNumber, string sTime, string eTime);

malikwaqasmustafa avatar Jun 27 '22 11:06 malikwaqasmustafa

That is possible if one uses c# SDK of ZKTeco in their DLL this method exists & works fine i've tested that, but not sure how to implement that in PHP

[DispId(500)]
public virtual bool ReadTimeGLogData(int dwMachineNumber, string sTime, string eTime);

what will be date format for string sTime and string eTime, can you pls give me a real working example of this two parameter?

hkpavel avatar Nov 25 '22 10:11 hkpavel