FixPay2.frm
上传用户:cntx88
上传日期:2022-08-07
资源大小:169k
文件大小:2k
源码类别:

企业管理

开发平台:

Visual Basic

  1. VERSION 5.00
  2. Begin VB.Form FixPay2 
  3.    BorderStyle     =   1  'Fixed Single
  4.    Caption         =   "修改月工资"
  5.    ClientHeight    =   1710
  6.    ClientLeft      =   45
  7.    ClientTop       =   435
  8.    ClientWidth     =   4725
  9.    LinkTopic       =   "Form1"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   1710
  13.    ScaleWidth      =   4725
  14.    StartUpPosition =   3  'Windows Default
  15.    Begin VB.CommandButton Command2 
  16.       Cancel          =   -1  'True
  17.       Caption         =   "取消"
  18.       Height          =   375
  19.       Left            =   2640
  20.       TabIndex        =   3
  21.       Top             =   1200
  22.       Width           =   1455
  23.    End
  24.    Begin VB.CommandButton Command1 
  25.       Caption         =   "确定"
  26.       Default         =   -1  'True
  27.       Height          =   375
  28.       Left            =   600
  29.       TabIndex        =   2
  30.       Top             =   1200
  31.       Width           =   1455
  32.    End
  33.    Begin VB.Frame Frame1 
  34.       Caption         =   "请输入修改后的工资"
  35.       Height          =   975
  36.       Left            =   120
  37.       TabIndex        =   0
  38.       Top             =   120
  39.       Width           =   4455
  40.       Begin VB.TextBox Text1 
  41.          Appearance      =   0  'Flat
  42.          Height          =   270
  43.          Left            =   120
  44.          TabIndex        =   1
  45.          Text            =   "Text1"
  46.          Top             =   360
  47.          Width           =   4215
  48.       End
  49.    End
  50. End
  51. Attribute VB_Name = "FixPay2"
  52. Attribute VB_GlobalNameSpace = False
  53. Attribute VB_Creatable = False
  54. Attribute VB_PredeclaredId = True
  55. Attribute VB_Exposed = False
  56. Option Explicit
  57. Public Cancel As Boolean        '窗体是否取消判断标志
  58. Private Sub Command1_Click()
  59.     If Text1.Text = "" Then     '用户修改数据完整性和有效性判断
  60.         MsgBox "工资不能为空!", vbCritical
  61.         Text1.SetFocus
  62.         Exit Sub
  63.     End If
  64.     If Not IsNumeric(Text1.Text) Then
  65.         MsgBox "工资必须是数字!", vbCritical
  66.         Text1.SetFocus
  67.         Exit Sub
  68.     End If
  69.     Cancel = True       '设置窗体结果状态是--确认
  70.     Me.Hide     '返回
  71. End Sub
  72. Private Sub Command2_Click()
  73.     Cancel = False      '设置窗体结果状态是--取消
  74.     Me.Hide     '返回
  75. End Sub