I have developed GYM Management software. I am facing a problem while intigrating ESSL-x990 attendance machine with my software.

Integration part code as follow

public zkemkeeper.CZKEMClass axCZKEM1 = new zkemkeeper.CZKEMClass();
#region  "Biometric machine connectivity"
    protected void btn_Connect_Click(object sender, EventArgs e)
    {
        int idwErrorCode = 0;

#region "Connect To Biometric Machine"
        bIsConnected = axCZKEM1.Connect_Net(txt_IPAddress.Text, Convert.ToInt32(txt_PortNo.Text));
        if (bIsConnected == true)
        {
            btn_Connect.Text = "DisConnect";
            lbl_divicestatus.Text = "Current State:Connected";
            iMachineNumber = 1;//In fact,when you are using the tcp/ip communication,this parameter will be ignored,that is any integer will all right.Here we use 1.
            MyCount = 1;
        }
        else
        {
            axCZKEM1.GetLastError(ref idwErrorCode);
            ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "Error", "alert('Unable to connect the device,ErrorCode='+" + idwErrorCode.ToString() + "');", true);
        }
        #endregion
}
#endregion

Related posts

Recent Viewed