简体   繁体   中英

Barcode Reader Service for windows

I'm developing a software in c# Windows Form, my software must control employees work hours, check-ins and check-outs, I figured i will save these in/outs in a table.Here is the trick, each employee has an unique bar code that is generated after his unique ID(Social security number, etc.) , this Bar code prints into an ID-CARD and then gets read by a bar code scanner and through the scanner the event of check-in or out must be handled.

I need to do this without using any type of windows form control, as in, the employees must not interact with the system itself but just the scanner. Can i make a windows service ta handles this automatically and saves it into the database?

My Database is an SQL database.

Without going into the design issue of actually keeping track of people, you can do this, I have done it with a warehouse inventory system.

Set up your users with their unique ids in the database, and print out barcode accordingly (lots of free apps for this). Now set your barcode to tab after each scan, and use an event listener to wait for the tab call.

Once you get that the rest is easy, check against the database, and store the information based on the barcode number, after it does all that it waits for the tab again. With a cheap scanner you might want to show a screen saying "Okay" or "Try Again"

(with the design issue, you could always make it that an employee can't leave unless that have already signed in, and vice versa, and the screen displaying "sign in, sign out" for if the double scan)

谢谢大家的时间,我最后再制作另一张表格作为安检方式,以确保签入/退出的人是身份证的所有者,这是关于条形码设计的问题。存在于任何生物识别设备上(我不能给别人指责,所以可以去检查我进出)这个问题最终成为了软件本身的另一个特征。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM