版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、登陆界面using System;using ;using ;using ;using ;using Labrary public partial class FormLogin : Form public FormLogin() InitializeComponent(); SetMenJin(PicIn); (); ?户管理 = true; this.系统3初始化 = true; this.应|用模式 = true; this.图?书管理 = true; this.退?办卡 = true; this.借阅? = true; this.门禁 = true; SetPurview(); = f
2、alse; = false; = false; |用模式 = false; else this.用户管理 = false; this.系统初始化 = 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. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 厂区工厂合租合同范本
- 合伙办公司签合同范本
- 制冷机组转让合同范本
- 古玩收购出售合同范本
- 卡抵货款合同协议范本
- 古玩网络买卖合同范本
- 代持股合同解除协议书
- 前程照明借款合同范本
- 动车出租租赁合同范本
- 光伏公司个人合同范本
- 乡镇卫生院公共卫生服务考核制度
- 高校下水道管理制度
- 提高四级手术术前多学科讨论完成率PDCA案例
- 三副实习记录簿附页
- 《医疗质量安全核心制度要点》解读
- 视频制作拍摄服务方案投标文件(技术方案)
- T∕CECS 21-2024 超声法检测混凝土缺陷技术规程
- 学校食堂家长开放日活动上校长讲话:一起为孩子们的“舌尖安全”把好关
- 中西医结合治疗神经性疼痛的进展
- 园林高级工程师评审个人技术工作总结
- 《山西汾酒公司基于杜邦分析法的企业财务能力分析案例》15000字
评论
0/150
提交评论