Ejemplo n.º 1
0
    public int FpVerifyUser(string aUserID)
    {
        _TG.OcxClassID = VERIFY_CLSID;
        int result = _TG.FPUserVerify(aUserID);

        if (result != SUCCESSED && this.blDefaultAlert)
        {
            ErrMsgDlg();
        }
        return(result);
    }
Ejemplo n.º 2
0
    protected void btnFPUserVerify_Click(object sender, EventArgs e)
    {
        GetXParam();
        int    intIndex      = this.cboProductType.SelectedIndex + 1;
        string strDeviceType = _IniFile.IniReadValue(TRUSTLINK_INI_DEVICE_TYPE, TRUSTLINK_INI_SET_DEVICE_TYPE + intIndex.ToString());
        string strOcxClassID = _IniFile.IniReadValue(TRUSTLINK_INI_DEVICE_TYPE, TRUSTLINK_INI_VERIFY + intIndex.ToString());
        string strOcxName    = _IniFile.IniReadValue(TRUSTLINK_INI_DEVICE_TYPE, TRUSTLINK_INI_OCXNAME + intIndex.ToString());

        _TG.DeviceType = strDeviceType;
        _TG.OcxClassID = strOcxClassID;
        _TG.OcxName    = strOcxName;

        if (_TG.FPUserVerify(this.txtVerifyUser.Text.Trim()) != SUCCESSED)
        {
            ErrMsgDlg(_TG);
        }
    }