vb.net日常关注系统 [英] vb.net daily attendence system

查看:69
本文介绍了vb.net日常关注系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嘿伙计们,这是我的第一个问题。我正在向我的朋友开发一个vb.net系统。他希望记录员工的日常工作,因为他每天都要支付他的工资。所以我的问题是如何标记每日的注意力,我正在开发这个东西,我不是一个vb.net专家。所以,如果你有任何想法,请帮助我们。谢谢大家

解决方案

这听起来很像一个家庭作业问题,而不是给我的朋友 - 这是我们得到的很多。所以......没有代码! :笑:



你需要的第一件事是某种存储介质:如果你知道如何使用它,可能是一个数据库。在此,您需要存储员工详细信息(姓名,职位,ID,加入日期,离开日期,联系人详细信息等)。您还需要存储ID和一对时间戳:InTime和OutTime(每个时间的完整DateTime)。

然后,您可以通过ID将员工详细信息和进入/退出时间进行交叉关联价值。

然后计算出他们工作了多长时间,你从每个OutTime中减去每个InTime来给你持续时间并将它们添加到你的朋友要付给他们的一周或者一个月中for。



它会变得更复杂:如果有人忘了退出怎么办?登入?但这些都是你需要与你的朋友理清的细节,因为毕竟这是他的钱!



试一试:这并不难(或者他们不会在课程的早期就把它交给学生了,这是一个很好的逻辑和实现练习,可以将它编写成代码。


欢迎使用CodeProject!



本网站最重要的规则之一是在提出问题之前进行一些搜索。请参阅 4。第段[ ^ ]。



开始此处 [ ^ ]。当你遇到困难时回来然后问详细的问题。


Hey guys, this is my first question. i'm develping a vb.net system to my friend. he want to mark daily attendence of his employees because he pays his employess daily. so my question is how to mark daily attendence, i'm developing this thing alone and i'm not a vb.net expert. so guys if you have any idea please help me guys. Thanks everyone

解决方案

This sounds a lot like a homework question rather than "to my friend" - it's one we get a lot. So...no code! :laugh:

The first thing you are going to need is a storage medium of some kind: probably a database if you know how to use one. In this, you need to store employee details (Name, Position, an ID, Join Date, Leave Date, Contact details, and anything else). You also need to store the ID and a pair of timestamps: InTime and OutTime (the full DateTime for each).
You can then cross-correlate the employee details and the entry / exit times via the ID value.
Then to work out how long they have worked, you subtract each InTime from each OutTime to give you the duration and add them up for the week or month your "friend" is going to pay them for.

It'll get more complicated: what if someone forgets to sign out? Sign in? But those are details that you need to sort out with "your friend" because after all it's his money!

Give it a try: it's not difficult (or they wouldn't give it to students early in the course) and it's a good exercise in logic as well as implementation to work it out into code.


Welcome on CodeProject!

One of the most important rules on this site is to do some search before you ask a question. Please, see 4. paragraph[^].

Start here[^]. Come back when you get stuck then ask detailed question.


这篇关于vb.net日常关注系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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