📄 jieyuechaxun.dob
字号:
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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -