inputrq.frm

来自「一套VB完整的灯具销售管理系统设计」· FRM 代码 · 共 123 行

FRM
123 行
字号
VERSION 5.00
Object = "{C932BA88-4374-101B-A56C-00AA003668DC}#1.1#0"; "MSMASK32.OCX"
Begin VB.Form InputRq 
   AutoRedraw      =   -1  'True
   BackColor       =   &H00400040&
   BorderStyle     =   3  'Fixed Dialog
   ClientHeight    =   915
   ClientLeft      =   45
   ClientTop       =   45
   ClientWidth     =   5640
   ControlBox      =   0   'False
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   915
   ScaleWidth      =   5640
   ShowInTaskbar   =   0   'False
   StartUpPosition =   2  'CenterScreen
   Begin VB.CommandButton Closeform 
      Cancel          =   -1  'True
      Caption         =   "放弃"
      Height          =   405
      Left            =   4725
      TabIndex        =   3
      Top             =   240
      Width           =   750
   End
   Begin VB.CommandButton Sure 
      Caption         =   "确认"
      Default         =   -1  'True
      Height          =   405
      Left            =   3900
      TabIndex        =   2
      Top             =   240
      Width           =   750
   End
   Begin MSMask.MaskEdBox MaskStr 
      Height          =   345
      Left            =   2580
      TabIndex        =   1
      Top             =   270
      Width           =   1065
      _ExtentX        =   1879
      _ExtentY        =   609
      _Version        =   327680
      ForeColor       =   12582912
      MaxLength       =   2
      BeginProperty Font {0BE35203-8F91-11CE-9DE3-00AA004BB851} 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Mask            =   "##"
      PromptChar      =   "_"
   End
   Begin VB.Label PromptStr 
      AutoSize        =   -1  'True
      BackStyle       =   0  'Transparent
      Caption         =   "请输入年份"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H0000C0C0&
      Height          =   240
      Left            =   345
      TabIndex        =   0
      Top             =   315
      Width           =   1200
   End
End
Attribute VB_Name = "InputRq"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub CloseForm_Click()
TjZijin.DisplayLab.Caption = "分类统计"
Unload Me
End Sub

Private Sub Sure_Click()
If Val(MaskStr.Text) = 0 Then Exit Sub
If TjZijin.Option1.Value = True Then
   TjZijin.DisplayLab.Caption = "分类统计( " & MaskStr.Text & " )年资金情况"
   TjZijin.RqHide.Text = MaskStr.Text
   Unload Me
   Exit Sub
End If
If TjZijin.Option2.Value = True Then
   If Val(MaskStr.Text) > 12 Then
      MsgBox "一年(12个)月,没有 " & MaskStr.Text & " 个月!", vbOKOnly + 32, "操作失误"
      Exit Sub
   Else
     TjZijin.DisplayLab.Caption = "分类统计 " & Year(Date) & "年( " & MaskStr.Text & " )月资金情况"
     TjZijin.RqHide.Text = MaskStr.Text
     Unload Me
     Exit Sub
     End If
End If
If TjZijin.Option3.Value = True Then
    If Val(MaskStr.Text) > 31 Then
      MsgBox "一个月最大(31)天,没有 " & MaskStr.Text & " 天", vbOKOnly + 32, "操作失误"
      Exit Sub
    Else
     TjZijin.DisplayLab.Caption = "分类统计" & Year(Date) & "年 " & Month(Date) & "月( " & MaskStr.Text & " )日资金情况"
     TjZijin.RqHide.Text = MaskStr.Text
     Unload Me
     Exit Sub
     End If
End If
End Sub

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?