📄 main_jcfx_jyfx.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"
Object = "{65E121D4-0C60-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCHRT20.OCX"
Begin VB.Form main_jcfx_jyfx
BorderStyle = 1 'Fixed Single
Caption = "决策分析-【借阅分析】"
ClientHeight = 7635
ClientLeft = 45
ClientTop = 330
ClientWidth = 11640
Icon = "main_jcfx_jyfx.frx":0000
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 7635
ScaleWidth = 11640
StartUpPosition = 1 '所有者中心
Begin MSDataGridLib.DataGrid DataGrid1
Height = 1200
Left = 135
TabIndex = 0
Top = 6210
Width = 9075
_ExtentX = 16007
_ExtentY = 2117
_Version = 393216
AllowUpdate = 0 'False
BackColor = 12713963
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 = 5
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
BeginProperty Column02
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 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
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
ColumnWidth = 1604.976
EndProperty
BeginProperty Column01
ColumnWidth = 3314.835
EndProperty
BeginProperty Column02
ColumnWidth = 1230.236
EndProperty
BeginProperty Column03
ColumnWidth = 1484.787
EndProperty
BeginProperty Column04
ColumnWidth = 1094.74
EndProperty
EndProperty
End
Begin VB.Frame Frame1
Caption = "借阅排行列表"
Height = 1590
Left = 60
TabIndex = 5
Top = 5955
Width = 9240
End
Begin VB.OptionButton Option2
Caption = "线形显示"
Height = 255
Left = 9420
TabIndex = 4
Top = 6810
Width = 1140
End
Begin VB.OptionButton Option1
Caption = "条形显示"
Height = 300
Left = 9420
TabIndex = 3
Top = 6315
Width = 1200
End
Begin MSChart20Lib.MSChart msChart1
CausesValidation= 0 'False
Height = 5835
Left = 60
OleObjectBlob = "main_jcfx_jyfx.frx":0CCA
TabIndex = 1
Top = 15
Width = 11550
End
Begin MSAdodcLib.Adodc Adodc1
Height = 405
Left = 60
Top = 810
Visible = 0 'False
Width = 1620
_ExtentX = 2858
_ExtentY = 714
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= 3
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "DSN=Nbooks"
OLEDBString = ""
OLEDBFile = ""
DataSourceName = "Nbooks"
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from kcb"
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 Command1
Caption = "退出"
Height = 705
Left = 10665
TabIndex = 2
Top = 6300
Width = 945
End
End
Attribute VB_Name = "main_jcfx_jyfx"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim rs1 As New ADODB.Recordset
Private Sub Form_Load()
Adodc1.ConnectionString = "DSN=NBooks"
Adodc1.RecordSource = "select * from kcb"
Adodc1.Refresh
Set rs1 = New ADODB.Recordset
rs1.Open "select top 10 书名,借出次数 from kcb order by 借出次数 desc", Cnn, adOpenKeyset, adLockOptimistic
With msChart1
.ShowLegend = True
.Title.text = " " & "图书借出次数排行(前10名) " '设置图表名称
.Title.VtFont.Size = 12 '设置字体大小
.Title.VtFont.VtColor.Set 255, 0, 0 '设置字体颜色
End With
Set msChart1.DataSource = rs1
If rs1.RecordCount > 0 Then
rs1.MoveFirst
Set msChart1.DataSource = rs1
msChart1.ColumnLabel = "图书借出次数"
End If
rs1.Close
Adodc1.RecordSource = "select top 10 * from kcb order by 借出次数 desc"
Adodc1.Refresh
Set DataGrid1.DataSource = Adodc1
End Sub
Private Sub Command1_Click()
frm_main.Enabled = True
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
frm_main.Enabled = True
End Sub
Private Sub Option1_Click()
msChart1.chartType = VtChChartType2dBar '条型显示
End Sub
Private Sub Option2_Click()
msChart1.chartType = VtChChartType2dLine '线形显示
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -