




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、登陸界面using System;using ;using ;using ;using ;using Labrary public partial class FormLogin : Form public FormLogin() InitializeComponent(); SetMenJin(PicIn); (); ?戶管理 = true; this.系統(tǒng)3初始化 = true; this.應(yīng)|用模式 = true; this.圖?書管理 = true; this.退?辦卡 = true; this.借閱? = true; this.門禁 = true; SetPurview(); = f
2、alse; = false; = false; |用模式 = false; else this.用戶管理 = false; this.系統(tǒng)初始化 = false; this.讀書管理 = false; this.退辦卡 = false; this.借閱 = false; this.門禁 = false; for (int i = 0; i i+) string purview = if (purview = 1) this.圖書管理 = true; else if (purview = 2) this.辦退卡 = true; else if (purview = 3) this.借閱 = tr
3、ue; else if (purview = 4) this.門禁 = true; private void 用戶管理ToolStripMenuItem_Click(object sender, EventArgs e) ful = new ; (); private void 修改密碼ToolStripMenuItem_Click(object sender, EventArgs e) fup = new , ; (); private void tsbtnBookType_Click(object sender, EventArgs e) FormBookTypeList fbtl = n
4、ew FormBookTypeList(); (); private void tsbtnBookAdd_Click(object sender, EventArgs e) FormBookAdd fba = new FormBookAdd(); (); private void tsbtnBookManage_Click(object sender, EventArgs e) FormBookInfoList fbil = new FormBookInfoList(); (); private void tsbtnBookStatistics_Click(object sender, Eve
5、ntArgs e) FormBookStatistics fbs = new FormBookStatistics(); (); private void 退出XToolStripMenuItem_Click(object sender, EventArgs e) (); private void tsbtnCardAdd_Click(object sender, EventArgs e) FormCardInfo fci = new FormCardInfo(1, new ObjCardInfo(); (); private void tsbtnCardManage_Click(object
6、 sender, EventArgs e) FormCardList fcl = new FormCardList(); (); private void tsbtnAddTime_Click(object sender, EventArgs e) string rfid = (); if (rfid = ) (請(qǐng)把借閱卡放到桌面讀寫器上!); else if (rfid) ObjCardInfo oci = new ObjCardInfo(rfid); FormCardInfo fci = new FormCardInfo(5, oci); (); else (沒有此借閱卡信息); priv
7、ate void tsbtnCardDelete_Click(object sender, EventArgs e) string rfid = (); if (rfid = ) (請(qǐng)把借閱卡到讀寫器上); else if (rfid) ObjCardInfo oci = new ObjCardInfo(rfid); int count = (); if (count = 0) if (是否決定退卡!, , = (); (退卡成功|!); else + 還有一本 + () + 本書未歸還不能退卡); else (沒有此借閱信息); private void tsbtnJie_Click(obj
8、ect sender, EventArgs e) FormBookJie fbj = new FormBookJie(1); (); private void tsbtnHuan_Click(object sender, EventArgs e) FormBookHuan fbh = new FormBookHuan(); (); private void 圖?書管理ToolStripMenuItem_Click(object sender, EventArgs e) = true; = false; = false; = + pic); private void 退?辦卡ToolStripM
9、enuItem_Click(object sender, EventArgs e) = false; = true; = false; = + pic); private void 借閱?ToolStripMenuItem_Click(object sender, EventArgs e) = false; = false; = true; = + pic); private void 門禁ToolStripMenuItem_Click(object sender, EventArgs e) plit(,)0; int headerWidth = 32(headerTexti.Split(,)
10、1); = headerName; = headerWidth; DataTable dtb = for (int i = 0; i 0) if = 0) BindListView(select RFID,BookType_ID,Name,Author,LendStatus,BookShelf from BookInfo where BookShelf=0, if = 1) BindListView(select RFID,BookType_ID,Name,Author,LendStatus,BookShelf from BookInfo where BookShelf=0 and LendS
11、tatus=1, if = 2) BindListView(select RFID,BookType_ID,Name,Author,LendStatus,BookShelf from BookInfo where BookShelf=0 and LendStatus=0, 借閱卡管理using System;using ;using ;using ;using ;using Labrary public partial class FormCardList : Form public FormCardList() InitializeComponent(); SetListView(); pr
12、ivate void SetListView() List listCard = (); for (int i = 0; i ; i+) ObjCardInfo oci = listCardi; ListViewItem item = new ListViewItem; = oci; subitem1 = new (); = ; subitem2 = new (); = ; subitem3 = new (); = yyyy年MM月dd日); subitem4 = new (); = ; subitem5 = new (); = subitem6 = new (); = subitem7 =
13、new (); = private void SetListView(List listCard) for (int i = 0; i ; i+) ObjCardInfo oci = listCardi; ListViewItem item = new ListViewItem; = oci; subitem1 = new (); = ; subitem2 = new (); = ; subitem3 = new (); = yyyy年MM月dd日); subitem4 = new (); = ; subitem5 = new (); = subitem6 = new (); = subite
14、m7 = new (); = private void tsbtnExit_Click(object sender, EventArgs e) (); private void tsbtnInsert_Click(object sender, EventArgs e) FormCardInfo fci = new FormCardInfo(1, new ObjCardInfo(); if () = SetListView(); IsEnabled(false); private void IsEnabled(bool Enabled) oString(); = ; subitem1 = new
15、 (); = rowlendtime.ToString(); subitem2 = new (); = rowreturntime.ToString(); private void tsbtnExit_Click(object sender, EventArgs e) (); 圖書管理using System;using ;using ;using ;using ;using Labrary public partial class FormBookInfoList : Form public FormBookInfoList() InitializeComponent(); private
16、void SetCboBookType() string sql = select * from booktype; DataTable dt = = dt; = Name; = ID; private void SetListView() IsEnabled(false); List listBookInfo = 32 for (int i = 0; i 0) IsEnabled(true); else IsEnabled(false); private void IsEnabled(bool enabled) = enabled; = enabled; private void tsbtn
17、Update_Click(object sender, EventArgs e) if 0) FormBookInfo fbi = new FormBookInfo(3, as ObjBookInfo); if () = SetListView(); private void listView1_MouseDoubleClick(object sender, MouseEventArgs e) if 0) FormBookInfo fbi = new FormBookInfo(4, as ObjBookInfo); (); private void tsbtnBookRecord_Click(
18、object sender, EventArgs e) if 0) FormBookRecord fbr = new FormBookRecord as ObjBookInfo); (); 圖書上架using System;using ;using ;using ;using ;using Labrary public partial class FormBookAdd : Form List listAllRfid = new List(); List listBookInfo = new List(); public FormBookAdd() InitializeComponent(); = 0; privat
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 城管洪災(zāi)搶險(xiǎn)方案(3篇)
- 內(nèi)部審計(jì)面試題及答案
- 現(xiàn)代車輛收售方案
- 甲狀腺手術(shù)并發(fā)癥
- 場(chǎng)監(jiān)督管理局建設(shè)項(xiàng)目施工許可合同示范文本
- 期權(quán)產(chǎn)品面試題及答案
- 綏化中考試題及答案
- 北方小區(qū)綠化改造方案
- 銷售內(nèi)勤考試題及答案
- 票務(wù)崗位面試題及答案
- 2025至2030中國(guó)電壓暫降治理行業(yè)產(chǎn)業(yè)運(yùn)行態(tài)勢(shì)及投資規(guī)劃深度研究報(bào)告
- 遼寧省2024年7月普通高中學(xué)業(yè)水平合格性考試化學(xué)試卷(含答案)
- 煤炭造價(jià)知識(shí)培訓(xùn)
- 2025屆遼寧省大連市高新區(qū)英語(yǔ)七年級(jí)第二學(xué)期期末學(xué)業(yè)質(zhì)量監(jiān)測(cè)模擬試題含答案
- 腫瘤全程康復(fù)管理制度
- 2025至2030中國(guó)護(hù)眼燈行業(yè)發(fā)展趨勢(shì)預(yù)判及市場(chǎng)前景預(yù)測(cè)報(bào)告
- 2025年人教版小學(xué)一年級(jí)下冊(cè)數(shù)學(xué)期末易錯(cuò)題測(cè)試試題(含答案和解析)
- 一書一簽收發(fā)管理制度
- 對(duì)患者的健康教育制度
- 2025年酒店管理專業(yè)基礎(chǔ)知識(shí)考試試題及答案
- 三級(jí)醫(yī)院評(píng)審標(biāo)準(zhǔn)感染防控部分解讀(25VS22版)
評(píng)論
0/150
提交評(píng)論