📄 applyform.frm
字号:
VERSION 5.00
Object = "{5E9E78A0-531B-11CF-91F6-C2863C385E30}#1.0#0"; "MSFLXGRD.OCX"
Begin VB.Form applyForm
BorderStyle = 1 'Fixed Single
Caption = "报名表"
ClientHeight = 6585
ClientLeft = 45
ClientTop = 405
ClientWidth = 7890
LinkTopic = "Form1"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 6585
ScaleWidth = 7890
Begin VB.Frame Frame2
Caption = "报名浏览"
Height = 3135
Left = 120
TabIndex = 8
Top = 3360
Width = 7695
Begin MSFlexGridLib.MSFlexGrid MSF
Height = 2775
Left = 120
TabIndex = 9
Top = 240
Width = 7455
_ExtentX = 13150
_ExtentY = 4895
_Version = 393216
SelectionMode = 1
End
End
Begin VB.Frame Frame1
Caption = "报名编辑"
Height = 3135
Left = 120
TabIndex = 0
Top = 120
Width = 7695
Begin VB.TextBox txtSNo
Height = 375
Left = 1080
TabIndex = 19
Top = 840
Width = 2175
End
Begin VB.ComboBox sportCombo
Height = 300
Left = 1080
TabIndex = 17
Top = 2040
Width = 2175
End
Begin VB.ComboBox sexCombo
Height = 300
Left = 1080
TabIndex = 16
Top = 1440
Width = 2175
End
Begin VB.ComboBox classCombo
Height = 300
Left = 5160
TabIndex = 15
Top = 1440
Width = 2295
End
Begin VB.TextBox txtNo
Enabled = 0 'False
Height = 375
Left = 1080
TabIndex = 14
Top = 240
Width = 2175
End
Begin VB.CommandButton delBnt
Caption = "删除"
Height = 375
Left = 4680
TabIndex = 12
Top = 2640
Width = 975
End
Begin VB.CommandButton editBnt
Caption = "修改"
Height = 375
Left = 3360
TabIndex = 11
Top = 2640
Width = 975
End
Begin VB.CommandButton addBnt
Caption = "添加"
Height = 375
Left = 2040
TabIndex = 10
Top = 2640
Width = 975
End
Begin VB.TextBox txtAge
Height = 375
Left = 5160
TabIndex = 6
Top = 2040
Width = 2295
End
Begin VB.TextBox txtName
Height = 390
Left = 5160
TabIndex = 2
Top = 840
Width = 2295
End
Begin VB.Label Label7
Caption = "学号:"
Height = 255
Left = 120
TabIndex = 18
Top = 960
Width = 855
End
Begin VB.Label Label6
Caption = "序号:"
Height = 255
Left = 120
TabIndex = 13
Top = 360
Width = 855
End
Begin VB.Label Label5
Caption = "参加项目:"
Height = 255
Left = 120
TabIndex = 7
Top = 2160
Width = 975
End
Begin VB.Label Label4
Caption = "年龄:"
Height = 255
Left = 3840
TabIndex = 5
Top = 2160
Width = 1215
End
Begin VB.Label Label3
Caption = "性别:"
Height = 255
Left = 120
TabIndex = 4
Top = 1560
Width = 855
End
Begin VB.Label Label2
Caption = "选手所在班级:"
Height = 255
Left = 3840
TabIndex = 3
Top = 1560
Width = 1335
End
Begin VB.Label Label1
Caption = "选手名字:"
Height = 255
Left = 3840
TabIndex = 1
Top = 960
Width = 1095
End
End
End
Attribute VB_Name = "applyForm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public Sub classshowtitle()
Dim i As Integer
MSF.Clear
With MSF
.Cols = 8
.TextMatrix(0, 1) = "序号"
.TextMatrix(0, 2) = "学号"
.TextMatrix(0, 3) = "姓名"
.TextMatrix(0, 4) = "性别"
.TextMatrix(0, 5) = "班级"
.TextMatrix(0, 6) = "参加项目"
.TextMatrix(0, 7) = "年龄"
.ColWidth(0) = 100
.ColWidth(1) = 1300
.ColWidth(2) = 1200
.ColWidth(3) = 1200
.ColWidth(4) = 1500
.ColWidth(5) = 1500
.ColWidth(6) = 1500
.ColWidth(7) = 1500
.FixedRows = 1
For i = 1 To 7
.ColAlignment(i) = 0
Next i
.FillStyle = flexFillSingle
.Col = 0
.Row = 0
.RowSel = 1
.ColSel = .Cols - 1
.CellAlignment = 4
.Row = 1
End With
End Sub
Public Sub classshowdata()
Dim j As Integer
Dim i As Integer
Dim mrc1 As ADODB.Recordset
strSql = "select student_sport_id,student_info_no,student_info_name,student_info_sex,class_info_name,sport_item_name,student_info_age from student_sport,student_info,class_info,sport_item where student_info.student_info_id = student_sport.student_info_id and class_info.class_info_id = student_info.class_info_id and student_sport.sport_item_id = sport_item.sport_item_id"
'strSql = "select student_sport_id,student_info_no,student_info_name,student_info_sex,class_info_name,sport_item_name,student_info_age from student_sport_view"
Set mrc1 = ExecuteSQL(Trim(strSql))
If mrc1.EOF = False Then
mrc1.MoveFirst
With MSF
.Rows = 1
Do While Not mrc1.EOF
.Rows = .Rows + 1
For i = 1 To mrc1.Fields.Count
.TextMatrix(.Rows - 1, i) = mrc1.Fields(i - 1)
Next i
mrc1.MoveNext
Loop
mrc1.Close
End With
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -