SSR_SetUserTmpExt

Definition

Usage

UUpload the fingerprint templates of a user. This function is an enhancement of SSR_SetUserTmp.

Parameter

Device number

Deletion flag, that is, whether to overwrite the original fingerprint if the fingerprint with the specified index to be uploaded already exists in the device. 1: Overwrite

the original fingerprint. 0: Not overwrite the original fingerprint.

User ID

Index of the fingerprint. The value ranges from 0 to 9.

Fingerprint template data

Return Value

Return True if it is successful, or return False.

Related Function

SSR_SetUserTmp

 

Ejemplo

C#

        /// <summary>
/// Upload the fingerprint templates of a user. This function is an enhancement of SSR_SetUserTmp. 
/// </summary>
/// <param name="isDeleted"></param>
/// <param name="dwEnrollNumber">User ID </param>
/// <param name="dwFingerIndex">Index of the fingerprint.The value ranges from 0 to 9. </param>
/// <param name="IP"> Ip of device </param>
/// <param name="Port"> Port of Device </param>
/// <param name="MachineNumber"> Device Number </param>
private void SSR_SetUserTmpExt(int isDeleted, string dwEnrollNumber, int dwFingerIndex, string IP = "10.0.0.44", int Port = 4370, int MachineNumber = 1)
{
        // Create Standalone SDK class dynamicly.
	zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
	axCZKEM1.Connect_Net(IP, Port);
        int idwErrorCode = 0;
        byte TmpData = 0;
        if (axCZKEM1.SSR_SetUserTmpExt(MachineNumber, isDeleted, dwEnrollNumber, dwFingerIndex, TmpData))
	{
		MessageBox.Show("SSR_SetUserTmpStr! ", "Success");
	}
        else
	{
		axCZKEM1.GetLastError(ref idwErrorCode);
		MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error");
	}
}

VB

        ''' <summary>
''' Upload the fingerprint templates of a user. This function is an enhancement of SSR_SetUserTmp. 
''' </summary>
''' <param name="isDeleted"></param>
''' <param name="dwEnrollNumber">User ID </param>
''' <param name="dwFingerIndex">Index of the fingerprint.The value ranges from 0 to 9. </param>
''' <param name="IP"> Ip of device </param>
''' <param name="Port"> Port of Device </param>
''' <param name="MachineNumber"> Device Number </param>
Private Sub SSR_SetUserTmpExt(ByVal isDeleted As Integer, ByVal dwEnrollNumber As String, ByVal dwFingerIndex As Integer, Optional IP As String = "10.0.0.44", Optional Port As Integer = 4370, Optional MachineNumber As Integer = 1)
        'Create Standalone SDK class dynamicly.
        Dim axCZKEM1 As zkemkeeper.CZKEMClass = New zkemkeeper.CZKEMClass()
	axCZKEM1.Connect_Net(IP, Port)
        Dim idwErrorCode As Integer = 0
        Dim TmpData As Byte = 0
        If axCZKEM1.SSR_SetUserTmpExt(MachineNumber, isDeleted, dwEnrollNumber, dwFingerIndex, TmpData) Then
		MessageBox.Show("SSR_SetUserTmpStr! ", "Success")
        Else
		axCZKEM1.GetLastError(idwErrorCode)
		MessageBox.Show("Operation failed,ErrorCode=" + idwErrorCode.ToString(), "Error")
        End If
End Sub