版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領
文檔簡介
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.應|用模式 = 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. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經權益所有人同意不得將文件中的內容挪作商業(yè)或盈利用途。
- 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
- 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 電商平臺跨境物流解決方案提供商服務合同
- 洗發(fā)店MIS課程設計
- 2024年桔子罐頭項目可行性研究報告
- 幼兒園烘焙體驗課程設計
- 2024年雙面涂膠封邊機項目可行性研究報告
- 二次運輸合同
- 2024至2030年彈性紙項目投資價值分析報告
- 消防課程設計怎么做
- 服務勞務合同
- 建設工程施工合同示范文本修訂征求意見稿理解與適用
- 金匱要略知到智慧樹章節(jié)測試課后答案2024年秋浙江中醫(yī)藥大學
- 【MOOC】有機化學實驗-南京工業(yè)大學 中國大學慕課MOOC答案
- 02565+24273中醫(yī)藥學概論
- 第十一單元跨學科實踐活動10調查我國航天科技領域中新型材料、新型能源的應用教學設計-2024-2025學年九年級化學人教版下冊
- 【MOOC】市場調查與研究-南京郵電大學 中國大學慕課MOOC答案
- 2024年公安機關理論考試題庫500道
- 2024年中國主題公園競爭力評價報告-中國主題公園研究院
- 職業(yè)衛(wèi)生技術服務機構檢測人員考試真題題庫
- 中國法律史-第二次平時作業(yè)-國開-參考資料
- 公安內勤培訓課件
- 某醫(yī)院績效考核與分配方案(建議案)
評論
0/150
提交評論