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

📄 frm报表选择.frm

📁 工资管理系统(VB)基于vb开发的工资管理系统,希望大家有用
💻 FRM
字号:
VERSION 5.00
Object = "{00025600-0000-0000-C000-000000000046}#4.6#0"; "CRYSTL32.OCX"
Object = "{F9043C88-F6F2-101A-A3C9-08002B2F49FB}#1.1#0"; "COMDLG32.OCX"
Begin VB.Form frm报表选择 
   Caption         =   "报表选择及打印"
   ClientHeight    =   3225
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6855
   LinkTopic       =   "Form1"
   ScaleHeight     =   3225
   ScaleWidth      =   6855
   StartUpPosition =   2  '屏幕中心
   Begin VB.CommandButton Command3 
      Caption         =   "退出(&Q)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   5430
      TabIndex        =   5
      Top             =   1140
      Width           =   1335
   End
   Begin VB.CommandButton Command2 
      Caption         =   "打印(&P)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   5430
      TabIndex        =   4
      Top             =   600
      Width           =   1335
   End
   Begin VB.CommandButton Command1 
      Caption         =   "打印机设置(&S)"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   435
      Left            =   4980
      TabIndex        =   3
      Top             =   90
      Width           =   1785
   End
   Begin VB.Frame Frame2 
      Caption         =   "选择表格类型:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1905
      Left            =   90
      TabIndex        =   2
      Top             =   1230
      Width           =   5205
      Begin VB.ComboBox Combo1 
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   1380
         Left            =   120
         Style           =   1  'Simple Combo
         TabIndex        =   7
         Text            =   "Combo1"
         Top             =   300
         Width           =   4965
      End
   End
   Begin VB.Frame Frame1 
      Caption         =   "选择表类型:"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   400
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   1035
      Left            =   90
      TabIndex        =   0
      Top             =   150
      Width           =   2985
      Begin VB.OptionButton Option1 
         Caption         =   "工资表"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   1
         Left            =   1590
         TabIndex        =   6
         Top             =   450
         Width           =   1125
      End
      Begin VB.OptionButton Option1 
         Caption         =   "工资条"
         BeginProperty Font 
            Name            =   "宋体"
            Size            =   12
            Charset         =   134
            Weight          =   400
            Underline       =   0   'False
            Italic          =   0   'False
            Strikethrough   =   0   'False
         EndProperty
         Height          =   375
         Index           =   0
         Left            =   270
         TabIndex        =   1
         Top             =   450
         Value           =   -1  'True
         Width           =   1095
      End
   End
   Begin MSComDlg.CommonDialog cd1 
      Left            =   5580
      Top             =   1860
      _ExtentX        =   847
      _ExtentY        =   847
      _Version        =   327681
   End
   Begin Crystal.CrystalReport cr1 
      Left            =   6300
      Top             =   1890
      _ExtentX        =   741
      _ExtentY        =   741
      _Version        =   262150
      WindowControlBox=   -1  'True
      WindowMaxButton =   -1  'True
      WindowMinButton =   -1  'True
   End
End
Attribute VB_Name = "frm报表选择"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit
Dim pbwjm As String

Public Sub gztxs()
 Combo1.Clear
 Combo1.AddItem "在职条[在职工资条]"
 Combo1.AddItem "退休条[退休工资条]"
 Combo1.AddItem "离休条[离休工资条]"
End Sub
Public Sub gzbxs()
 Combo1.Clear
 Combo1.AddItem "在职表[在职工资表]"
 Combo1.AddItem "退休表[退休工资表]"
 Combo1.AddItem "离休表[离休工资表]"
End Sub

Private Sub Combo1_Click()
    pbwjm = Left(Trim(Combo1.Text), 3) & ".rpt"
End Sub

Private Sub Command1_Click()
        CD1.ShowPrinter
End Sub

Private Sub Command2_Click()
    CR1.DataFiles(0) = xtlj & "dwxx.mdb"
    pbwjm = xtlj & "rpt\" & pbwjm
    CR1.ReportFileName = pbwjm
    CR1.PrintReport
End Sub

Private Sub Command3_Click()
    Unload Me
End Sub

Private Sub Form_Load()
 Option1(0).Value = True
 Frame2.Visible = True
 pbwjm = "1010条.rpt"
 Call gztxs
End Sub
 


Private Sub Option1_Click(Index As Integer)
   If Index = 0 Then Call gztxs
   If Index = 1 Then Call gzbxs
End Sub

⌨️ 快捷键说明

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