コード例 #1
0
ファイル: TimeInOut.cs プロジェクト: jeynerm/zsicam
        private void bgwTimeInOut_DoWork(object sender, DoWorkEventArgs e)
        {
            this.Invoke(new Function(delegate()
            {
                lblProcessStatus.Text = "synchronizing time(in/out) logs";
            }));

            dcTimeInOutLog_OleDb _dc = new dcTimeInOutLog_OleDb();

            _dc.TimeInOutSync();
        }
コード例 #2
0
ファイル: TimeInOut.cs プロジェクト: jeynerm/zsicam
        private void ProcessProfile(Profile info)
        {
            try
            {
                string _ClientRequestCode = string.Empty;
                // System.Diagnostics.Process p = new System.Diagnostics.Process();
                dcUser _dc = new dcUser();
                zsi.Framework.Security.Cryptography _crypt = new zsi.Framework.Security.Cryptography();
                pbProfileImage.Image = zsi.PhotoFingCapture.Util.ByteArrayToImage(info.FrontImg);

                this.Invoke(new Function(delegate()
                {
                    txtName.Text = "(" + info.EmployeeNo + ") - " + info.FullName;


                    dcTimeInOutLog_OleDb dc = new dcTimeInOutLog_OleDb();
                    DateTime TimeIn; DateTime TimeOut;
                    dc.TimeInOut(info, DateTime.Now, out TimeIn, out TimeOut);


                    if (TimeIn == new DateTime(1, 1, 1))
                    {
                        lblActualTimeIn.Text = "00:00:00";
                    }
                    else
                    {
                        lblActualTimeIn.Text = TimeIn.ToLongTimeString();
                    }


                    if (TimeOut == new DateTime(1, 1, 1))
                    {
                        lblActualTimeOut.Text = "00:00:00";
                    }
                    else
                    {
                        lblActualTimeOut.Text = TimeOut.ToLongTimeString();
                    }
                }));
            }
            catch (Exception ex) {
                throw ex;
            }
        }
コード例 #3
0
        private void ProcessProfile(Profile info)
        {
            try
            {
                string _ClientRequestCode = string.Empty;
               // System.Diagnostics.Process p = new System.Diagnostics.Process();
                dcUser _dc = new dcUser();
                zsi.Framework.Security.Cryptography _crypt = new zsi.Framework.Security.Cryptography();
                pbProfileImage.Image = zsi.PhotoFingCapture.Util.ByteArrayToImage(info.FrontImg);

                this.Invoke(new Function(delegate()
                {
                    txtName.Text = "(" + info.EmployeeNo + ") - " + info.FullName;

                   dcTimeInOutLog_OleDb dc = new dcTimeInOutLog_OleDb();
                   DateTime TimeIn; DateTime TimeOut;
                    dc.TimeInOut(info, DateTime.Now,out TimeIn,out TimeOut);

                    if (TimeIn == new DateTime(1, 1, 1))
                        lblActualTimeIn.Text = "00:00:00";
                    else
                        lblActualTimeIn.Text = TimeIn.ToLongTimeString();

                    if (TimeOut == new DateTime(1, 1, 1))
                        lblActualTimeOut.Text = "00:00:00";
                    else
                        lblActualTimeOut.Text = TimeOut.ToLongTimeString();

                }));

            }
            catch (Exception ex) {
                throw ex;
            }
        }
コード例 #4
0
        private void bgwTimeInOut_DoWork(object sender, DoWorkEventArgs e)
        {
            this.Invoke(new Function(delegate()
               {
                   lblProcessStatus.Text = "synchronizing time(in/out) logs";
               }));

            dcTimeInOutLog_OleDb _dc = new dcTimeInOutLog_OleDb();
            _dc.TimeInOutSync();
        }