📄 教材出库查询.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 教材出库查询
BorderStyle = 3 'Fixed Dialog
Caption = "学生教材出库查询"
ClientHeight = 7650
ClientLeft = 720
ClientTop = 1005
ClientWidth = 9495
Icon = "教材出库查询.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7650
ScaleWidth = 9495
ShowInTaskbar = 0 'False
StartUpPosition = 2 '屏幕中心
Begin VB.Frame Frame1
Height = 7515
Left = 60
TabIndex = 0
Top = 60
Width = 9375
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 2520
Top = 6960
Visible = 0 'False
Width = 1815
_ExtentX = 3201
_ExtentY = 873
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=学生教材管理系统.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=学生教材管理系统.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from 教材出库表"
Caption = "Adodc1"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.CommandButton Command4
Caption = "全部信息"
Height = 450
Left = 480
TabIndex = 5
Top = 6900
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "返回"
Height = 450
Left = 7620
TabIndex = 4
Top = 6900
Width = 1335
End
Begin VB.CommandButton Command2
Caption = "打印"
Height = 450
Left = 6180
TabIndex = 3
Top = 6900
Width = 1335
End
Begin VB.CommandButton Command1
Caption = "查询..."
Height = 450
Left = 4740
TabIndex = 2
Top = 6900
Width = 1335
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "教材出库查询.frx":08CA
Height = 6435
Left = 0
TabIndex = 1
Top = 120
Width = 9195
_ExtentX = 16219
_ExtentY = 11351
_Version = 393216
HeadLines = 1
RowHeight = 15
FormatLocked = -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 = 10
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 = "xi"
Caption = "系别"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column02
DataField = "bj"
Caption = "班级"
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column03
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 Column04
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 Column05
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 Column06
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 Column07
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 Column08
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 Column09
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
ColumnWidth = 2085.166
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 2085.166
EndProperty
BeginProperty Column03
ColumnWidth = 1275.024
EndProperty
BeginProperty Column04
ColumnWidth = 734.74
EndProperty
BeginProperty Column05
ColumnWidth = 1275.024
EndProperty
BeginProperty Column06
ColumnWidth = 2085.166
EndProperty
BeginProperty Column07
ColumnWidth = 1365.165
EndProperty
BeginProperty Column08
ColumnWidth = 1365.165
EndProperty
BeginProperty Column09
ColumnWidth = 1365.165
EndProperty
EndProperty
End
Begin VB.Line Line1
X1 = 0
X2 = 9360
Y1 = 6720
Y2 = 6720
End
End
End
Attribute VB_Name = "教材出库查询"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click() '控制“教材出库查询条件”中按“课程类别”单选钮是否显示
'Command2.Enabled = False
Select Case hh
Case 0
教材出库查询条件.Option4.Visible = True
Case 1, 2
教材出库查询条件.Option4.Visible = False
End Select
教材出库查询条件.Show
End Sub
Private Sub Command2_Click()
Set 库存教材查询设计器.rs教材出库表.DataSource = Adodc1
教材出库信息报表.Show
End Sub
Private Sub Command3_Click() '实现单击‘返回’按钮时,返回的窗体
Select Case hh
Case 0
Unload Me
主窗体.Show
Case 1
Unload Me
专业课教材出库.Show
专业课教材出库.Enabled = True
Case 2
Unload Me
选修课教材出库.Show
选修课教材出库.Enabled = True
End Select
End Sub
Private Sub Command4_Click() '单击‘全部信息’按钮时
If hh = 0 Then '显示所有课程类别信息,从‘主窗体,主菜单’中进入
Command2.Enabled = True
Adodc1.RecordSource = "select * from 教材出库表 "
Adodc1.Refresh
Set 库存教材查询设计器.rs教材出库表.DataSource = Adodc1
Else
If hh = 1 Then '显示所有专业课信息,从‘专业课教材出库’进入
Command2.Enabled = True
Adodc1.RecordSource = "select * from 教材出库表 where 课程类别='专业课'"
Adodc1.Refresh
Set 库存教材查询设计器.rs教材出库表.DataSource = Adodc1
Else
If hh = 2 Then '显示所有选修课信息,从‘选修课教材出库’进入
Command2.Enabled = True
Adodc1.RecordSource = "select * from 教材出库表 where 课程类别='选修课'"
Adodc1.Refresh
Set 库存教材查询设计器.rs教材出库表.DataSource = Adodc1
End If
End If
End If
End Sub
Private Sub Form_Load()
'Adodc1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=学生教材管理系统.mdb;Persist Security Info=False"
If hh = 1 Then '执行专业课查询,从'专业课出库'进入
Adodc1.RecordSource = "select * from 教材出库表 where 课程类别='专业课'"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
Else
If hh = 2 Then '执行选修课查询,从'选修课出库'进入
Adodc1.RecordSource = "select * from 教材出库表 where 课程类别='选修课'"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
Else
If hh = 0 Then '执行所有课程查询,从'主窗体、主菜单'进入
Adodc1.RecordSource = "select * from 教材出库表 "
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
End If
End If
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -