📄 bklook_view4.frm
字号:
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 1095
Left = 840
TabIndex = 6
Top = 1800
Width = 1335
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "班级数:"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Left = 840
TabIndex = 5
Top = 2880
Width = 1335
End
Begin VB.Label Label8
BackStyle = 0 'Transparent
Caption = "学生数:"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H000000FF&
Height = 255
Left = 840
TabIndex = 4
Top = 3240
Width = 1455
End
Begin VB.Shape Shape1
BorderColor = &H000000FF&
BorderWidth = 2
Height = 15
Left = 120
Top = 1440
Width = 1335
End
Begin VB.Shape Shape2
BorderColor = &H0000FF00&
BorderWidth = 2
Height = 15
Left = 120
Top = 1485
Width = 1215
End
Begin VB.Image Image1
Height = 600
Left = 240
Picture = "bklook_view4.frx":3B2D6
Stretch = -1 'True
Top = 240
Width = 600
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "历史库查询"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 1
Left = 165
TabIndex = 1
Top = 1005
Width = 2535
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "历史库查询"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = -1 'True
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FFFFFF&
Height = 375
Index = 0
Left = 130
TabIndex = 2
Top = 970
Width = 2655
End
End
Begin MSComctlLib.ListView ListView1
Height = 5055
Left = 2400
TabIndex = 3
Top = 0
Width = 6495
_ExtentX = 11456
_ExtentY = 8916
View = 3
Arrange = 1
LabelEdit = 1
LabelWrap = -1 'True
HideSelection = -1 'True
AllowReorder = -1 'True
GridLines = -1 'True
PictureAlignment= 5
_Version = 393217
Icons = "ImageList1"
SmallIcons = "ImageList1"
ColHdrIcons = "ImageList1"
ForeColor = -2147483640
BackColor = -2147483634
BorderStyle = 1
Appearance = 1
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
NumItems = 9
BeginProperty ColumnHeader(1) {BDD1F052-858B-11D1-B16A-00C0F0283628}
Text = "学号"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(2) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 1
Text = "姓名"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(3) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 2
Text = "班级"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(4) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 3
Text = "名次"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(5) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 4
Text = "w1"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(6) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 5
Text = "w2"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(7) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 6
Text = "w3"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(8) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 7
Text = "w4"
Object.Width = 2540
EndProperty
BeginProperty ColumnHeader(9) {BDD1F052-858B-11D1-B16A-00C0F0283628}
SubItemIndex = 8
Text = "总学分"
Object.Width = 2540
EndProperty
Picture = "bklook_view4.frx":3C548
End
Begin MSComctlLib.ImageList ImageList1
Left = 2760
Top = 5040
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 2
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "bklook_view4.frx":5045C
Key = ""
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "bklook_view4.frx":505B8
Key = ""
EndProperty
EndProperty
End
End
Attribute VB_Name = "bklook_view4"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public yy As Integer
Public jj As Integer
Public classcount As Integer
Public studentcount As Integer
Public nn As String
Public oo As String
Private Sub Command1_Click()
Dim temp As New bklook_view5
temp.idf = Right(ListView1.SelectedItem.Key, Len(ListView1.SelectedItem.Key) - 1)
temp.yy = yy
temp.jj = jj
temp.classcount = classcount
temp.studentcount = studentcount
temp.nn = nn
temp.Show 1
Set temp = Nothing
End Sub
Private Sub Command2_Click()
Frame1.Left = Me.Width - 3700
Frame1.Top = Me.Height - 3900
If Frame1.Visible = True Then Frame1.Visible = False Else Frame1.Visible = True
End Sub
Private Sub Command6_Click()
Unload Me
End Sub
Private Sub Form_Load()
Call ListView1.ListItems.Add(, "S1", "skdks", 1, 1)
ListView1.ListItems.Clear
ListView1.Refresh
Label6.Caption = nn
Label7.Caption = "共有班级" & classcount & "个"
Label8.Caption = "共有学生" & studentcount & "名"
Dim temp As New ADODB.Recordset
temp.Open "select * from [nn]", main.connect, 3, 2
Option5.Caption = temp.Fields(1)
ListView1.ColumnHeaders.Item(5) = temp.Fields(1)
temp.MoveNext
Option6.Caption = temp.Fields(1)
ListView1.ColumnHeaders.Item(6) = temp.Fields(1)
temp.MoveNext
Option7.Caption = temp.Fields(1)
ListView1.ColumnHeaders.Item(7) = temp.Fields(1)
temp.MoveNext
Option8.Caption = temp.Fields(1)
ListView1.ColumnHeaders.Item(8) = temp.Fields(1)
temp.MoveNext
Call showpx
Label9.Caption = yy & "-" & yy + 1 & "学年"
End Sub
Private Sub Form_Resize()
On Error GoTo 1
If Me.Width < 9180 Then Me.Width = 9180
If Me.Height < 6015 Then Me.Height = 6015
Picture1.Height = Me.Height - Picture2.Height - 800
Picture2.Left = Me.Width - Picture2.Width - 100
ListView1.Height = Picture1.Height
Picture2.Top = Me.Height - Picture2.Height - 500
ListView1.Width = Me.Width - Picture1.Width - 350
Frame1.Visible = False
1
End Sub
Sub showpx()
Frame1.Visible = False
If Option1.Value = True Then
oo = " order by [xh]"
End If
If Option2.Value = True Then
oo = " order by [nn]"
End If
If Option3.Value = True Then
oo = " order by [cl],[xh]"
End If
If Option4.Value = True Then
oo = " order by [whk] desc"
End If
If Option5.Value = True Then
oo = " order by [x1] desc"
End If
If Option6.Value = True Then
oo = " order by [x2] desc"
End If
If Option7.Value = True Then
oo = " order by [x3] desc"
End If
If Option8.Value = True Then
oo = " order by [x4] desc"
End If
If Option9.Value = True Then
oo = " order by [zf] desc"
End If
ListView1.ListItems.Clear
Dim kk1 As New ADODB.Recordset
kk1.Open "select * from [temp] " & oo, main.connect, 3, 2
Dim itmX As ListItem
For i = 1 To kk1.RecordCount
Set itmX = ListView1.ListItems.Add(, "S" & kk1.Fields(0), kk1.Fields(1), 1, 1)
itmX.SubItems(1) = kk1.Fields(2)
itmX.SubItems(2) = kk1.Fields(3)
itmX.SubItems(3) = i
itmX.SubItems(4) = kk1.Fields(5)
itmX.SubItems(5) = kk1.Fields(6)
itmX.SubItems(6) = kk1.Fields(7)
itmX.SubItems(7) = kk1.Fields(8)
itmX.SubItems(8) = kk1.Fields(9)
kk1.MoveNext
Next
End Sub
Private Sub Option1_Click()
Call showpx
End Sub
Private Sub Option2_Click()
Call showpx
End Sub
Private Sub Option3_Click()
Call showpx
End Sub
Private Sub Option4_Click()
Call showpx
End Sub
Private Sub Option5_Click()
Call showpx
End Sub
Private Sub Option6_Click()
Call showpx
End Sub
Private Sub Option7_Click()
Call showpx
End Sub
Private Sub Option8_Click()
Call showpx
End Sub
Private Sub Option9_Click()
Call showpx
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -