📄 frmz_sqjz_syry.frm
字号:
Height = 300
Left = 3720
TabIndex = 53
Top = 1680
Width = 3135
End
Begin VB.TextBox Text13
Height = 300
Left = 1080
TabIndex = 51
Top = 1680
Width = 1630
End
Begin MSComCtl2.DTPicker DTPicker3
Height = 300
Left = 5520
TabIndex = 49
Top = 1200
Width = 1335
_ExtentX = 2355
_ExtentY = 529
_Version = 393216
Format = 66453505
CurrentDate = 38157
End
Begin VB.CheckBox Check2
Caption = "已办理最低保障"
Height = 255
Left = 3000
TabIndex = 47
Top = 1320
Width = 1695
End
Begin VB.CheckBox Check1
Caption = "享受失业保障金"
Height = 255
Left = 3000
TabIndex = 46
Top = 1080
Width = 1695
End
Begin VB.ComboBox Combo4
Height = 300
ItemData = "frmz_SQJZ_SYRY.frx":00C4
Left = 1080
List = "frmz_SQJZ_SYRY.frx":00D1
TabIndex = 45
Text = "已就业"
Top = 1200
Width = 1630
End
Begin VB.TextBox Text16
Height = 270
Left = 3720
TabIndex = 44
Top = 720
Width = 3135
End
Begin VB.TextBox Text15
Height = 270
Left = 1080
TabIndex = 43
Top = 720
Width = 1630
End
Begin VB.TextBox Text12
Height = 270
Left = 3720
TabIndex = 42
Top = 240
Width = 3135
End
Begin MSComCtl2.DTPicker DTPicker2
Height = 300
Left = 1080
TabIndex = 41
Top = 240
Width = 1630
_ExtentX = 2884
_ExtentY = 529
_Version = 393216
Format = 66453505
CurrentDate = 38157
End
Begin VB.TextBox Text14
Height = 615
Left = 1080
TabIndex = 1
Top = 2160
Width = 5775
End
Begin VB.Label Label23
Caption = "要求月收入"
Height = 300
Left = 2760
TabIndex = 52
Top = 1800
Width = 1095
End
Begin VB.Label Label21
Caption = "求职意向"
Height = 255
Left = 240
TabIndex = 50
Top = 1800
Width = 855
End
Begin VB.Label Label19
Caption = "结束日期"
Height = 255
Left = 4680
TabIndex = 48
Top = 1320
Width = 855
End
Begin VB.Label Label15
Caption = "失业日期"
Height = 255
Left = 240
TabIndex = 7
Top = 360
Width = 1095
End
Begin VB.Label Label16
Caption = "失业档案号"
Height = 255
Left = 2760
TabIndex = 6
Top = 360
Width = 1095
End
Begin VB.Label Label17
Caption = "原 职 业"
Height = 255
Left = 240
TabIndex = 5
Top = 840
Width = 735
End
Begin VB.Label Label18
Caption = "原工作单位"
Height = 375
Left = 2760
TabIndex = 4
Top = 840
Width = 1215
End
Begin VB.Label Label20
Caption = "就业状况"
Height = 255
Left = 240
TabIndex = 3
Top = 1320
Width = 735
End
Begin VB.Label Label22
Caption = "备 注"
Height = 375
Left = 240
TabIndex = 2
Top = 2160
Width = 735
End
End
End
Attribute VB_Name = "frm_SQJZ_SYRY"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Cmd_add_Click()
Call main
If Text12.Text = "" Then
MsgBox "输入不能为空"
Else
frm_CZRK_HKB.Adodc1.RecordSource = "select * from Table_HKB where 姓名='" + Text1.Text + "'"
frm_CZRK_HKB.Adodc1.Refresh
If frm_CZRK_HKB.Adodc1.Recordset.RecordCount > 0 Then
frm_SQJZ_ZB.Adodc1.RecordSource = "select * from Table_SQJZ_SYRY where 失业档案号='" + Text12.Text + "'"
frm_SQJZ_ZB.Adodc1.Refresh
If frm_SQJZ_ZB.Adodc1.Recordset.RecordCount > 0 Then
MsgBox "此人的信息已经存在,输入不能继续", 48, "提示"
Else
Text18.Text = frm_CZRK_HKB.Adodc1.Recordset.Fields("人口编号")
Set adoRs = adoCon.Execute("insert into Table_SQJZ_SYRY values(" & Text12 & ",'" & Text18 & "','" & Text1 & "','" & Text2 & "','" & Combo1 & "','" & DTPicker1 & "','" & Text3 & "','" & Combo2 & "','" & Combo3 & "','" & Text4 & "','" & Text5 & "','" & Text6 & "','" & Text7 & "','" & Text8 & "','" & Text9 & "','" & Text10 & "','" & Text11 & "','" & DTPicker2 & "','" & Text15 & "','" & Text16 & "','" & Combo4 & "','" & Check1 & "','" & DTPicker3 & "','" & Check2 & "','" & Text13 & "','" & Text17 & "','" & Text14 & "')")
MsgBox "数据保存成功!", 32, "人口信息管理系统"
Unload Me
frm_SQJZ_ZB.Adodc1.Refresh
End If
Else
MsgBox "数据库中没有此人的信息", 48, "提示"
End If
End If
adoCon.Close
End Sub
Private Sub Cmd_cancel_Click()
Unload Me
End Sub
Private Sub Cmd_select_Click()
frm_SQJZ_ryxz.Show
End Sub
Private Sub Combo4_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
DTPicker3.SetFocus
Else
End If
End Sub
Private Sub DTPicker2_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text12.SetFocus
Else
End If
End Sub
Private Sub DTPicker3_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text13.SetFocus
Else
End If
End Sub
Private Sub Form_Load()
Me.Left = (Screen.Width - Me.Width) / 2
Me.Top = (Screen.Height - Me.Height) / 2
End Sub
Private Sub Text12_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Dim StrInput, Temp As String
Dim i, Length As Integer
i = 1
StrInput = Text12.Text
Length = Len(StrInput)
If Text12.Text = "" Then
MsgBox "输入不能为空", , "提示"
Text12.SetFocus
Else
Do While (i <= Length)
Temp = Mid$(StrInput, i, 1)
If Asc(Temp) < 48 Or Asc(Temp) > 57 Then
If i = 1 Then
MsgBox "输入数据非法!!", , "提示"
Else
End If
Text12.Text = ""
Text12.SetFocus
Else
End If
i = i + 1
Loop
If Text12.Text = "" Then
Text12.SetFocus
Else
Text15.SetFocus
End If
End If
Else
End If
End Sub
Private Sub Text13_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text17.SetFocus
Else
End If
End Sub
Private Sub Text15_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text16.SetFocus
Else
End If
End Sub
Private Sub Text16_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Combo4.SetFocus
Else
End If
End Sub
Private Sub Text17_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = 13 Then
Text14.SetFocus
Else
End If
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -