FixPay2.frm
上传用户:cntx88
上传日期:2022-08-07
资源大小:169k
文件大小:2k
- VERSION 5.00
- Begin VB.Form FixPay2
- BorderStyle = 1 'Fixed Single
- Caption = "修改月工资"
- ClientHeight = 1710
- ClientLeft = 45
- ClientTop = 435
- ClientWidth = 4725
- LinkTopic = "Form1"
- MaxButton = 0 'False
- MinButton = 0 'False
- ScaleHeight = 1710
- ScaleWidth = 4725
- StartUpPosition = 3 'Windows Default
- Begin VB.CommandButton Command2
- Cancel = -1 'True
- Caption = "取消"
- Height = 375
- Left = 2640
- TabIndex = 3
- Top = 1200
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "确定"
- Default = -1 'True
- Height = 375
- Left = 600
- TabIndex = 2
- Top = 1200
- Width = 1455
- End
- Begin VB.Frame Frame1
- Caption = "请输入修改后的工资"
- Height = 975
- Left = 120
- TabIndex = 0
- Top = 120
- Width = 4455
- Begin VB.TextBox Text1
- Appearance = 0 'Flat
- Height = 270
- Left = 120
- TabIndex = 1
- Text = "Text1"
- Top = 360
- Width = 4215
- End
- End
- End
- Attribute VB_Name = "FixPay2"
- Attribute VB_GlobalNameSpace = False
- Attribute VB_Creatable = False
- Attribute VB_PredeclaredId = True
- Attribute VB_Exposed = False
- Option Explicit
- Public Cancel As Boolean '窗体是否取消判断标志
- Private Sub Command1_Click()
- If Text1.Text = "" Then '用户修改数据完整性和有效性判断
- MsgBox "工资不能为空!", vbCritical
- Text1.SetFocus
- Exit Sub
- End If
- If Not IsNumeric(Text1.Text) Then
- MsgBox "工资必须是数字!", vbCritical
- Text1.SetFocus
- Exit Sub
- End If
- Cancel = True '设置窗体结果状态是--确认
- Me.Hide '返回
- End Sub
- Private Sub Command2_Click()
- Cancel = False '设置窗体结果状态是--取消
- Me.Hide '返回
- End Sub