📄 主界面.frm
字号:
VERSION 5.00
Begin VB.Form CaiJi
Caption = "IC卡资料"
ClientHeight = 5670
ClientLeft = 60
ClientTop = 450
ClientWidth = 7575
LinkTopic = "Form1"
LockControls = -1 'True
ScaleHeight = 5670
ScaleWidth = 7575
StartUpPosition = 2 'CenterScreen
Begin VB.Frame Frame3
Caption = "控制区"
Height = 4335
Left = 5760
TabIndex = 7
Top = 120
Width = 1695
Begin VB.CommandButton Command12
Caption = "上一个"
Height = 375
Left = 240
TabIndex = 13
Top = 360
Width = 1095
End
Begin VB.CommandButton Command11
Caption = "下一个"
Height = 375
Left = 240
TabIndex = 12
Top = 1080
Width = 1095
End
Begin VB.CommandButton Command10
Caption = "修改记录"
Height = 375
Left = 240
TabIndex = 11
Top = 2400
Width = 1095
End
Begin VB.CommandButton Command9
Caption = "保存记录"
Enabled = 0 'False
Height = 375
Left = 240
TabIndex = 10
Top = 3000
Width = 1095
End
Begin VB.CommandButton Command6
Caption = "删除记录"
Height = 375
Left = 240
TabIndex = 9
Top = 3720
Width = 1095
End
Begin VB.CommandButton Command7
Caption = "添加记录"
Height = 375
Left = 240
TabIndex = 8
Top = 1680
Width = 1095
End
End
Begin VB.Frame Frame2
Caption = "控制区"
Height = 975
Left = 120
TabIndex = 1
Top = 4560
Width = 7335
Begin VB.CommandButton Command8
Caption = " "
Height = 375
Left = 120
TabIndex = 33
Top = 360
Width = 1215
End
Begin VB.CommandButton Command5
Caption = " "
Height = 375
Left = 5760
TabIndex = 5
Top = 360
Width = 1215
End
Begin VB.CommandButton Command3
Caption = "写入数据"
Height = 375
Left = 4350
TabIndex = 4
Top = 360
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "读取数据"
Height = 375
Left = 2940
TabIndex = 3
Top = 360
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "打开IC"
Height = 375
Left = 1530
TabIndex = 2
Top = 360
Width = 1215
End
End
Begin VB.Frame Frame1
Caption = "IC卡资料显示"
Height = 4335
Left = 120
TabIndex = 0
Top = 120
Width = 5535
Begin VB.TextBox Text11
DataField = "月"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 2400
TabIndex = 34
Text = "05"
Top = 1920
Width = 735
End
Begin VB.Data Data1
Caption = "Data1"
Connect = "Access"
DatabaseName = "D:\jlc\IC卡\IC卡01\修改\修改06\database\IcData.mdb"
DefaultCursorType= 0 'DefaultCursor
DefaultType = 2 'UseODBC
Exclusive = 0 'False
Height = 375
Left = 4320
Options = 0
ReadOnly = 0 'False
RecordsetType = 0 'Table
RecordSource = "Sheet1"
Top = 3240
Width = 1140
End
Begin VB.TextBox Text6
DataField = "年"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 600
TabIndex = 32
Text = "2007"
Top = 1950
Width = 975
End
Begin VB.TextBox Text5
DataField = "工种"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 3840
TabIndex = 30
Text = $"主界面.frx":0000
Top = 1305
Width = 1095
End
Begin VB.TextBox Text4
DataField = "单位编号"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 1320
TabIndex = 28
Text = "1001"
Top = 1305
Width = 1335
End
Begin VB.TextBox Text2
DataField = "性别"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 3120
TabIndex = 23
Text = "男"
Top = 770
Width = 615
End
Begin VB.TextBox Text10
DataField = "电机工作时间"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 22
Text = "12"
Top = 3780
Width = 1695
End
Begin VB.TextBox Text9
DataField = "卡号"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 840
TabIndex = 20
Text = "1"
Top = 240
Width = 2775
End
Begin VB.TextBox Text8
DataField = "开关时间"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 1320
TabIndex = 18
Text = "15"
Top = 2468
Width = 2655
End
Begin VB.TextBox Text7
DataField = "有效工作时间"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 1920
TabIndex = 16
Text = "13"
Top = 3135
Width = 1695
End
Begin VB.TextBox Text3
DataField = "年龄"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 4560
TabIndex = 14
Text = "23"
Top = 770
Width = 855
End
Begin VB.TextBox Text1
DataField = "姓名"
DataSource = "Data1"
Enabled = 0 'False
Height = 375
Left = 840
TabIndex = 6
Text = "小张"
Top = 770
Width = 1335
End
Begin VB.Label Label11
Caption = "月"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 225
Left = 1800
TabIndex = 35
Top = 2040
Width = 375
End
Begin VB.Label Label6
Caption = "年"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 225
Left = 120
TabIndex = 31
Top = 2010
Width = 375
End
Begin VB.Label Label5
Caption = "工种"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3000
TabIndex = 29
Top = 1365
Width = 735
End
Begin VB.Label Label4
Caption = "单位编号"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 27
Top = 1365
Width = 1095
End
Begin VB.Label Label2
Caption = "性别"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 2400
TabIndex = 26
Top = 825
Width = 615
End
Begin VB.Label Label3
Caption = "年龄"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 3960
TabIndex = 25
Top = 825
Width = 615
End
Begin VB.Label Label1
Caption = "姓名"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 24
Top = 830
Width = 615
End
Begin VB.Label Label10
Caption = "电机工作时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 21
Top = 3840
Width = 2055
End
Begin VB.Label Label9
Caption = "卡号"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 19
Top = 300
Width = 975
End
Begin VB.Label Label8
Caption = "开关时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 240
Left = 120
TabIndex = 17
Top = 2535
Width = 1095
End
Begin VB.Label Label7
Caption = "有效工作时间"
BeginProperty Font
Name = "宋体"
Size = 12
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 255
Left = 120
TabIndex = 15
Top = 3195
Width = 1695
End
End
End
Attribute VB_Name = "CaiJi"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim St_Ic As Integer '用于标志正确打开IC
Dim Blag As Integer '用于判断是那个键按下 (添加和修改)
Dim mag
'检测读卡器并打开
Private Sub Command1_Click()
Call IC_Jiance
' Call IC_IC
End Sub
Private Sub Command10_Click()
Text1.Enabled = True
Text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Text6.Enabled = True
Text7.Enabled = True
Text8.Enabled = True
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -