




下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
登陸界面usingSystem;using;using;using;using;usingLabrary(publicpartialclassFormLogin:Form(publicFormLogin()(InitializeComponent();}}SetMenJin('PicIn");();戶管,?理O'.true;this.系|統(tǒng)a3初始o(jì)化¥=true;this.應(yīng)|用模苴o=true;this.圖井;o.,管"HO"true;this.退協(xié)?卡§=rue;this.借一閱=true;this.門禁=true;SetPurview();=false;=false;=false;|用模苴o=false;)else{this.用戶管理"false;this.系統(tǒng)初始化¥=false;this.讀書管理"false;this.退辦卡§false;this.借I閱=false;this.門禁=false;for(inti=0;i<i++)
stringpurview=if(purview=="1")stringpurview=(this.圖書管理"甘ue;)elseif(purview=="2")(this.辦退卡§=rue;)elseif(purview=="3")(this.借IMl=true;)elseif(purview=="4")(this.門禁=true;))))privatevoid用戶管理一aToolStripMenuItem_Click(bjectsender,EventArgse)(ful=new;();privatevoid修改密碼ToolStripMenuItem_Click(objectsender,EventArgse)(fup=new,;();}privatevoidtsbtnBookType_Click(Dbjectsender,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=newFormCardLis<);();}privatevoidtsbtnAddTime_Click(objectsender,EventArgse)stringrfid=();if(rfid=="")(("請把借閱卡放到桌面讀寫器上!");)else(if(rfid))(ObjCardInfooci=newObjCardlnfo(rfid);FormCardlnfofci=newFormCardInfo(5,oci);();)else(("沒有此借閱卡信息");)))privatevoidtsbtnCardDelete_Click(objectsender,EventArgse)(stringrfid=();("請把借閱卡到讀寫器上");)else(if(rfid))(ObjCardInfooci=newObjCardlnfo(rfid);intcount=();if(count==0)(if("是否決定退卡!e,川”,==(();("退卡成功|!e);))else(+“還有一本"+()+"本書未歸還不能退卡");))else("沒有此借閱信息");privatevoidtsbtnJie_ClickQbjectsender,EventArgse)(FormBookJiefbj=newFormBookJie(1);();)privatevoidtsbtnHuan_Click(objectsender,EventArgse)(FormBookHuanfbh=newFormBookHuan();();)privatevoid圖a書。??管??理aToolStripMenuItem_Click(jectsender,EventArgse)(=true;=false;=false;+"\\pic\\");privatevoid退a辦,卡§ToolStripMenuItem_ClickObjectsender,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ì)","","","","",+"本d1);}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_SelectedIndexChanged0bjectsender,EventArgse)(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年一oM皖dd曰");subitem4=new();=;subitem5=new();=subitem6=new();=subitem7=new();=))privatevoidSetListView(Lis1<ObjCardInfo>listCard){for(inti=0;i<;i++)ObjCardInfooci=listCard[i];ListViewItemitem=newListViewItem;=oci;subitem1=new();=;subitem2=new();=;subitem3=new();="yyyy年一oM皖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?bjectsender,EventArgse)(();)privatevoidtscboBookType_DropDown(objectsender,EventArgse)(SetCboBookType();)privatevoidtscboBookType_DropDownClosed(objectsender,EventArgse)(SetListView();)privatevoidtsbtnInsert_Click(objectsender,EventArgse)(FormBookAddfba=newFormBookAdd();if()==(privatevoidlistView1_SelectedIndexChanged0bjectsender,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_ClickQbjectsender,EventArgse)(if>0)(FormBookRecordfbr=newFormBookRecordasObjBookInfo);();)圖書上架usingSystem;using;using;using;using;usingLabrary(publicpartialcl
溫馨提示
- 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)僅提供信息存儲空間,僅對用戶上傳內(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 農(nóng)村土地流轉(zhuǎn)風(fēng)險(xiǎn)評估與保障協(xié)議
- 無人駕駛技術(shù)投資協(xié)議
- 汽車租賃長租合同
- 公司股份改制方案設(shè)計(jì)報(bào)告
- 農(nóng)村綠化景觀改造施工協(xié)議
- 水務(wù)工程聯(lián)合運(yùn)營合作協(xié)議
- 小英雄雨來成長征文
- 國際貿(mào)易市場走勢預(yù)測分析表
- 迪士尼動(dòng)畫海洋奇緣觀后感
- 高考數(shù)學(xué)專題06四邊形的綜合問題測試題
- 品質(zhì)基礎(chǔ)及品質(zhì)意識培訓(xùn)資料
- 《金融科技學(xué)》教案全套及習(xí)題答案(李建軍版)
- 輸液泵操作評分標(biāo)準(zhǔn)
- 蘇州大學(xué)課件模板(經(jīng)典)
- 水電清包工合同水電清包工合同
- 酒店財(cái)務(wù)管理PPT完整全套教學(xué)課件
- 小學(xué)綜合實(shí)踐活動(dòng)-《制作環(huán)保提示牌》教學(xué)課件設(shè)計(jì)
- 《公共倫理學(xué)》課程教學(xué)大綱
- “四議兩公開”模板范文(精選6篇)
- 四川省建筑保溫節(jié)能工程材料、構(gòu)件及設(shè)備檢測服務(wù)收費(fèi)項(xiàng)目和標(biāo)準(zhǔn)-川發(fā)改價(jià)格【2012】369號
- 清遠(yuǎn)市海綿城市建設(shè)管控指標(biāo)分類指引稿
評論
0/150
提交評論