RFID图书管理系统程序源代码.doc

上传人:鲁** 文档编号:563404185 上传时间:2022-08-26 格式:DOC 页数:47 大小:229.50KB
返回 下载 相关 举报
RFID图书管理系统程序源代码.doc_第1页
第1页 / 共47页
RFID图书管理系统程序源代码.doc_第2页
第2页 / 共47页
RFID图书管理系统程序源代码.doc_第3页
第3页 / 共47页
RFID图书管理系统程序源代码.doc_第4页
第4页 / 共47页
RFID图书管理系统程序源代码.doc_第5页
第5页 / 共47页
点击查看更多>>
资源描述

《RFID图书管理系统程序源代码.doc》由会员分享,可在线阅读,更多相关《RFID图书管理系统程序源代码.doc(47页珍藏版)》请在金锄头文库上搜索。

1、精品文档登陆界面using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Labrary public partial class FormLogin : Form public FormLogin() InitializeComponent(); / / 验证控?件t / / private bool ValidCon

2、trol() if (this.tbID.Text = ) MessageBox.Show(请填写用户名!?); this.tbID.Focus(); return false; if (this.tbID.Text != admin) if (!UserManage.ObjUser.IsHasID(All.dbo, this.tbID.Text) MessageBox.Show(不存在此用户!?); this.tbID.Text = ; this.tbID.Focus(); return false; if (this.tbID.Text != admin) UserManage.ObjUs

3、er user= new UserManage.ObjUser(this.tbID.Text, All.dbo); if (user.PWD != this.tbPWD.Text) MessageBox.Show(密码错误!?); this.tbPWD.Text = ; this.tbPWD.Focus(); return false; else if (this.tbPWD.Text != 123456) MessageBox.Show(密码错误! ); this.tbPWD.Text = ; this.tbPWD.Focus(); return false; return true; pr

4、ivate void gbtnCancel_Click(object sender, EventArgs e) this.Close(); private void gbtnOK_Click(object sender, EventArgs e) /如?果?验证控?件t通过y if (ValidControl() if (this.tbID.Text != admin) All.userLogin = new UserManage.ObjUser(this.tbID.Text, All.dbo); else All.userLogin = new UserManage.ObjUser(All.

5、dbo); All.userLogin.ID = admin; All.userLogin.Name = 管理员; this.DialogResult = DialogResult.OK; this.Close(); 主界面using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;namespace Labrary public parti

6、al class FormMain : Form public const int WM_USER = 0x0400; public const int WM_GETBUFFER_LOOP = WM_USER + 2; private RFID_dll.Reader rdr; private RFID_dll.RFID rfid; List rfids = new List(); int directionFlag = 0;/1进;出? FormInAndOut fiao = new FormInAndOut(); public FormMain() InitializeComponent()

7、; this.rdr = new RFID_dll.Reader(); /this.rfid = new RFID_dll.RFID(rdr); private void FormMain_Load(object sender, EventArgs e) Init(); / / 初始化 / private void Init() fiao.StartPosition = FormStartPosition.Manual; /多窗体在不同时间显示 Screen screens = Screen.AllScreens; if (screens.Length = 2) List listScreen

8、 = new List(); foreach (Screen screen in Screen.AllScreens) if (screen.Primary = false) listScreen.Add(screen); fiao.Location = listScreen0.WorkingArea.Location; SetMenJin(PicIn); fiao.Show(); /toolStripStatusLabel2显示登陆用户名? toolStripStatusLabel2.Text = All.userLogin.Name; this.panel1.BackgroundImage

9、 = null; /菜单栏全部显示? this.用?户管理ToolStripMenuItem.Visible = true; this.系统3初?始?化CToolStripMenuItem.Visible = true; this.应|用?模式?ToolStripMenuItem.Visible = true; this.图?书管理ToolStripMenuItem.Visible = true; this.退?办卡ToolStripMenuItem.Visible = true; this.借阅?ToolStripMenuItem.Visible = true; this.门?禁?ToolStripMenuItem.Visible = true; SetPurview(); this.toolStrip1.Visible = false; this.toolStrip2.Visible = false;

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 中学教育 > 其它中学文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号