Configure Attendance Status

The time and attendance refers to tracking and monitoring when employees start and stop working, and working hours (including late arrivals, early departures, time taken on breaks and absenteeism, etc.). You can set the manual or automatic time and attendance mode, or disable the attendance mode. You can also set check in, check out, break out, break in, overtime in, or overtime out to manually change the attendance status as needed.

Figure 1 Programming Flow of Configuring Attendance Status

  1. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/attendanceStatusModeCfg/capabilities?format=json to get the configuration capability of the attendance mode and know the supported attendance modes.

    The configuration capability is returned in the message JSON_Cap_AttendanceStatusModeCfg by lpOutBuffer.

  2. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/attendanceStatusModeCfg?format=json to get the default or configured attendance mode for reference.

    The attendance mode is returned in the message JSON_AttendanceStatusModeCfg by lpOutBuffer.

  3. Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/attendanceStatusModeCfg?format=json and set lpInBuffer to the message JSON_AttendanceStatusModeCfg to configure the attendance mode.
  4. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/attendanceStatusRuleCfg/capabilities?format=json to get the configuration capability of the attendance status and rule and know the supported attendance status and rules.

    The configuration capability of the attendance status and rule is returned in the message JSON_Cap_AttendanceStatusRuleCfg by lpOutBuffer.

  5. Optional: Call NET_DVR_STDXMLConfig to pass through the request URL: GET /ISAPI/AccessControl/attendanceStatusRuleCfg?attendanceStatus=&format=json to get the default or configured attendance status and rule for reference.

    The attendance status and rules are returned in the message JSON_AttendanceStatusRuleCfg by lpOutBuffer.

  6. Call NET_DVR_STDXMLConfig to pass through the request URL: PUT /ISAPI/AccessControl/attendanceStatusRuleCfg?attendanceStatus=&format=json and set lpInBuffer to the message JSON_AttendanceStatusRuleCfg to configure the attendance status and rule.

Call NET_DVR_Logout and NET_DVR_Cleanup to log out of the device and release the resources.