📄 frmtxlgl.frm
字号:
VERSION 5.00
Object = "{67397AA1-7FB1-11D0-B148-00A0C922E820}#6.0#0"; "MSADODC.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form Form6
Caption = "人事档案管理"
ClientHeight = 8595
ClientLeft = 60
ClientTop = 450
ClientWidth = 8385
LinkTopic = "Form6"
ScaleHeight = 8595
ScaleWidth = 8385
StartUpPosition = 2 '屏幕中心
Begin MSDataGridLib.DataGrid DataGrid1
Bindings = "Frmtxlgl.frx":0000
Height = 6615
Left = 4200
TabIndex = 2
Top = 360
Width = 3975
_ExtentX = 7011
_ExtentY = 11668
_Version = 393216
HeadLines = 1
RowHeight = 15
BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
ColumnCount = 2
BeginProperty Column00
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
BeginProperty Column01
DataField = ""
Caption = ""
BeginProperty DataFormat {6D835690-900B-11D0-9484-00A0C91110ED}
Type = 0
Format = ""
HaveTrueFalseNull= 0
FirstDayOfWeek = 0
FirstWeekOfYear = 0
LCID = 2052
SubFormatType = 0
EndProperty
EndProperty
SplitCount = 1
BeginProperty Split0
BeginProperty Column00
EndProperty
BeginProperty Column01
EndProperty
EndProperty
End
Begin MSAdodcLib.Adodc Adodc1
Height = 495
Left = 1680
Top = 7200
Visible = 0 'False
Width = 5175
_ExtentX = 9128
_ExtentY = 873
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 2
CursorOptions = 0
CacheSize = 50
MaxRecords = 0
BOFAction = 0
EOFAction = 0
ConnectStringType= 1
Appearance = 1
BackColor = -2147483643
ForeColor = -2147483640
Orientation = 0
Enabled = -1
Connect = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=grcw1.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=grcw1.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "txl"
Caption = " 大 管 家 人 事 管 理"
BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
Name = "宋体"
Size = 9
Charset = 134
Weight = 400
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
_Version = 393216
End
Begin VB.Frame Frame1
Caption = "详细资料"
Height = 6735
Left = 240
TabIndex = 5
Top = 240
Width = 3855
Begin VB.TextBox Text8
Height = 1455
Left = 1080
TabIndex = 25
Top = 5160
Width = 2535
End
Begin VB.TextBox Text0
DataField = "编号"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 13
Top = 240
Width = 1575
End
Begin VB.TextBox Text1
DataField = "分类"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 12
Top = 840
Width = 1575
End
Begin VB.TextBox Text2
DataField = "姓名"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 11
Top = 1440
Width = 1575
End
Begin VB.TextBox Text3
DataField = "生日"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 10
Top = 2040
Width = 1575
End
Begin VB.TextBox Text4
DataField = "手机"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 9
Top = 2640
Width = 1575
End
Begin VB.TextBox Text5
DataField = "MSN"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 8
Top = 3240
Width = 1575
End
Begin VB.TextBox Text6
DataField = "固定电话"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 7
Top = 3840
Width = 1575
End
Begin VB.TextBox Text7
DataField = "家庭住址"
DataSource = "Adodc1"
Height = 495
Left = 1080
TabIndex = 6
Top = 4440
Width = 2655
End
Begin VB.Label Label11
Caption = "备注:"
Height = 615
Left = 120
TabIndex = 24
Top = 5160
Width = 855
End
Begin VB.Label Label10
Caption = "家庭地址:"
Height = 375
Left = 0
TabIndex = 23
Top = 0
Width = 1335
End
Begin VB.Label Label9
Caption = "xx-xx-xx"
Height = 255
Left = 120
TabIndex = 22
Top = 2400
Width = 735
End
Begin VB.Label Label1
Caption = "编号:"
Height = 495
Left = 240
TabIndex = 21
Top = 360
Width = 1335
End
Begin VB.Label Label2
Caption = "部门:"
Height = 375
Left = 240
TabIndex = 20
Top = 960
Width = 1335
End
Begin VB.Label Label3
Caption = "姓名:"
Height = 375
Left = 240
TabIndex = 19
Top = 1560
Width = 1335
End
Begin VB.Label Label4
Caption = "生日:"
Height = 375
Left = 240
TabIndex = 18
Top = 2160
Width = 975
End
Begin VB.Label Label5
Caption = "手机:"
Height = 495
Left = 240
TabIndex = 17
Top = 2760
Width = 1335
End
Begin VB.Label Label6
Caption = "QQ:"
Height = 495
Left = 240
TabIndex = 16
Top = 3240
Width = 1335
End
Begin VB.Label Label7
Caption = "固定电话:"
Height = 495
Left = 120
TabIndex = 15
Top = 3960
Width = 1335
End
Begin VB.Label Label8
Caption = "家庭地址:"
Height = 375
Left = 120
TabIndex = 14
Top = 4560
Width = 1335
End
End
Begin VB.CommandButton Command5
Caption = "退 出"
Height = 615
Left = 5640
TabIndex = 4
Top = 7560
Width = 1695
End
Begin VB.CommandButton Command3
Caption = "删 除"
Height = 615
Left = 3960
TabIndex = 3
Top = 7560
Width = 1695
End
Begin VB.CommandButton Command2
Caption = "添 加"
Height = 615
Left = 2280
TabIndex = 1
Top = 7560
Width = 1695
End
Begin VB.CommandButton Command1
Caption = "修 改"
Height = 615
Left = 600
TabIndex = 0
Top = 7560
Width = 1695
End
End
Attribute VB_Name = "Form6"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Command1.Caption = "修改" Then
Command1.Caption = "确认"
Text0.Locked = False
Text1.Locked = False
Text2.Locked = False
Text3.Locked = False
Text4.Locked = False
Text5.Locked = False
Text6.Locked = False
Text7.Locked = False
Text8.Locked = False
Me.DataGrid1.AllowUpdate = True
Text0.SetFocus
Else
If Text0.Text = "" Then
MsgBox "数据不完整,必须有编号"
End If
Command1.Caption = "修改"
Text0.Locked = True
Text0.Locked = True
Text1.Locked = True
Text2.Locked = True
Text3.Locked = True
Text4.Locked = True
Text5.Locked = True
Text6.Locked = True
Text7.Locked = True
Text8.Locked = True
Me.DataGrid1.AllowUpdate = False
Adodc1.Recordset.Update
End If
End Sub
Private Sub Command2_Click()
If Command2.Caption = "添加" Then
Command2.Caption = "确认"
Adodc1.Recordset.AddNew
Text0.Locked = False
Text1.Locked = False
Text2.Locked = False
Text3.Locked = False
Text4.Locked = False
Text5.Locked = False
Text6.Locked = False
Text7.Locked = False
Text8.Locked = False
DataGrid1.AllowAddNew = True
Text0.SetFocus
Else
If Text0.Text = "" Then
MsgBox "数据不完整,必须有编号"
Text0.SetFocus
End If
Command2.Caption = "添加"
DataGrid1.AllowAddNew = False
Text0.Locked = True
Text0.Locked = True
Text1.Locked = True
Text2.Locked = True
Text3.Locked = True
Text4.Locked = True
Text5.Locked = True
Text6.Locked = True
Text7.Locked = True
Text8.Locked = True
Text0.SetFocus
Adodc1.Recordset.Update
End If
End Sub
Private Sub Command3_Click()
Adodc1.Recordset.Delete
Adodc1.Refresh
If Adodc1.Recordset.RecordCount <> 0 Then
If Adodc1.Recordset.EOF = True Then
Adodc1.Recordset.MoveFirst
Else
Adodc1.Recordset.MoveNext
End If
Else
MsgBox "数据库中已经没有记录了!"
End If
Adodc1.Refresh
End Sub
Private Sub Command5_Click()
Unload Form6
End Sub
Private Sub Form_Load()
Text0.Locked = True
Text1.Locked = True
Text2.Locked = True
Text3.Locked = True
Text4.Locked = True
Text5.Locked = True
Text6.Locked = True
Text7.Locked = True
Text8.Locked = True
DataGrid1.AllowAddNew = False
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -