(完整word版)RFID图书管理系统程序源代码.doc
上传人:小云****66 上传时间:2024-09-11 格式:DOC 页数:73 大小:59KB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

(完整word版)RFID图书管理系统程序源代码.doc

(完整word版)RFID图书管理系统程序源代码.doc

预览

免费试读已结束,剩余 63 页请下载文档后查看

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

登陆界面usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Text;usingSystem.Windows.Forms;namespaceLabrary{publicpartialclassFormLogin:Form{publicFormLogin(){InitializeComponent();}///<summary>///验¨¦证¡è控?件t///</summary>///<returns></returns>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(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.tbPWD.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{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.Windows.Forms;namespaceLabrary{publicpartialclassFormMain:Form{publicconstintWM_USER=0x0400;publicconstintWM_GETBUFFER_LOOP=WM_USER+2;privateRFID_dll.Readerrdr;privateRFID_dll.RFIDrfid;List<string>rfids=newList<string>();intdirectionFlag=0;//1进;出?FormInAndOutfiao=newFormInAndOut();publicFormMain(){InitializeComponent();this.rdr=newRFID_dll.Reader();//this.rfid=newRFID_dll.RFID(rdr);}privatevoidFormMain_Load(objectsender,E