?? f_laodonghetongyubao.frm
字號(hào):
DateIsNull = -1 'True
Format = 66519041
CurrentDate = 36186
End
Begin MSComCtl2.DTPicker DTPicker7
DataField = "試用開(kāi)始時(shí)間"
Height = 300
Left = 1680
TabIndex = 20
Top = 3360
Width = 1695
_ExtentX = 2990
_ExtentY = 529
_Version = 393216
CheckBox = -1 'True
DateIsNull = -1 'True
Format = 66519041
CurrentDate = 36186
End
Begin MSComCtl2.DTPicker DTPicker8
DataField = "試用結(jié)束時(shí)間"
Height = 300
Left = 4800
TabIndex = 21
Top = 3360
Width = 1695
_ExtentX = 2990
_ExtentY = 529
_Version = 393216
CheckBox = -1 'True
DateIsNull = -1 'True
Format = 66519041
CurrentDate = 36186
End
Begin MSComCtl2.DTPicker DTPicker9
DataField = "停止時(shí)間"
Height = 300
Left = 7920
TabIndex = 22
Top = 4800
Width = 1695
_ExtentX = 2990
_ExtentY = 529
_Version = 393216
CheckBox = -1 'True
Format = 66519041
CurrentDate = 36186
End
Begin VB.Label lblLabels
Caption = "是否已停止:"
Height = 255
Index = 20
Left = 360
TabIndex = 43
Top = 4800
Width = 1215
End
Begin VB.Label lblLabels
Caption = "簽定期限:"
DataField = $"F_LaoDongHeTongYuBao.frx":0000
Height = 255
Index = 19
Left = 360
TabIndex = 42
Top = 2760
Width = 1215
End
Begin VB.Label lblLabels
Caption = "勞動(dòng)合同編號(hào):"
Height = 255
Index = 0
Left = 360
TabIndex = 41
Top = 360
Width = 1215
End
Begin VB.Label lblLabels
Caption = "姓名:"
Height = 255
Index = 1
Left = 3600
TabIndex = 40
Top = 360
Width = 1095
End
Begin VB.Label lblLabels
Caption = "簽定時(shí)間:"
Height = 255
Index = 2
Left = 6720
TabIndex = 39
Top = 2280
Width = 855
End
Begin VB.Label lblLabels
Caption = "文化程度:"
Height = 255
Index = 3
Left = 6720
TabIndex = 38
Top = 360
Width = 735
End
Begin VB.Label lblLabels
Caption = "性別:"
Height = 255
Index = 4
Left = 360
TabIndex = 37
Top = 840
Width = 735
End
Begin VB.Label lblLabels
Caption = "出生日期:"
Height = 255
Index = 5
Left = 3600
TabIndex = 36
Top = 840
Width = 855
End
Begin VB.Label lblLabels
Caption = "身份證號(hào):"
Height = 255
Index = 6
Left = 6720
TabIndex = 35
Top = 1320
Width = 855
End
Begin VB.Label lblLabels
Caption = "家庭通訊地址:"
Height = 255
Index = 7
Left = 360
TabIndex = 34
Top = 1320
Width = 1215
End
Begin VB.Label lblLabels
Caption = "郵編:"
Height = 255
Index = 8
Left = 6720
TabIndex = 33
Top = 840
Width = 615
End
Begin VB.Label lblLabels
Caption = "所在街道辦事處:"
Height = 255
Index = 9
Left = 360
TabIndex = 32
Top = 1800
Width = 1335
End
Begin VB.Label lblLabels
Caption = "開(kāi)始時(shí)間:"
DataField = $"F_LaoDongHeTongYuBao.frx":00C8
Height = 255
Index = 10
Left = 3600
TabIndex = 31
Top = 2760
Width = 1215
End
Begin VB.Label lblLabels
Caption = "結(jié)束時(shí)間:"
Height = 255
Index = 11
Left = 6720
TabIndex = 30
Top = 2760
Width = 975
End
Begin VB.Label lblLabels
Caption = "試用開(kāi)始時(shí)間:"
Height = 255
Index = 12
Left = 360
TabIndex = 29
Top = 3360
Width = 1215
End
Begin VB.Label lblLabels
Caption = "試用結(jié)束時(shí)間:"
Height = 255
Index = 13
Left = 3480
TabIndex = 28
Top = 3360
Width = 1095
End
Begin VB.Label lblLabels
Caption = "部門(mén):"
Height = 255
Index = 14
Left = 360
TabIndex = 27
Top = 2280
Width = 735
End
Begin VB.Label lblLabels
Caption = "崗位:"
Height = 255
Index = 15
Left = 3600
TabIndex = 26
Top = 2280
Width = 615
End
Begin VB.Label lblLabels
Caption = "當(dāng)事人約定的其他內(nèi)容:"
Height = 495
Index = 16
Left = 360
TabIndex = 25
Top = 3840
Width = 1095
End
Begin VB.Label lblLabels
Caption = "停止方式:"
Height = 255
Index = 17
Left = 3720
TabIndex = 24
Top = 4800
Width = 1215
End
Begin VB.Label lblLabels
Caption = "停止時(shí)間:"
Height = 255
Index = 18
Left = 6720
TabIndex = 23
Top = 4800
Width = 1095
End
End
End
Attribute VB_Name = "F_LaoDongHeTongYuBao"
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 Row_ID As String '為找到ID 的查詢SQL 語(yǔ)句
Private Sub Check2_Click()
If Check2.Value = 1 Then
Label4.Visible = True
Label5.Visible = True
DTPicker1.Visible = True
DTPicker2.Visible = True
Frame2.Visible = True
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 '數(shù)據(jù)表格中的數(shù)據(jù)源
Dim oText As TextBox
If Check2.Value = 1 Then
DataGrid_sql = "select * from 勞動(dòng)合同 where 是否已停止 = '否 ' and 停止時(shí)間 between ' " & DTPicker1 & " ' and ' " & DTPicker2 & " '"
End If
If Check2.Value = 1 Then
Set adoPrimaryRS = New Recordset
adoPrimaryRS.Open DataGrid_sql, db, adOpenStatic, adLockOptimistic
Set DataGrid1.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 '單條數(shù)據(jù)顯示的數(shù)據(jù)源
If Row_ID = "" Then
MsgBox "請(qǐng)您選擇其中一條信息!"
Exit Sub
Else
XianShi_sql = "select * from 勞動(dòng)合同 where ID = " & Row_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 DTPicker4.DataSource = adoXianshiRS
Set DTPicker5.DataSource = adoXianshiRS
Set DTPicker6.DataSource = adoXianshiRS
Set DTPicker7.DataSource = adoXianshiRS
Set DTPicker8.DataSource = adoXianshiRS
Set DTPicker9.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
Row_ID = adoPrimaryRS.Fields("ID")
Else
MsgBox "請(qǐng)您選擇其中一條信息!"
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
DTPicker4.Enabled = True
DTPicker5.Enabled = True
DTPicker6.Enabled = True
DTPicker7.Enabled = True
DTPicker8.Enabled = True
DTPicker9.Enabled = True
Combo3.Enabled = True
Combo4.Enabled = True
Frame2.Visible = False
Frame3.Visible = False
End Sub
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -