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

📄 frmsalaryrule.frm

📁 这是一个利用VB编写的中小企业ERP。功能比较全
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmSalaryRule 
   BorderStyle     =   1  'Fixed Single
   Caption         =   "工资制度管理"
   ClientHeight    =   9465
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   15270
   Icon            =   "FrmSalaryRule.frx":0000
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   9465
   ScaleWidth      =   15270
   WindowState     =   2  'Maximized
   Begin VB.Frame Frame2 
      Height          =   3255
      Left            =   5040
      TabIndex        =   6
      Top             =   3240
      Width           =   5295
      Begin VB.TextBox Text6 
         Alignment       =   1  'Right Justify
         Height          =   270
         Left            =   3480
         MaxLength       =   5
         TabIndex        =   5
         Top             =   2715
         Width           =   1335
      End
      Begin VB.TextBox Text5 
         Alignment       =   1  'Right Justify
         Height          =   270
         Left            =   3480
         MaxLength       =   5
         TabIndex        =   4
         Top             =   2235
         Width           =   1335
      End
      Begin VB.TextBox Text4 
         Alignment       =   1  'Right Justify
         Height          =   270
         Left            =   3480
         MaxLength       =   5
         TabIndex        =   3
         Top             =   1755
         Width           =   1335
      End
      Begin VB.TextBox Text3 
         Alignment       =   1  'Right Justify
         Height          =   270
         Left            =   3480
         MaxLength       =   5
         TabIndex        =   2
         Top             =   1275
         Width           =   1335
      End
      Begin VB.TextBox Text2 
         Alignment       =   1  'Right Justify
         Height          =   270
         Left            =   3480
         MaxLength       =   5
         TabIndex        =   1
         Top             =   795
         Width           =   1335
      End
      Begin VB.TextBox Text1 
         Alignment       =   1  'Right Justify
         Height          =   270
         Left            =   3480
         MaxLength       =   5
         TabIndex        =   0
         Top             =   315
         Width           =   1335
      End
      Begin VB.Label Label5 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "迟到扣款(元/次)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   240
         Left            =   240
         TabIndex        =   12
         Top             =   360
         Width           =   2175
      End
      Begin VB.Label Label7 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "差旅补助(元/天)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   240
         Left            =   240
         TabIndex        =   11
         Top             =   840
         Width           =   2175
      End
      Begin VB.Label Label9 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "住房公积金代扣系数(%)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   240
         Left            =   240
         TabIndex        =   10
         Top             =   2760
         Width           =   2940
      End
      Begin VB.Label Label11 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "养老代扣系数(%)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   240
         Left            =   240
         TabIndex        =   9
         Top             =   1320
         Width           =   2175
      End
      Begin VB.Label Label14 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "基本医疗代扣系数(%)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   240
         Left            =   240
         TabIndex        =   8
         Top             =   1800
         Width           =   2685
      End
      Begin VB.Label Label15 
         AutoSize        =   -1  'True
         BackStyle       =   0  'Transparent
         Caption         =   "失业保险代扣系数(%)"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   0
            Weight          =   700
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         ForeColor       =   &H00000000&
         Height          =   240
         Left            =   240
         TabIndex        =   7
         Top             =   2280
         Width           =   2685
      End
   End
   Begin VB.Label LblOK 
      BackStyle       =   0  'Transparent
      Caption         =   "确 定"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   6600
      MouseIcon       =   "FrmSalaryRule.frx":0CCA
      MousePointer    =   99  'Custom
      TabIndex        =   14
      Top             =   6960
      Width           =   735
   End
   Begin VB.Image Image3 
      Height          =   300
      Left            =   6000
      Picture         =   "FrmSalaryRule.frx":0FD4
      Top             =   6960
      Width           =   300
   End
   Begin VB.Label LblCancel 
      BackStyle       =   0  'Transparent
      Caption         =   "取 消"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   0
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   255
      Left            =   8640
      MouseIcon       =   "FrmSalaryRule.frx":13F0
      MousePointer    =   99  'Custom
      TabIndex        =   13
      Top             =   6960
      Width           =   855
   End
   Begin VB.Image Image4 
      Height          =   300
      Left            =   8040
      Picture         =   "FrmSalaryRule.frx":16FA
      Top             =   6960
      Width           =   300
   End
End
Attribute VB_Name = "FrmSalaryRule"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Form_Load()
    With MyRule
        '迟到扣款
        Text1 = .GetAmount(1)
        '差旅补助
        Text2 = .GetAmount(2)
        '养老代扣系数
        Text3 = .GetAmount(3)
        '基本医疗代扣系数
        Text4 = .GetAmount(4)
        '失业保险代扣系数
        Text5 = .GetAmount(5)
        '住房公积金代扣系数
        Text6 = .GetAmount(6)
    End With
End Sub

Private Sub LblCancel_Click()
    Unload Me
End Sub

Private Sub LblOK_Click()
    With MyRule
        '迟到扣款
        .RuleType = 1
        .RuleAmount = Val(Text1)
        If .In_DB(1) = False Then
            .Insert
        Else
            .Update (.RuleType)
        End If
        '差旅补助
        .RuleType = 2
        .RuleAmount = Val(Text2)
        If .In_DB(2) = False Then
            .Insert
        Else
            .Update (.RuleType)
        End If
        '养老代扣系数
        .RuleType = 3
        .RuleAmount = Val(Text3)
        If .In_DB(3) = False Then
            .Insert
        Else
            .Update (.RuleType)
        End If
        '基本医疗代扣系数
        .RuleType = 4
        .RuleAmount = Val(Text4)
        If .In_DB(4) = False Then
            .Insert
        Else
            .Update (.RuleType)
        End If
        '失业保险代扣系数
        .RuleType = 5
        .RuleAmount = Val(Text5)
        If .In_DB(5) = False Then
            .Insert
        Else
            .Update (.RuleType)
        End If
        '住房公积金代扣系数
        .RuleType = 6
        .RuleAmount = Val(Text6)
        If .In_DB(6) = False Then
            .Insert
        Else
            .Update (.RuleType)
        End If
    End With
    Unload Me
End Sub

Private Sub Text1_KeyPress(KeyAscii As Integer)
    EnterTAB (KeyAscii)
    If In_Single(KeyAscii) = False Then
        KeyAscii = 0
    End If
End Sub

Private Sub Text2_KeyPress(KeyAscii As Integer)
    EnterTAB (KeyAscii)
    If In_Single(KeyAscii) = False Then
        KeyAscii = 0
    End If
End Sub

Private Sub Text3_KeyPress(KeyAscii As Integer)
    EnterTAB (KeyAscii)
    If In_Single(KeyAscii) = False Then
        KeyAscii = 0
    End If
End Sub

Private Sub Text4_KeyPress(KeyAscii As Integer)
    EnterTAB (KeyAscii)
    If In_Single(KeyAscii) = False Then
        KeyAscii = 0
    End If
End Sub

Private Sub Text5_KeyPress(KeyAscii As Integer)
    EnterTAB (KeyAscii)
    If In_Single(KeyAscii) = False Then
        KeyAscii = 0
    End If
End Sub

Private Sub Text6_KeyPress(KeyAscii As Integer)
    EnterTAB (KeyAscii)
    If In_Single(KeyAscii) = False Then
        KeyAscii = 0
    End If
End Sub

⌨️ 快捷键说明

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