frmstuvalue.frm
来自「一款非常适合中小学教学任务不是很繁重的管理程序」· FRM 代码 · 共 435 行
FRM
435 行
VERSION 5.00
Object = "{E95A2510-F3D1-416D-823B-4F840FE98091}#3.0#0"; "Command.ocx"
Object = "{3A6644DE-3402-11D9-9DE7-C33FAA87690A}#1.0#0"; "WinXPCEngine.ocx"
Begin VB.Form frmStuValue
ClientHeight = 9465
ClientLeft = 60
ClientTop = 60
ClientWidth = 9045
ControlBox = 0 'False
LinkTopic = "Form1"
MDIChild = -1 'True
Picture = "frmStuValue.frx":0000
ScaleHeight = 9465
ScaleWidth = 9045
WindowState = 2 'Maximized
Begin WinXPC_Engine.WindowsXPC WindowsXPC1
Left = 2655
Top = 4410
_ExtentX = 6588
_ExtentY = 1085
ColorScheme = 2
Common_Dialog = 0 'False
End
Begin VB.TextBox txtSNo
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1605
Index = 2
Left = 3000
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 8
Top = 6600
Width = 4215
End
Begin VB.TextBox txtNo
Alignment = 2 'Center
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 405
Left = 3480
MaxLength = 20
TabIndex = 3
Top = 1080
Width = 3015
End
Begin VB.TextBox txtSNo
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2085
Index = 0
Left = 3000
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 2
Top = 2280
Width = 4215
End
Begin VB.TextBox txtName
Alignment = 2 'Center
Height = 405
Left = 3480
Locked = -1 'True
MaxLength = 20
TabIndex = 1
Top = 1560
Width = 3015
End
Begin VB.TextBox txtSNo
BeginProperty Font
Name = "MS Sans Serif"
Size = 12
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 1605
Index = 1
Left = 3000
MultiLine = -1 'True
ScrollBars = 3 'Both
TabIndex = 0
Top = 4680
Width = 4215
End
Begin CSCommand.Command cmdAdd
Height = 375
Left = 2520
TabIndex = 11
Top = 8400
Width = 975
_ExtentX = 1720
_ExtentY = 661
IconAlign = 0
Icon = "frmStuValue.frx":151DA4
Caption = "添加"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CSCommand.Command cmdFind
Height = 375
Left = 1200
TabIndex = 12
Top = 8400
Width = 975
_ExtentX = 1720
_ExtentY = 661
IconAlign = 0
Icon = "frmStuValue.frx":151DC0
Caption = "查找"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CSCommand.Command cmdExit
Height = 375
Left = 7800
TabIndex = 13
Top = 8400
Width = 975
_ExtentX = 1720
_ExtentY = 661
IconAlign = 0
Icon = "frmStuValue.frx":151DDC
Caption = "关闭"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CSCommand.Command cmdDel
Height = 375
Left = 3840
TabIndex = 14
Top = 8400
Width = 975
_ExtentX = 1720
_ExtentY = 661
IconAlign = 0
Icon = "frmStuValue.frx":151DF8
Caption = "删除"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CSCommand.Command cmdModiy
Height = 375
Left = 5160
TabIndex = 15
Top = 8400
Width = 975
_ExtentX = 1720
_ExtentY = 661
IconAlign = 0
Icon = "frmStuValue.frx":151E14
Caption = "修改"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin CSCommand.Command cmdPrint
Height = 375
Left = 6480
TabIndex = 16
Top = 8400
Width = 975
_ExtentX = 1720
_ExtentY = 661
IconAlign = 0
Icon = "frmStuValue.frx":151E30
Caption = "打印"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
End
Begin VB.Label Label6
Alignment = 2 'Center
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "学生总结测评"
BeginProperty Font
Name = "MS Sans Serif"
Size = 18
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 435
Left = 3705
TabIndex = 10
Top = 240
Width = 2265
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "校领导评语(100字)"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 255
Left = 2280
TabIndex = 9
Top = 6360
Width = 1695
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "学号(主键) "
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 255
Left = 2400
TabIndex = 7
Top = 1080
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "个人总结(200字)"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 255
Left = 2400
TabIndex = 6
Top = 2040
Width = 1455
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "班主任评语(100字)"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 255
Left = 2280
TabIndex = 5
Top = 4440
Width = 1695
End
Begin VB.Label Label4
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "姓名"
BeginProperty Font
Name = "MS Sans Serif"
Size = 9.75
Charset = 0
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ForeColor = &H00004000&
Height = 240
Left = 2520
TabIndex = 4
Top = 1680
Width = 360
End
End
Attribute VB_Name = "frmStuValue"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim strSql As String
Dim RS As ADODB.Recordset
Private Sub cmdAdd_Click()
'添加
On Error Resume Next
If Trim(txtNo.Text) <> "" Then
strSql = "insert into 学生测评表 values('" & Trim(txtNo.Text) & "',"
strSql = strSql & "'" & txtSNo(0).Text & "',"
strSql = strSql & "'" & txtSNo(1).Text & "',"
strSql = strSql & "'" & txtSNo(2).Text & "')"
dbOperate strSql
Else
MsgBox "主键不能为空", vbOKOnlyvbok + vbExclamation, "提示"
End If
End Sub
Private Sub cmdDel_Click()
'删除
On Error Resume Next
If Trim(txtNo.Text) <> "" Then
strSql = "delete from 学生测评表 where"
strSql = strSql & " 学号='" & Trim(txtNo) & "'"
dbOperate strSql
Else
MsgBox "主键不能为空", vbOKOnlyvbok + vbExclamation, "提示"
End If
End Sub
Private Sub cmdExit_Click()
'关闭
Unload Me
End Sub
Private Sub cmdFind_Click()
'查找
On Error Resume Next
Dim str As String
strSql = "select 学生基本情况表.学号,学生基本情况表.姓名,"
strSql = strSql & "学生测评表.自我测评,学生测评表.班主任评语,学生测评表.校领导评语"
strSql = strSql & " from 学生基本情况表,学生测评表 where"
strSql = strSql & " 学生测评表.学号='" & Trim(txtNo.Text) & "'"
strSql = strSql & " and 学生基本情况表.学号=学生测评表.学号"
str = Trim(txtNo.Text)
txtNo.Text = ""
txtName.Text = ""
txtSNo(0).Text = ""
txtSNo(1).Text = ""
txtSNo(2).Text = ""
If str <> "" Then
Set RS = dbSelect(strSql)
txtNo.Text = RS.Fields(0)
txtName.Text = RS.Fields(1)
txtSNo(0).Text = RS.Fields(2)
txtSNo(1).Text = RS.Fields(3)
txtSNo(2).Text = RS.Fields(4)
Set RS = Nothing
Else
MsgBox "主键不能为空", vbOKOnlyvbok + vbExclamation, "提示"
End If
End Sub
Private Sub cmdModiy_Click()
'修改
If Trim(txtNo.Text) <> "" Then
Call cmdDel_Click
Call cmdAdd_Click
Else
MsgBox "主键不能为空", vbOKOnlyvbok + vbExclamation, "提示"
End If
End Sub
Private Sub cmdPrint_Click()
'打印
MsgBox "暂未编码", vbOKCancel + vbExclamation, "抱歉!"
End Sub
Private Sub Form_Load()
Me.WindowsXPC1.InitSubClassing
End Sub
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?