📄 frmstartquery.frm
字号:
TabIndex = 49
Top = 240
Width = 375
End
Begin VB.Label Label38
Caption = "课名"
Height = 255
Left = 120
TabIndex = 48
Top = 600
Width = 375
End
Begin VB.Label Label39
Caption = "学生人数"
Height = 255
Left = 2280
TabIndex = 47
Top = 240
Width = 735
End
Begin VB.Label Label40
Caption = "学生人数"
Height = 255
Left = 2280
TabIndex = 46
Top = 600
Width = 735
End
Begin VB.Label Label41
Caption = "计划学时"
Height = 255
Left = 3600
TabIndex = 45
Top = 240
Width = 735
End
Begin VB.Label Label42
Caption = "计划学时"
Height = 255
Left = 3600
TabIndex = 44
Top = 600
Width = 735
End
Begin VB.Label Label43
Caption = "课名"
Height = 255
Left = 5400
TabIndex = 43
Top = 240
Width = 375
End
Begin VB.Label Label44
Caption = "课名"
Height = 255
Left = 5400
TabIndex = 42
Top = 600
Width = 375
End
Begin VB.Label Label45
Caption = "学生人数"
Height = 255
Left = 7560
TabIndex = 41
Top = 240
Width = 735
End
Begin VB.Label Label46
Caption = "学生人数"
Height = 255
Left = 7560
TabIndex = 40
Top = 600
Width = 735
End
Begin VB.Label Label47
Caption = "计划学时"
Height = 255
Left = 8880
TabIndex = 39
Top = 240
Width = 735
End
Begin VB.Label Label48
Caption = "计划学时"
Height = 255
Left = 8880
TabIndex = 38
Top = 600
Width = 735
End
End
Begin VB.TextBox txtFields
DataField = "姓名"
DataSource = "Data1"
Height = 270
Index = 38
Left = 840
MousePointer = 99 'Custom
TabIndex = 24
Text = " "
Top = 1200
Width = 855
End
Begin VB.TextBox txtFields
DataField = "编号"
DataSource = "Data1"
Height = 270
Index = 39
Left = 2760
MousePointer = 99 'Custom
TabIndex = 23
Text = " "
Top = 1200
Width = 1215
End
Begin VB.TextBox txtFields
DataField = "学院"
DataSource = "Data1"
Height = 270
Index = 40
Left = 5040
MousePointer = 99 'Custom
TabIndex = 22
Text = " "
Top = 1200
Width = 1575
End
Begin VB.TextBox txtFields
DataField = "备注"
DataSource = "Data1"
Height = 735
Index = 41
Left = 840
MousePointer = 99 'Custom
TabIndex = 21
Text = " "
Top = 8400
Width = 9735
End
Begin VB.TextBox txtFields
DataField = "日期"
DataSource = "Data1"
Height = 270
Index = 42
Left = 7560
MousePointer = 99 'Custom
TabIndex = 20
Text = " "
Top = 1200
Width = 1575
End
Begin VB.Frame Frame7
Caption = "工作量"
Height = 6495
Left = 10920
TabIndex = 7
Top = 1560
Width = 1335
Begin VB.TextBox txtFields
DataField = "工作量"
DataSource = "Data1"
Height = 375
Index = 49
Left = 120
MousePointer = 99 'Custom
TabIndex = 13
Text = " "
Top = 600
Width = 495
End
Begin VB.TextBox txtFields
DataField = "工作量1"
DataSource = "Data1"
Height = 375
Index = 50
Left = 120
MousePointer = 99 'Custom
TabIndex = 12
Text = " "
Top = 1680
Width = 495
End
Begin VB.TextBox txtFields
DataField = "工作量2"
DataSource = "Data1"
Height = 375
Index = 51
Left = 120
MousePointer = 99 'Custom
TabIndex = 11
Text = " "
Top = 2760
Width = 495
End
Begin VB.TextBox txtFields
DataField = "工作量3"
DataSource = "Data1"
Height = 375
Index = 52
Left = 120
MousePointer = 99 'Custom
TabIndex = 10
Text = " "
Top = 3840
Width = 495
End
Begin VB.TextBox txtFields
DataField = "工作量4"
DataSource = "Data1"
Height = 375
Index = 53
Left = 120
MousePointer = 99 'Custom
TabIndex = 9
Text = " "
Top = 4920
Width = 495
End
Begin VB.TextBox txtFields
DataField = "工作量5"
DataSource = "Data1"
Height = 375
Index = 54
Left = 120
MousePointer = 99 'Custom
TabIndex = 8
Text = " "
Top = 5880
Width = 495
End
Begin VB.Label Label59
Caption = "小时"
Height = 255
Left = 720
TabIndex = 19
Top = 720
Width = 375
End
Begin VB.Label Label60
Caption = "小时"
Height = 255
Left = 720
TabIndex = 18
Top = 1800
Width = 375
End
Begin VB.Label Label61
Caption = "小时"
Height = 255
Left = 720
TabIndex = 17
Top = 2880
Width = 375
End
Begin VB.Label Label62
Caption = "小时"
Height = 255
Left = 720
TabIndex = 16
Top = 3960
Width = 375
End
Begin VB.Label Label63
Caption = "小时"
Height = 255
Left = 720
TabIndex = 15
Top = 5040
Width = 375
End
Begin VB.Label Label64
Caption = "小时"
Height = 255
Left = 720
TabIndex = 14
Top = 6000
Width = 375
End
End
Begin VB.Frame Frame8
Caption = "工作量小计"
Height = 975
Left = 10920
TabIndex = 4
Top = 8280
Width = 1335
Begin VB.TextBox txtFields
DataField = "工作量小计"
DataSource = "Data1"
BeginProperty Font
Name = "宋体"
Size = 14.25
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Index = 55
Left = 120
MousePointer = 99 'Custom
TabIndex = 5
Text = " "
Top = 360
Width = 495
End
Begin VB.Label Label65
Caption = "小时"
Height = 255
Left = 720
TabIndex = 6
Top = 480
Width = 375
End
End
Begin VB.Data Data1
Caption = " "
Connect = "Access"
DatabaseName = "D:\千万不要删,求求大家了\吕昕\毕业设计\教师管理系统.mdb"
DefaultCursorType= 0 '缺省游标
DefaultType = 2 '使用 ODBC
Exclusive = 0 'False
Height = 375
Left = 4680
Options = 0
ReadOnly = 0 'False
RecordsetType = 1 'Dynaset
RecordSource = "研究生工作"
Top = 600
Width = 3135
End
Begin VB.CommandButton cmdStart
Caption = "开始"
Default = -1 'True
Height = 375
Left = 3000
TabIndex = 3
Top = 600
Width = 855
End
Begin VB.TextBox txtInput
Height = 375
Left = 1440
MousePointer = 99 'Custom
TabIndex = 1
Top = 600
Width = 1455
End
Begin VB.Label lblLabels
BackStyle = 0 'Transparent
Caption = "备注:"
Height = 255
Index = 35
Left = 120
TabIndex = 132
Top = 8640
Width = 495
End
Begin VB.Line Line3
BorderStyle = 3 'Dot
X1 = 120
X2 = 12240
Y1 = 8160
Y2 = 8160
End
Begin VB.Label Label66
BackStyle = 0 'Transparent
Caption = "姓名"
Height = 255
Left = 240
TabIndex = 131
Top = 1200
Width = 375
End
Begin VB.Label Label50
BackStyle = 0 'Transparent
Caption = "编号"
Height = 255
Left = 2160
TabIndex = 130
Top = 1200
Width = 375
End
Begin VB.Label Label51
BackStyle = 0 'Transparent
Caption = "学院"
Height = 255
Left = 4440
TabIndex = 129
Top = 1200
Width = 375
End
Begin VB.Label Label52
BackStyle = 0 'Transparent
Caption = "日期"
Height = 255
Left = 6960
TabIndex = 128
Top = 1200
Width = 375
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "Label2"
Height = 255
Left = 120
TabIndex = 2
Top = 120
Width = 3615
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "Label1"
Height = 255
Left = 120
TabIndex = 0
Top = 600
Width = 1335
End
End
Attribute VB_Name = "frmStartQuery1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub cmdStart_Click()
Dim mno As String
mno = txtInput
If frmQuery.Option1.Value = True Then
Data1.Recordset.FindFirst "姓名='" & mno & "'"
If Data1.Recordset.NoMatch = False Then
frmStartQuery1.Height = 9870
frmStartQuery1.Width = 12495
Else
MsgBox "对不起,没有找到您所查询的职姓名!", vbExclamation + vbOKOnly
End If
End If
If frmQuery.Option2.Value = True Then
Data1.Recordset.FindFirst "编号='" & mno & "'"
If Data1.Recordset.NoMatch = False Then
frmStartQuery1.Height = 9870
frmStartQuery1.Width = 12495
Else
MsgBox "对不起,没有找到您所查询的职编号!", vbExclamation + vbOKOnly
End If
End If
End Sub
Private Sub Form_Load()
frmStartQuery1.Picture = LoadPicture(App.Path + "\picture\中国娃娃1.bmp")
Data1.DatabaseName = App.Path + "\教师管理系统.mdb"
If frmQuery.Option1.Value = True Then
Label1.Caption = "请输入姓名:"
End If
If frmQuery.Option2.Value = True Then
Label1.Caption = "请输入编号:"
End If
Label2.Caption = "您现在进行的是教师研究生工作查询!"
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -