员工每天可以点击一次timein和timeout按钮。 [英] employees to be able to click on timein and timeout buttons once a day.

查看:136
本文介绍了员工每天可以点击一次timein和timeout按钮。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建emp_attendance寄存器。在我的表单中有两个命令按钮Time-in和Time-out。我希望员工能够每天点击一次timein和超时按钮。

是否可能......如果是,那么如何。

解决方案

是,在保存表中的值之前,检查该员工是否已具有该特定日期的入住时间或超时值?当他点击时间检查当天的值时间,如果超时检查当天数据库中的超时值。您可以验证您的表格吗?

如果您需要更多帮助,请告诉我们!


是的,它是。



如果员工已经注册,您需要先检查。



  IF   EXISTS  SELECT  Emp_ID  FROM 表1 其中 DateTimeIn =  @ date 







如需了解更多信息,请参阅: EXISTS(Transact-SQL) [ ^ ]


I am creating emp_attendance register. In my form two command button Time-in and Time-out . I want employees to be able to click on timein and timeout buttons once a day.
Is it possible ... if yes then how.

解决方案

Yes, before saving the value in table, check if the employee already have Time-In or Time-Out Value for that particular day? When he click on time in check for time in value for same day and if Time-out check for timeout value in database for the day. Thus you can validate your form?
If you need more help, let me know!


Yes, it is.

You need to check first if employee has been registered yet.

IF EXISTS(SELECT Emp_ID FROM Table1 Where DateTimeIn = @date)




For further information, please see: EXISTS (Transact-SQL)[^]


这篇关于员工每天可以点击一次timein和timeout按钮。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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