📄 frmxtsz.frm
字号:
VERSION 5.00
Begin VB.Form FrmXtsz
Caption = "系统设置"
ClientHeight = 3660
ClientLeft = 135
ClientTop = 1350
ClientWidth = 6990
LinkTopic = "Form1"
MaxButton = 0 'False
ScaleHeight = 3660
ScaleWidth = 6990
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton Command2
Caption = "取消(&C)"
Height = 375
Left = 3600
TabIndex = 32
Top = 3000
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确认(&O)"
Height = 375
Left = 2400
TabIndex = 31
Top = 3000
Width = 975
End
Begin VB.TextBox Text2
Height = 270
Index = 4
Left = 4680
TabIndex = 28
Top = 2160
Width = 1815
End
Begin VB.TextBox Text2
Height = 270
Index = 3
Left = 4680
TabIndex = 27
Top = 1800
Width = 1815
End
Begin VB.TextBox Text2
Height = 270
Index = 2
Left = 4680
TabIndex = 26
Top = 1440
Width = 1815
End
Begin VB.TextBox Text2
Height = 270
Index = 1
Left = 4680
TabIndex = 25
Top = 1080
Width = 1815
End
Begin VB.CheckBox Check2
Caption = "第五类"
Height = 255
Index = 4
Left = 3480
TabIndex = 23
Top = 2160
Width = 975
End
Begin VB.CheckBox Check2
Caption = "第四类"
Height = 255
Index = 3
Left = 3480
TabIndex = 22
Top = 1800
Width = 975
End
Begin VB.CheckBox Check2
Caption = "第三类"
Height = 255
Index = 2
Left = 3480
TabIndex = 21
Top = 1440
Width = 975
End
Begin VB.CheckBox Check2
Caption = "第二类"
Height = 255
Index = 1
Left = 3480
TabIndex = 20
Top = 1080
Width = 975
End
Begin VB.Frame Frame2
Caption = "附加分"
Height = 2535
Left = 3240
TabIndex = 18
Top = 120
Width = 3495
Begin VB.TextBox Text2
Height = 270
Index = 0
Left = 1440
TabIndex = 24
Top = 600
Width = 1815
End
Begin VB.CheckBox Check2
Caption = "第一类"
Height = 255
Index = 0
Left = 240
TabIndex = 19
Top = 600
Width = 975
End
Begin VB.Label Label4
Caption = "种类:"
Height = 255
Left = 240
TabIndex = 30
Top = 360
Width = 975
End
Begin VB.Label Label3
Caption = "名称:"
Height = 255
Left = 1440
TabIndex = 29
Top = 360
Width = 1815
End
End
Begin VB.VScrollBar VScroll1
Height = 255
Index = 4
Left = 2280
TabIndex = 15
Top = 2160
Width = 255
End
Begin VB.TextBox Text1
Height = 270
Index = 4
Left = 1680
TabIndex = 14
Top = 2160
Width = 615
End
Begin VB.VScrollBar VScroll1
Height = 255
Index = 3
Left = 2280
TabIndex = 13
Top = 1800
Width = 255
End
Begin VB.TextBox Text1
Height = 270
Index = 3
Left = 1680
TabIndex = 12
Top = 1800
Width = 615
End
Begin VB.VScrollBar VScroll1
Height = 255
Index = 2
Left = 2280
TabIndex = 11
Top = 1440
Width = 255
End
Begin VB.TextBox Text1
Height = 270
Index = 2
Left = 1680
TabIndex = 10
Top = 1440
Width = 615
End
Begin VB.VScrollBar VScroll1
Height = 255
Index = 1
Left = 2280
TabIndex = 9
Top = 1080
Width = 255
End
Begin VB.TextBox Text1
Height = 270
Index = 1
Left = 1680
TabIndex = 8
Top = 1080
Width = 615
End
Begin VB.CheckBox Check1
Caption = "不及格"
Height = 255
Index = 4
Left = 480
TabIndex = 7
Top = 2160
Width = 1215
End
Begin VB.CheckBox Check1
Caption = "及格"
Height = 255
Index = 3
Left = 480
TabIndex = 6
Top = 1800
Width = 1215
End
Begin VB.CheckBox Check1
Caption = "中等"
Height = 255
Index = 2
Left = 480
TabIndex = 5
Top = 1440
Width = 1215
End
Begin VB.CheckBox Check1
Caption = "良好"
Height = 255
Index = 1
Left = 480
TabIndex = 4
Top = 1080
Width = 1215
End
Begin VB.Frame Frame1
Caption = "考查课成绩"
Height = 2535
Left = 120
TabIndex = 0
Top = 120
Width = 3015
Begin VB.VScrollBar VScroll1
Height = 255
Index = 0
Left = 2160
TabIndex = 3
Top = 600
Width = 255
End
Begin VB.TextBox Text1
Height = 270
Index = 0
Left = 1560
TabIndex = 2
Top = 600
Width = 615
End
Begin VB.CheckBox Check1
Caption = "优秀"
Height = 255
Index = 0
Left = 360
TabIndex = 1
Top = 600
Width = 1215
End
Begin VB.Label Label2
Caption = "排榜时换算成绩:"
Height = 255
Left = 1320
TabIndex = 17
Top = 360
Width = 1455
End
Begin VB.Label Label1
Caption = "可用成绩:"
Height = 255
Left = 120
TabIndex = 16
Top = 360
Width = 1455
End
End
End
Attribute VB_Name = "FrmXtsz"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
Dim numI As Integer
If MsgBox("您确认保存以上信息吗?", vbOKCancel, "系统信息") = vbOK Then
objCon.Execute ("Delete * From XTCSB")
For numI = 0 To 4
If Check1(numI).Value And Val(Text1(numI).Text) <> 0 Then
objCon.Execute ("Insert Into XTCSB(LB,MC,SZ) Values(1,'" & Check1(numI).Caption & "'," & Text1(numI).Text & ")")
End If
If Check2(numI).Value And Text2(numI).Text <> "" Then
objCon.Execute ("Insert Into XTCSB(LB,MC) Values(2,'" & Left(Text2(numI).Text, 12) & "')")
End If
Next
End If
End Sub
Private Sub Form_Load()
Dim numI As Integer
Set objRs = objCon.Execute("Select * From XTCSB")
Do While Not objRs.EOF
If objRs("LB") = 1 Then '考查课成绩
For numI = 0 To 4
If Check1(numI).Caption = Trim(objRs("mc")) Then
Check1(numI).Value = Checked
Text1(numI).Text = Str(objRs("sz"))
Exit For
End If
Next
Else '附加分
For numI = 0 To 4
If Check2(numI).Value = False Then
Check2(numI).Value = Checked
Text2(numI).Text = objRs("mc")
Exit For
End If
Next
End If
objRs.MoveNext
Loop
objRs.Close
End Sub
Private Sub FOrm_QueryUnload(Cancel As Integer, UnloadMode As Integer)
FrmMain.Enabled = True
End Sub
Private Sub Command2_Click()
FrmMain.Enabled = True
Unload FrmXtsz
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -