📄 frm_zyinfo.frm
字号:
Begin VB.Label Label15
AutoSize = -1 'True
Caption = "民 族:"
Height = 180
Left = 210
TabIndex = 34
Top = 1440
Width = 900
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "学 历:"
Height = 180
Left = 2100
TabIndex = 33
Top = 1830
Width = 900
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "职工编号:"
DataSource = "Adodc1"
Height = 180
Left = 210
TabIndex = 32
Top = 1830
Width = 900
End
Begin VB.Label Label12
AutoSize = -1 'True
Caption = "备 注:"
Height = 180
Left = 210
TabIndex = 30
Top = 4305
Width = 720
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "性 别:"
Height = 180
Left = 210
TabIndex = 29
Top = 682
Width = 900
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "姓 名:"
Height = 180
Left = 210
TabIndex = 28
Top = 300
Width = 900
End
Begin VB.Label Label14
AutoSize = -1 'True
Caption = "证件号码:"
Height = 180
Left = 210
TabIndex = 27
Top = 2592
Width = 900
End
Begin VB.Label Label10
AutoSize = -1 'True
Caption = "部门编号:"
Height = 180
Left = 210
TabIndex = 26
Top = 2210
Width = 900
End
Begin VB.Label Label9
AutoSize = -1 'True
Caption = "家庭住址:"
Height = 180
Left = 210
TabIndex = 25
Top = 3738
Width = 900
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "电 话:"
Height = 180
Left = 210
TabIndex = 24
Top = 3356
Width = 900
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "手 机:"
Height = 180
Left = 210
TabIndex = 23
Top = 2974
Width = 900
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "年 龄:"
Height = 180
Left = 2100
TabIndex = 22
Top = 300
Width = 900
End
Begin VB.Label Label4
AutoSize = -1 'True
Caption = "生 日:"
Height = 180
Left = 2100
TabIndex = 21
Top = 682
Width = 900
End
Begin VB.Label Label5
AutoSize = -1 'True
Caption = "部 门:"
Height = 180
Left = 2100
TabIndex = 20
Top = 2210
Width = 900
End
End
Begin VB.CommandButton Command6
Caption = "返 回"
Height = 375
Left = 4830
TabIndex = 19
Top = 5205
Width = 1095
End
Begin VB.CommandButton Command4
Caption = "保 存"
Height = 375
Left = 3210
TabIndex = 18
Top = 5205
Width = 1095
End
Begin VB.CommandButton Command3
Caption = "取 消"
Height = 375
Left = 1470
TabIndex = 17
Top = 5205
Width = 1215
End
Begin MSAdodcLib.Adodc Adodc1
Height = 330
Left = 210
Top = 4725
Width = 4320
_ExtentX = 7620
_ExtentY = 582
ConnectMode = 0
CursorLocation = 3
IsolationLevel = -1
ConnectionTimeout= 15
CommandTimeout = 30
CursorType = 3
LockType = 3
CommandType = 8
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=E:\毕业设计\TIZIANO.mdb;Persist Security Info=False"
OLEDBString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\毕业设计\TIZIANO.mdb;Persist Security Info=False"
OLEDBFile = ""
DataSourceName = ""
OtherAttributes = ""
UserName = ""
Password = ""
RecordSource = "select * from tab_职工"
Caption = "Adodc1"
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 MSComDlg.CommonDialog CommonDialog1
Left = 7380
Top = 4650
_ExtentX = 847
_ExtentY = 847
_Version = 393216
End
End
Attribute VB_Name = "frm_zyinfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command3_Click()
Call text_clear
End Sub
Private Sub Command4_Click()
If Text1 = "" Or Text2 = "" Or Text3 = "" Then
MsgBox "各项基本信息不能为空"
Text1.SetFocus
Else
Adodc1.Recordset.Fields("姓名") = Trim(Text1.Text)
Adodc1.Recordset.Fields("年龄") = Trim(Text2.Text)
Adodc1.Recordset.Fields("民族") = Trim(Text3.Text)
Adodc1.Recordset.Fields("籍贯") = Trim(Text4.Text)
Adodc1.Recordset.Fields("职工编码") = Trim(Text5.Text)
Adodc1.Recordset.Fields("学历") = Trim(Text6.Text)
Adodc1.Recordset.Fields("部门编码") = Trim(Text7.Text)
Adodc1.Recordset.Fields("部门") = Trim(Text8.Text)
Adodc1.Recordset.Fields("身份证号") = Trim(Text9.Text)
Adodc1.Recordset.Fields("手机") = Trim(Text10.Text)
Adodc1.Recordset.Fields("电话") = Trim(Text11.Text)
Adodc1.Recordset.Fields("家庭住址") = Trim(Text12.Text)
Adodc1.Recordset.Fields("备注") = Trim(Text13.Text)
Adodc1.Recordset.Fields("婚否") = Trim(Combo1.Text)
Adodc1.Recordset.Fields("性别") = Trim(Combo2.Text)
Adodc1.Recordset.Fields("出生日期") = DTPicker1.Value
Adodc1.Recordset.Fields("入职日期") = DTPicker2.Value
Adodc1.Recordset.Update
End If
Unload frm_zyinfo
End Sub
Private Sub Command6_Click()
Unload Me
End Sub
Private Sub Form_Unload(Cancel As Integer)
Frm_zyinfocu.Command1.SetFocus
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -