示例#1
0
        void AxZKFPEngX1_OnEnroll(object sender, AxZKFPEngXControl.IZKFPEngXEvents_OnEnrollEvent e)
        {
            Selection  Selection  = this.treeView1.SelectedNode.Parent.Parent.Tag as Selection;
            BioKeyInfo BioKeyInfo = new BioKeyInfo();

            BioKeyInfo.RegisterID   = Guid.NewGuid().ToString();
            BioKeyInfo.RegisterName = this.treeView1.SelectedNode.Text;
            BioKeyInfo.Template     = e.aTemplate;
            BioKeyInfo.UserCode     = this.treeView1.SelectedNode.Name;
            BioKeyInfo.RalationID   = Selection.ID;

            if (CaijiKeyHelper.IsExist(BioKeyInfo.UserCode))
            {
                MessageBox.Show("指纹已经存在!");
                return;
            }

            Boolean Result = CaijiKeyHelper.SaveRegister(BioKeyInfo);

            if (Result)
            {
                MessageBox.Show("指纹登记成功");
            }
            else
            {
                MessageBox.Show("指纹登记失败");
            }
        }
示例#2
0
 /// <summary>
 /// 注册指纹
 /// </summary>
 /// <param name="BioKeyInfo"></param>
 /// <returns></returns>
 public static bool SaveRegister(BioKeyInfo BioKeyInfo)
 {
     return(bool.Parse(Agent.CallService("Yqun.BO.BusinessManager.dll", "KeyReginUser", new object[] { BioKeyInfo }).ToString()));
 }