📄 frmclassinfoedit.frm
字号:
VERSION 5.00
Begin VB.Form FrmclassinfoEdit
Caption = "Form1"
ClientHeight = 3075
ClientLeft = 60
ClientTop = 345
ClientWidth = 6630
LinkTopic = "Form1"
ScaleHeight = 3075
ScaleWidth = 6630
StartUpPosition = 2 'CenterScreen
Begin VB.CommandButton Cmd_OK
Caption = "确 定"
Default = -1 'True
Height = 400
Left = 1320
MouseIcon = "FrmclassinfoEdit.frx":0000
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 9
Top = 1800
Width = 1300
End
Begin VB.CommandButton Cmd_Cancel
Cancel = -1 'True
Caption = "取 消"
Height = 400
Left = 3840
MouseIcon = "FrmclassinfoEdit.frx":030A
MousePointer = 99 'Custom
Style = 1 'Graphical
TabIndex = 8
Top = 1800
Width = 1300
End
Begin VB.Frame Frame1
Height = 1575
Left = 0
TabIndex = 0
Top = 0
Width = 6615
Begin VB.ComboBox comboGrade
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 4680
TabIndex = 10
Top = 285
Width = 1335
End
Begin VB.TextBox txtDirector
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1440
MaxLength = 50
TabIndex = 3
Top = 765
Width = 1335
End
Begin VB.TextBox txtClassroom
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 4680
MaxLength = 20
TabIndex = 2
Top = 720
Width = 1335
End
Begin VB.TextBox txtClassno
BeginProperty Font
Name = "Arial"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 330
Left = 1440
MaxLength = 100
TabIndex = 1
Top = 285
Width = 1320
End
Begin VB.Label Label8
AutoSize = -1 'True
BackColor = &H00FFC0C0&
BackStyle = 0 'Transparent
Caption = "年级"
Height = 180
Left = 3720
TabIndex = 7
Top = 360
Width = 360
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "班主任"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 6
Top = 840
Width = 540
End
Begin VB.Label Label6
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "教室"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 3720
TabIndex = 5
Top = 840
Width = 360
End
Begin VB.Label Label1
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "班号"
BeginProperty Font
Name = "宋体"
Size = 9
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00000000&
Height = 180
Left = 240
TabIndex = 4
Top = 360
Width = 360
End
End
End
Attribute VB_Name = "FrmclassinfoEdit"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Modify As Boolean '插入=false,修改=true
Public VarEmpId As Long
Public OriId As Integer
Public OK As Boolean
Private Sub Cmd_Cancel_Click()
Unload Me
End Sub
Private Sub Cmd_OK_Click()
If Len(Trim(txtClassno)) = 0 Then
MsgBox "请输入姓名"
txtClassno.SetFocus
txtClassno.SelStart = 0
txtClassno.SelLength = Len(txtClassno)
Exit Sub
End If
With MyEmp
.class_No = Trim(Str(txtClassno))
.grade = Trim(comboGrade.text)
.director = Trim(txtDirector)
.classroom_No = Trim(txtClassroom)
'If Modify = False Then
' .Insert
' Else
Call .Update(MyEmp.class_No)
' End If
End With
OK = True
Unload Me
End Sub
Private Sub form_load()
comboGrade.AddItem "计科系99级"
comboGrade.AddItem "计科系00级"
comboGrade.AddItem "计科系01级"
comboGrade.AddItem "计科系02级"
comboGrade.AddItem "计科系03级"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -