📄 kcszform.frm
字号:
VERSION 5.00
Object = "{831FDD16-0C5C-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCTL.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.2#0"; "comdlg32.ocx"
Begin VB.Form setting
BackColor = &H00FF8080&
BorderStyle = 0 'None
ClientHeight = 4320
ClientLeft = 2415
ClientTop = 2850
ClientWidth = 5835
ControlBox = 0 'False
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
Picture = "kcszform.frx":0000
ScaleHeight = 4320
ScaleWidth = 5835
ShowInTaskbar = 0 'False
Begin VB.CommandButton cmdPro
Caption = "正在导入考场......."
Height = 495
Left = 1440
TabIndex = 10
Top = 1800
Visible = 0 'False
Width = 2775
End
Begin VB.TextBox biaoshi
Height = 270
Left = 1200
TabIndex = 9
Top = 3480
Width = 1215
End
Begin VB.ComboBox paixu
Height = 300
Left = 3480
TabIndex = 7
Top = 3480
Width = 2055
End
Begin MSComctlLib.TreeView kaochangtree
Height = 2655
Left = 360
TabIndex = 5
Top = 720
Width = 5175
_ExtentX = 9128
_ExtentY = 4683
_Version = 393217
Style = 7
ImageList = "ImageList1"
Appearance = 1
End
Begin VB.Timer Timer1
Interval = 500
Left = 3240
Top = 120
End
Begin MSComDlg.CommonDialog showfile
Left = 5040
Top = 120
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
Begin VB.CommandButton daoru
Caption = "导入"
Height = 255
Left = 3000
TabIndex = 4
Top = 3960
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "退出管理"
Height = 255
Left = 4320
TabIndex = 2
Top = 3960
Width = 1215
End
Begin VB.CommandButton shanchu
Caption = "删除考场"
Height = 255
Left = 1440
TabIndex = 1
Top = 3960
Width = 1335
End
Begin VB.CommandButton tianjia
Caption = "添加新考场"
Height = 255
Left = 120
TabIndex = 0
Top = 3960
Width = 1215
End
Begin MSComctlLib.ImageList ImageList1
Left = 4080
Top = 120
_ExtentX = 1005
_ExtentY = 1005
BackColor = -2147483643
ImageWidth = 16
ImageHeight = 16
MaskColor = 12632256
_Version = 393216
BeginProperty Images {2C247F25-8591-11D1-B16A-00C0F0283628}
NumListImages = 7
BeginProperty ListImage1 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "kcszform.frx":6B742
Key = "yuanshi"
EndProperty
BeginProperty ListImage2 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "kcszform.frx":6BADC
Key = "kaochang"
EndProperty
BeginProperty ListImage3 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "kcszform.frx":6BDF6
Key = "xuehao"
EndProperty
BeginProperty ListImage4 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "kcszform.frx":6C6D0
Key = "xingming"
EndProperty
BeginProperty ListImage5 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "kcszform.frx":6CB22
Key = "banji"
EndProperty
BeginProperty ListImage6 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "kcszform.frx":6D974
Key = "chengji"
EndProperty
BeginProperty ListImage7 {2C247F27-8591-11D1-B16A-00C0F0283628}
Picture = "kcszform.frx":6DDC6
Key = "kaohao"
EndProperty
EndProperty
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "考号标识:"
Height = 255
Index = 1
Left = 360
TabIndex = 8
Top = 3530
Width = 855
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "排序方式:"
Height = 255
Index = 0
Left = 2640
TabIndex = 6
Top = 3530
Width = 735
End
Begin VB.Label Label1
Alignment = 2 'Center
BackStyle = 0 'Transparent
Caption = "考场列表"
BeginProperty Font
Name = "楷体_GB2312"
Size = 14.25
Charset = 134
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 1680
TabIndex = 3
Top = 480
Width = 2655
End
Begin VB.Menu menuadd
Caption = "添加考场"
Visible = 0 'False
Begin VB.Menu menuaddnew
Caption = "添加一个新考场"
End
Begin VB.Menu menudelete
Caption = "删除当前考场"
Enabled = 0 'False
End
Begin VB.Menu menuxiugai
Caption = "修改当前记录"
Enabled = 0 'False
End
End
End
Attribute VB_Name = "setting"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim tempchoose As String '定义选中的值存储变量
Dim pubrs As ADODB.Recordset
Dim pubconn As ADODB.Connection
Dim kctree As Node
Private Sub biaoshi_LostFocus()
exambiaoshi = biaoshi.Text
End Sub
Private Sub Command1_Click()
Dim temp As ADODB.Recordset
Set temp = New ADODB.Recordset
sql = "select sum([考场人数]) as zongshu from exam"
temp.Open sql, pubconn, adOpenDynamic, adLockPessimistic
If temp.Fields("zongshu") > 1 Then
examstunum = temp.Fields("zongshu")
End If
temp.close
Set temp = New ADODB.Recordset
sql = "select count(*) as zongshu from exam"
temp.Open sql, pubconn, adOpenDynamic, adLockPessimistic
If temp.Fields("zongshu") > 0 Then
examclassnum = temp.Fields("zongshu")
End If
pxfs = paixu.Text
exambiaoshi = biaoshi.Text
Unload Me
End Sub
Private Sub daoru_Click()
Call import
End Sub
Private Sub Form_Load()
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -