Set the time slot of a group.
Device number
Group number. The value ranges from 1 to -99.
Time slot index. Each group can contain three time slots.
Whether holiday settings are valid
Verification mode of a group. Meanings: 0(FP/PW/RF), 1(FP), 2(PIN), 3(PW), 4(RF), 5(FP&RF), 6(FP/PW), 7(FP/RF), 8(PW/RF), 9(PIN&FP), 10(FP&PW),11(PW&RF), 12(FP&PW&RF), 13(PIN&FP&PW), 14(FP&RF/PIN)
Return True if it is successful, or return False.
SSR_GetGroupTZ
//Create Standalone SDK class dynamicly. zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass(); int iMachineNumber = 1; axCZKEM1.Connect_Net("10.0.0.43", 4370); int idwErrorCode = 0; int iGroupNo = 1; int iValidHoliday =1; int iVerifyStyle = 1; int iTZ1 = 1; int iTZ2 = 0; int iTZ3 = 0; if (axCZKEM1.SSR_SetGroupTZ(iMachineNumber, iGroupNo, iTZ1, iTZ2, iTZ3, iValidHoliday, iVerifyStyle)) { axCZKEM1.RefreshData(iMachineNumber);//the data in the device should be refreshed MessageBox.Show("SSR_SetGroupTZ, GroupNo:" + iGroupNo.ToString() + " VerifyStyle:" + iVerifyStyle.ToString(), "Success"); } else { axCZKEM1.GetLastError(ref idwErrorCode); MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error"); }
'Create Standalone SDK class dynamicly. Dim axCZKEM1 As New zkemkeeper.CZKEM Dim iMachineNumber As Integer axCZKEM1.Connect_Net("10.0.0.43", 4370) Dim idwErrorCode As Integer Dim iGroupNo As Integer = 1 Dim iValidHoliday As Integer = 0 Dim iVerifyStyle As Integer = 0 Dim iTZ1 As Integer = 1 Dim iTZ2 As Integer = 0 Dim iTZ3 As Integer = 0 If axCZKEM1.SSR_SetGroupTZ(iMachineNumber, iGroupNo, iTZ1, iTZ2, iTZ3, iValidHoliday, iVerifyStyle) = True Then axCZKEM1.RefreshData(iMachineNumber) 'the data in the device should be refreshed MsgBox("SSR_SetGroupTZ, GroupNo:" + iGroupNo.ToString() + " VerifyStyle:" + iVerifyStyle.ToString(), MsgBoxStyle.Information, "Success") Else axCZKEM1.GetLastError(idwErrorCode) MsgBox("Operation failed,ErrorCode=" & idwErrorCode.ToString(), MsgBoxStyle.Exclamation, "Error") End If