📄 frmcheck11.frm
字号:
VERSION 5.00
Object = "{BDC217C8-ED16-11CD-956C-0000C04E4C0A}#1.1#0"; "TABCTL32.OCX"
Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
Begin VB.Form frmInquireyginfo
BorderStyle = 3 'Fixed Dialog
Caption = "员工信息查询"
ClientHeight = 6330
ClientLeft = 45
ClientTop = 330
ClientWidth = 8280
LinkTopic = "Form1"
MaxButton = 0 'False
MinButton = 0 'False
ScaleHeight = 6330
ScaleWidth = 8280
ShowInTaskbar = 0 'False
StartUpPosition = 1 '所有者中心
Begin VB.Frame Frame1
Caption = "查询方式"
Height = 975
Index = 1
Left = 600
TabIndex = 9
Top = 4320
Width = 6615
Begin VB.ComboBox cboItem
Height = 300
Index = 1
ItemData = "frmCheck11.frx":0000
Left = 1440
List = "frmCheck11.frx":000A
Style = 2 'Dropdown List
TabIndex = 11
Top = 360
Width = 1695
End
Begin VB.TextBox Text1
Height = 375
Index = 1
Left = 4560
TabIndex = 10
Top = 360
Width = 1815
End
Begin VB.Label Label2
Caption = "相应信息:"
Height = 255
Index = 3
Left = 3480
TabIndex = 13
Top = 360
Width = 975
End
Begin VB.Label Label2
Caption = "请选择要查询的方式:"
Height = 375
Index = 2
Left = 240
TabIndex = 12
Top = 360
Width = 975
End
End
Begin TabDlg.SSTab SSTab1
Height = 3375
Left = 240
TabIndex = 2
Top = 480
Width = 7695
_ExtentX = 13573
_ExtentY = 5953
_Version = 393216
Style = 1
TabHeight = 520
TabCaption(0) = "基本信息"
TabPicture(0) = "frmCheck11.frx":001A
Tab(0).ControlEnabled= -1 'True
Tab(0).Control(0)= "Frame2"
Tab(0).Control(0).Enabled= 0 'False
Tab(0).ControlCount= 1
TabCaption(1) = "学历信息"
TabPicture(1) = "frmCheck11.frx":0036
Tab(1).ControlEnabled= 0 'False
Tab(1).Control(0)= "Frame5"
Tab(1).ControlCount= 1
TabCaption(2) = "工作信息"
TabPicture(2) = "frmCheck11.frx":0052
Tab(2).ControlEnabled= 0 'False
Tab(2).Control(0)= "Frame3"
Tab(2).ControlCount= 1
Begin VB.Frame Frame3
Caption = "员工工作信息"
Height = 1815
Left = -74400
TabIndex = 7
Top = 720
Width = 6615
Begin MSDataGridLib.DataGrid DataGrid3
Height = 855
Left = 360
TabIndex = 8
Top = 600
Width = 5895
_ExtentX = 10398
_ExtentY = 1508
_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
End
Begin VB.Frame Frame5
Caption = "员工学历信息"
Height = 2175
Left = -74640
TabIndex = 5
Top = 720
Width = 6615
Begin MSDataGridLib.DataGrid DataGrid2
Height = 855
Left = 360
TabIndex = 6
Top = 720
Width = 5895
_ExtentX = 10398
_ExtentY = 1508
_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
End
Begin VB.Frame Frame2
Caption = "员工基本信息"
Height = 1695
Left = 600
TabIndex = 3
Top = 720
Width = 6615
Begin MSDataGridLib.DataGrid DataGrid1
Height = 855
Left = 360
TabIndex = 4
Top = 480
Width = 5895
_ExtentX = 10398
_ExtentY = 1508
_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
End
End
Begin VB.CommandButton cmdExit
Caption = "退出 (&X)"
Height = 375
Left = 6000
TabIndex = 1
Top = 5520
Width = 1215
End
Begin VB.CommandButton cmdSave
Caption = "查询(&S)"
Height = 375
Left = 3720
TabIndex = 0
Top = 5520
Width = 1215
End
End
Attribute VB_Name = "frmInquireyginfo"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim mrc As ADODB.Recordset
Private Sub cmdExit_Click()
Unload Me
End Sub
Private Sub cmdInquire_Click()
Dim txtSQL As String
Set mrc = New ADODB.Recordset
With mrc
.ActiveConnection = cnn
.CursorLocation = adUseClient
.CursorType = adOpenKeyset
.LockType = adLockOptimistic
End With
If Trim(Combo1.Text) = "编号" Then
txtSQL = "select * from 员工信息表 where ygid=" & Text1.Text & ""
Else
If Trim(Combo1.Text) = "姓名" Then
txtSQL = "select * from 员工信息表 where ygname='" & Text1.Text & " '"
End If
End If
mrc.Open txtSQL
Set DataGrid1.DataSource = mrc
DataGrid1.ReBind
'Set DataGrid2.DataSource = mrc
'DataGrid2.ReBind
'Set DataGrid3.DataSource = mrc
'DataGrid3.ReBind
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -