F_LaoDongHeTongLiShi.frm
资源名称:dbbase.rar [点击查看]
上传用户:xiao_xia32
上传日期:2022-07-21
资源大小:1174k
文件大小:25k
源码类别:
企业管理
开发平台:
Visual Basic
- VERSION 5.00
- Object = "{86CF1D34-0C5F-11D2-A9FC-0000F8754DA1}#2.0#0"; "MSCOMCT2.OCX"
- Object = "{CDE57A40-8B86-11D0-B3C6-00A0C90AEA82}#1.0#0"; "MSDATGRD.OCX"
- Object = "{0BA686C6-F7D3-101A-993E-0000C0EF6F5E}#1.0#0"; "THREED32.OCX"
- Begin VB.Form F_LaoDongHeTongLiShi
- BorderStyle = 3 'Fixed Dialog
- Caption = "劳动合同历史"
- ClientHeight = 7560
- ClientLeft = 45
- ClientTop = 330
- ClientWidth = 10005
- ControlBox = 0 'False
- LinkTopic = "Form1"
- LockControls = -1 'True
- MaxButton = 0 'False
- MinButton = 0 'False
- Moveable = 0 'False
- ScaleHeight = 7560
- ScaleWidth = 10005
- ShowInTaskbar = 0 'False
- StartUpPosition = 2 '屏幕中心
- Begin VB.Frame Frame1
- Caption = "选择查询条件"
- Height = 1455
- Left = 120
- TabIndex = 50
- Top = 0
- Width = 9735
- Begin Threed.SSCommand Command1
- Height = 375
- Left = 6120
- TabIndex = 2
- Top = 840
- Width = 1095
- _Version = 65536
- _ExtentX = 1931
- _ExtentY = 661
- _StockProps = 78
- Caption = "&S.查 询"
- Font3D = 1
- End
- Begin VB.CheckBox Check1
- Caption = "Check1"
- Height = 255
- Left = 360
- TabIndex = 52
- Top = 390
- Width = 255
- End
- Begin VB.ComboBox Combo2
- Height = 300
- Left = 1800
- TabIndex = 1
- Top = 840
- Visible = 0 'False
- Width = 1695
- End
- Begin VB.ComboBox Command3
- Height = 300
- Left = 1800
- TabIndex = 0
- Top = 360
- Visible = 0 'False
- Width = 1695
- End
- Begin VB.CheckBox Check3
- Caption = "Check2"
- Height = 255
- Left = 360
- TabIndex = 51
- Top = 870
- Width = 255
- End
- Begin Threed.SSCommand Command2
- Height = 375
- Left = 7800
- TabIndex = 3
- Top = 840
- Width = 1095
- _Version = 65536
- _ExtentX = 1931
- _ExtentY = 661
- _StockProps = 78
- Caption = "&Q.关 闭"
- Font3D = 1
- End
- Begin VB.Label Label1
- Caption = "员工编号"
- Height = 255
- Left = 720
- TabIndex = 54
- Top = 400
- Width = 975
- End
- Begin VB.Label Label3
- Caption = "员工姓名"
- Height = 255
- Left = 720
- TabIndex = 53
- Top = 900
- Width = 975
- End
- End
- Begin VB.Frame Frame2
- Caption = "查询结果"
- Height = 5895
- Left = 120
- TabIndex = 5
- Top = 1560
- Width = 9735
- Begin MSDataGridLib.DataGrid DataGrid1
- Height = 4935
- Left = 240
- TabIndex = 6
- Top = 360
- Width = 9135
- _ExtentX = 16113
- _ExtentY = 8705
- _Version = 393216
- HeadLines = 1
- RowHeight = 15
- BeginProperty HeadFont {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- Weight = 400
- Underline = 0 'False
- Italic = 0 'False
- Strikethrough = 0 'False
- EndProperty
- BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851}
- Name = "MS Sans Serif"
- Size = 8.25
- Charset = 0
- 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 Threed.SSCommand SSCommand1
- Height = 375
- Left = 7920
- TabIndex = 4
- Top = 5400
- Width = 1095
- _Version = 65536
- _ExtentX = 1931
- _ExtentY = 661
- _StockProps = 78
- Caption = "&X.显 示"
- Font3D = 1
- End
- End
- Begin VB.Frame Frame3
- Height = 5895
- Left = 120
- TabIndex = 7
- Top = 1560
- Width = 9735
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "当事人约定的其他内容"
- Height = 765
- Index = 16
- Left = 1680
- TabIndex = 23
- Top = 3840
- Width = 4815
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "岗位"
- Height = 285
- Index = 15
- Left = 4800
- TabIndex = 22
- Top = 2288
- Width = 1695
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "部门"
- Height = 285
- Index = 14
- Left = 1680
- TabIndex = 21
- Top = 2288
- Width = 1695
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "所在街道办事处"
- Height = 285
- Index = 9
- Left = 1680
- TabIndex = 20
- Top = 1800
- Width = 4815
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "邮编"
- Height = 285
- Index = 8
- Left = 7920
- TabIndex = 19
- Top = 840
- Width = 1695
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "家庭通讯地址"
- Height = 285
- Index = 7
- Left = 1680
- TabIndex = 18
- Top = 1320
- Width = 4815
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "身份证号"
- Height = 285
- Index = 6
- Left = 7920
- TabIndex = 17
- Top = 1320
- Width = 1695
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "性别"
- Height = 285
- Index = 4
- Left = 1680
- TabIndex = 16
- Top = 840
- Width = 1695
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "文化程度"
- Height = 285
- Index = 3
- Left = 7920
- TabIndex = 15
- Top = 360
- Width = 1695
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "姓名"
- Height = 285
- Index = 1
- Left = 4920
- TabIndex = 14
- Top = 360
- Width = 1575
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "劳动合同编号"
- Height = 285
- Index = 0
- Left = 1680
- TabIndex = 13
- Top = 360
- Width = 1695
- End
- Begin VB.ComboBox Combo4
- Appearance = 0 'Flat
- DataField = "停止方式"
- Height = 300
- Left = 4800
- TabIndex = 10
- Top = 4793
- Width = 1695
- End
- Begin VB.TextBox txtFields
- Appearance = 0 'Flat
- DataField = "签定期限"
- Height = 285
- Index = 2
- Left = 1680
- TabIndex = 9
- Top = 2768
- Width = 1695
- End
- Begin VB.ComboBox Combo3
- Appearance = 0 'Flat
- DataField = "是否已停止"
- Height = 300
- Left = 1680
- TabIndex = 8
- Top = 4793
- Width = 1695
- End
- Begin MSComCtl2.DTPicker DTPicker3
- DataField = "出生日期"
- BeginProperty DataFormat
- Type = 1
- Format = "yyyy""年""M""月""d""日"""
- HaveTrueFalseNull= 0
- FirstDayOfWeek = 0
- FirstWeekOfYear = 0
- LCID = 2052
- SubFormatType = 3
- EndProperty
- Height = 300
- Left = 4920
- TabIndex = 11
- Top = 832
- Width = 1575
- _ExtentX = 2778
- _ExtentY = 529
- _Version = 393216
- CheckBox = -1 'True
- DateIsNull = -1 'True
- Format = 127533057
- CurrentDate = 36189
- End
- Begin MSComCtl2.DTPicker DTPicker4
- DataField = "签定时间"
- Height = 300
- Left = 7920
- TabIndex = 12
- Top = 2280
- Width = 1695
- _ExtentX = 2990
- _ExtentY = 529
- _Version = 393216
- CheckBox = -1 'True
- DateIsNull = -1 'True
- Format = 127533057
- CurrentDate = 36186
- End
- Begin MSComCtl2.DTPicker DTPicker5
- DataField = "结束时间"
- Height = 300
- Left = 7920
- TabIndex = 24
- Top = 2760
- Width = 1695
- _ExtentX = 2990
- _ExtentY = 529
- _Version = 393216
- CheckBox = -1 'True
- DateIsNull = -1 'True
- Format = 127533057
- CurrentDate = 36186
- End
- Begin MSComCtl2.DTPicker DTPicker6
- DataField = "开始时间"
- Height = 300
- Left = 4800
- TabIndex = 25
- Top = 2760
- Width = 1695
- _ExtentX = 2990
- _ExtentY = 529
- _Version = 393216
- CheckBox = -1 'True
- DateIsNull = -1 'True
- Format = 127533057
- CurrentDate = 36186
- End
- Begin MSComCtl2.DTPicker DTPicker7
- DataField = "试用开始时间"
- Height = 300
- Left = 1680
- TabIndex = 26
- Top = 3360
- Width = 1695
- _ExtentX = 2990
- _ExtentY = 529
- _Version = 393216
- CheckBox = -1 'True
- DateIsNull = -1 'True
- Format = 127533057
- CurrentDate = 36186
- End
- Begin MSComCtl2.DTPicker DTPicker8
- DataField = "试用结束时间"
- Height = 300
- Left = 4800
- TabIndex = 27
- Top = 3360
- Width = 1695
- _ExtentX = 2990
- _ExtentY = 529
- _Version = 393216
- CheckBox = -1 'True
- DateIsNull = -1 'True
- Format = 127533057
- CurrentDate = 36186
- End
- Begin MSComCtl2.DTPicker DTPicker9
- DataField = "停止时间"
- Height = 300
- Left = 7920
- TabIndex = 28
- Top = 4800
- Width = 1695
- _ExtentX = 2990
- _ExtentY = 529
- _Version = 393216
- CheckBox = -1 'True
- DateIsNull = -1 'True
- Format = 127533057
- CurrentDate = 36186
- End
- Begin Threed.SSCommand CmdXianShi_Exit
- Height = 375
- Left = 8160
- TabIndex = 55
- Top = 5280
- Width = 1095
- _Version = 65536
- _ExtentX = 1931
- _ExtentY = 661
- _StockProps = 78
- Caption = "&E.关 闭"
- Font3D = 1
- End
- Begin VB.Label lblLabels
- Caption = "停止时间"
- Height = 255
- Index = 18
- Left = 6720
- TabIndex = 49
- Top = 4823
- Width = 1095
- End
- Begin VB.Label lblLabels
- Caption = "停止方式"
- Height = 255
- Index = 17
- Left = 3720
- TabIndex = 48
- Top = 4823
- Width = 1215
- End
- Begin VB.Label lblLabels
- Caption = "当事人约定的其他内容"
- Height = 495
- Index = 16
- Left = 360
- TabIndex = 47
- Top = 3840
- Width = 1095
- End
- Begin VB.Label lblLabels
- Caption = "岗位:"
- Height = 255
- Index = 15
- Left = 3600
- TabIndex = 46
- Top = 2303
- Width = 615
- End
- Begin VB.Label lblLabels
- Caption = "部 门"
- Height = 255
- Index = 14
- Left = 360
- TabIndex = 45
- Top = 2303
- Width = 735
- End
- Begin VB.Label lblLabels
- Caption = "试用结束时间"
- Height = 255
- Index = 13
- Left = 3480
- TabIndex = 44
- Top = 3383
- Width = 1095
- End
- Begin VB.Label lblLabels
- Caption = "试用开始时间"
- Height = 255
- Index = 12
- Left = 360
- TabIndex = 43
- Top = 3383
- Width = 1215
- End
- Begin VB.Label lblLabels
- Caption = "结束时间"
- Height = 255
- Index = 11
- Left = 6720
- TabIndex = 42
- Top = 2783
- Width = 975
- End
- Begin VB.Label lblLabels
- Caption = "开始时间:"
- DataField = $"F_LaoDongHeTongLiShi.frx":0000
- Height = 255
- Index = 10
- Left = 3600
- TabIndex = 41
- Top = 2783
- Width = 1215
- End
- Begin VB.Label lblLabels
- Caption = "所在街道办事处"
- Height = 255
- Index = 9
- Left = 360
- TabIndex = 40
- Top = 1800
- Width = 1335
- End
- Begin VB.Label lblLabels
- Caption = "邮 编"
- Height = 255
- Index = 8
- Left = 6720
- TabIndex = 39
- Top = 855
- Width = 615
- End
- Begin VB.Label lblLabels
- Caption = "家庭通讯地址"
- Height = 255
- Index = 7
- Left = 360
- TabIndex = 38
- Top = 1335
- Width = 1215
- End
- Begin VB.Label lblLabels
- Caption = "身份证号"
- Height = 255
- Index = 6
- Left = 6720
- TabIndex = 37
- Top = 1335
- Width = 855
- End
- Begin VB.Label lblLabels
- Caption = "出生日期:"
- Height = 255
- Index = 5
- Left = 3600
- TabIndex = 36
- Top = 855
- Width = 855
- End
- Begin VB.Label lblLabels
- Caption = "性 别"
- Height = 255
- Index = 4
- Left = 360
- TabIndex = 35
- Top = 855
- Width = 735
- End
- Begin VB.Label lblLabels
- Caption = "文化程度"
- Height = 255
- Index = 3
- Left = 6720
- TabIndex = 34
- Top = 375
- Width = 735
- End
- Begin VB.Label lblLabels
- Caption = "签定时间:"
- Height = 255
- Index = 2
- Left = 6720
- TabIndex = 33
- Top = 2303
- Width = 855
- End
- Begin VB.Label lblLabels
- Caption = "姓 名"
- Height = 255
- Index = 1
- Left = 3600
- TabIndex = 32
- Top = 375
- Width = 1095
- End
- Begin VB.Label lblLabels
- Caption = "劳动合同编号"
- Height = 255
- Index = 0
- Left = 360
- TabIndex = 31
- Top = 375
- Width = 1215
- End
- Begin VB.Label lblLabels
- Caption = "签定期限:"
- DataField = $"F_LaoDongHeTongLiShi.frx":00C8
- Height = 255
- Index = 19
- Left = 360
- TabIndex = 30
- Top = 2783
- Width = 1215
- End
- Begin VB.Label lblLabels
- Caption = "是否已停止"
- Height = 255
- Index = 20
- Left = 360
- TabIndex = 29
- Top = 4823
- Width = 1215
- End
- End
- End
- Attribute VB_Name = "F_LaoDongHeTongLiShi"
- 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 语句
- Private Sub Check1_Click()
- If Check1.Value = 1 Then
- Check3.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
- Combo2.Visible = False
- Frame2.Visible = False
- Frame3.Visible = False
- End If
- End Sub
- Private Sub Check3_Click()
- Check1.Value = 0
- Combo2.Clear
- Sql = "select distinct 姓名 from 劳动合同"
- Set rs = db.Execute(Sql)
- Do While Not rs.EOF
- If IsNull(rs("姓名")) = False Then
- Combo2.AddItem rs("姓名")
- End If
- rs.MoveNext
- Loop
- Combo2.Visible = True
- Combo1.Visible = False
- Frame2.Visible = False
- Frame3.Visible = False
- 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 Check3.Value = 1 Then
- DataGrid_sql = "select * from 劳动合同 where 姓名 ='" & Combo2.Text & "'"
- End If
- Set adoPrimaryRS = New Recordset
- adoPrimaryRS.Open DataGrid_sql, db, adOpenStatic, adLockOptimistic
- Set DataGrid1.DataSource = adoPrimaryRS
- Frame3.Visible = False
- Frame2.Visible = True
- End Sub
- Private Sub Command2_Click()
- RSGL.Enabled = True
- Unload Me
- 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 "请您选择其中一条信息!"
- 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
- End Sub
- Private Sub SSCommand1_Click()
- Dim XianShi_sql As String '单条数据显示的数据源
- If Row_ID = "" Then
- MsgBox "请您选择其中一条信息!"
- Exit Sub
- Else
- XianShi_sql = "select * from 劳动合同 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