欢迎来到天天文库
浏览记录
ID:9312329
大小:59.00 KB
页数:73页
时间:2018-04-27
《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;}}if3、(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.tb4、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.Win6、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();publicFormM7、ain(){InitializeComponent();this.rdr=newRFID_dll.Reader();//this.rfid=newRFID_dll.RFID(rdr);}privatevoidFormMain_Load(objectsender,EventArgse){Init();}//////初始化///privatevoidInit(){fiao.StartPosition=FormStartPosition.Manual;//多窗体在不同时间显示Scre
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
此文档下载收益归作者所有