




下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 述职述廉述法报告范文
- 脱硫设备在脱硫中的重要性- 之液体分布器
- 新发展格局下安徽省“专精特新”中小企业发展研究
- 学习笔记历史(部编版)选择性必修三专项题库练习第14课 文化传承的多种载体及其发展含答案或解析
- 九师联盟2025届高三下学期2月开学考试政治+答案
- 2025年全国中小学教师资格考试结构化面试各地真题库汇编及答案(共100题)
- 高中语文作文留一片净土
- 分时度假 合同标准文本
- 养老床位售卖合同标准文本
- 全职合同范例
- 房屋租赁合同 (三)
- 数学-山东省青岛市2025年高三年级第一次适应性检测(青岛一模)试题和答案
- 2025年石家庄市高三数学教学质量检测卷(一)附答案解析
- 8.4 同一直线上二力的合成 (课件)2024-2025学年人教版八年级物理下册
- 统计法律知识培训课件
- 活动三《垃圾“流浪”记》(教学设计)-2023-2024学年三年级下册综合实践活动沪科黔科版
- 2024-2025学年上海六年级语文上学期期末复习分类汇编:现代文阅读之说明文15篇(热点预测)
- 第16课《有为有不为》公开课一等奖创新教学设计
- 2025年南京科技职业学院高职单招职业技能测试近5年常考版参考题库含答案解析
- 互联网金融 个人网络消费信贷 贷后催收风控指引
- JBT 7041.3-2023 液压泵 第3部分:轴向柱塞泵 (正式版)
评论
0/150
提交评论