如何在Asp.net上的计算机上获取日期时间 [英] How to get datetime on computer Lock in Asp.net

查看:83
本文介绍了如何在Asp.net上的计算机上获取日期时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在c#中使用Window form Application工作。我正在制作考勤系统。所以我要求在数据库中添加系统On和off时间的条目。

我的问题是我需要代码或任何想法,当用户锁定系统时如何保存数据库中的条目。

如果有人有任何想法或任何链接,请帮助我。

Hello every one,

I am working in Window form Application in c#. I am making time attendance system. So I have a requirement to add entry of system On and off time in database.
My problem is that i need the code or any idea that how can i save the entry in database when user lock the system.
Please help me if anyone have any idea or any link.

推荐答案

我没有时间为你搜索例子但是这个界面似乎是你需要的。



ISensLogon接口 [ ^ ]
I don't have time to search for examples for you but this interface seems to be what you need for your requirement.

ISensLogon interface[^]


你好navjot,

我认为你使用windows服务。你可以创建一个Windows服务项目,它作为服务运行并负责登录和注销时间。
Hi navjot,
I think you make use of windows services.You can create a project of windows service, which runs as a service and take care of login and logout timings.


这篇关于如何在Asp.net上的计算机上获取日期时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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