📄 frmxueqi.frm
字号:
VERSION 5.00
Begin VB.Form frmjiaowu
Caption = "学期考核信息录入--教务处"
ClientHeight = 5400
ClientLeft = 60
ClientTop = 345
ClientWidth = 6195
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
ScaleHeight = 5400
ScaleWidth = 6195
Begin VB.Frame Frame3
Caption = "操作"
Height = 2775
Left = 4320
TabIndex = 25
Top = 2400
Width = 1695
Begin VB.CommandButton Command2
Caption = "取消"
Height = 375
Index = 0
Left = 360
TabIndex = 27
Top = 1680
Width = 975
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 375
Index = 0
Left = 360
TabIndex = 26
Top = 720
Width = 975
End
End
Begin VB.Frame Frame2
Caption = "考核测评"
Height = 2775
Left = 240
TabIndex = 5
Top = 2400
Width = 3855
Begin VB.ComboBox Combo7
Height = 300
ItemData = "frmxueqi.frx":0000
Left = 2040
List = "frmxueqi.frx":0010
TabIndex = 13
Text = "选择"
Top = 2280
Width = 1575
End
Begin VB.ComboBox Combo6
Height = 300
ItemData = "frmxueqi.frx":0024
Left = 2040
List = "frmxueqi.frx":0034
TabIndex = 12
Text = "选择"
Top = 1680
Width = 1575
End
Begin VB.ComboBox Combo5
Height = 300
ItemData = "frmxueqi.frx":0048
Left = 2040
List = "frmxueqi.frx":0058
TabIndex = 11
Text = "选择"
Top = 1080
Width = 1575
End
Begin VB.ComboBox Combo2
Height = 300
ItemData = "frmxueqi.frx":006C
Left = 2040
List = "frmxueqi.frx":007C
TabIndex = 10
Text = "选择"
Top = 480
Width = 1575
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "配合教学情况"
Height = 180
Left = 360
TabIndex = 9
Top = 2400
Width = 1080
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "听课状态"
Height = 180
Left = 360
TabIndex = 8
Top = 1760
Width = 720
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "课堂纪律"
Height = 180
Left = 360
TabIndex = 7
Top = 1120
Width = 720
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "学风"
Height = 180
Left = 360
TabIndex = 6
Top = 480
Width = 360
End
End
Begin VB.Frame Frame1
Caption = "基本信息"
Height = 2055
Left = 240
TabIndex = 0
Top = 120
Width = 5775
Begin VB.ComboBox Combo4
Height = 300
Index = 1
ItemData = "frmxueqi.frx":0090
Left = 2655
List = "frmxueqi.frx":00B8
TabIndex = 21
Top = 1560
Width = 1095
End
Begin VB.ComboBox Combo3
Height = 300
Index = 1
ItemData = "frmxueqi.frx":00E3
Left = 960
List = "frmxueqi.frx":00F3
TabIndex = 19
Top = 1560
Width = 1095
End
Begin VB.ComboBox Combo4
Height = 300
Index = 0
ItemData = "frmxueqi.frx":010F
Left = 2655
List = "frmxueqi.frx":0137
TabIndex = 17
Top = 1020
Width = 1095
End
Begin VB.ComboBox Combo3
Height = 300
Index = 0
ItemData = "frmxueqi.frx":0162
Left = 960
List = "frmxueqi.frx":0172
TabIndex = 15
Top = 1020
Width = 1095
End
Begin VB.TextBox Text1
Enabled = 0 'False
Height = 375
Left = 3720
TabIndex = 4
Top = 240
Width = 1815
End
Begin VB.ComboBox Combo1
Height = 300
Left = 960
TabIndex = 2
Text = "选择"
Top = 300
Width = 1215
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "学期结束"
Height = 180
Left = 4560
TabIndex = 24
Top = 1620
Width = 720
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "学期开始"
Height = 180
Left = 4560
TabIndex = 23
Top = 1080
Width = 720
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "月"
Height = 180
Index = 1
Left = 3960
TabIndex = 22
Top = 1620
Width = 180
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "年"
Height = 180
Index = 1
Left = 2265
TabIndex = 20
Top = 1620
Width = 180
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "月"
Height = 180
Index = 0
Left = 3960
TabIndex = 18
Top = 1080
Width = 180
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "年"
Height = 180
Index = 0
Left = 2265
TabIndex = 16
Top = 1080
Width = 180
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "学期"
Height = 180
Left = 360
TabIndex = 14
Top = 1080
Width = 360
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "班主任姓名"
Height = 180
Left = 2520
TabIndex = 3
Top = 360
Width = 900
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "班级"
Height = 180
Left = 360
TabIndex = 1
Top = 360
Width = 360
End
End
End
Attribute VB_Name = "frmjiaowu"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Combo1_Click()
Dim mrccc As ADODB.Recordset
Dim msgtext As String
Dim txtSQL As String
Dim aa As String
txtSQL = "select name1 from teacher where class='" & Combo1 & "' "
Set mrccc = ExecuteSQL(txtSQL, msgtext)
Text1.Text = mrccc.Fields(0)
mrccc.MoveNext
mrccc.Close
End Sub
Private Sub Command1_Click(Index As Integer)
Dim intcount As Integer
Dim smg, smg1, zong As String
Dim mr As ADODB.Recordset
Dim msgtext As String
If Trim(Combo1 & "") = "选择" Then
MsgBox "请选择班级", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Trim(Combo3(0) & "") = "" Then
MsgBox "请选择年份", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Trim(Combo4(0) & "") = "" Then
MsgBox "请选择月份", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Trim(Combo3(1) & "") = "" Then
MsgBox "请选择年份", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Trim(Combo4(1) & "") = "" Then
MsgBox "请选择月份", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Trim(Combo2 & "") = "" Then
MsgBox "请选择测评分数", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Trim(Combo5 & "") = "" Then
MsgBox "请选择测评分数", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Trim(Combo6 & "") = "" Then
MsgBox "请选择测评分数", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
If Trim(Combo7 & "") = "" Then
MsgBox "请选择测评分数", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
smg = Format(CDate(Combo3(0) & "-" & Combo4(0) & "-" & "1"), "yyyy-mm-dd")
smg1 = Format(CDate(Combo3(1) & "-" & Combo4(1) & "-" & "1"), "yyyy-mm-dd")
If smg1 < smg Then
MsgBox "错误!请检查学期的起止日期", vbOKOnly + vbExclamation, "警告"
Exit Sub
End If
zong = (Int(Combo2) + Int(Combo5) + Int(Combo6) + Int(Combo7)) / 4
txtSQL = "delete from jiaowuchu where 班级='" & Trim(Combo1) & "' and 学期1='" & smg & "' and 学期2='" & smg1 & "'"
Set mr = ExecuteSQL(txtSQL, msgtext)
txtSQL = "execute jiaowuchusetup'"
txtSQL = txtSQL & Trim(Combo2) & "','"
txtSQL = txtSQL & Trim(Combo5) & "','"
txtSQL = txtSQL & Trim(Combo6) & "','"
txtSQL = txtSQL & Trim(Combo7) & "','"
txtSQL = txtSQL & smg & "','"
txtSQL = txtSQL & Trim(Text1.Text) & "','"
txtSQL = txtSQL & Trim(Combo1) & "','"
txtSQL = txtSQL & zong & "','"
txtSQL = txtSQL & smg1 & "'"
Set mr = ExecuteSQL(txtSQL, msgtext)
Unload Me
frmjiaowu.Show
MsgBox "添加纪录成功!", vbOKOnly + vbExclamation, "添加纪录"
End Sub
Private Sub Command2_Click(Index As Integer)
Unload Me
End Sub
Private Sub Form_Load()
Me.Height = 5805
Me.Width = 6305
Dim mrccc As ADODB.Recordset
Dim msgtext As String
Dim txtSQL As String
' Combo1.Clear
txtSQL = "select id from class"
Set mrccc = ExecuteSQL(txtSQL, msgtext)
Do While Not mrccc.EOF
Combo1.AddItem mrccc.Fields(0)
mrccc.MoveNext
Loop
mrccc.Close
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -