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

下載本文檔

版權(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)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

最新文檔

評論

0/150

提交評論