📄 contractterminatefrm.frm
字号:
VERSION 5.00
Begin VB.Form contractterminatefrm
Caption = "合同终止"
ClientHeight = 5895
ClientLeft = 60
ClientTop = 450
ClientWidth = 8115
LinkTopic = "Form1"
MDIChild = -1 'True
ScaleHeight = 5895
ScaleWidth = 8115
WindowState = 2 'Maximized
Begin VB.CommandButton Command1
Caption = "确定"
Height = 495
Left = 6480
TabIndex = 5
Top = 2040
Width = 1215
End
Begin VB.CommandButton Command2
Caption = "取消"
Height = 495
Left = 6480
TabIndex = 4
Top = 3000
Width = 1215
End
Begin VB.TextBox Text2
BackColor = &H80000016&
Height = 500
Left = 3555
Locked = -1 'True
TabIndex = 3
Text = "Text2"
Top = 1920
Width = 1500
End
Begin VB.TextBox Text3
Height = 500
Left = 3555
TabIndex = 2
Top = 2760
Width = 1500
End
Begin VB.TextBox Text4
Height = 500
Left = 3555
TabIndex = 1
Top = 3600
Width = 1500
End
Begin VB.TextBox Text1
BackColor = &H80000016&
Height = 500
Left = 3555
Locked = -1 'True
TabIndex = 0
Text = "Text1"
Top = 1080
Width = 1500
End
Begin VB.Frame Frame2
Height = 3135
Left = 6240
TabIndex = 6
Top = 1200
Width = 1575
End
Begin VB.Frame Frame1
Height = 4935
Left = 1200
TabIndex = 7
Top = 240
Width = 5055
Begin VB.Label Label1
BackStyle = 0 'Transparent
Caption = "职员编号:"
Height = 615
Left = 840
TabIndex = 11
Top = 1080
Width = 1500
End
Begin VB.Label Label2
BackStyle = 0 'Transparent
Caption = "合同编号:"
Height = 495
Left = 840
TabIndex = 10
Top = 1920
Width = 1500
End
Begin VB.Label Label3
BackStyle = 0 'Transparent
Caption = "合同终止日期:"
Height = 375
Left = 840
TabIndex = 9
Top = 2760
Width = 1500
End
Begin VB.Label Label4
BackStyle = 0 'Transparent
Caption = "备注:"
Height = 615
Left = 840
TabIndex = 8
Top = 3600
Width = 1500
End
End
End
Attribute VB_Name = "contractterminatefrm"
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 = "" Then
MsgBox "信息不完整!"
Else
X = MsgBox("确定要终止这份合同吗?", vbYesNo + vbQuestion, "确认")
If X = vbYes Then
contractlistfrm.Adodc1.Recordset.Fields(5) = Text3.Text
contractlistfrm.Adodc1.Recordset.Fields(7) = Text4.Text
contractlistfrm.Adodc1.Recordset.Fields(6) = 1
contractlistfrm.Adodc1.Recordset.Update
contractlistfrm.Adodc1.Refresh
MsgBox "合同终止成功!", vbOKOnly + vbExclamation, "合同终止"
Unload Me
DataReport1.Show
DataEnvironment1.rscontractList.Requery '动态更新
End If
End If
End Sub
Private Sub Command2_Click()
Unload Me
contractlistfrm.Show
End Sub
Private Sub Form_Load()
Text1.Text = contractlistfrm.Adodc1.Recordset.Fields(0)
Text2.Text = contractlistfrm.Adodc1.Recordset.Fields(2)
Text4.Text = contractlistfrm.Adodc1.Recordset.Fields(7)
End Sub
Private Sub Form_Unload(cancel As Integer)
Unload contractlistfrm
End Sub
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -