📄 grade_tj.frm
字号:
End
Begin VB.CommandButton Command5
Caption = "重 置"
Height = 375
Left = 2520
TabIndex = 28
Top = 1800
Width = 975
End
Begin VB.CommandButton Command2
Caption = "确 定"
Height = 375
Left = 480
TabIndex = 27
Top = 1800
Width = 975
End
Begin VB.ComboBox Combo2
Height = 300
Index = 2
ItemData = "Grade_tj.frx":0010
Left = 1680
List = "Grade_tj.frx":0012
TabIndex = 26
Top = 840
Width = 1455
End
Begin VB.ComboBox Combo2
Height = 300
Index = 1
ItemData = "Grade_tj.frx":0014
Left = 1440
List = "Grade_tj.frx":0016
TabIndex = 24
Top = 1320
Width = 1695
End
Begin VB.ComboBox Combo2
BeginProperty DataFormat
Type = 1
Format = "0.0%"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 5
EndProperty
Height = 300
Index = 0
ItemData = "Grade_tj.frx":0018
Left = 1440
List = "Grade_tj.frx":001A
TabIndex = 9
Top = 360
Width = 1095
End
Begin VB.Label Label4
BackColor = &H00FFC0C0&
Caption = "请选择教师姓名:"
Height = 255
Left = 240
TabIndex = 25
Top = 840
Width = 1455
End
Begin VB.Label Label8
BackColor = &H00FFC0C0&
Caption = "选课信息显示"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4320
TabIndex = 10
Top = 240
Width = 1335
End
Begin VB.Label Label6
BackColor = &H00FFC0C0&
Caption = "请选择课程名:"
Height = 255
Left = 240
TabIndex = 8
Top = 1320
Width = 1335
End
Begin VB.Label Label5
BackColor = &H00FFC0C0&
Caption = "请选择学期:"
Height = 255
Left = 240
TabIndex = 7
Top = 360
Width = 1215
End
End
Begin VB.OptionButton Option1
BackColor = &H00FFC0C0&
Caption = "选课整体"
Height = 255
Index = 1
Left = 2520
TabIndex = 5
Top = 600
Width = 1335
End
Begin VB.Frame Frame2
BackColor = &H00FFC0C0&
Height = 5655
Index = 0
Left = 120
TabIndex = 2
Top = 1320
Visible = 0 'False
Width = 11295
Begin VB.CheckBox Check4
BackColor = &H00FFC0C0&
Caption = "包含成绩信息"
Height = 255
Left = 5400
TabIndex = 61
Top = 5040
Value = 1 'Checked
Visible = 0 'False
Width = 1575
End
Begin VB.CommandButton Command10
Caption = "统计结果导出"
Enabled = 0 'False
Height = 495
Left = 7560
TabIndex = 60
Top = 4920
Visible = 0 'False
Width = 1455
End
Begin MSFlexGridLib.MSFlexGrid myFlexGrid2
Height = 1695
Left = 4560
TabIndex = 18
Top = 3120
Visible = 0 'False
Width = 6375
_ExtentX = 11245
_ExtentY = 2990
_Version = 393216
BackColorBkg = 16761024
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.CommandButton Command3
Caption = "重 置"
Height = 375
Left = 2160
TabIndex = 13
Top = 840
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确 定"
Height = 375
Left = 480
TabIndex = 12
Top = 840
Width = 975
End
Begin MSFlexGridLib.MSFlexGrid myFlexGrid1
Height = 2415
Left = 4560
TabIndex = 11
Top = 600
Width = 6375
_ExtentX = 11245
_ExtentY = 4260
_Version = 393216
Cols = 6
FixedCols = 0
BackColorBkg = 16761024
AllowUserResizing= 3
End
Begin VB.TextBox Text1
BeginProperty DataFormat
Type = 0
Format = "0.0"
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
Height = 270
Left = 1800
TabIndex = 3
Top = 360
Width = 1335
End
Begin VB.Frame Frame3
BackColor = &H00FFC0C0&
Height = 3855
Left = 120
TabIndex = 14
Top = 1440
Visible = 0 'False
Width = 3975
Begin VB.CommandButton Command4
Caption = "开始统计"
Height = 375
Left = 1320
TabIndex = 20
Top = 3240
Width = 1215
End
Begin VB.Frame Frame4
BackColor = &H00FFC0C0&
Caption = "请选择统计项目:"
Height = 2175
Left = 240
TabIndex = 19
Top = 840
Width = 3375
Begin VB.CheckBox Check1
BackColor = &H00FFC0C0&
Caption = "已修累计学分"
Height = 255
Index = 2
Left = 480
TabIndex = 23
Top = 1680
Width = 1935
End
Begin VB.CheckBox Check1
BackColor = &H00FFC0C0&
Caption = "各学期所获学分"
Height = 255
Index = 1
Left = 480
TabIndex = 22
Top = 1020
Width = 1935
End
Begin VB.CheckBox Check1
BackColor = &H00FFC0C0&
Caption = "各学期平均绩点"
Height = 255
Index = 0
Left = 480
TabIndex = 21
Top = 360
Width = 1935
End
End
Begin VB.TextBox Text2
Height = 270
Left = 1200
Locked = -1 'True
TabIndex = 16
Top = 360
Width = 1335
End
Begin VB.Label Label2
BackColor = &H00FFC0C0&
Caption = "学生姓名:"
Height = 255
Left = 240
TabIndex = 15
Top = 360
Width = 1095
End
End
Begin VB.Label Label3
BackColor = &H00FFC0C0&
Caption = "学生成绩信息显示"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 4680
TabIndex = 17
Top = 240
Width = 1815
End
Begin VB.Label Label1
BackColor = &H00FFC0C0&
Caption = "请输入学生学号:"
Height = 255
Index = 0
Left = 360
TabIndex = 4
Top = 360
Width = 1455
End
End
Begin VB.Frame Frame1
BackColor = &H00FFC0C0&
Caption = "请先选择统计对象"
Height = 975
Left = 120
TabIndex = 0
Top = 120
Width = 6015
Begin VB.OptionButton Option1
BackColor = &H00FFC0C0&
Caption = "班级整体"
Height = 255
Index = 2
Left = 4320
TabIndex = 39
Top = 480
Width = 1335
End
Begin VB.OptionButton Option1
BackColor = &H00FFC0C0&
Caption = "单个学生"
Height = 255
Index = 0
Left = 360
TabIndex = 1
Top = 480
Width = 1335
End
End
End
Attribute VB_Name = "Form9"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "RVB_UniqueId" ,"41FF01E80154"
Attribute VB_Ext_KEY = "RVB_ModelStereotype" ,"Form"
Dim mrc As ADODB.Recordset '定义记录集
Dim txtSQL As String '定义SQL字符串
Dim i
Private j As Integer '定义循环变量
Dim termtype As Integer '定义学期的种类
Dim term(8) As String '定义数组用于存贮所选课开设的学期
Dim checknum1
Private checknum2
Private checknum3 As Integer '定义统计项目的数量(分别对应单个学生,选课总体,班级总体)
Private Sub Command1_Click() '确定按钮(单个学生)
If Text1.Text = "" Then
MsgBox "请输入学号!", 0 + 48, "注意!"
Text1.SetFocus
SendKeys "{home}+{end}"
Exit Sub
End If
txtSQL = "select Les_info.Cou_no,Cou_info.Cou_name,Cou_info.Cou_credit," & _
" Les_info.Les_cj,Les_info.Les_xj,Les_info.Les_term,Stu_info.Stu_name from" & _
" Stu_info,Les_info,Cou_info where Les_info.Stu_no=Stu_info.Stu_no" & _
" and Les_info.Cou_no=Cou_info.Cou_no" & _
" and Stu_info.Stu_no= " & "'" & Trim(Text1.Text) & "'" & _
" order by Les_info.Les_term "
Set mrc = ExecuteSQL(txtSQL, MsgText)
If mrc.EOF Then
MsgBox "不存在该生的选课记录!", 0 + 48, "注意!"
Text1.SetFocus
Exit Sub
End If
myFlexGrid1.Rows = 1
Text2.Text = Trim(mrc.Fields(6))
With myFlexGrid1 '将查询结果显示出来
Do While Not mrc.EOF
.Rows = .Rows + 1
For i = 0 To 5
If Not IsNull(mrc.Fields(i)) Then '如果字段非空则显示字段值
.TextMatrix(.Rows - 1, i) = mrc.Fields(i)
End If
Next i
mrc.MoveNext
Loop
End With
Frame3.Visible = True
Command1.Enabled = False
Call Term_type
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -