📄 contractrenewfrm.frm
字号:
VERSION 5.00
Begin VB.Form contractrenewfrm
Caption = "合同续签"
ClientHeight = 6345
ClientLeft = 60
ClientTop = 450
ClientWidth = 8160
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 6345
ScaleWidth = 8160
WindowState = 2 'Maximized
Begin VB.TextBox Text1
BackColor = &H80000016&
Height = 500
Left = 2955
Locked = -1 'True
TabIndex = 15
Text = "Text1"
Top = 960
Width = 1500
End
Begin VB.TextBox Text6
Height = 500
Left = 2955
TabIndex = 14
Top = 3960
Width = 1500
End
Begin VB.TextBox Text5
Height = 500
Left = 2955
TabIndex = 13
Top = 3360
Width = 1500
End
Begin VB.TextBox Text4
Height = 500
Left = 2955
TabIndex = 12
Top = 2760
Width = 1500
End
Begin VB.TextBox Text3
Height = 500
Left = 2955
TabIndex = 11
Top = 2160
Width = 1500
End
Begin VB.TextBox Text2
BackColor = &H80000016&
Height = 500
Left = 2955
Locked = -1 'True
TabIndex = 10
Text = "Text2"
Top = 1560
Width = 1500
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 5880
TabIndex = 2
Top = 3000
Width = 1215
End
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 5880
TabIndex = 1
Top = 2040
Width = 1215
End
Begin VB.Frame Frame2
Height = 3135
Left = 5640
TabIndex = 3
Top = 1200
Width = 1575
End
Begin VB.Frame Frame1
Height = 5055
Left = 600
TabIndex = 0
Top = 240
Width = 5055
Begin VB.Label Label6
BackStyle = 0 'Transparent
Caption = "备注:"
Height = 495
Left = 840
TabIndex = 9
Top = 3840
Width = 1500
End
Begin VB.Label Label5
BackStyle = 0 'Transparent
Caption = "新合同号:"
Height = 375
Left = 840
TabIndex = 8
Top = 3360
Width = 1500
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "合同续签期限:"
Height = 615
Left = 840
TabIndex = 7
Top = 2760
Width = 1500
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "合同续签到日期:"
Height = 375
Left = 840
TabIndex = 6
Top = 2160
Width = 1500
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "合同编号:"
Height = 495
Left = 840
TabIndex = 5
Top = 1560
Width = 1500
End
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "职员编号:"
Height = 615
Left = 840
TabIndex = 4
Top = 960
Width = 1500
End
End
End
Attribute VB_Name = "contractrenewfrm"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command1_Click()
If Text1 = "" Or Text2 = "" Or Text3 = "" Or Text4 = "" Or Text5 = "" Or Text6 = "" Then
MsgBox "信息不完整!"
Else
X = MsgBox("确定要续签这份合同吗?", vbYesNo + vbQuestion, "确认")
If X = vbYes Then
renewlistfrm.Adodc1.Recordset.Fields(2) = Text5.Text
renewlistfrm.Adodc1.Recordset.Fields(3) = Text4.Text
renewlistfrm.Adodc1.Recordset.Fields(5) = Text3.Text
renewlistfrm.Adodc1.Recordset.Fields(7) = Text6.Text
renewlistfrm.Adodc1.Recordset.Fields(6) = 0
renewlistfrm.Adodc1.Recordset.Update
renewlistfrm.Adodc1.Refresh
MsgBox "合同续签成功!", vbOKOnly + vbExclamation, "合同续签"
Unload Me
DataReport1.Show
DataEnvironment1.rscontractList.Requery '动态更新
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
renewlistfrm.Show
End Sub
Private Sub Form_Load()
Text1.Text = renewlistfrm.Adodc1.Recordset.Fields(0)
Text2.Text = renewlistfrm.Adodc1.Recordset.Fields(2)
End Sub
Private Sub Form_Unload(cancel As Integer)
Unload renewlistfrm
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -