⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 frmgrsd2.frm

📁 个人所得税 学习(VB)
💻 FRM
字号:
VERSION 5.00
Begin VB.Form frmgrsd2 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "个体工商户生产经营所得"
   ClientHeight    =   1905
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   7830
   LinkTopic       =   "Form1"
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   1905
   ScaleWidth      =   7830
   StartUpPosition =   3  'Windows Default
   Begin VB.CommandButton Command1 
      Caption         =   "输  入"
      Height          =   375
      Left            =   5280
      TabIndex        =   1
      Top             =   360
      Width           =   975
   End
   Begin VB.CommandButton Command2 
      Caption         =   "退   出"
      Height          =   375
      Left            =   6600
      TabIndex        =   0
      Top             =   360
      Width           =   975
   End
   Begin VB.Label Label1 
      Alignment       =   1  'Right Justify
      BorderStyle     =   1  'Fixed Single
      BeginProperty Font 
         Name            =   "Times New Roman"
         Size            =   18
         Charset         =   0
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   3000
      TabIndex        =   5
      Top             =   1080
      Width           =   2655
   End
   Begin VB.Label Label2 
      Alignment       =   1  'Right Justify
      AutoSize        =   -1  'True
      Caption         =   "元(人民币)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   15
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   300
      Left            =   5760
      TabIndex        =   4
      Top             =   1200
      Width           =   1995
   End
   Begin VB.Label Label3 
      Caption         =   "您本月应缴纳个人所得税为:"
      BeginProperty Font 
         Name            =   "幼圆"
         Size            =   10.5
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      ForeColor       =   &H00FF0000&
      Height          =   495
      Left            =   120
      TabIndex        =   3
      Top             =   1080
      Width           =   3015
   End
   Begin VB.Label Label4 
      Caption         =   "单击“输入”按钮,输入你一个纳税年度的应税所得额。"
      BeginProperty Font 
         Name            =   "微软简隶书"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   615
      Left            =   360
      TabIndex        =   2
      Top             =   120
      Width           =   4695
   End
End
Attribute VB_Name = "frmgrsd2"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
 
 
 Dim yjj As String        '声明yjj为字符型变量
 Dim sde As Currency      '声明应纳税所得(sde)为变比整型变量
 Dim tmp As String        '声明tmp为临时变量
Private Sub Command1_Click()
    yjj = "请输入你一个纳税年度的应纳税所得额!"
a:
        tmp = InputBox(yjj$, "提示信息!")
       
      
   If Not IsNumeric(tmp) Then
           MsgBox ("输入含有字母或其它字符,退出吗?"), , "提示信息"
        Exit Sub
        ElseIf IsNumeric(tmp) Then
           MsgBox ("输入的应纳税所得额为:" & tmp & "元"), , "提示信息"
        GoTo ab
        Else
           MsgBox ("退出吗?"), , "提示信息"
    End If
ab:
    If Len(tmp) > 12 Then
           MsgBox ("输入的数字过大,请重新输入!"), , "提示信息"
        GoTo a
        ElseIf Len(tmp) <= 12 Then
         GoTo abc
     End If
     
abc:
   sde = CCur(tmp)
   
  If sde <= 0 Then
      label1.Caption = "您不用纳税!"
  ElseIf sde > 0 And sde < 5000 Then
          label1.Caption = sde * 0.05
  ElseIf sde < 10000 Then
   
    label1.Caption = sde * 0.1 + 250
  ElseIf sde < 30000 Then
    
    label1.Caption = sde * 0.2 + 1250
  ElseIf sde < 50000 Then
   
    label1.Caption = sde * 0.3 + 4250
  ElseIf sde > 50000 Then
    
    label1.Caption = sde * 0.35 + 6750
     
  End If
 End Sub



Private Sub Command2_Click()
    
    Unload frmgrsd2
    frmgrsd.Show
    
    
End Sub

⌨️ 快捷键说明

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