コード例 #1
0
 public frmScanFinger(Object sender,FingersBiometrics Data,int FingerPosition)
 {
     InitializeComponent();
     this.FingerPosition = FingerPosition;
     this.Data = Data;
     this.Control = (Control)sender;
     DeleteData();
     this.FormClosing +=new FormClosingEventHandler(delegate{CloseForm();});
     this.SetControls(Picture, StatusText, Prompt, StatusLine);
     this.CloseButton.Click += new EventHandler(delegate { this.Close(); });
 }
コード例 #2
0
ファイル: frmScanFinger.cs プロジェクト: jeynerm/zsicam
 public frmScanFinger(Object sender, FingersBiometrics Data, int FingerPosition)
 {
     InitializeComponent();
     this.FingerPosition = FingerPosition;
     this.Data           = Data;
     this.Control        = (Control)sender;
     DeleteData();
     this.FormClosing += new FormClosingEventHandler(delegate { CloseForm(); });
     this.SetControls(Picture, StatusText, Prompt, StatusLine);
     this.CloseButton.Click += new EventHandler(delegate { this.Close(); });
 }
コード例 #3
0
        public void UpdateEmployeeMatches(int Empl_Id_No, FingersBiometrics fbInfo)
        {
            OracleConnection conn = new OracleConnection(ConStr);
            List<Employee> list = new List<Employee>();
            for (int FingerNo = 0; FingerNo < FingersBiometrics.MaxFingers; FingerNo++)
            {
                for (int x = 0; x < FingersBiometrics.MaxSamples; x++)
                {
                    if (fbInfo.Samples[FingerNo, x] != null)
                    {
                        GetEmployeeMatches(list, fbInfo.Samples[FingerNo, x], FingerNo);
                    }
                }

                foreach (Employee info in list)
                {

                    OracleCommand command = new OracleCommand("EmployeeMatches_update", conn);
                    command.CommandType = CommandType.StoredProcedure;
                    var _params = command.Parameters;
                    conn.Open();
                    SetParameterValue(_params, "p_empl_id_no", Empl_Id_No, OracleDbType.Int32);
                    SetParameterValue(_params, "p_match_id_no", info.Empl_Id_No, OracleDbType.Int32);
                    SetParameterValue(_params, Util.GetFingerDesc(FingerNo), "Y", OracleDbType.Varchar2);
                    command.ExecuteNonQuery();
                    conn.Close();
                }
            }
        }
コード例 #4
0
ファイル: frmMain.cs プロジェクト: BGCX262/zsicam-svn-to-git
 private int CountRegisteredFingers(FingersBiometrics fb)
 {
     int _result=0;
     foreach (DPFP.Template item in fb.Templates)
     {
         if (item != null) _result += 1;
     }
     return _result;
 }