www.pudn.com > 图书管理系统包括VB,ASP各一份代码.rar > JieYueChaXun.dob
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"
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Begin VB.UserDocument JieYueChaXun
BackColor = &H80000009&
ClientHeight = 7380
ClientLeft = 0
ClientTop = 0
ClientWidth = 9675
HScrollSmallChange= 225
ScaleHeight = 7380
ScaleWidth = 9675
VScrollSmallChange= 225
Begin TabDlg.SSTab SSTab1
Height = 6855
Left = 240
TabIndex = 0
Top = 240
Width = 9135
_ExtentX = 16113
_ExtentY = 12091
_Version = 393216
Tabs = 2
TabsPerRow = 5
TabHeight = 520
BackColor = -2147483639
TabCaption(0) = "图书查询"
TabPicture(0) = "JieYueChaXun.dox":0000
Tab(0).ControlEnabled= -1 'True
Tab(0).Control(0)= "DataGrid2"
Tab(0).Control(0).Enabled= 0 'False
Tab(0).Control(1)= "Frame1"
Tab(0).Control(1).Enabled= 0 'False
Tab(0).Control(2)= "Adodc2"
Tab(0).Control(2).Enabled= 0 'False
Tab(0).Control(3)= "Adodc3"
Tab(0).Control(3).Enabled= 0 'False
Tab(0).ControlCount= 4
TabCaption(1) = "期刊查询"
TabPicture(1) = "JieYueChaXun.dox":001C
Tab(1).ControlEnabled= 0 'False
Tab(1).Control(0)= "Adodc1"
Tab(1).Control(1)= "Frame2"
Tab(1).Control(2)= "DataGrid1"
Tab(1).ControlCount= 3
Begin MSAdodcLib.Adodc Adodc1
Height = 375
Left = -72480
Top = 5520
Visible = 0 'False
Width = 2175
_ExtentX = 3836
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
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 = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc Adodc3
Height = 375
Left = 3240
Top = 5760
Visible = 0 'False
Width = 2175
_ExtentX = 3836
_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 = "Adodc3"
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 MSAdodcLib.Adodc Adodc2
Height = 375
Left = 840
Top = 5760
Visible = 0 'False
Width = 2175
_ExtentX = 3836
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 1
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 = "Adodc2"
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.Frame Frame2
Caption = "查询条件"
Height = 1695
Left = -74760
TabIndex = 14
Top = 480
Width = 8715
Begin VB.TextBox txtQKND
Height = 285
Left = 1080
TabIndex = 24
Top = 1080
Width = 1455
End
Begin VB.CommandButton cmdFind
Caption = "查找(&L)"
Height = 375
Left = 7320
TabIndex = 18
Top = 360
Width = 1215
End
Begin VB.TextBox txtQKQH
Height = 285
Left = 3960
TabIndex = 17
Top = 1080
Width = 1335
End
Begin VB.TextBox txtQKMC
Height = 285
Left = 1080
TabIndex = 16
Top = 360
Width = 5895
End
Begin VB.TextBox txtQKYM
Height = 285
Left = 1080
TabIndex = 15
Top = 720
Width = 5895
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "译名:"
Height = 180
Index = 4
Left = 240
TabIndex = 22
Top = 780
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "年度:"
Height = 180
Index = 2
Left = 240
TabIndex = 21
Top = 1140
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "期刊名称:"
Height = 180
Index = 1
Left = 240
TabIndex = 20
Top = 420
Width = 810
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "期号:"
Height = 180
Index = 0
Left = 3480
TabIndex = 19
Top = 1140
Width = 450
End
End
Begin VB.Frame Frame1
Caption = "查询条件"
Height = 1695
Left = 240
TabIndex = 1
Top = 480
Width = 8715
Begin VB.TextBox txt作者
Height = 285
Left = 720
TabIndex = 7
Top = 750
Width = 2895
End
Begin VB.TextBox txt书名
Height = 285
Left = 720
TabIndex = 6
Top = 360
Width = 2895
End
Begin VB.TextBox txt图书id
Height = 285
Left = 5040
TabIndex = 5
Top = 360
Width = 1815
End
Begin VB.CommandButton cmdFilter
Caption = "查找(&L)"
Height = 375
Left = 7320
TabIndex = 4
Top = 360
Width = 1215
End
Begin VB.OptionButton opt语言
Caption = "中文图书"
Height = 255
Index = 0
Left = 240
TabIndex = 3
Top = 1230
Value = -1 'True
Width = 1215
End
Begin VB.OptionButton opt语言
Caption = "外文图书"
Height = 255
Index = 1
Left = 2040
TabIndex = 2
Top = 1230
Width = 1335
End
Begin MSDataListLib.DataCombo DataCombo2
Bindings = "JieYueChaXun.dox":0038
Height = 330
Left = 5040
TabIndex = 8
Top = 750
Width = 1815
_ExtentX = 3201
_ExtentY = 582
_Version = 393216
ListField = "分类"
BoundColumn = "分类ID"
Text = ""
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "作者:"
Height = 180
Index = 16
Left = 240
TabIndex = 12
Top = 840
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "书名:"
Height = 180
Index = 15
Left = 240
TabIndex = 11
Top = 420
Width = 450
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "图书ID:"
Height = 180
Index = 14
Left = 4320
TabIndex = 10
Top = 390
Width = 630
End
Begin VB.Label lblLabels
AutoSize = -1 'True
Caption = "分类:"
Height = 180
Index = 3
Left = 4500
TabIndex = 9
Top = 840
Width = 450
End
End
Begin MSDataGridLib.DataGrid DataGrid2
Bindings = "JieYueChaXun.dox":004D
Height = 4335
Left = 240
TabIndex = 13
Top = 2280
Width = 8715
_ExtentX = 15372
_ExtentY = 7646
_Version = 393216
AllowUpdate = 0 'False
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
Caption = "中文图书在库册书"
ColumnCount = 9
BeginProperty Column00
DataField = "图书ID"
Caption = "图书ID"
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
BeginProperty Column02
DataField = "分类ID"
Caption = "分类ID"
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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1094.74
EndProperty
BeginProperty Column01
ColumnWidth = 2085.166
EndProperty
BeginProperty Column02
ColumnWidth = 615.118
EndProperty
BeginProperty Column03
ColumnWidth = 2085.166
EndProperty
BeginProperty Column04
ColumnWidth = 2085.166
EndProperty
BeginProperty Column05
ColumnWidth = 2085.166
EndProperty
BeginProperty Column06
ColumnWidth = 794.835
EndProperty
BeginProperty Column07
ColumnWidth = 1094.74
EndProperty
BeginProperty Column08
ColumnWidth = 1094.74
EndProperty
EndProperty
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "JieYueChaXun.dox":0062
Height = 4335
Left = -74760
TabIndex = 23
Top = 2280
Width = 8715
_ExtentX = 15372
_ExtentY = 7646
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
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
Caption = "期刊在库册书"
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
End
End
Attribute VB_Name = "JieYueChaXun"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = False
Attribute VB_Exposed = True
Private Sub cmdFilter_Click()
Dim strFilter As String
'生成filter字符串
strFilter = ""
If Trim(txt图书id.Text) <> "" Then
strFilter = "图书ID=" & Trim(txt图书id.Text)
End If
If Trim(txt作者.Text) <> "" Then
If strFilter = "" Then
strFilter = "作者 like '%" & Trim(txt作者.Text) & "%'"
Else
strFilter = strFilter & " and 作者 like '%" & Trim(txt作者.Text) & "%'"
End If
End If
If txt书名.Text <> "" Then
If strFilter = "" Then
strFilter = "书名 like '%" & txt书名.Text & "%'"
Else
strFilter = strFilter & " and 书名 like '%" & txt书名.Text & "%'"
End If
End If
If DataCombo2.Text <> "" Then
If strFilter = "" Then
strFilter = "分类id=" & DataCombo2.BoundText
Else
strFilter = strFilter & " and 分类id=" & DataCombo2.BoundText
End If
End If
If opt语言(0).Value Then
DataGrid2.Caption = "中文图书在库册书"
If strFilter = "" Then
Adodc2.RecordSource = "SELECT * FROM 中文图书在库册数"
Else
Adodc2.RecordSource = "SELECT * FROM 中文图书在库册数 where " & strFilter
End If
Else
DataGrid2.Caption = "外文图书在库册书"
If strFilter = "" Then
Adodc2.RecordSource = "SELECT * FROM 外文图书在库册数"
Else
Adodc2.RecordSource = "SELECT * FROM 外文图书在库册数 where " & strFilter
End If
End If
Adodc2.Refresh
Set DataGrid2.DataSource = Adodc2
End Sub
Private Sub cmdFind_Click()
Dim strFilter As String
'生成filter字符串
strFilter = ""
If Trim(txtQKMC.Text) <> "" Then
strFilter = "名称 like '%" & Trim(txtQKMC.Text) & "%'"
End If
If Trim(txtQKYM.Text) <> "" Then
If strFilter = "" Then
strFilter = "译名 like '%" & Trim(txtQKYM.Text) & "%'"
Else
strFilter = strFilter & " and 译名 like '%" & Trim(txtQKYM.Text) & "%'"
End If
End If
If txtQKND.Text <> "" Then
If strFilter = "" Then
strFilter = "年度=" & txtQKND.Text
Else
strFilter = strFilter & " and 年度=" & txtQKND.Text
End If
End If
If txtQKQH.Text <> "" Then
If strFilter = "" Then
strFilter = "期号=" & txtQKQH.Text
Else
strFilter = strFilter & " and 期号=" & txtQKQH.Text
End If
End If
If strFilter = "" Then
Adodc1.RecordSource = "SELECT * FROM 期刊在库册数"
Else
Adodc1.RecordSource = "SELECT * FROM 期刊在库册数 where " & strFilter
End If
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub UserDocument_Initialize()
With Adodc1
.ConnectionString = pConn
.RecordSource = "SELECT * FROM 期刊在库册数"
.Refresh
End With
Set DataGrid1.DataSource = Adodc1
With Adodc2
.ConnectionString = pConn
.RecordSource = "SELECT * FROM 中文图书在库册数"
.Refresh
End With
Set DataGrid2.DataSource = Adodc2
With Adodc3
.ConnectionString = pConn
.RecordSource = "图书分类"
.Refresh
End With
End Sub