RFID圖書管理系統(tǒng)程序源代碼_第1頁
RFID圖書管理系統(tǒng)程序源代碼_第2頁
RFID圖書管理系統(tǒng)程序源代碼_第3頁
RFID圖書管理系統(tǒng)程序源代碼_第4頁
RFID圖書管理系統(tǒng)程序源代碼_第5頁
已閱讀5頁,還剩14頁未讀 繼續(xù)免費(fèi)閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)

文檔簡介

RFID圖書管理系統(tǒng)程序源代碼RFID圖書管理系統(tǒng)程序源代碼RFID圖書管理系統(tǒng)程序源代碼xxx公司RFID圖書管理系統(tǒng)程序源代碼文件編號(hào):文件日期:修訂次數(shù):第1.0次更改批準(zhǔn)審核制定方案設(shè)計(jì),管理制度登陸界面usingSystem;using;using;using;using;usingLabrary{publicpartialclassFormLogin:Form{publicFormLogin(){InitializeComponent();}}SetMenJin("PicIn");();?戶?ì管¨1理¤¨a=true;this.系|ì統(tǒng)a3初始o(jì)化?¥=true;this.應(yīng)?|用?模?ê式o=true;this.圖a書o¨|管¨1理¤¨a=true;this.退a辦?¨?卡?§=true;this.借¨¨閱=true;this.門禁=true;SetPurview();=false;=false;=false;?|用?模?ê式o=false;}else{this.用戶管理¨a=false;this.系統(tǒng)初始化?¥=false;this.讀書管理¨a=false;this.退辦卡?§=false;this.借閱=false;this.門禁=false;for(inti=0;i<i++){stringpurview=if(purview=="1"){this.圖書管理¨a=true;}elseif(purview=="2"){this.辦退卡?§=true;}elseif(purview=="3"){this.借閱=true;}elseif(purview=="4"){this.門禁=true;}}}}privatevoid用戶管理¨aToolStripMenuItem_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退a出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圖a書o¨|管¨1理¤¨aToolStripMenuItem_Click(objectsender,EventArgse){=true;=false;=false;=+"\\pic\\");}privatevoid退a辦?¨?卡?§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[]{"統(tǒng)a3計(jì)","","","","",+"本à"});}privatevoidtreeView1_NodeMouseClick(objectsender,TreeNodeMouseClickEventArgse){if=="全部書架¨1"){=0;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfo"));}if=="第一書架¨1"){=1;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='1'"));}if=="第二書架¨1"){=2;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='2'"));}if=="第三書架¨1"){=3;BindListView("selectRFID,BookType_ID,Name,Author,LendStatus,BookShelffromBookInfowhereBookShelf='3'"));}if=="第四書架¨1"){=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年¨oMM月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年¨oMM月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;}privatebo

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論