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

📄 frmsalarybillmodal.frm

📁 金算盘软件代码
💻 FRM
📖 第 1 页 / 共 2 页
字号:
         BackStyle       =   0  'Transparent
         Caption         =   "张山"
         Height          =   255
         Index           =   16
         Left            =   960
         TabIndex        =   24
         Top             =   520
         Width           =   495
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "基本工资"
         Height          =   255
         Index           =   15
         Left            =   100
         TabIndex        =   23
         Top             =   860
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "1,200.00"
         Height          =   255
         Index           =   14
         Left            =   900
         TabIndex        =   22
         Top             =   860
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "奖金"
         Height          =   255
         Index           =   13
         Left            =   240
         TabIndex        =   21
         Top             =   1170
         Width           =   375
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "800.00"
         Height          =   255
         Index           =   12
         Left            =   1095
         TabIndex        =   20
         Top             =   1170
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "应发合计"
         Height          =   255
         Index           =   11
         Left            =   100
         TabIndex        =   19
         Top             =   1480
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "2,000.00"
         Height          =   255
         Index           =   10
         Left            =   900
         TabIndex        =   18
         Top             =   1480
         Width           =   735
      End
      Begin VB.Line linShow 
         Index           =   9
         X1              =   3000
         X2              =   3000
         Y1              =   120
         Y2              =   2370
      End
   End
   Begin VB.PictureBox pctShow 
      Appearance      =   0  'Flat
      BackColor       =   &H80000005&
      ForeColor       =   &H80000008&
      Height          =   975
      Index           =   0
      Left            =   80
      ScaleHeight     =   945
      ScaleWidth      =   3885
      TabIndex        =   7
      Top             =   1560
      Visible         =   0   'False
      Width           =   3920
      Begin VB.Line linShow 
         Index           =   8
         X1              =   2880
         X2              =   2880
         Y1              =   120
         Y2              =   800
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "2,000.00"
         Height          =   255
         Index           =   9
         Left            =   3000
         TabIndex        =   17
         Top             =   540
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "应发合计"
         Height          =   255
         Index           =   8
         Left            =   3000
         TabIndex        =   16
         Top             =   200
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "800.00"
         Height          =   255
         Index           =   7
         Left            =   2320
         TabIndex        =   15
         Top             =   540
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "奖金"
         Height          =   255
         Index           =   6
         Left            =   2400
         TabIndex        =   14
         Top             =   200
         Width           =   375
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "1,200.00"
         Height          =   255
         Index           =   5
         Left            =   1500
         TabIndex        =   13
         Top             =   540
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "基本工资"
         Height          =   255
         Index           =   4
         Left            =   1500
         TabIndex        =   12
         Top             =   200
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "张山"
         Height          =   255
         Index           =   3
         Left            =   960
         TabIndex        =   11
         Top             =   540
         Width           =   495
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "姓名"
         Height          =   255
         Index           =   2
         Left            =   960
         TabIndex        =   10
         Top             =   200
         Width           =   495
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "000001"
         Height          =   255
         Index           =   1
         Left            =   120
         TabIndex        =   9
         Top             =   540
         Width           =   735
      End
      Begin VB.Label lblPrint 
         BackColor       =   &H00FFFFFF&
         BackStyle       =   0  'Transparent
         Caption         =   "职员编号"
         Height          =   255
         Index           =   0
         Left            =   120
         TabIndex        =   8
         Top             =   200
         Width           =   735
      End
      Begin VB.Line linShow 
         Index           =   7
         X1              =   3800
         X2              =   3800
         Y1              =   120
         Y2              =   800
      End
      Begin VB.Line linShow 
         Index           =   6
         X1              =   2280
         X2              =   2280
         Y1              =   120
         Y2              =   800
      End
      Begin VB.Line linShow 
         Index           =   5
         X1              =   1440
         X2              =   1440
         Y1              =   120
         Y2              =   800
      End
      Begin VB.Line linShow 
         Index           =   4
         X1              =   840
         X2              =   840
         Y1              =   120
         Y2              =   800
      End
      Begin VB.Line linShow 
         Index           =   3
         X1              =   50
         X2              =   50
         Y1              =   120
         Y2              =   800
      End
      Begin VB.Line linShow 
         Index           =   2
         X1              =   50
         X2              =   3800
         Y1              =   800
         Y2              =   800
      End
      Begin VB.Line linShow 
         Index           =   1
         X1              =   50
         X2              =   3800
         Y1              =   440
         Y2              =   440
      End
      Begin VB.Line linShow 
         Index           =   0
         X1              =   45
         X2              =   3800
         Y1              =   120
         Y2              =   120
      End
   End
   Begin VB.CommandButton cmdMore 
      Caption         =   "更多信息(&M)"
      Height          =   375
      Left            =   2640
      TabIndex        =   5
      Top             =   1050
      Width           =   1335
   End
   Begin VB.CommandButton cmdOK 
      Height          =   375
      Index           =   0
      Left            =   2640
      Style           =   1  'Graphical
      TabIndex        =   3
      Top             =   240
      UseMaskColor    =   -1  'True
      Width           =   1335
   End
   Begin VB.Frame Frame1 
      Caption         =   "打印方式"
      Height          =   1245
      Left            =   90
      TabIndex        =   0
      Top             =   150
      Width           =   2415
      Begin VB.OptionButton optPrint 
         Caption         =   "工资条纵向打印"
         Height          =   255
         Index           =   1
         Left            =   240
         TabIndex        =   2
         Top             =   750
         Width           =   1695
      End
      Begin VB.OptionButton optPrint 
         Caption         =   "工资条横向打印"
         Height          =   255
         Index           =   0
         Left            =   240
         TabIndex        =   1
         Top             =   390
         Value           =   -1  'True
         Width           =   1695
      End
   End
End
Attribute VB_Name = "frmSalaryBillModal"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
'工资条打印方式设置(横向,纵向)
'
'功能:设置横向或纵向打印工资条
'
'作者:   唐吉禹
'1998-7-23
Option Explicit
Private mblnMore As Boolean     '是否显示更多信息
Private mblnIsPrint As Boolean  '是否打印
Private mblnIsRow As Boolean    '是否横向打印
Private mblnIsPrintSetUp As Boolean

Private Sub cmdMore_Click()
    '横向打印
    If Me.Height > 2000 Then
        Me.Height = 2000
        pctShow(0).Visible = False
        pctShow(1).Visible = False
        mblnMore = False
        Exit Sub
    End If
    mblnMore = True
    If optPrint(0).Value Then
        Call ShowByRow
    Else
        Call ShowByCol
    End If
End Sub

Private Sub cmdOK_Click(Index As Integer)
    mblnIsPrint = True
    mblnIsRow = optPrint(0).Value
    frmSalaryBill.ByRowPrint = optPrint(0).Value
    frmSalaryBill.ShouldPrint = True
    Unload Me
End Sub
'是否打印
Public Property Get BillModalIsShow(ByRef blnIsRowPrint As Boolean) As Boolean
    frmSalaryBillModal.Show vbModal
    BillModalIsShow = mblnIsPrint
    blnIsRowPrint = mblnIsRow
End Property
Private Sub cmdPrintSetup_Click()
    Dim clsPrint As PrintClass
    
    If mblnIsPrintSetUp Then Exit Sub
    Set clsPrint = New PrintClass
    If optPrint(0).Value Then
        mblnIsPrintSetUp = True
        clsPrint.PrintSetUp gclsBase.BaseDB, Nothing, , , , 10
    Else
        mblnIsPrintSetUp = True
        clsPrint.PrintSetUp gclsBase.BaseDB, Nothing, , , , 11
    End If
    mblnIsPrintSetUp = False
End Sub

Private Sub Form_Load()
    mblnMore = False
    mblnIsPrint = False
    mblnIsPrintSetUp = False
    Me.Height = 2000
    Me.Left = (Screen.width - Me.width) / 2
    Me.top = (Screen.Height - Me.Height) / 2
    Set cmdOk(0).Picture = Utility.GetFormResPicture(1012, 0)
    Set Me.Icon = Utility.GetFormResPicture(139, vbResIcon)
    Set frmSalaryBillModal = Nothing
End Sub
Private Sub Form_Unload(Cancel As Integer)
    Utility.RemoveFormResPicture (1012)
    Utility.RemoveFormResPicture (139)
    Set frmSalaryBillModal = Nothing
End Sub
'显示横向
Private Sub ShowByRow()
    pctShow(0).Visible = True
    pctShow(1).Visible = False
    Me.Height = 2975
End Sub
'显示纵向
Private Sub ShowByCol()
    pctShow(0).Visible = False
    pctShow(1).Visible = True
    Me.Height = 4560
End Sub
Private Sub optPrint_Click(Index As Integer)
    If mblnMore Then
        If optPrint(0).Value Then
            Call ShowByRow
        Else
            Call ShowByCol
        End If
    End If
End Sub

⌨️ 快捷键说明

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