我如何确保用户不会在Winform应用程序上两次登录 [英] how can i make sure a user does not log in twice on a winform application

查看:71
本文介绍了我如何确保用户不会在Winform应用程序上两次登录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我正在为学生注册建立Windows窗体应用程序,学生可以用大头针进行计时,但是我需要一种方法来确保他们一天不计时两次.请<解决方案

请问我该怎么做,当他们进来时,您必须在记录ID,日期和时间以及方向(输入/输出)?

计时时,检查其先前的输入是OUT或不存在.计时时,检查其先前的输入为IN或不存在.


Hi,
i am building a windows forms application for a school register where the student can clock in with a pin, but i need a way of making sure they do not clock in twice in a day. Please how do i go about this, thanks

解决方案

When they clock in you must be recording an ID, Date and Time, and direction (IN / OUT)?

When clocking in, check their previous entry was OUT or does not exist. When Clocking out, check their previous entry was IN or does not exist.


这篇关于我如何确保用户不会在Winform应用程序上两次登录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆