📄 主界面.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form 主界面
Caption = "图书管理系统"
ClientHeight = 4845
ClientLeft = 165
ClientTop = 450
ClientWidth = 7110
LinkTopic = "Form1"
ScaleHeight = 4845
ScaleWidth = 7110
StartUpPosition = 1 '所有者中心
Begin VB.ComboBox Combo1
Height = 300
Left = 120
TabIndex = 1
Text = "借阅信息"
Top = 120
Width = 1335
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "主界面.frx":0000
Height = 4095
Left = 120
TabIndex = 0
Top = 600
Width = 6855
_ExtentX = 12091
_ExtentY = 7223
_Version = 393216
HeadLines = 1
RowHeight = 15
AllowDelete = -1 'True
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = 4560
Top = 120
Visible = 0 'False
Width = 2400
_ExtentX = 4233
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Menu BOOKCTR
Caption = "图书管理"
Begin VB.Menu ADDBOOK
Caption = "添加图书"
End
Begin VB.Menu DELBOOK
Caption = "删除图书"
End
End
Begin VB.Menu USERCTR
Caption = "用户管理"
Begin VB.Menu ADDUSER
Caption = "添加用户"
End
Begin VB.Menu DELUSER
Caption = "删除用户"
End
End
Begin VB.Menu LEND
Caption = "借阅管理"
Begin VB.Menu BORROWBOOK
Caption = "借书"
End
Begin VB.Menu RETURNBOOK
Caption = "还书"
End
Begin VB.Menu REBORROW
Caption = "续借"
End
End
Begin VB.Menu QUERY
Caption = "信息查询"
Begin VB.Menu BOOKINFO
Caption = "图书信息"
End
Begin VB.Menu USERINFO
Caption = "用户信息"
End
End
Begin VB.Menu BYCARD
Caption = "查询证件"
Begin VB.Menu CARDNOW
Caption = "当前记录"
End
Begin VB.Menu CARDHISTORY
Caption = "历史记录"
End
End
Begin VB.Menu BYBOOK
Caption = "查询图书"
Begin VB.Menu BOOKNOW
Caption = "当前记录"
End
Begin VB.Menu BOOKHISTORY
Caption = "历史记录"
End
End
Begin VB.Menu EXIT
Caption = "退出"
Begin VB.Menu RE_LOGIN
Caption = "重新登录"
End
Begin VB.Menu EXIT_SYSTEM
Caption = "退出系统"
End
End
End
Attribute VB_Name = "主界面"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub ADDBOOK_Click()
Load 添加图书
End Sub
Private Sub ADDUSER_Click()
Load 添加用户
End Sub
Private Sub BOOKHISTORY_Click()
Load 图书历史记录
End Sub
Private Sub BOOKINFO_Click()
Load 图书查询
End Sub
Private Sub BOOKNOW_Click()
Load 图书当前记录
End Sub
Private Sub BORROWBOOK_Click()
Load 借书
End Sub
Private Sub CARDHISTORY_Click()
Load 证件历史记录
End Sub
Private Sub CARDNOW_Click()
Load 证件当前记录
End Sub
Private Sub Combo1_Click()
Adodc1.RecordSource = Combo1.Text
Set DataGrid1.DataSource = Adodc1
Adodc1.Refresh
End Sub
Private Sub DELBOOK_Click()
Load 删除图书
End Sub
Private Sub DELUSER_Click()
Load 删除用户
End Sub
Private Sub EXIT_SYSTEM_Click()
End
End Sub
Private Sub Form_Load()
Me.Show
Combo1.AddItem ("图书信息")
Combo1.AddItem ("用户信息")
Combo1.AddItem ("借阅信息")
Combo1.AddItem ("历史记录")
mlink = "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;User ID=SA;Initial Catalog=MyLibrary;Data Source=YXC"
Adodc1.ConnectionString = mlink
Adodc1.CommandType = adCmdTable
Adodc1.RecordSource = "借阅信息"
Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub RE_LOGIN_Click()
Unload Me
Mycon.Close
Load 登录
End Sub
Private Sub REBORROW_Click()
Load 续借
End Sub
Private Sub RETURNBOOK_Click()
Load 还书
End Sub
Private Sub USERINFO_Click()
Load 证件查询
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -