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

📄 frmrepinventory.frm

📁 用VB6.0编写的关于车辆运输调度的系统
💻 FRM
字号:
VERSION 5.00
Begin VB.Form FrmRepInventory 
   Caption         =   "Customer Tank Inventory Report"
   ClientHeight    =   5190
   ClientLeft      =   60
   ClientTop       =   345
   ClientWidth     =   6750
   BeginProperty Font 
      Name            =   "宋体"
      Size            =   9
      Charset         =   134
      Weight          =   400
      Underline       =   0   'False
      Italic          =   0   'False
      Strikethrough   =   0   'False
   EndProperty
   LinkTopic       =   "Form1"
   MDIChild        =   -1  'True
   ScaleHeight     =   5190
   ScaleWidth      =   6750
   WindowState     =   2  'Maximized
   Begin VB.CommandButton cmdexit 
      Caption         =   "Exit"
      Height          =   375
      Left            =   4080
      TabIndex        =   5
      Top             =   4080
      Width           =   975
   End
   Begin VB.CommandButton cmdprint 
      Caption         =   "Print"
      Height          =   375
      Left            =   2520
      TabIndex        =   4
      Top             =   4080
      Width           =   975
   End
   Begin VB.CommandButton cmdpreview 
      Caption         =   "Preview"
      Height          =   375
      Left            =   960
      TabIndex        =   3
      Top             =   4080
      Width           =   975
   End
   Begin VB.Frame Frame1 
      Height          =   2655
      Left            =   600
      TabIndex        =   0
      Top             =   960
      Width           =   5175
      Begin VB.TextBox Text1 
         Height          =   270
         Left            =   2040
         TabIndex        =   2
         Top             =   1560
         Width           =   2055
      End
      Begin VB.ComboBox Combo1 
         Height          =   300
         Left            =   2040
         Style           =   2  'Dropdown List
         TabIndex        =   1
         Top             =   600
         Width           =   2055
      End
      Begin VB.Label Label2 
         Caption         =   "Printing Criteria:"
         Height          =   255
         Left            =   360
         TabIndex        =   7
         Top             =   240
         Width           =   1695
      End
      Begin VB.Label Label1 
         Caption         =   "Customer Tank/Product Code:"
         Height          =   255
         Left            =   120
         TabIndex        =   6
         Top             =   1200
         Width           =   2535
      End
   End
   Begin VB.Label Label3 
      Caption         =   "Customer Tank Inventory Report"
      BeginProperty Font 
         Name            =   "宋体"
         Size            =   12
         Charset         =   134
         Weight          =   700
         Underline       =   0   'False
         Italic          =   0   'False
         Strikethrough   =   0   'False
      EndProperty
      Height          =   495
      Left            =   480
      TabIndex        =   8
      Top             =   360
      Width           =   4215
   End
End
Attribute VB_Name = "FrmRepInventory"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Option Explicit


Private Sub cmdexit_Click()
    Unload Me
End Sub

Private Sub cmdpreview_Click()
Dim code As Long

    Set DataEnv = New DataEnv
    Select Case Combo1.Text
        
    Case "By Entity"
        DataEnv.Command3_Grouping "By Entity", 1, 99999, 1, 99999
        RepInvenAll.Show
    Case "By Customer Tank"
        code = CLng(Text1.Text)
        DataEnv.Command3_Grouping "By Customer Tank", code, code, 1, 99999
        RepInvenAll.Show
        
    Case "By Product"
        code = CLng(Text1.Text)
        DataEnv.Command3_Grouping "By Product", 1, 99999, code, code
        RepInvenAll.Show
        
    End Select
    
End Sub

Private Sub cmdprint_Click()
Dim code As Long

    Set DataEnv = New DataEnv
    Select Case Combo1.Text
        
    Case "By Entity"
        DataEnv.Command3_Grouping "By Entity", 1, 99999, 1, 99999
        RepInvenAll.PrintReport False, rptRangeAllPages
    Case "By Customer Tank"
        code = CLng(Text1.Text)
        DataEnv.Command3_Grouping "By Customer Tank", code, code, 1, 99999
        RepInvenAll.PrintReport False, rptRangeAllPages
        
    Case "By Product"
        code = CLng(Text1.Text)
        DataEnv.Command3_Grouping "By Product", 1, 99999, code, code
        RepInvenAll.PrintReport False, rptRangeAllPages
        
    End Select
    

End Sub

Private Sub Form_Activate()
    Combo1.SetFocus
End Sub

Private Sub Form_Load()

    Call initcombobox
    'Combo1.SetFocus
    
End Sub

Private Sub initcombobox()

    Combo1.AddItem "By Entity"
    Combo1.AddItem "By Customer Tank"
    Combo1.AddItem "By Product"
    Combo1.ListIndex = 0
    
    
End Sub

⌨️ 快捷键说明

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