📄 xfedit_gzif.frm
字号:
VERSION 5.00
Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "mscomct2.ocx"
Begin VB.Form xfedit_gzif
BorderStyle = 3 'Fixed Dialog
Caption = "学分修改"
ClientHeight = 6105
ClientLeft = 45
ClientTop = 330
ClientWidth = 7860
Icon = "xfedit_gzif.frx":0000
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6105
ScaleWidth = 7860
ShowInTaskbar = 0 'False
StartUpPosition = 1 'CenterOwner
Begin VB.CommandButton Command3
Caption = "确 定(&Y)"
Default = -1 'True
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 4560
TabIndex = 15
Top = 5520
Width = 1455
End
Begin VB.CommandButton Command4
Cancel = -1 'True
Caption = "取 消(&C)"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 6120
TabIndex = 14
Top = 5520
Width = 1455
End
Begin VB.Frame Frame1
Height = 5295
Left = 2640
TabIndex = 3
Top = 0
Width = 5175
Begin VB.TextBox Text3
Alignment = 1 'Right Justify
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 1680
TabIndex = 5
Text = "0"
Top = 2640
Width = 1095
End
Begin VB.TextBox Text2
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1815
Left = 1680
TabIndex = 4
Top = 3120
Width = 3135
End
Begin MSComCtl2.UpDown UpDown2
Height = 375
Left = 2760
TabIndex = 6
Top = 2640
Width = 240
_ExtentX = 423
_ExtentY = 661
_Version = 393216
OrigLeft = 2760
OrigTop = 2760
OrigRight = 3000
OrigBottom = 3135
Increment = 0
Max = 100
Enabled = -1 'True
End
Begin VB.Label text1
Caption = "Label1"
BeginProperty Font
Name = "宋体"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1680
TabIndex = 16
Top = 480
Width = 1935
End
Begin VB.Label Label9
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "备注(&Y):"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 0
TabIndex = 13
Top = 3120
Width = 1455
End
Begin VB.Label Label8
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "确定学分(&Y):"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 0
TabIndex = 12
Top = 2640
Width = 1455
End
Begin VB.Label Label2
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "学年(&Y):"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 480
TabIndex = 11
Top = 480
Width = 975
End
Begin VB.Label Label7
BackStyle = 0 'Transparent
Caption = "还未输入"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 735
Left = 1680
TabIndex = 10
Top = 1680
Width = 3375
End
Begin VB.Label Label10
BackStyle = 0 'Transparent
Caption = "还未输入"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 735
Left = 1680
TabIndex = 9
Top = 960
Width = 3375
End
Begin VB.Label Label11
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "加分原因(&Y):"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = -240
TabIndex = 8
Top = 1680
Width = 1695
End
Begin VB.Label Label12
Alignment = 1 'Right Justify
BackStyle = 0 'Transparent
Caption = "学生(&Y):"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 375
Left = 240
TabIndex = 7
Top = 960
Width = 1215
End
End
Begin VB.PictureBox Picture1
BackColor = &H00FFE09E&
Height = 6015
Left = 0
Picture = "xfedit_gzif.frx":08CA
ScaleHeight = 5955
ScaleWidth = 2475
TabIndex = 0
TabStop = 0 'False
Top = 0
Width = 2535
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 = &H00800000&
Height = 375
Index = 1
Left = 1005
TabIndex = 2
Top = 525
Width = 1335
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 = 980
TabIndex = 1
Top = 500
Width = 1335
End
Begin VB.Image Image1
Height = 720
Left = 120
Picture = "xfedit_gzif.frx":3A92E
Stretch = -1 'True
Top = 120
Width = 720
End
Begin VB.Shape Shape1
BorderColor = &H000000FF&
BorderWidth = 2
Height = 15
Left = 120
Top = 960
Width = 2175
End
Begin VB.Shape Shape2
BorderColor = &H0000FF00&
BorderWidth = 2
Height = 15
Left = 120
Top = 1000
Width = 2055
End
End
End
Attribute VB_Name = "xfedit_gzif"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public fens As Double
Public fene As Double
Public idf As Integer
Private Sub Command3_Click()
main.connect.Execute "update [jc] set [jd]=" & Text3.Text & ",[bz]='" & Replace(Text2.Text, "'", "‘") & "' where [ID]=" & idf
Unload Me
End Sub
Private Sub Command4_Click()
Unload Me
End Sub
Private Sub Text3_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 38 Then Call UpDown2_UpClick
If KeyCode = 40 Then Call UpDown2_DownClick
KeyCode = 0
Shift = 0
End Sub
Private Sub Text3_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
Private Sub UpDown1_Change()
End Sub
Private Sub UpDown2_DownClick()
If Text3.Text * 10 > fens Then Text3.Text = Text3.Text - 0.1
End Sub
Private Sub UpDown2_UpClick()
If Text3.Text * 10 < fene Then Text3.Text = Text3.Text + 0.1
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
KeyAscii = 0
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -