版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
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 = ) (請把借閱卡放到桌面讀寫器上!); 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 = ) (請把借閱卡到讀寫器上); 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. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 股份制企業(yè)創(chuàng)立人合同書格式
- 建筑工程勞務(wù)分包合同
- 工程合同范本在線查閱
- 2024新版簡單食堂承包合同書范本
- 簡單股權(quán)轉(zhuǎn)讓協(xié)議書范本
- 建筑維修保養(yǎng)服務(wù)補充協(xié)議
- 2023年高考地理重點難點考點通練-服務(wù)業(yè)(原卷版)
- 1.1堅持改革開放(導(dǎo)學(xué)案) 2024-2025學(xué)年統(tǒng)編版道德與法治九年級上冊
- 個人投資合同協(xié)議樣本
- 生物中圖版自主訓(xùn)練:第一單元第二章第二節(jié)染色體結(jié)構(gòu)變異對性狀的影響
- xx學(xué)校未成年人性教育工作方案
- 2024-2030年組氨酸行業(yè)市場現(xiàn)狀供需分析及投資評估規(guī)劃分析研究報告
- 教育信息化教學(xué)資源建設(shè)規(guī)劃
- 上海市交大附中附屬嘉定德富中學(xué)2024-2025學(xué)年九年級上學(xué)期期中考數(shù)學(xué)卷
- 屠宰場食品安全管理制度
- 部編版(2024秋)語文一年級上冊 6 .影子課件
- 2024秋期國家開放大學(xué)??啤缎淌略V訟法學(xué)》一平臺在線形考(形考任務(wù)一至五)試題及答案
- 基于SICAS模型的區(qū)域農(nóng)產(chǎn)品品牌直播營銷策略研究
- 病例討論英文
- 2024秋期國家開放大學(xué)??啤兑簤号c氣壓傳動》一平臺在線形考(形考任務(wù)+實驗報告)試題及答案
- 【課件】植物體的結(jié)構(gòu)層次課件-2024-2025學(xué)年人教版生物七年級上冊
評論
0/150
提交評論