RFID图书管理系统程序源代码_第1页
RFID图书管理系统程序源代码_第2页
RFID图书管理系统程序源代码_第3页
RFID图书管理系统程序源代码_第4页
RFID图书管理系统程序源代码_第5页
免费预览已结束,剩余11页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

RFID图书管理系统程序源代码RFID图书管理系统程序源代码RFID图书管理系统程序源代码RFID图书管理系统程序源代码编制仅供参考审核批准生效日期地址:电话:传真:邮编:登陆界面usingSystem;using;using;using;using;usingLabrary{publicpartialclassFormLogin:Form{publicFormLogin(){InitializeComponent();}}SetMenJin("PicIn");();®?户¡ì管¨¹理¤¨ª=true;this.系¦Ì统ª3初始º化¡¥=true;this.应®|用®模¡ê式º=true;this.图ª?书º¨¦管¨¹理¤¨ª=true;this.退ª?办㨬卡¡§=true;this.借¨¨阅?=true;this.门禁=true;SetPurview();=false;=false;=false;®|用®模¡ê式º=false;}else{this.用户管理¨ª=false;this.系统初始化¡¥=false;this.读书管理¨ª=false;this.退办卡¡§=false;this.借阅=false;this.门禁=false;for(inti=0;i<i++){stringpurview=if(purview=="1"){this.图书管理¨ª=true;}elseif(purview=="2"){this.办退卡¡§=true;}elseif(purview=="3"){this.借阅=true;}elseif(purview=="4"){this.门禁=true;}}}}privatevoid用户管理¨ªToolStripMenuItem_Click(objectsender,EventArgse){ful=new;();}privatevoid修改密码ToolStripMenuItem_Click(objectsender,EventArgse){fup=new,;();}privatevoidtsbtnBookType_Click(objectsender,EventArgse){FormBookTypeListfbtl=newFormBookTypeList();();}privatevoidtsbtnBookAdd_Click(objectsender,EventArgse){FormBookAddfba=newFormBookAdd();();}privatevoidtsbtnBookManage_Click(objectsender,EventArgse){FormBookInfoListfbil=newFormBookInfoList();();}privatevoidtsbtnBookStatistics_Click(objectsender,EventArgse){FormBookStatisticsfbs=newFormBookStatistics();();}privatevoid退ª出XToolStripMenuItem_Click(objectsender,EventArgse){();}privatevoidtsbtnCardAdd_Click(objectsender,EventArgse){FormCardInfofci=newFormCardInfo(1,newObjCardInfo());();}privatevoidtsbtnCardManage_Click(objectsender,EventArgse){FormCardListfcl=newFormCardList();();}privatevoidtsbtnAddTime_Click(objectsender,EventArgse){stringrfid=();if(rfid==""){("请把借阅卡放到桌面读写器上!");}else{if(rfid)){ObjCardInfooci=newObjCardInfo(rfid);FormCardInfofci=newFormCardInfo(5,oci);();}else{("没有此借阅卡信息");}}}privatevoidtsbtnCardDelete_Click(objectsender,EventArgse){stringrfid=();if(rfid==""){("请把借阅卡到读写器上");}else{if(rfid)){ObjCardInfooci=newObjCardInfo(rfid);intcount=();if(count==0){if("是否决定退卡!ê"

,"",=={();("退卡成功|!ê"

);}}else{+"还有一本"+()+"本书未归还不能退卡");}}else{("没有此借阅信息");}}}privatevoidtsbtnJie_Click(objectsender,EventArgse){FormBookJiefbj=newFormBookJie(1);();}privatevoidtsbtnHuan_Click(objectsender,EventArgse){FormBookHuanfbh=newFormBookHuan();();}privatevoid图ª?书º¨¦管¨¹理¤¨ªToolStripMenuItem_Click(objectsender,EventArgse){=true;=false;=false;=+"\\pic\\");}privatevoid退ª?办㨬卡¡§ToolStripMenuItem_Click(objectsender,EventArgse){=false;=true;=false;=+"\\pic\\");}privatevoid借¨¨阅?ToolStripMenuItem_Click(objectsender,EventArgse){=false;=false;=true;=+"\\pic\\");}privatevoid门禁ToolStripMenuItem_Click(objectsender,EventArgse){plit(',')[0];intheaderWidth=(headerText[i].Split(',')[1]);=headerName;=headerWidth;}DataTabledtb=for(inti=0;i<i++){ObjBookInfobookInfo=newObjBookInfo[i]["RFID"].ToString());ListViewItemitem=newListViewItem(newstring[]{,,,,});}ListViewItemitemCount=newListViewItem(newstring[]{"统ª3计"

,"","","","",+"本À"

});}privatevoidtreeView1_NodeMouseClick(objectsender,TreeNodeMouseClickEventArgse){if=="全部书架¨¹"){=0;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfo"));}if=="第一书架¨¹"){=1;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='1'"));}if=="第二书架¨¹"){=2;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='2'"));}if=="第三书架¨¹"){=3;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='3'"));}if=="第四书架¨¹"){=4;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='4'"));}}privatevoidtoolStripComboBox1_SelectedIndexChanged(objectsender,EventArgse){if==0){if==0){BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfo"));}if==1){BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereLendStatus='1'"));}if==2){BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereLendStatus='0'"));}}if>0){if==0){BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='{0}'",}if==1){BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='{0}'andLendStatus='1'",}if==2){BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='{0}'andLendStatus='0'",}}}}}借阅卡管理usingSystem;using;using;using;using;usingLabrary{publicpartialclassFormCardList:Form{publicFormCardList(){InitializeComponent();SetListView();}privatevoidSetListView(){List<ObjCardInfo>listCard=();for(inti=0;i<;i++){ObjCardInfooci=listCard[i];ListViewItemitem=newListViewItem;=oci;subitem1=new();=;subitem2=new();=;subitem3=new();="yyyy年¨ºMM月dd日¨");subitem4=new();=;subitem5=new();=subitem6=new();=subitem7=new();=}}privatevoidSetListView(List<ObjCardInfo>listCard){for(inti=0;i<;i++){ObjCardInfooci=listCard[i];ListViewItemitem=newListViewItem;=oci;subitem1=new();=;subitem2=new();=;subitem3=new();="yyyy年¨ºMM月dd日¨");subitem4=new();=;subitem5=new();=subitem6=new();=subitem7=new();=}}privatevoidtsbtnExit_Click(objectsender,EventArgse){();}privatevoidtsbtnInsert_Click(objectsender,EventArgse){FormCardInfofci=newFormCardInfo(1,newObjCardInfo());if()=={SetListView();IsEnabled(false);}}privatevoidIsEnabled(boolEnabled){oString());=;subitem1=new();=row["lendtime"].ToString();subitem2=new();=row["returntime"].ToString();}}privatevoidtsbtnExit_Click(objectsender,EventArgse){();}}}图书管理usingSystem;using;using;using;using;usingLabrary{publicpartialclassFormBookInfoList:Form{publicFormBookInfoList(){InitializeComponent();}privatevoidSetCboBookType(){stringsql="select*frombooktype";DataTabledt==dt;="Name";="ID";}privatevoidSetListView(){IsEnabled(false);List<ObjBookInfo>listBookInfo=for(inti=0;i<;i++){ObjBookInfoobi=listBookInfo[i];ListViewItemitem=newListViewItem();=;=obi;subLendStatus=new();=;subBookName=new();=;subPress=new();=;subPrice=new();=;subAddPerson=new();=subAddTime=new();=}}privatevoidtsbtnExit_Click(objectsender,EventArgse){();}privatevoidtscboBookType_DropDown(objectsender,EventArgse){SetCboBookType();}privatevoidtscboBookType_DropDownClosed(objectsender,EventArgse){SetListView();}privatevoidtsbtnInsert_Click(objectsender,EventArgse){FormBookAddfba=newFormBookAdd();if()=={}}privatevoidlistView1_SelectedIndexChanged(objectsender,EventArgse){if>0){IsEnabled(true);}else{IsEnabled(false);}}privatevoidIsEnabled(boolenabled){=enabled;=enabled;}privatevoidtsbtnUpdate_Click(objectsender,EventArgse){if>0){FormBookInfofbi=newFormBookInfo(3,asObjBookInfo);if()=={SetListView();}}}privatevoidlistView1_MouseDoubleClick(objectsender,MouseEventArgse){if>0){FormBookInfofbi=newFormBookInfo(4,asObjBookInfo);();}}privatevoidtsbtnBookRecord_Click(objectsender,EventArgse){if>0){FormBookRecordfbr=newFormBookRecordasObjBookInfo);();}}}}图书上架usingSystem;using;using;using;using;usingLabrary{publicpartialclassFormBookAdd:Form{List<string>listAllRfid=newList<string>();List<ObjBookInfo>listBookInfo=newList<ObjBookInfo>();publicFormBookAdd(){InitializeComponent();=0;}privateb

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论