📄 frmvoteresult.frm
字号:
VERSION 5.00
Object = "{F0D2F211-CCB0-11D0-A316-00AA00688B10}#1.0#0"; "MSDATLST.OCX"
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmVoteResult
BorderStyle = 1 'Fixed Single
Caption = "教师评估结果查询"
ClientHeight = 5940
ClientLeft = 45
ClientTop = 330
ClientWidth = 10560
LinkTopic = "Form1"
LockControls = -1 'True
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 5940
ScaleWidth = 10560
StartUpPosition = 2 '屏幕中心
Begin VB.CommandButton btnQuery
Caption = "查询"
Height = 375
Left = 4920
TabIndex = 3
Top = 240
Width = 1335
End
Begin MSAdodcLib.Adodc Adodc2
Height = 375
Left = 7680
Top = 480
Visible = 0 'False
Width = 2295
_ExtentX = 4048
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "Adodc2"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSAdodcLib.Adodc AdoTerms
Height = 375
Left = 7200
Top = 120
Visible = 0 'False
Width = 2535
_ExtentX = 4471
_ExtentY = 661
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = ""
OLEDBString = ""
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = ""
Caption = "AdoTerms"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin MSDataListLib.DataCombo DataCombo1
Bindings = "frmVoteResult.frx":0000
DataSource = "AdoTerms"
Height = 330
Left = 1680
TabIndex = 2
Top = 240
Width = 2655
_ExtentX = 4683
_ExtentY = 582
_Version = 393216
Style = 2
Text = ""
End
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "frmVoteResult.frx":0017
Height = 4695
Left = 120
TabIndex = 0
Top = 960
Width = 10335
_ExtentX = 18230
_ExtentY = 8281
_Version = 393216
AllowUpdate = 0 'False
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin VB.Label Label23
AutoSize = -1 'True
Caption = "所在学期"
BeginProperty Font
Name = "宋体"
Size = 10.5
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00FF0000&
Height = 210
Left = 360
TabIndex = 1
Top = 360
Width = 900
End
End
Attribute VB_Name = "frmVoteResult"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub btnQuery_Click()
If Len(Trim(DataCombo1.Text)) = 0 Then
MsgBox "请选择学期!", vbExclamation
Exit Sub
End If
Adodc2.ConnectionString = conn
Adodc2.RecordSource = "select distinct a.teacher_Idendity as 教师工号,a.teacher_name as 教师姓名,b.Vote as 评估分值,c.LessonName as 课程名称," _
+ "d.TermName as 学期名称 from teacherInfo a,Arrangement b,Lessons c, Terms d where a.teacher_Idendity=b.Teacher_Idendity" + _
" and b.LessonId=c.LessonId " + _
"and b.TermId=d.TermId and d.TermName='" + DataCombo1.Text + "'"
Adodc2.Refresh
If Adodc2.Recordset.EOF = True Then
MsgBox "没有符合条件的记录!", vbInformation
Exit Sub
End If
With DataGrid1
.Columns(0).Width = 2000
.Columns(1).Width = 2000
.Columns(2).Width = 2000
.Columns(3).Width = 2000
.Columns(4).Width = 2000
End With
End Sub
Private Sub Form_Load()
AdoTerms.ConnectionString = conn
AdoTerms.RecordSource = "select TermId,TermName from Terms"
AdoTerms.Refresh
DataCombo1.ListField = "TermName"
DataCombo1.BoundColumn = "TermId"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -