?? f_zhaopincx.frm
字號:
Width = 1815
End
Begin VB.ComboBox Combo4
Appearance = 0 'Flat
Height = 300
Left = 2040
TabIndex = 13
Top = 1800
Width = 1815
End
Begin VB.ComboBox Combo3
Appearance = 0 'Flat
Height = 300
Left = 7080
TabIndex = 12
Top = 1800
Width = 1815
End
Begin MSComCtl2.DTPicker DTPicker3
DataField = "招聘日期"
Height = 300
Left = 2040
TabIndex = 15
Top = 1080
Width = 1815
_ExtentX = 3201
_ExtentY = 529
_Version = 393216
CheckBox = -1 'True
DateIsNull = -1 'True
Format = 69664769
CurrentDate = 36191
End
Begin Threed.SSCommand CmdXianShi_Exit
Height = 375
Left = 8040
TabIndex = 34
Top = 3960
Width = 1095
_Version = 65536
_ExtentX = 1931
_ExtentY = 661
_StockProps = 78
Caption = "&E.關 閉"
Font3D = 1
End
Begin VB.Label lblLabels
Caption = "人均費用"
Height = 255
Index = 7
Left = 5400
TabIndex = 29
Top = 3240
Width = 1095
End
Begin VB.Label lblLabels
Caption = "招聘費"
Height = 255
Index = 6
Left = 360
TabIndex = 28
Top = 3240
Width = 975
End
Begin VB.Label lblLabels
Caption = "應聘人數"
Height = 255
Index = 5
Left = 5400
TabIndex = 27
Top = 2520
Width = 735
End
Begin VB.Label lblLabels
Caption = "所屬部門"
Height = 255
Index = 4
Left = 360
TabIndex = 26
Top = 1920
Width = 975
End
Begin VB.Label lblLabels
Caption = "崗位名稱"
Height = 255
Index = 3
Left = 5400
TabIndex = 25
Top = 1800
Width = 855
End
Begin VB.Label lblLabels
Caption = "崗位編號"
Height = 255
Index = 2
Left = 360
TabIndex = 24
Top = 2640
Width = 855
End
Begin VB.Label lblLabels
Caption = "招聘方式"
Height = 255
Index = 1
Left = 5400
TabIndex = 23
Top = 1080
Width = 855
End
Begin VB.Label lblLabels
Caption = "招聘日期"
Height = 255
Index = 0
Left = 360
TabIndex = 22
Top = 1200
Width = 975
End
Begin VB.Label lblLabels
Caption = "招聘編號"
Height = 255
Index = 8
Left = 360
TabIndex = 21
Top = 480
Width = 975
End
End
End
Attribute VB_Name = "F_ZhaoPInCX"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Dim WithEvents rs As Recordset
Attribute rs.VB_VarHelpID = -1
Dim WithEvents adoPrimaryRS As Recordset
Attribute adoPrimaryRS.VB_VarHelpID = -1
Dim WithEvents adoXianshiRS As Recordset
Attribute adoXianshiRS.VB_VarHelpID = -1
Dim JieYue_ID As String '為找到ID 的查詢SQL 語句
Private Sub Check1_Click()
If Check1.Value = 1 Then
Check2.Value = 0
Combo1.Clear
Sql = "select distinct 崗位名稱 from 招聘登記"
Set rs = db.Execute(Sql)
Do While Not rs.EOF
If IsNull(rs("崗位名稱")) = False Then
Combo1.AddItem rs("崗位名稱")
End If
rs.MoveNext
Loop
Combo1.Visible = True
Label4.Visible = False
Label5.Visible = False
DTPicker1.Visible = False
DTPicker2.Visible = False
Frame2.Visible = False
Frame3.Visible = False
End If
End Sub
Private Sub Check2_Click()
If Check2.Value = 1 Then
Check1.Value = 0
Combo1.Visible = False
Label4.Visible = True
Label5.Visible = True
DTPicker1.Visible = True
DTPicker2.Visible = True
Frame2.Visible = False
Frame3.Visible = False
End If
End Sub
Private Sub CmdXianShi_Exit_Click()
Frame2.Visible = True
Frame3.Visible = False
End Sub
Private Sub Command1_Click()
Dim DataGrid_sql As String '數據表格中的數據源
Dim oText As TextBox
If Check1.Value = 1 Then
DataGrid_sql = "select * from 招聘登記 where 崗位名稱 ='" & Combo1.Text & "'"
End If
If Check2.Value = 1 Then
DataGrid_sql = "select * from 招聘登記 where 招聘日期 between ' " & DTPicker1 & " ' and ' " & DTPicker2 & " '"
End If
If Check1.Value = 1 Or Check2.Value = 1 Then
Set adoPrimaryRS = New Recordset
adoPrimaryRS.Open DataGrid_sql, db, adOpenStatic, adLockOptimistic
Set DataGrid1.DataSource = adoPrimaryRS
Set DTPicker3.DataSource = adoPrimaryRS
Set Combo3.DataSource = adoPrimaryRS
Set Combo4.DataSource = adoPrimaryRS
Frame3.Visible = False
Frame2.Visible = True
End If
End Sub
Private Sub Command2_Click()
RSGL.Enabled = True
Unload Me
End Sub
Private Sub Command3_Click()
Dim XianShi_sql As String '單條數據顯示的數據源
If JieYue_ID = "" Then
MsgBox "請您選擇其中一條信息!"
Exit Sub
Else
XianShi_sql = "select * from 招聘登記 where ID = " & JieYue_ID
Set adoXianshiRS = New Recordset
adoXianshiRS.Open XianShi_sql, db, adOpenStatic, adLockOptimistic
For Each oText In Me.txtFields
Set oText.DataSource = adoXianshiRS
Next
Set DTPicker3.DataSource = adoXianshiRS
Set Combo3.DataSource = adoXianshiRS
Set Combo4.DataSource = adoXianshiRS
End If
Frame2.Visible = False
Frame3.Visible = True
End Sub
Private Sub DataGrid1_Click()
If Not adoPrimaryRS.BOF And Not adoPrimaryRS.EOF Then
If Not IsNull(adoPrimaryRS.Fields("ID")) Then
JieYue_ID = adoPrimaryRS.Fields("ID")
Else
MsgBox "請您選擇其中一條信息!"
End If
Else
Exit Sub
End If
End Sub
Private Sub Form_Load()
On Error Resume Next
For Each TextBox In Me.Controls
TextBox.Font.Name = "宋體"
TextBox.Font.Size = 9
Next
Frame2.Visible = False
Frame3.Visible = False
For Each oText In Me.txtFields
oText.Locked = True
Next
DTPicker3.Enabled = True
Combo3.Enabled = True
Combo4.Enabled = True
End Sub
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -