rfid图书管理系统程序源代码

rfid图书管理系统程序源代码

ID:9312329

大小:59.00 KB

页数:73页

时间:2018-04-27

rfid图书管理系统程序源代码_第1页
rfid图书管理系统程序源代码_第2页
rfid图书管理系统程序源代码_第3页
rfid图书管理系统程序源代码_第4页
rfid图书管理系统程序源代码_第5页
资源描述:

《rfid图书管理系统程序源代码》由会员上传分享,免费在线阅读,更多相关内容在学术论文-天天文库

1、登陆界面usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceLabrary{publicpartialclassFormLogin:Form{publicFormLogin(){InitializeComponent();}///

///验¨¦证¡è控?件t//////

2、turns>privateboolValidControl(){if(this.tbID.Text==""){MessageBox.Show("请填写用户名!ê?");this.tbID.Focus();returnfalse;}if(this.tbID.Text!="admin"){if(!UserManage.ObjUser.IsHasID(All.dbo,this.tbID.Text)){MessageBox.Show("不存在此用户!ê?");this.tbID.Text="";this.tbID.Focus();returnfalse;}}if

3、(this.tbID.Text!="admin"){UserManage.ObjUseruser=newUserManage.ObjUser(this.tbID.Text,All.dbo);if(user.PWD!=this.tbPWD.Text){MessageBox.Show("密码错误!ê?");this.tbPWD.Text="";this.tbPWD.Focus();returnfalse;}}else{if(this.tbPWD.Text!="123456"){MessageBox.Show("密码错误!");this.tbPWD.Text="";this.tb

4、PWD.Focus();returnfalse;}}returntrue;}privatevoidgbtnCancel_Click(objectsender,EventArgse){this.Close();}privatevoidgbtnOK_Click(objectsender,EventArgse){//如¨?果?验¨¦证¡è控?件t通ª¡§过yif(ValidControl()){if(this.tbID.Text!="admin"){All.userLogin=newUserManage.ObjUser(this.tbID.Text,All.dbo);}else{

5、All.userLogin=newUserManage.ObjUser(All.dbo);All.userLogin.ID="admin";All.userLogin.Name="管理员";}this.DialogResult=DialogResult.OK;this.Close();}}}}主界面usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Win

6、dows.Forms;namespaceLabrary{publicpartialclassFormMain:Form{publicconstintWM_USER=0x0400;publicconstintWM_GETBUFFER_LOOP=WM_USER+2;privateRFID_dll.Readerrdr;privateRFID_dll.RFIDrfid;Listrfids=newList();intdirectionFlag=0;//1进;出?FormInAndOutfiao=newFormInAndOut();publicFormM

7、ain(){InitializeComponent();this.rdr=newRFID_dll.Reader();//this.rfid=newRFID_dll.RFID(rdr);}privatevoidFormMain_Load(objectsender,EventArgse){Init();}///

///初始化///privatevoidInit(){fiao.StartPosition=FormStartPosition.Manual;//多窗体在不同时间显示Scre

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。